From e26a866f5393d711ed6967f6e8716068e7855f51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Date: Tue, 1 Oct 2019 08:59:56 +0200 Subject: xive/p9: fix silent escalation EQ setup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When setting the silent/gather escalation for a VP, all EQs [0-6] should point to the silent EQ 7. Fix the loop in routine xive_setup_silent_gather() to include EQ 6 which was missing. Signed-off-by: Cédric Le Goater Signed-off-by: Oliver O'Halloran --- hw/xive.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'hw/xive.c') diff --git a/hw/xive.c b/hw/xive.c index bc895dd..26ae10f 100644 --- a/hw/xive.c +++ b/hw/xive.c @@ -4118,7 +4118,9 @@ static int64_t xive_setup_silent_gather(uint64_t vp_id, bool enable) /* Mark/unmark all other prios with the new "u" bit and update * escalation */ - for (i = 0; i < 6; i++) { + for (i = 0; i < NUM_INT_PRIORITIES; i++) { + if (i == XIVE_ESCALATION_PRIO) + continue; eq_orig = xive_get_eq(x, idx + i); if (!eq_orig) continue; -- cgit v1.1