]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv/memtrace: Fix dcache flushing
authorSandipan Das <sandipan@linux.ibm.com>
Sat, 1 May 2021 16:02:54 +0000 (21:32 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 4 May 2021 12:27:56 +0000 (22:27 +1000)
commit9563224eb5573e9bf042efba259a0cbb60c6aa98
treea0b337e8148c0678a467d146e485566a95026688
parent128bd31a7aed2c452860932f4bb3b8b7606acbf6
powerpc/powernv/memtrace: Fix dcache flushing

Trace memory is cleared and the corresponding dcache lines
are flushed after allocation. However, this should not be
done using the PFN. This adds the missing conversion to
virtual address.

Fixes: 35e6e57cdfc2 ("powerpc/mm: Remove dcache flush from memory remove.")
Signed-off-by: Sandipan Das <sandipan@linux.ibm.com>
Reviewed-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/20210501160254.1179831-1-sandipan@linux.ibm.com
arch/powerpc/platforms/powernv/memtrace.c