Skip to content

Commit

Permalink
xive/p9: fix silent escalation EQ setup
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
  • Loading branch information
legoater authored and oohal committed Nov 3, 2019
1 parent f0e2746 commit e26a866
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hw/xive.c
Expand Up @@ -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;
Expand Down

0 comments on commit e26a866

Please sign in to comment.