diff mbox series

[v3,11/17] xive/p9: fix silent escalation EQ setup

Message ID 20191001070002.20271-12-clg@kaod.org
State Accepted
Headers show
Series xive/p9: fixes and cleanups | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (470ffb5f29d741c3bed600f7bb7bf0cbb270e05a)
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot success Test snowpatch/job/snowpatch-skiboot on branch master
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco success Signed-off-by present

Commit Message

Cédric Le Goater Oct. 1, 2019, 6:59 a.m. UTC
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 <clg@kaod.org>
---
 hw/xive.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/hw/xive.c b/hw/xive.c
index bc895dd427b3..26ae10f9782b 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;