[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 0/2] Add region id support for PCI
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
- Date: Tue, 21 Apr 2026 07:57:13 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HRPRcgh1FVGOsAWnaXs0RoOu6QcTP9Fjyh01V3xCn/I=; b=KDoryF2igz2q91Qf4GpgeCyyMI3vUkibosxEF7CqilZUpoVancOn28Bx0cC98fK/qWyBts8iZi3CoX4p9huJX3u4letT23PW1SBaAgKpH8Wih588iyM5x5EJjryjFcvj4BqAdOJq9kUt9OqJdAXRrmDllSMVWXrg4GnlqwEbBcDLGbQeD214m0ylcguQunHT5p0zkEdp0dzAgWQQd+MmykOta76YddBdtolmCJZysR2QzFDsRaq9EzIEpUuKYDXy/Bgo6z5oMLU3sZnznPXXp1HZ155iMdrK7Of31cWGoW/uqIYBA7KlVjwtNT5a/iUyblht4wgv0EYtKEUidPPgbQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YaykhUmpeGWO2VnvDmySEFxB0GuT+84t1jEisRho3PIxAUaedNsB3kxXJyijVFhvx9BcXln3q/3JQuw1rfww7ui6IWaA6N1UmIxiUxYDL9/zBVb3tr6n+cj6nXwqsmtZkzG6TYROH9bPLBQwzAmi9G5jgmlB+pf3ly+B6K9aZClePS6Vk6aG+VgRnXuMleZRWo+/eaEiQ9yiv/6XcyBJwT+Zb7QQb5XDuig9/XOBPZBeqKbkgOCp0lwyAJmeKUHVvS11q+d82HcZbxNNekFPRgVOulNrz9b0vsLyD2rMoXcnwo6QeHNIUqcJLJELeM0bTWD9NK7ZQHL0CAo86wy1eg==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=epam.com header.i="@epam.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:x-ms-exchange-senderadcheck"
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
- Cc: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>, Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
- Delivery-date: Tue, 21 Apr 2026 07:57:19 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHc0WR20glHFzpSrUS4wumyIAn/dw==
- Thread-topic: [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(+)
--
2.51.2
|