[v2] selftests/powerpc: Add script to test HMI functionality
Michael Ellerman
mpe at ellerman.id.au
Thu Dec 17 22:57:35 AEDT 2015
On Sun, 2015-06-12 at 23:50:51 UTC, Daniel Axtens wrote:
> 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 at in.ibm.com>
> Signed-off-by: Daniel Axtens <dja at axtens.net>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/a8da474ec18f4c4c39f83202d6
cheers
More information about the Linuxppc-dev
mailing list