From 4bd7d84afe46c845f3e1db56add638f57a338e20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Date: Wed, 4 Aug 2021 12:51:21 +0530 Subject: xive/p10: Introduce a new OPAL_XIVE_IRQ_STORE_EOI2 flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Vasant Hegde --- hw/xive2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw') 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. -- cgit v1.1