Skip to content

Commit 092ca50

Browse files
authored
Merge pull request torvalds#186 from zandrey/5.4.x+fslc
Update 5.4.x+fslc to v5.4.81
2 parents 51095e5 + 1fc25b5 commit 092ca50

File tree

104 files changed

+1012
-453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+1012
-453
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
VERSION = 5
33
PATCHLEVEL = 4
4-
SUBLEVEL = 80
4+
SUBLEVEL = 81
55
EXTRAVERSION =
66
NAME = Kleptomaniac Octopus
77

arch/arc/include/asm/pgtable.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,10 @@
135135

136136
#ifdef CONFIG_ARC_HAS_PAE40
137137
#define PTE_BITS_NON_RWX_IN_PD1 (0xff00000000 | PAGE_MASK | _PAGE_CACHEABLE)
138+
#define MAX_POSSIBLE_PHYSMEM_BITS 40
138139
#else
139140
#define PTE_BITS_NON_RWX_IN_PD1 (PAGE_MASK | _PAGE_CACHEABLE)
141+
#define MAX_POSSIBLE_PHYSMEM_BITS 32
140142
#endif
141143

142144
/**************************************************************************

arch/arm/boot/dts/dra76x.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
3333
<GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
3434
interrupt-names = "int0", "int1";
35-
clocks = <&mcan_clk>, <&l3_iclk_div>;
36-
clock-names = "cclk", "hclk";
35+
clocks = <&l3_iclk_div>, <&mcan_clk>;
36+
clock-names = "hclk", "cclk";
3737
bosch,mram-cfg = <0x0 0 0 32 0 0 1 1>;
3838
};
3939
};

arch/arm/include/asm/pgtable-2level.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@
7575
#define PTE_HWTABLE_OFF (PTE_HWTABLE_PTRS * sizeof(pte_t))
7676
#define PTE_HWTABLE_SIZE (PTRS_PER_PTE * sizeof(u32))
7777

78+
#define MAX_POSSIBLE_PHYSMEM_BITS 32
79+
7880
/*
7981
* PMD_SHIFT determines the size of the area a second-level page table can map
8082
* PGDIR_SHIFT determines what a third-level page table entry can map

arch/arm/include/asm/pgtable-3level.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
#define PTE_HWTABLE_OFF (0)
2626
#define PTE_HWTABLE_SIZE (PTRS_PER_PTE * sizeof(u64))
2727

28+
#define MAX_POSSIBLE_PHYSMEM_BITS 40
29+
2830
/*
2931
* PGDIR_SHIFT determines the size a top-level page table entry can map.
3032
*/

arch/arm/mach-omap2/cpuidle44xx.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,16 +175,18 @@ static int omap_enter_idle_coupled(struct cpuidle_device *dev,
175175
if (mpuss_can_lose_context) {
176176
error = cpu_cluster_pm_enter();
177177
if (error) {
178-
omap_set_pwrdm_state(mpu_pd, PWRDM_POWER_ON);
179-
goto cpu_cluster_pm_out;
178+
index = 0;
179+
cx = state_ptr + index;
180+
pwrdm_set_logic_retst(mpu_pd, cx->mpu_logic_state);
181+
omap_set_pwrdm_state(mpu_pd, cx->mpu_state);
182+
mpuss_can_lose_context = 0;
180183
}
181184
}
182185
}
183186

184187
omap4_enter_lowpower(dev->cpu, cx->cpu_state);
185188
cpu_done[dev->cpu] = true;
186189

187-
cpu_cluster_pm_out:
188190
/* Wakeup CPU1 only if it is not offlined */
189191
if (dev->cpu == 0 && cpumask_test_cpu(1, cpu_online_mask)) {
190192

arch/arm64/boot/dts/nvidia/tegra194.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@
692692

693693
hsp_aon: hsp@c150000 {
694694
compatible = "nvidia,tegra194-hsp", "nvidia,tegra186-hsp";
695-
reg = <0x0c150000 0xa0000>;
695+
reg = <0x0c150000 0x90000>;
696696
interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>,
697697
<GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>,
698698
<GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,

arch/arm64/include/asm/pgtable.h

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,19 @@ extern unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)];
9898
#define pte_valid(pte) (!!(pte_val(pte) & PTE_VALID))
9999
#define pte_valid_not_user(pte) \
100100
((pte_val(pte) & (PTE_VALID | PTE_USER)) == PTE_VALID)
101-
#define pte_valid_young(pte) \
102-
((pte_val(pte) & (PTE_VALID | PTE_AF)) == (PTE_VALID | PTE_AF))
103101
#define pte_valid_user(pte) \
104102
((pte_val(pte) & (PTE_VALID | PTE_USER)) == (PTE_VALID | PTE_USER))
105103

