Loading arch/powerpc/kernel/entry_64.S +2 −0 Original line number Original line Diff line number Diff line Loading @@ -672,7 +672,9 @@ END_MMU_FTR_SECTION_IFSET(MMU_FTR_1T_SEGMENT) isync isync slbie r6 slbie r6 BEGIN_FTR_SECTION slbie r6 /* Workaround POWER5 < DD2.1 issue */ slbie r6 /* Workaround POWER5 < DD2.1 issue */ END_FTR_SECTION_IFCLR(CPU_FTR_ARCH_207S) slbmte r7,r0 slbmte r7,r0 isync isync 2: 2: Loading arch/powerpc/mm/slb.c +5 −3 Original line number Original line Diff line number Diff line Loading @@ -326,9 +326,11 @@ void switch_slb(struct task_struct *tsk, struct mm_struct *mm) __slb_flush_and_rebolt(); __slb_flush_and_rebolt(); } } if (!cpu_has_feature(CPU_FTR_ARCH_207S)) { /* Workaround POWER5 < DD2.1 issue */ /* Workaround POWER5 < DD2.1 issue */ if (offset == 1 || offset > SLB_CACHE_ENTRIES) if (offset == 1 || offset > SLB_CACHE_ENTRIES) asm volatile("slbie %0" : : "r" (slbie_data)); asm volatile("slbie %0" : : "r" (slbie_data)); } get_paca()->slb_cache_ptr = 0; get_paca()->slb_cache_ptr = 0; copy_mm_to_paca(mm); copy_mm_to_paca(mm); Loading Loading
arch/powerpc/kernel/entry_64.S +2 −0 Original line number Original line Diff line number Diff line Loading @@ -672,7 +672,9 @@ END_MMU_FTR_SECTION_IFSET(MMU_FTR_1T_SEGMENT) isync isync slbie r6 slbie r6 BEGIN_FTR_SECTION slbie r6 /* Workaround POWER5 < DD2.1 issue */ slbie r6 /* Workaround POWER5 < DD2.1 issue */ END_FTR_SECTION_IFCLR(CPU_FTR_ARCH_207S) slbmte r7,r0 slbmte r7,r0 isync isync 2: 2: Loading
arch/powerpc/mm/slb.c +5 −3 Original line number Original line Diff line number Diff line Loading @@ -326,9 +326,11 @@ void switch_slb(struct task_struct *tsk, struct mm_struct *mm) __slb_flush_and_rebolt(); __slb_flush_and_rebolt(); } } if (!cpu_has_feature(CPU_FTR_ARCH_207S)) { /* Workaround POWER5 < DD2.1 issue */ /* Workaround POWER5 < DD2.1 issue */ if (offset == 1 || offset > SLB_CACHE_ENTRIES) if (offset == 1 || offset > SLB_CACHE_ENTRIES) asm volatile("slbie %0" : : "r" (slbie_data)); asm volatile("slbie %0" : : "r" (slbie_data)); } get_paca()->slb_cache_ptr = 0; get_paca()->slb_cache_ptr = 0; copy_mm_to_paca(mm); copy_mm_to_paca(mm); Loading