diff options
author | Daniel Axtens <dja@axtens.net> | 2015-12-07 10:50:51 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-12-17 10:46:43 +1100 |
commit | a8da474ec18f4c4c39f83202d64d73a23b755c1d (patch) | |
tree | 1db0897874f8fe1d0e55724ea57a040bfc5e31c1 /samples | |
parent | 51c21e72eb99d1136614135d633baae269893778 (diff) | |
download | op-kernel-dev-a8da474ec18f4c4c39f83202d64d73a23b755c1d.zip op-kernel-dev-a8da474ec18f4c4c39f83202d64d73a23b755c1d.tar.gz |
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>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions