1. 23 Dec, 2015 8 commits
  2. 22 Dec, 2015 6 commits
  3. 17 Dec, 2015 25 commits
  4. 16 Dec, 2015 1 commit
    • Daniel Axtens's avatar
      selftests/powerpc: Add script to test HMI functionality · a8da474e
      Daniel Axtens authored
      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: default avatarDaniel Axtens <dja@axtens.net>
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      a8da474e