]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit703ae85c1df52219ba8e8c75cffed7c5511269c0
tree57456525fcd72f6797411d7ff6bf85eb881b2a0f
parentcf8bd2f40c985cdac09be12fe6e959083fa452ce
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