]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8e01d4e7f3063452089ff514a59d023589f2e164
tree39715eb682c3033d17f267329ef03cf7704ac4b9
parentd13e006fcde92c26eaae38e69fb2e835f814448a
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