diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2017-05-26 14:37:05 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-06-08 17:24:10 +1000 |
commit | a0811f87b84e71c7314d0fd92c34e9715b400817 (patch) | |
tree | 4787af3a3f2dcf3f3267b3ed056a8d7ed5f992fb /hw/psi.c | |
parent | 9e888546f1ec322ac74b1e58b670d294ae3ea4fc (diff) | |
download | skiboot-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } } |