OSDN Git Service

selftests/powerpc: Allow choice of CI memory location in alignment_handler test
authorJordan Niethe <jniethe5@gmail.com>
Wed, 20 May 2020 02:11:02 +0000 (12:11 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 22 Jun 2020 00:37:59 +0000 (10:37 +1000)
commit01bd294642841998c76d9e6929597dcb7da9466a
tree57456525fcd72f6797411d7ff6bf85eb881b2a0f
parent5f202c1a1d429bee3ddab647711f181c72d157da
selftests/powerpc: Allow choice of CI memory location in alignment_handler test

The alignment handler selftest needs cache-inhibited memory and
currently /dev/fb0 is relied on to provided this. This prevents running
the test on systems without /dev/fb0 (e.g., mambo). Read the commandline
arguments for an optional path to be used instead, as well as an
optional offset to be for mmaping this path.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Tested-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200520021103.19798-1-jniethe5@gmail.com
tools/testing/selftests/powerpc/alignment/alignment_handler.c