aboutsummaryrefslogtreecommitdiff
path: root/hw/psi.c
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2017-05-26 14:37:05 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-06-08 17:24:10 +1000
commita0811f87b84e71c7314d0fd92c34e9715b400817 (patch)
tree4787af3a3f2dcf3f3267b3ed056a8d7ed5f992fb /hw/psi.c
parent9e888546f1ec322ac74b1e58b670d294ae3ea4fc (diff)
downloadskiboot-a0811f87b84e71c7314d0fd92c34e9715b400817.zip
skiboot-a0811f87b84e71c7314d0fd92c34e9715b400817.tar.gz
skiboot-a0811f87b84e71c7314d0fd92c34e9715b400817.tar.bz2
SBE: Add passthrough command support
SBE sends passthrough command. We have to capture this interrupt and send event to HBRT via opal-prd (user space daemon). This patch adds minimal SBE code to capture SBE interrupt and send event to opal-prd. Next patch will add opal-prd (user space) support. CC: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/psi.c')
-rw-r--r--hw/psi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/psi.c b/hw/psi.c
index cc7db44..ccc3578 100644
--- a/hw/psi.c
+++ b/hw/psi.c
@@ -33,6 +33,7 @@
#include <platform.h>
#include <errorlog.h>
#include <xive.h>
+#include <sbe-p9.h>
static LIST_HEAD(psis);
static u64 psi_link_timer;
@@ -603,7 +604,7 @@ static void psihb_p9_interrupt(struct irq_source *is, uint32_t isn)
printf("PSI: DIO irq received\n");
break;
case P9_PSI_IRQ_PSU:
- printf("PSI: PSU irq received\n");
+ sbe_interrupt(psi->chip_id);
break;
}
}