powerpc/vdso: Fix __kernel_sync_dicache sequence with coherent icache
authorNicholas Piggin <npiggin@gmail.com>
Fri, 20 May 2022 12:36:49 +0000 (22:36 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 27 Jul 2022 11:36:04 +0000 (21:36 +1000)
commit28f07fab26319dacc5675ae01dfc84d82122c59b
tree39715eb682c3033d17f267329ef03cf7704ac4b9
parent5663568130825458a2a8535ccef0db9a1bf7be82
powerpc/vdso: Fix __kernel_sync_dicache sequence with coherent icache

Processors with coherent icache require the sequence sync ; icbi ; isync
to entire store->execute coherency. icbi (to any address) must be
executed to ensure isync flushes the pipeline. See "POWER9 Processor
User's Manual, 4.6.2.2 Instruction Cache Block Invalidate (icbi)" for
details.

__kernel_sync_dicache is missing icbi for the coherent icache path.
Add it.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220520123649.258440-1-npiggin@gmail.com
arch/powerpc/kernel/vdso/cacheflush.S