]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pmem: Add flush routines using new pmem store and sync instruction
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Wed, 1 Jul 2020 07:22:31 +0000 (12:52 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 16 Jul 2020 03:00:22 +0000 (13:00 +1000)
commit58e73574c50e6e305e60332e5670f284f5703271
treeffe420d327ab58d413398b7277034de4f8a301ae
parenta6c7c1639f3d609d407aa3fbe0d00069fe6ca07c
powerpc/pmem: Add flush routines using new pmem store and sync instruction

Start using dcbstps; phwsync; sequence for flushing persistent memory range.
The new instructions are implemented as a variant of dcbf and hwsync and on
P8 and P9 they will be executed as those instructions. We avoid using them on
older hardware. This helps to avoid difficult to debug bugs.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200701072235.223558-4-aneesh.kumar@linux.ibm.com
arch/powerpc/include/asm/cacheflush.h
arch/powerpc/lib/pmem.c