]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9316ec13a7b22eebd428a7beb3d1b040508e7b9e
tree58eb0f81eec45425d1101b6438154efa92e2225a
parent63e10d2906e1890f5097ba197be35c45e9d95fbe
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