aboutsummaryrefslogtreecommitdiff
path: root/hw/psi.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-10-24 10:06:49 +1100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-10-24 10:07:19 +1100
commit531bdefda91102cb3240e4e3289900af0a50e78b (patch)
treecc95231a4ce4a0ae05e7d123eaac4bd9beedef2d /hw/psi.c
parentbed82938878cff16c539c1c6b3887b2cf65b4f57 (diff)
downloadskiboot-531bdefda91102cb3240e4e3289900af0a50e78b.zip
skiboot-531bdefda91102cb3240e4e3289900af0a50e78b.tar.gz
skiboot-531bdefda91102cb3240e4e3289900af0a50e78b.tar.bz2
irq/occ/opal: Add self-sent dummy interrupt
This makes OPAL use the OCC interrupt facility to send itself an interrupt whenever the OPAL event bit is set as a result of an OPAL call that wasn't itself opal_handle_interrupt() or opal_handle_hmi() (both of which we know the OS will already deal with appropriately). This ensures that OPAL event changes are notified to Linux via its interrupt path which is necessary for it to properly broadcast the state change to its various clients. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'hw/psi.c')
-rw-r--r--hw/psi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/psi.c b/hw/psi.c
index 6752bf4..b96b611 100644
--- a/hw/psi.c
+++ b/hw/psi.c
@@ -276,7 +276,7 @@ static void handle_extra_interrupt(struct psi *psi)
* when available.
*/
if (val & PSIHB_IRQ_STAT_OCC)
- printf("PSI: OCC irq received\n");
+ occ_interrupt();
if (val & PSIHB_IRQ_STAT_FSI)
printf("PSI: FSI irq received\n");
if (val & PSIHB_IRQ_STAT_LPC)