From: Niklas Cassel <cassel@kernel.org>
To: Frank.Li@nxp.com
Cc: "Kishon Vijay Abraham I" <kishon@kernel.org>,
"Rafael J. Wysocki" <rafael@kernel.org>,
"Thomas Gleixner" <tglx@linutronix.de>,
"Anup Patel" <apatel@ventanamicro.com>,
"Marc Zyngier" <maz@kernel.org>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Danilo Krummrich" <dakr@kernel.org>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Arnd Bergmann" <arnd@arndb.de>, "Shuah Khan" <shuah@kernel.org>,
"Richard Zhu" <hongxing.zhu@nxp.com>,
"Lucas Stach" <l.stach@pengutronix.de>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Shawn Guo" <shawnguo@kernel.org>,
"Sascha Hauer" <s.hauer@pengutronix.de>,
"Pengutronix Kernel Team" <kernel@pengutronix.de>,
"Fabio Estevam" <festevam@gmail.com>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Manivannan Sadhasivam" <mani@kernel.org>,
"Krzysztof Wilczyński" <kwilczynski@kernel.org>,
dlemoal@kernel.org, jdmason@kudzu.us,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org,
linux-kselftest@vger.kernel.org, imx@lists.linux.dev,
devicetree@vger.kernel.org
Subject: Re: [PATCH v21 0/9] PCI: EP: Add RC-to-EP doorbell with platform MSI controller
Date: Fri, 11 Jul 2025 09:45:28 +0200 [thread overview]
Message-ID: <aHDBGDFnYZF_2luF@ryzen> (raw)
In-Reply-To: <20250710-ep-msi-v21-0-57683fc7fb25@nxp.com>
On Thu, Jul 10, 2025 at 03:13:46PM -0400, Frank Li via B4 Relay wrote:
> Frank Li (9):
> PCI: imx6: Add helper function imx_pcie_add_lut_by_rid()
> PCI: imx6: Add LUT configuration for MSI/IOMMU in Endpoint mode
> PCI: endpoint: Add RC-to-EP doorbell support using platform MSI controller
> PCI: endpoint: pci-ep-msi: Add MSI address/data pair mutable check
> PCI: endpoint: Add pci_epf_align_inbound_addr() helper for address alignment
> PCI: endpoint: pci-epf-test: Add doorbell test support
> misc: pci_endpoint_test: Add doorbell test case
> selftests: pci_endpoint: Add doorbell test case
> arm64: dts: imx95: Add msi-map for pci-ep device
>
> Documentation/PCI/endpoint/pci-test-howto.rst | 14 +++
> arch/arm64/boot/dts/freescale/imx95.dtsi | 1 +
> drivers/misc/pci_endpoint_test.c | 85 ++++++++++++-
> drivers/pci/controller/dwc/pci-imx6.c | 25 ++--
> drivers/pci/endpoint/Kconfig | 8 ++
> drivers/pci/endpoint/Makefile | 1 +
> drivers/pci/endpoint/functions/pci-epf-test.c | 136 +++++++++++++++++++++
> drivers/pci/endpoint/pci-ep-msi.c | 98 +++++++++++++++
> drivers/pci/endpoint/pci-epf-core.c | 36 ++++++
> include/linux/pci-ep-msi.h | 28 +++++
> include/linux/pci-epf.h | 18 +++
> include/uapi/linux/pcitest.h | 1 +
> .../selftests/pci_endpoint/pci_endpoint_test.c | 28 +++++
> 13 files changed, 470 insertions(+), 9 deletions(-)
> ---
> base-commit: d7b8f8e20813f0179d8ef519541a3527e7661d3a
> change-id: 20241010-ep-msi-8b4cab33b1be
>
> Best regards,
> --
> Frank Li <Frank.Li@nxp.com>
>
>
Tested on rock5b (which uses the rk3588 SoC), by adding the same msi-map to
the pcie3x4_ep DT node as (what already exists in) the pcie3x4 (RC) DT node:
diff --git a/arch/arm64/boot/dts/rockchip/rk3588-extra.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-extra.dtsi
index 90414486e466..c0121aea791d 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-extra.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3588-extra.dtsi
@@ -389,6 +389,7 @@ pcie3x4_ep: pcie-ep@fe150000 {
interrupt-names = "sys", "pmc", "msg", "legacy", "err",
"dma0", "dma1", "dma2", "dma3";
max-link-speed = <3>;
+ msi-map = <0x0000 &its1 0x0000 0x1000>;
num-lanes = <4>;
phys = <&pcie30phy>;
phy-names = "pcie-phy";
The new selftest passes:
# RUN pcie_ep_doorbell.DOORBELL_TEST ...
# OK pcie_ep_doorbell.DOORBELL_TEST
ok 17 pcie_ep_doorbell.DOORBELL_TEST
Thus:
Tested-by: Niklas Cassel <cassel@kernel.org>
next prev parent reply other threads:[~2025-07-11 7:45 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-10 19:13 [PATCH v21 0/9] PCI: EP: Add RC-to-EP doorbell with platform MSI controller Frank Li via B4 Relay
2025-07-10 19:13 ` [PATCH v21 1/9] PCI: imx6: Add helper function imx_pcie_add_lut_by_rid() Frank Li via B4 Relay
2025-07-10 19:13 ` [PATCH v21 2/9] PCI: imx6: Add LUT configuration for MSI/IOMMU in Endpoint mode Frank Li via B4 Relay
2025-07-10 19:13 ` [PATCH v21 3/9] PCI: endpoint: Add RC-to-EP doorbell support using platform MSI controller Frank Li via B4 Relay
2025-07-10 19:13 ` [PATCH v21 4/9] PCI: endpoint: pci-ep-msi: Add MSI address/data pair mutable check Frank Li via B4 Relay
2025-07-10 19:13 ` [PATCH v21 5/9] PCI: endpoint: Add pci_epf_align_inbound_addr() helper for address alignment Frank Li via B4 Relay
2025-07-10 19:13 ` [PATCH v21 6/9] PCI: endpoint: pci-epf-test: Add doorbell test support Frank Li via B4 Relay
2025-07-10 19:13 ` [PATCH v21 7/9] misc: pci_endpoint_test: Add doorbell test case Frank Li via B4 Relay
2025-07-10 19:13 ` [PATCH v21 8/9] selftests: pci_endpoint: " Frank Li via B4 Relay
2025-07-10 19:13 ` [PATCH v21 9/9] arm64: dts: imx95: Add msi-map for pci-ep device Frank Li via B4 Relay
2025-08-22 14:24 ` Frank Li
2025-07-11 7:45 ` Niklas Cassel [this message]
2025-07-21 13:25 ` (subset) [PATCH v21 0/9] PCI: EP: Add RC-to-EP doorbell with platform MSI controller Manivannan Sadhasivam
2025-07-21 15:18 ` Manivannan Sadhasivam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aHDBGDFnYZF_2luF@ryzen \
--to=cassel@kernel.org \
--cc=Frank.Li@nxp.com \
--cc=apatel@ventanamicro.com \
--cc=arnd@arndb.de \
--cc=bhelgaas@google.com \
--cc=conor+dt@kernel.org \
--cc=dakr@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlemoal@kernel.org \
--cc=festevam@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=hongxing.zhu@nxp.com \
--cc=imx@lists.linux.dev \
--cc=jdmason@kudzu.us \
--cc=kernel@pengutronix.de \
--cc=kishon@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=kwilczynski@kernel.org \
--cc=l.stach@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=mani@kernel.org \
--cc=maz@kernel.org \
--cc=rafael@kernel.org \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=shuah@kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).