linux/tools/testing/selftests/powerpc
Daniel Axtens a8da474ec1 selftests/powerpc: Add script to test HMI functionality
HMIs (Hypervisor Management|Maintenance Interrupts) are a class of interrupt
on POWER systems.

HMI support has traditionally been exceptionally difficult to test, however
Skiboot ships a tool that, with the correct magic numbers, will inject them.

This, therefore, is a first pass at a script to inject HMIs and monitor
Linux's response. It injects an HMI on each core on every chip in turn
It then watches dmesg to see if it's acknowledged by Linux.

On a Tuletta, I observed that we see 8 (or sometimes 9 or more) events per
injection, regardless of SMT setting, so we wait for 8 before progressing.

It sits in a new scripts/ directory in selftests/powerpc, because it's not
designed to be run as part of the regular make selftests process. In
particular, it is quite possibly going to end up garding lots of your CPUs,
so it should only be run if you know how to undo that.

CC: Mahesh J Salgaonkar <mahesh.salgaonkar@in.ibm.com>
Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2015-12-17 10:46:43 +11:00
..
benchmarks selftests/powerpc: Make context_switch touch FP/altivec/vector by default 2015-12-17 10:46:43 +11:00
copyloops powerpc updates for 4.1 2015-04-16 13:53:32 -05:00
dscr powerpc: Fix DSCR inheritance over fork() 2015-12-10 21:11:13 +11:00
mm selftests/powerpc: Install tempfile so the subpage_prot_file test works 2015-08-17 18:28:49 +10:00
pmu selftests/powerpc: Move pick_online_cpu() up into utils.c 2015-12-17 10:46:41 +11:00
primitives selftests/powerpc: Fix build failure of load_unaligned_zeropad test 2015-10-13 15:08:37 +11:00
scripts selftests/powerpc: Add script to test HMI functionality 2015-12-17 10:46:43 +11:00
stringloops selftests: Add install support for the powerpc tests 2015-03-19 12:38:51 -06:00
switch_endian selftests/powerpc: Add install support to more powerpc tests 2015-06-02 16:54:49 +10:00
syscalls selftests/powerpc: Add tests of unmuxed IPC calls 2015-10-15 20:32:03 +11:00
tm selftests/powerpc: Add test to check if VSRs are corrupted 2015-12-14 20:41:50 +11:00
vphn selftests/powerpc: Add install support to more powerpc tests 2015-06-02 16:54:49 +10:00
Makefile selftests/powerpc: Sort the list of SUB_DIRS to build 2015-10-15 20:32:03 +11:00
harness.c selftests/powerpc: Move get_auxv_entry() into utils.c 2015-12-14 20:41:47 +11:00
subunit.h selftests/powerpc: Add support for skipping tests 2014-06-11 17:03:54 +10:00
utils.c selftests/powerpc: Move pick_online_cpu() up into utils.c 2015-12-17 10:46:41 +11:00
utils.h selftests/powerpc: Move pick_online_cpu() up into utils.c 2015-12-17 10:46:41 +11:00