aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2021-08-04 12:51:21 +0530
committerVasant Hegde <hegdevasant@linux.vnet.ibm.com>2021-08-06 12:28:40 +0530
commit4bd7d84afe46c845f3e1db56add638f57a338e20 (patch)
tree1dec016ae5b280b5040f8d74e555182a3099c75a /hw
parente82de117ae8d53812002d45503bb38336fa6dd35 (diff)
downloadskiboot-4bd7d84afe46c845f3e1db56add638f57a338e20.zip
skiboot-4bd7d84afe46c845f3e1db56add638f57a338e20.tar.gz
skiboot-4bd7d84afe46c845f3e1db56add638f57a338e20.tar.bz2
xive/p10: Introduce a new OPAL_XIVE_IRQ_STORE_EOI2 flag
StoreEOI (the capability to EOI with a store) requires load-after-store ordering in some cases to be reliable. P10 introduced a new offset for load operations to enforce correct ordering and the XIVE driver has the required support since kernel 5.8, commit b1f9be9392f0. OPAL on P10 will advertise support of StoreEOI with a new flag. Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/xive2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xive2.c b/hw/xive2.c
index 2650343..6ce7027 100644
--- a/hw/xive2.c
+++ b/hw/xive2.c
@@ -3039,7 +3039,7 @@ static uint64_t xive_convert_irq_flags(uint64_t iflags)
uint64_t oflags = 0;
if (iflags & XIVE_SRC_STORE_EOI)
- oflags |= OPAL_XIVE_IRQ_STORE_EOI;
+ oflags |= OPAL_XIVE_IRQ_STORE_EOI2;
/* OPAL_XIVE_IRQ_TRIGGER_PAGE is only meant to be set if
* the interrupt has a *separate* trigger page.