diff options
author | Jordan Niethe <jniethe5@gmail.com> | 2021-02-25 14:21:07 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-04-08 21:17:44 +1000 |
commit | 812aa68ef7d4d71bed996468ead665092a3f8de9 (patch) | |
tree | fdd76165b5188d5ae607b2c02592e3f8e150f5aa | |
parent | 08a022ad3dfafc7e33d4529015e14bb75179cacc (diff) | |
download | linux-812aa68ef7d4d71bed996468ead665092a3f8de9.tar.gz linux-812aa68ef7d4d71bed996468ead665092a3f8de9.tar.bz2 linux-812aa68ef7d4d71bed996468ead665092a3f8de9.zip |
selftests/powerpc: Suggest memtrace instead of /dev/mem for ci memory
The suggested alternative for getting cache-inhibited memory with 'mem='
and /dev/mem is pretty hacky. Also, PAPR guests do not allow system
memory to be mapped cache-inhibited so despite /dev/mem being available
this will not work which can cause confusion. Instead recommend using
the memtrace buffers. memtrace is only available on powernv so there
will not be any chance of trying to do this in a guest.
Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210225032108.1458352-2-jniethe5@gmail.com
-rw-r--r-- | tools/testing/selftests/powerpc/alignment/alignment_handler.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/tools/testing/selftests/powerpc/alignment/alignment_handler.c b/tools/testing/selftests/powerpc/alignment/alignment_handler.c index c25cf7cd45e9..33ee34fc0828 100644 --- a/tools/testing/selftests/powerpc/alignment/alignment_handler.c +++ b/tools/testing/selftests/powerpc/alignment/alignment_handler.c @@ -10,16 +10,7 @@ * * We create two sets of source and destination buffers, one in regular memory, * the other cache-inhibited (by default we use /dev/fb0 for this, but an - * alterative path for cache-inhibited memory may be provided). - * - * One way to get cache-inhibited memory is to use the "mem" kernel parameter - * to limit the kernel to less memory than actually exists. Addresses above - * the limit may still be accessed but will be treated as cache-inhibited. For - * example, if there is actually 4GB of memory and the parameter "mem=3GB" is - * used, memory from address 0xC0000000 onwards is treated as cache-inhibited. - * To access this region /dev/mem is used. The kernel should be configured - * without CONFIG_STRICT_DEVMEM. In this case use: - * ./alignment_handler /dev/mem 0xc0000000 + * alterative path for cache-inhibited memory may be provided, e.g. memtrace). * * We initialise the source buffers, then use whichever set of load/store * instructions is under test to copy bytes from the source buffers to the |