Skip to content

Add support for parsing per CPU Redistributor entry

Shanker Donthineni xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 26 repliesIn review
  2. v18 patches 16 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10arm/gic-v3: Fix bug in function cmp_rdist()xen/arch/arm/gic-v3.c+1 -12 replies
2/10arm/gic-v3: Do early GICD ioremap and clean upxen/arch/arm/gic-v3.c+13 -101 reply
3/10arm/gic-v3: Fold GICR subtable parsing into a new functionxen/arch/arm/gic-v3.c+39 -228 replies
4/10arm/gic-v3: Parse per-cpu redistributor entry in GICC subtablexen/arch/arm/gic-v3.c xen/include/asm-arm/gic.h xen/include/asm-arm/gic_v3_defs.h+77 -93 replies
5/10xen/arm: vgic: Use dynamic memory allocation for vgic_rdist_regionxen/arch/arm/vgic-v2.c xen/arch/arm/vgic-v3.c xen/arch/arm/vgic.c +2 more+29 -43 replies
6/10arm/gic-v3: Remove an unused macro MAX_RDIST_COUNTxen/arch/arm/gic-v3.c xen/include/asm-arm/gic.h+0 -91 reply
7/10arm: vgic: Split vgic_domain_init() functionality into two functionsxen/arch/arm/vgic.c+21 -121 reply
8/10arm/io: Use separate memory allocation for mmio handlersxen/arch/arm/domain.c xen/arch/arm/io.c xen/include/asm-arm/mmio.h+20 -61 reply
9/10xen/arm: io: Use binary search for mmio handler lookupxen/arch/arm/io.c+39 -113 replies
10/10arm/vgic: Change fixed number of mmio handlers to variable numberxen/arch/arm/domain.c xen/arch/arm/vgic-v2.c xen/arch/arm/vgic-v3.c +3 more+21 -113 replies

Reviews trailers per patch

3 of 10 patches have a Reviewed-by or Acked-by.

PatchJulien Grall
1/10
2/10A-b
3/10
4/10
5/10
6/10A-b
7/10
8/10A-b
9/10
10/10

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

Read the v2 thread

Cover letter [PATCH V2 00/10] Add support for parsing per CPU Redistributor entry

The current driver doesn't support parsing Redistributor entries that are described in the MADT GICC table. Not all the GIC implementors places the Redistributor regions in the always-on power domain. On systems, the UEFI firmware should describe Redistributor base address in the associated GIC CPU Interface (GICC) instead of GIC Redistributor (GICR) table.

The maximum number of mmio handlers and struct vgic_rdist_region that holds Redistributor addresses are allocated through a static array with hardcoded size. I don't think this is the right approach and is not scalable for implementing features like this. I have decided to convert static to dynamic allocation based on comments from the below link.

Patches #1 fixes the bug in the current driver.

Patches #2, #3 and #4 adds support for parsing not always-on power domain Redistributor regions.

Patches #5, #6, #7, #8 and #10 refactors the code and allocates the memory for mmio handlers and vgic_rdist_region based on the number of Redistributors required for dom0/domU instead of hardcoded values.

Patch #9 changes the linear to binary search to avoid lookup overhead.

This pacthset is created on tip of Julien's branch http://xenbits.xen.org/gitweb/?p=people/julieng/xen-unstable.git;a=shortlog;h=refs/heads/irq-routing-acpi-rfc

Shanker Donthineni (10):
arm/gic-v3: Fix bug in function cmp_rdist()
arm/gic-v3: Do early GICD ioremap and clean up arm/gic-v3: Fold GICR subtable parsing into a new function arm/gic-v3: Parse per-cpu redistributor entry in GICC subtable xen/arm: vgic: Use dynamic memory allocation for vgic_rdist_region arm/gic-v3: Remove an unused macro MAX_RDIST_COUNT
arm: vgic: Split vgic_domain_init() functionality into two functions arm/io: Use separate memory allocation for mmio handlers xen/arm: io: Use binary search for mmio handler lookup arm/vgic: Change fixed number of mmio handlers to variable number

 xen/arch/arm/domain.c             |  13 +++-
 xen/arch/arm/gic-v3.c             | 158 ++++++++++++++++++++++++++++----------
 xen/arch/arm/io.c                 |  64 +++++++++++----
 xen/arch/arm/vgic-v2.c            |   7 ++
 xen/arch/arm/vgic-v3.c            |  30 +++++++-
 xen/arch/arm/vgic.c               |  30 +++++---
 xen/include/asm-arm/domain.h      |   3 +-
 xen/include/asm-arm/gic.h         |   2 +-
 xen/include/asm-arm/gic_v3_defs.h |   1 +
 xen/include/asm-arm/mmio.h        |   6 +-
 xen/include/asm-arm/vgic.h        |   3 +
 11 files changed, 241 insertions(+), 76 deletions(-)
Signature · 9 lines
Qualcomm Technologies, Inc. on behalf of Qualcomm Innovation Center, Inc. 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
a Linux Foundation Collaborative Project


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel