powerpc/powernv/memtrace: Allow mmaping trace buffers
authorJordan Niethe <jniethe5@gmail.com>
Thu, 25 Feb 2021 03:21:06 +0000 (14:21 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 8 Apr 2021 11:17:44 +0000 (21:17 +1000)
commit08a022ad3dfafc7e33d4529015e14bb75179cacc
tree58eb0f81eec45425d1101b6438154efa92e2225a
parentacd4dfeb49c8ec1071b1e67683c5779e97fdc5b9
powerpc/powernv/memtrace: Allow mmaping trace buffers

Let the memory removed from the linear mapping to be used for the trace
buffers be mmaped. This is a useful way of providing cache-inhibited
memory for the alignment_handler selftest.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
[mpe: make memtrace_mmap() static as noticed by lkp@intel.com]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210225032108.1458352-1-jniethe5@gmail.com
arch/powerpc/platforms/powernv/memtrace.c