From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 671AD1A127F for ; Thu, 17 Dec 2015 22:57:35 +1100 (AEDT) In-Reply-To: <1449445851-6822-1-git-send-email-dja@axtens.net> To: Daniel Axtens , linuxppc-dev@ozlabs.org From: Michael Ellerman Cc: Mahesh J Salgaonkar , Daniel Axtens Subject: Re: [v2] selftests/powerpc: Add script to test HMI functionality Message-Id: <20151217115735.46CE71401DA@ozlabs.org> Date: Thu, 17 Dec 2015 22:57:35 +1100 (AEDT) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 > Signed-off-by: Daniel Axtens Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/a8da474ec18f4c4c39f83202d6 cheers