Skip to content

Commit 436499a

Browse files
kvaneeshmpe
authored andcommitted
powerpc/pmem: Avoid the barrier in flush routines
nvdimm expect the flush routines to just mark the cache clean. The barrier that mark the store globally visible is done in nvdimm_flush(). 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-7-aneesh.kumar@linux.ibm.com
1 parent 76e6c73 commit 436499a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

arch/powerpc/lib/pmem.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ static inline void __clean_pmem_range(unsigned long start, unsigned long stop)
1919

2020
for (i = 0; i < size >> shift; i++, addr += bytes)
2121
asm volatile(PPC_DCBSTPS(%0, %1): :"i"(0), "r"(addr): "memory");
22-
23-
24-
asm volatile(PPC_PHWSYNC ::: "memory");
2522
}
2623

2724
static inline void __flush_pmem_range(unsigned long start, unsigned long stop)
@@ -34,9 +31,6 @@ static inline void __flush_pmem_range(unsigned long start, unsigned long stop)
3431

3532
for (i = 0; i < size >> shift; i++, addr += bytes)
3633
asm volatile(PPC_DCBFPS(%0, %1): :"i"(0), "r"(addr): "memory");
37-
38-
39-
asm volatile(PPC_PHWSYNC ::: "memory");
4034
}
4135

4236
static inline void clean_pmem_range(unsigned long start, unsigned long stop)

0 commit comments

Comments
 (0)