Skip to content

RFC Add region id support for PCI

Mykyta Poturai xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2pci: Allow platforms to modify BAR adressesxen/arch/arm/include/asm/pci.h xen/arch/arm/include/asm/vpci.h xen/arch/arm/vpci.c +2 more+32 -02 replies
2/2plat/rcar: Add region id support for PCIxen/arch/arm/pci/pci-host-rcar4.c xen/arch/arm/platforms/Kconfig+36 -04 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] Add region id support for PCI

On Renesas R-Car platforms, the Region ID (RGID) feature encodes an identifier into the upper bits of the physical address for every CPU memory access. This address manipulations can mostly be done via system and domain congirutaion, but for PCI bar it is not possible as some BARs are 32bit only.

This series introduces a platform hook that lets the PCI host bridge driver rewrite BAR addresses at vPCI init time, and provides the R-Car Gen4 implementation that adds the configured RGID into each address.

This is sent as RFC to get early feedback on the approach:
- Is a pci_ops callback the right place for this kind of address fixup?
- Is platform Kconfig a good place for RGID related options or is it better to put them in some other place.

Mykyta Poturai (2):
pci: Allow platforms to modify BAR adresses
plat/rcar: Add region id support for PCI

 xen/arch/arm/include/asm/pci.h    |  3 +++
 xen/arch/arm/include/asm/vpci.h   |  9 +++++++++
 xen/arch/arm/pci/pci-host-rcar4.c | 15 +++++++++++++++
 xen/arch/arm/platforms/Kconfig    | 21 +++++++++++++++++++++
 xen/arch/arm/vpci.c               | 12 ++++++++++++
 xen/arch/x86/include/asm/vpci.h   |  6 ++++++
 xen/drivers/vpci/header.c         |  2 ++
 7 files changed, 68 insertions(+)
Signature · 1 line
2.51.2