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
@@ -174,6 +174,10 @@ struct machdep_calls {
|
||||
/* Exception handlers */
|
||||
int (*system_reset_exception)(struct pt_regs *regs);
|
||||
int (*machine_check_exception)(struct pt_regs *regs);
|
||||
int (*handle_hmi_exception)(struct pt_regs *regs);
|
||||
|
||||
/* Early exception handlers called in realmode */
|
||||
int (*hmi_exception_early)(struct pt_regs *regs);
|
||||
|
||||
/* Called during machine check exception to retrive fixup address. */
|
||||
bool (*mce_check_early_recovery)(struct pt_regs *regs);
|
||||
|
Reference in New Issue
Block a user