]> git.ipfire.org Git - thirdparty/qemu.git/commit
ppc/xive2: fix context push calculation of IPB priority
authorNicholas Piggin <npiggin@gmail.com>
Mon, 12 May 2025 03:10:14 +0000 (13:10 +1000)
committerCédric Le Goater <clg@redhat.com>
Mon, 21 Jul 2025 06:03:52 +0000 (08:03 +0200)
commitd1023a296c8297454fc4b207d58707c0a5e62e0a
treeb1f1621dd6c280789adaa1e63e71199316d66ba0
parente8cf73b849879cd93b1d1b5fd3bde79fb42064dc
ppc/xive2: fix context push calculation of IPB priority

Pushing a context and loading IPB from NVP is defined to merge ('or')
that IPB into the TIMA IPB register. PIPR should therefore be calculated
based on the final IPB value, not just the NVP value.

Fixes: 9d2b6058c5b ("ppc/xive2: Add grouping level to notification")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Glenn Miles <milesg@linux.ibm.com>
Reviewed-by: Caleb Schlossin <calebs@linux.ibm.com>
Tested-by: Gautam Menghani <gautam@linux.ibm.com>
Link: https://lore.kernel.org/qemu-devel/20250512031100.439842-6-npiggin@gmail.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/intc/xive2.c