summary refs log tree commit diff stats
path: root/hw/intc/m68k_irqc.c
diff options
context:
space:
mode:
authorGlenn Miles <milesg@linux.ibm.com>2025-05-12 13:10:12 +1000
committerCédric Le Goater <clg@redhat.com>2025-07-21 08:03:52 +0200
commitf16697292add6c3c15014a20fd5fce70b8c56734 (patch)
treef47ce3ad995e2fbcb135c059140457d383a23418 /hw/intc/m68k_irqc.c
parentf0aab779418ed883ea2b5ffcc3985ef26f6e3545 (diff)
downloadfocaccia-qemu-f16697292add6c3c15014a20fd5fce70b8c56734.tar.gz
focaccia-qemu-f16697292add6c3c15014a20fd5fce70b8c56734.zip
ppc/xive2: Fix calculation of END queue sizes
The queue size of an Event Notification Descriptor (END)
is determined by the 'cl' and QsZ fields of the END.
If the cl field is 1, then the queue size (in bytes) will
be the size of a cache line 128B * 2^QsZ and QsZ is limited
to 4.  Otherwise, it will be 4096B * 2^QsZ with QsZ limited
to 12.

Fixes: f8a233dedf2 ("ppc/xive2: Introduce a XIVE2 core framework")
Signed-off-by: Glenn Miles <milesg@linux.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Michael Kowal <kowal@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-4-npiggin@gmail.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/intc/m68k_irqc.c')
0 files changed, 0 insertions, 0 deletions