mirror-linux/tools/testing/selftests
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
..
breakpoints selftests: breakpoint: Actually build it 2015-11-03 16:55:08 -07:00
capabilities
cpu-hotplug
efivarfs selftests: add .gitignore for efivarfs 2015-10-15 20:00:32 -06:00
exec selftests: exec: revert to default emit rule 2015-09-14 16:45:05 -06:00
firmware
ftrace selftests: kprobe: Choose an always-defined function to probe 2015-11-03 16:54:51 -07:00
futex
ipc
kcmp
lib selftests: run lib/test_printf module 2015-11-06 17:50:42 -08:00
membarrier membarrier: clean up selftest 2015-09-22 15:09:53 -07:00
memfd selftests: Make scripts executable 2015-11-03 16:54:57 -07:00
memory-hotplug
mount
mqueue selftests: Add missing #include directives 2015-11-03 16:53:53 -07:00
net
powerpc selftests/powerpc: Add script to test HMI functionality 2015-12-17 10:46:43 +11:00
pstore selftests/pstore: add pstore test scripts going with reboot 2015-10-15 20:00:32 -06:00
ptrace
rcutorture Merge branches 'doc.2015.10.06a', 'percpu-rwsem.2015.10.06a' and 'torture.2015.10.06a' into HEAD 2015-10-07 16:06:25 -07:00
seccomp selftests/seccomp: Be more precise with syscall arguments. 2015-11-02 14:41:02 -07:00
size
static_keys selftests: Make scripts executable 2015-11-03 16:54:57 -07:00
sysctl
timers linux-kselftest-4.4-rc1 2015-11-10 20:46:45 -08:00
user
vm Merge branch 'akpm' (patches from Andrew) 2015-11-10 21:14:23 -08:00
x86 Merge branch 'x86-fpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2015-11-03 20:50:26 -08:00
zram
Makefile linux-kselftest-4.4-rc1 2015-11-10 20:46:45 -08:00
gen_kselftest_tar.sh
kselftest.h
kselftest_install.sh
lib.mk