Skip to content

Commit 397d230

Browse files
chleroympe
authored andcommitted
powerpc/32s: fix flush_hash_pages() on SMP
flush_hash_pages() runs with data translation off, so current task_struct has to be accesssed using physical address. Fixes: f7354cc ("powerpc/32: Remove CURRENT_THREAD_INFO and rename TI_CPU") Cc: [email protected] # v5.1+ Reported-by: Erhard F. <[email protected]> Signed-off-by: Christophe Leroy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent b970afc commit 397d230

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/powerpc/mm/book3s32/hash_low.S

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,8 @@ _GLOBAL(flush_hash_pages)
539539
#ifdef CONFIG_SMP
540540
lis r9, (mmu_hash_lock - PAGE_OFFSET)@ha
541541
addi r9, r9, (mmu_hash_lock - PAGE_OFFSET)@l
542-
lwz r8,TASK_CPU(r2)
542+
tophys (r8, r2)
543+
lwz r8, TASK_CPU(r8)
543544
oris r8,r8,9
544545
10: lwarx r0,0,r9
545546
cmpi 0,r0,0

0 commit comments

Comments
 (0)