aboutsummaryrefslogtreecommitdiff
path: root/hw/psi.c
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2021-08-04 12:51:15 +0530
committerVasant Hegde <hegdevasant@linux.vnet.ibm.com>2021-08-06 12:27:41 +0530
commit47f46e5ff3f816b135b65e210aff65d9194698fa (patch)
treee3168e4e6f89181f302794280427ed42585b449e /hw/psi.c
parent2a7e3d203496a016cc90ce91eeb2c4e680ebd1d2 (diff)
downloadskiboot-47f46e5ff3f816b135b65e210aff65d9194698fa.zip
skiboot-47f46e5ff3f816b135b65e210aff65d9194698fa.tar.gz
skiboot-47f46e5ff3f816b135b65e210aff65d9194698fa.tar.bz2
psi/p10: Introduce xive2_source_mask()
Commit fa161cd89fbf ("hw/psi-p9: Mask OPAL-owned LSIs without handlers") introduced xive_source_mask(). Do the same for P10. Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Diffstat (limited to 'hw/psi.c')
-rw-r--r--hw/psi.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/hw/psi.c b/hw/psi.c
index 2914225..e9b8e2e 100644
--- a/hw/psi.c
+++ b/hw/psi.c
@@ -564,7 +564,16 @@ static void psi_p9_mask_unhandled_irq(struct irq_source *is, uint32_t isn)
* have a handler for the interrupt then it needs to be masked to
* prevent the IRQ from locking up the thread which handles it.
*/
- xive_source_mask(is, isn);
+ switch (proc_gen) {
+ case proc_gen_p9:
+ xive_source_mask(is, isn);
+ break;
+ case proc_gen_p10:
+ xive2_source_mask(is, isn);
+ return;
+ default:
+ assert(false);
+ }
}