All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] arm64: dts: juno: Describe PCI dma-ranges
@ 2021-03-05 17:33 Robin Murphy
  2021-03-05 17:33 ` [PATCH 2/2] arm64: dts: juno: Enable more SMMUs Robin Murphy
                   ` (2 more replies)
  0 siblings, 3 replies; 25+ messages in thread
From: Robin Murphy @ 2021-03-05 17:33 UTC (permalink / raw)
  To: sudeep.holla, lorenzo.pieralisi, liviu.dudau; +Cc: linux-arm-kernel

The PLDA root complex on Juno relies on an address-based lookup table to
generate AXI attributes for inbound PCI transactions, and as such will
not pass any transaction not matching any programmed address range. The
standard firmware configuration programs 3 entries covering the GICv2m
MSI doorbell and the 2 DRAM regions, so add a "dma-ranges" property to
describe those usable inbound windows.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
---
 arch/arm64/boot/dts/arm/juno-base.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm64/boot/dts/arm/juno-base.dtsi b/arch/arm64/boot/dts/arm/juno-base.dtsi
index f6c55877fbd9..b48a76b100b1 100644
--- a/arch/arm64/boot/dts/arm/juno-base.dtsi
+++ b/arch/arm64/boot/dts/arm/juno-base.dtsi
@@ -544,6 +544,10 @@
 		ranges = <0x01000000 0x00 0x00000000 0x00 0x5f800000 0x0 0x00800000>,
 			 <0x02000000 0x00 0x50000000 0x00 0x50000000 0x0 0x08000000>,
 			 <0x42000000 0x40 0x00000000 0x40 0x00000000 0x1 0x00000000>;
+		/* Standard AXI Translation entries as programmed by EDK2 */
+		dma-ranges = <0x02000000 0x0 0x2c1c0000 0x0 0x2c1c0000 0x0 0x00040000>,
+			     <0x02000000 0x0 0x80000000 0x0 0x80000000 0x0 0x80000000>,
+			     <0x43000000 0x8 0x00000000 0x8 0x00000000 0x2 0x00000000>;
 		#interrupt-cells = <1>;
 		interrupt-map-mask = <0 0 0 7>;
 		interrupt-map = <0 0 0 1 &gic 0 GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>,
-- 
2.17.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2022-02-16 14:34 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-05 17:33 [PATCH 1/2] arm64: dts: juno: Describe PCI dma-ranges Robin Murphy
2021-03-05 17:33 ` [PATCH 2/2] arm64: dts: juno: Enable more SMMUs Robin Murphy
2021-07-30 12:17   ` Robin Murphy
2021-07-30 12:17     ` Robin Murphy
2021-07-30 14:34     ` Anders Roxell
2021-07-30 14:34       ` Anders Roxell
2021-07-30 14:44       ` Robin Murphy
2021-07-30 14:44         ` Robin Murphy
2021-07-30 14:57         ` Anders Roxell
2021-07-30 14:57           ` Anders Roxell
2021-09-14  9:46         ` Anders Roxell
2021-09-14  9:46           ` Anders Roxell
2022-02-14 14:06           ` Naresh Kamboju
2022-02-14 14:06             ` Naresh Kamboju
2022-02-14 14:13             ` Sudeep Holla
2022-02-14 14:13               ` Sudeep Holla
2022-02-14 15:11               ` Naresh Kamboju
2022-02-14 15:11                 ` Naresh Kamboju
2022-02-16 11:32                 ` Naresh Kamboju
2022-02-16 11:32                   ` Naresh Kamboju
2022-02-16 14:31                   ` Sudeep Holla
2022-02-16 14:31                     ` Sudeep Holla
2021-03-09 12:01 ` [PATCH 1/2] arm64: dts: juno: Describe PCI dma-ranges Sudeep Holla
2021-03-23  9:30 ` Sudeep Holla
2021-03-23  9:30   ` Sudeep Holla

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.