Skip to content

RFC hw/intc: enable GICv4 memory layout for GICv3 driver

Leif Lindholm qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4hw/intc: don't bail out gicv3 model init for revision 4hw/intc/arm_gicv3_common.c+1 -11 reply
2/4hw/intc: add helper function to determine gicv3 redistributor sizehw/intc/arm_gicv3_common.c hw/intc/arm_gicv3_redist.c include/hw/intc/arm_gicv3_common.h+13 -51 reply
3/4hw/intc: set GICD_TYPER.DVIS for GICv4hw/intc/arm_gicv3_dist.c+3 -01 reply
4/4hw/intc: make gicv3_idreg() distinguish between gicv3/gicv4hw/intc/arm_gicv3_dist.c hw/intc/arm_gicv3_redist.c hw/intc/gicv3_internal.h+12 -42 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchPeter Maydell
1/4
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/4] hw/intc: enable GICv4 memory layout for GICv3 driver

GICv4 sets aside 256K per redistributor configuration block, whereas GICv3 only uses 128K. However, some codebases (like TF-A, EDK2) will happily use the GICv3 functionality only.

This set aims at enabling these codebases to run, without actually enabling full support for GICv4.

This creates a ... problematic ... system, which will misbehave if you try to use the virtual LPIs. But it does help with letting me use QEMU for modelling a platform containing a GICv4, and share firmware images with other prototyping platforms.

Leif Lindholm (4):
hw/intc: don't bail out gicv3 model init for revision 4 hw/intc: add helper function to determine gicv3 redistributor size hw/intc: set GICD_TYPER.DVIS for GICv4
hw/intc: make gicv3_idreg() distinguish between gicv3/gicv4

 hw/intc/arm_gicv3_common.c         |  4 ++--
 hw/intc/arm_gicv3_dist.c           |  5 ++++-
 hw/intc/arm_gicv3_redist.c         | 15 ++++++++++-----
 hw/intc/gicv3_internal.h           | 12 ++++++++++--
 include/hw/intc/arm_gicv3_common.h |  3 +++
 5 files changed, 29 insertions(+), 10 deletions(-)
Signature · 1 line
2.20.1