From 4e32dae2d1edb8d5e955de3c5368a9930f28e52b Mon Sep 17 00:00:00 2001 From: Joel Stanley Date: Tue, 5 May 2015 12:37:06 +0930 Subject: occ: Send self-interrupt to chip with active PSI We were previously asking the OCC of the current chip to generate the self interrupt. If Hostboot does not configure all the PSI Host Bridges, so if the current chip happens to have an unconfigured PSI HB, the chip will never see the interrupt. Instead grab a chip id from the list of configured PSIs, and ask the OCC on that chip to generate the self-interrupt. This adds a pointer to the chip's PSI in struct proc_chip so we can use the current chip's PSI if it is active without having to look through all of them. Signed-off-by: Joel Stanley Signed-off-by: Stewart Smith --- include/chip.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/chip.h') diff --git a/include/chip.h b/include/chip.h index 0547902..1b4f4c4 100644 --- a/include/chip.h +++ b/include/chip.h @@ -157,6 +157,9 @@ struct proc_chip { /* Used by hw/p8-i2c.c */ struct list_head i2cms; + + /* Used by hw/psi.c */ + struct psi *psi; }; extern uint32_t pir_to_chip_id(uint32_t pir); -- cgit v1.1