powerpc/book3s: Add basic infrastructure to handle HMI in Linux.
Handle Hypervisor Maintenance Interrupt (HMI) in Linux. This patch implements basic infrastructure to handle HMI in Linux host. The design is to invoke opal handle hmi in real mode for recovery and set irq_pending when we hit HMI. During check_irq_replay pull opal hmi event and print hmi info on console. Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
84f1966e25
commit
0869b6fd20
@@ -264,6 +264,8 @@ static void __init pnv_setup_machdep_opal(void)
|
||||
ppc_md.halt = pnv_halt;
|
||||
ppc_md.machine_check_exception = opal_machine_check;
|
||||
ppc_md.mce_check_early_recovery = opal_mce_check_early_recovery;
|
||||
ppc_md.hmi_exception_early = opal_hmi_exception_early;
|
||||
ppc_md.handle_hmi_exception = opal_handle_hmi_exception;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PPC_POWERNV_RTAS
|
||||
|
Reference in New Issue
Block a user