fsl_booke: Correct test for MMU_FTR_BIG_PHYS
PATCH 1/1 fsl_booke: Correct test for MMU_FTR_BIG_PHYS
The code was looking for this in cpu_features, not mmu_features. Fix this.
Signed-off-by Becky Bruce <[email protected]>
--- arch/powerpc/mm/fsl_booke_mmu.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/mm/fsl_booke_mmu.c +2 -2
@@ -116,7 +116,7 @@ void loadcam_entry(int idx)mtspr (SPRN_MAS2 ,TLBCAM [idx].MAS2);mtspr (SPRN_MAS3 ,TLBCAM [idx].MAS3); -if (cur_cpu_spec->cpu_features &MMU_FTR_BIG_PHYS ) +if (cur_cpu_spec->mmu_features &MMU_FTR_BIG_PHYS )mtspr (SPRN_MAS7 ,TLBCAM [idx].MAS7); asmvolatile ("isync;tlbwe;isync" : : :"memory" );
@@ -152,7 +152,7 @@ static void settlbcam(int index, unsigned long virt, phys_addr_t phys,TLBCAM [index].MAS3 = (phys &MAS3_RPN ) |MAS3_SX |MAS3_SR ;TLBCAM [index].MAS3 |= ((flags & _PAGE_RW) ?MAS3_SW :0 ); -if (cur_cpu_spec->cpu_features &MMU_FTR_BIG_PHYS ) +if (cur_cpu_spec->mmu_features &MMU_FTR_BIG_PHYS )TLBCAM [index].MAS7 = (u64 )phys >>32 ;#ifndef CONFIG_KGDB /* want user access for breakpoints */
Signature · 1 line
1.6.0.6
In message <[email protected]> you w rote:
arch/powerpc/mm/fsl_booke_mmu.
Quoted 8 lines
The code was looking for this in
cpu_features, notmmu_features. Fix this.Signed-off-by Becky Bruce <[email protected]>--- arch/powerpc/mm/fsl_booke_mmu.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)arch/powerpc/mm/fsl_booke_mmu. renamed from arch/powerpc/mm/fsl_booke_mmu.c +0
-0
c
arch/powerpc/mm/fsl_booke_mmu.c void loadcam_entry(int idx) · line 119
Quoted 9 lines
index c539472..533cae5 100644
arch/powerpc/mm/fsl_booke_mmu.c +1
-1@@ -116,7 +116,7 @@ void loadcam_entry(int idx)mtspr (SPRN_MAS2 ,TLBCAM [idx].MAS2);mtspr (SPRN_MAS3 ,TLBCAM [idx].MAS3); -if (cur_cpu_spec->cpu_features &MMU_FTR_BIG_PHYS ) +if (cur_cpu_spec->mmu_features &MMU_FTR_BIG_PHYS )
How about using mmu_has_feature()?
arch/powerpc/mm/fsl_booke_mmu.c static void settlbcam(int index, unsigned long virt, phys
Quoted 4 lines
arch/powerpc/mm/fsl_booke_mmu.c +0
-0mtspr (SPRN_MAS7 ,TLBCAM [idx].MAS7); asmvolatile ("isync;tlbwe;isync" : : :"memory" );@@ -152,7 +152,7 @@ static void settlbcam(int index, unsigned long virt, phys
_addr_t phys,
arch/powerpc/mm/fsl_booke_mmu.c static void settlbcam(int index, unsigned long virt, phys_addr_t phys, · line 155
Quoted 5 lines
arch/powerpc/mm/fsl_booke_mmu.c +1
-1TLBCAM [index].MAS3 = (phys &MAS3_RPN ) |MAS3_SX |MAS3_SR ;TLBCAM [index].MAS3 |= ((flags & _PAGE_RW) ?MAS3_SW :0 ); -if (cur_cpu_spec->cpu_features &MMU_FTR_BIG_PHYS ) +if (cur_cpu_spec->mmu_features &MMU_FTR_BIG_PHYS )
Ditto.
Mikey
Quoted 11 lines
arch/powerpc/mm/fsl_booke_mmu.c +0
-0TLBCAM [index].MAS7 = (u64 )phys >>32 ;#ifndef CONFIG_KGDB /* want user access for breakpoints */ Signature · 6 lines
1.6.0.6 _______________________________________________ Linuxppc-dev mailing list [email protected] https://lists.ozlabs.org/listinfo/linuxppc-dev