All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] Add region id support for PCI
@ 2026-04-21  7:57 Mykyta Poturai
  2026-04-21  7:57 ` [RFC PATCH 2/2] plat/rcar: " Mykyta Poturai
  2026-04-21  7:57 ` [RFC PATCH 1/2] pci: Allow platforms to modify BAR adresses Mykyta Poturai
  0 siblings, 2 replies; 9+ messages in thread
From: Mykyta Poturai @ 2026-04-21  7:57 UTC (permalink / raw)
  To: xen-devel@lists.xenproject.org
  Cc: Mykyta Poturai, Stefano Stabellini, Julien Grall,
	Bertrand Marquis, Michal Orzel, Volodymyr Babchuk, Jan Beulich,
	Andrew Cooper, Roger Pau Monné, Teddy Astie,
	Stewart Hildebrand

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(+)

-- 
2.51.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-04-24  8:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-21  7:57 [RFC PATCH 0/2] Add region id support for PCI Mykyta Poturai
2026-04-21  7:57 ` [RFC PATCH 2/2] plat/rcar: " Mykyta Poturai
2026-04-21  8:28   ` Jan Beulich
2026-04-21  8:45     ` Mykyta Poturai
2026-04-21  8:36   ` Julien Grall
2026-04-22 13:23   ` Oleksandr Tyshchenko
2026-04-21  7:57 ` [RFC PATCH 1/2] pci: Allow platforms to modify BAR adresses Mykyta Poturai
2026-04-21  8:31   ` Jan Beulich
2026-04-24  8:58   ` Roger Pau Monné

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.