]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: dw-rockchip: Describe RK3588 BAR4 DMA ctrl window
authorKoichiro Den <den@valinux.co.jp>
Thu, 12 Mar 2026 13:02:32 +0000 (14:02 +0100)
committerManivannan Sadhasivam <mani@kernel.org>
Sun, 15 Mar 2026 16:34:28 +0000 (22:04 +0530)
commit489d3abb4117bdf4af8296c69f09493e21b70c28
tree3711454e5b09f17fe43f8e45d3b2baf3ba65387c
parentf51644eb40a73677fcd0c92d8174eddde5d0be0e
PCI: dw-rockchip: Describe RK3588 BAR4 DMA ctrl window

On RK3588 PCIe3_4L in EP mode, the integrated DMA controller registers
are permanently mapped to BAR4 and must not be repurposed by EPF
drivers.

When the remote peer needs to access these registers, it must use the
fixed BAR4 window instead of creating another inbound mapping in a
different BAR. Mixing the fixed window with an additional mapping can
lead to incorrect behavior.

Advertise the DMA controller MMIO window as a reserved BAR subregion so
EPF drivers can reuse it safely.

Signed-off-by: Koichiro Den <den@valinux.co.jp>
Signed-off-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Tested-by: Koichiro Den <den@valinux.co.jp>
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260312130229.2282001-16-cassel@kernel.org
drivers/pci/controller/dwc/pcie-dw-rockchip.c