106104
/*
107105
* Could the pte be present in the TLB? We must check mm_tlb_flush_pending
108106
* so that we don't erroneously return false for pages that have been
109107
* remapped as PROT_NONE but are yet to be flushed from the TLB.
108+
* Note that we can't make any assumptions based on the state of the access
109+
* flag, since ptep_clear_flush_young() elides a DSB when invalidating the
110+
* TLB.
110111
*/
111112
#define pte_accessible(mm, pte) \
112-
(mm_tlb_flush_pending(mm) ? pte_present(pte) : pte_valid_young(pte))
113+
(mm_tlb_flush_pending(mm) ? pte_present(pte) : pte_valid(pte))
113114

114115
/*
115116
* p??_access_permitted() is true for valid user mappings (subject to the
@@ -135,13 +136,6 @@ static inline pte_t set_pte_bit(pte_t pte, pgprot_t prot)
135136
return pte;
136137
}
137138

138-
static inline pte_t pte_wrprotect(pte_t pte)
139-
{
140-
pte = clear_pte_bit(pte, __pgprot(PTE_WRITE));
141-
pte = set_pte_bit(pte, __pgprot(PTE_RDONLY));
142-
return pte;
143-
}
144-
145139
static inline pte_t pte_mkwrite(pte_t pte)
146140
{
147141
pte = set_pte_bit(pte, __pgprot(PTE_WRITE));
@@ -167,6 +161,20 @@ static inline pte_t pte_mkdirty(pte_t pte)
167161
return pte;
168162
}
169163

164+
static inline pte_t pte_wrprotect(pte_t pte)
165+
{
166+
/*
167+
* If hardware-dirty (PTE_WRITE/DBM bit set and PTE_RDONLY
168+
* clear), set the PTE_DIRTY bit.
169+
*/
170+
if (pte_hw_dirty(pte))
171+
pte = pte_mkdirty(pte);
172+
173+
pte = clear_pte_bit(pte, __pgprot(PTE_WRITE));
174+
pte = set_pte_bit(pte, __pgprot(PTE_RDONLY));
175+
return pte;
176+
}
177+
170178
static inline pte_t pte_mkold(pte_t pte)
171179
{
172180
return clear_pte_bit(pte, __pgprot(PTE_AF));
@@ -782,12 +790,6 @@ static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addres
782790
pte = READ_ONCE(*ptep);
783791
do {
784792
old_pte = pte;
785-
/*
786-
* If hardware-dirty (PTE_WRITE/DBM bit set and PTE_RDONLY
787-
* clear), set the PTE_DIRTY bit.
788-
*/
789-
if (pte_hw_dirty(pte))
790-
pte = pte_mkdirty(pte);
791793
pte = pte_wrprotect(pte);
792794
pte_val(pte) = cmpxchg_relaxed(&pte_val(*ptep),
793795
pte_val(old_pte), pte_val(pte));

arch/mips/include/asm/pgtable-32.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ static inline void pmd_clear(pmd_t *pmdp)
155155

156156
#if defined(CONFIG_XPA)
157157

158+
#define MAX_POSSIBLE_PHYSMEM_BITS 40
158159
#define pte_pfn(x) (((unsigned long)((x).pte_high >> _PFN_SHIFT)) | (unsigned long)((x).pte_low << _PAGE_PRESENT_SHIFT))
159160
static inline pte_t
160161
pfn_pte(unsigned long pfn, pgprot_t prot)
@@ -170,6 +171,7 @@ pfn_pte(unsigned long pfn, pgprot_t prot)
170171

171172
#elif defined(CONFIG_PHYS_ADDR_T_64BIT) && defined(CONFIG_CPU_MIPS32)
172173

174+
#define MAX_POSSIBLE_PHYSMEM_BITS 36
173175
#define pte_pfn(x) ((unsigned long)((x).pte_high >> 6))
174176

175177
static inline pte_t pfn_pte(unsigned long pfn, pgprot_t prot)
@@ -184,6 +186,7 @@ static inline pte_t pfn_pte(unsigned long pfn, pgprot_t prot)
184186

185187
#else
186188

189+
#define MAX_POSSIBLE_PHYSMEM_BITS 32
187190
#ifdef CONFIG_CPU_VR41XX
188191
#define pte_pfn(x) ((unsigned long)((x).pte >> (PAGE_SHIFT + 2)))
189192
#define pfn_pte(pfn, prot) __pte(((pfn) << (PAGE_SHIFT + 2)) | pgprot_val(prot))

arch/powerpc/include/asm/book3s/32/pgtable.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ static inline bool pte_user(pte_t pte)
3737
*/
3838
#ifdef CONFIG_PTE_64BIT
3939
#define PTE_RPN_MASK (~((1ULL << PTE_RPN_SHIFT) - 1))
40+
#define MAX_POSSIBLE_PHYSMEM_BITS 36
4041
#else
4142
#define PTE_RPN_MASK (~((1UL << PTE_RPN_SHIFT) - 1))
43+
#define MAX_POSSIBLE_PHYSMEM_BITS 32
4244
#endif
4345

4446
/*

0 commit comments

Comments
 (0)