linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: dra7: Add "dma-ranges" property to PCIe RC DT nodes
@ 2020-01-28  6:41 Kishon Vijay Abraham I
  2020-02-26 18:36 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Kishon Vijay Abraham I @ 2020-01-28  6:41 UTC (permalink / raw)
  To: Benoît Cousson, Tony Lindgren, Rob Herring, Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel

'dma-ranges' in a PCI bridge node does correctly set dma masks for PCI
devices not described in the DT. Certain DRA7 platforms (e.g., DRA76)
has RAM above 32-bit boundary (accessible with LPAE config) though the
PCIe bridge will be able to access only 32-bits. Add 'dma-ranges'
property in PCIe RC DT nodes to indicate the host bridge can access
only 32 bits.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
---
 arch/arm/boot/dts/dra7.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
index 73e5011f531a..c5af7530be7c 100644
--- a/arch/arm/boot/dts/dra7.dtsi
+++ b/arch/arm/boot/dts/dra7.dtsi
@@ -184,6 +184,7 @@
 				device_type = "pci";
 				ranges = <0x81000000 0 0          0x03000 0 0x00010000
 					  0x82000000 0 0x20013000 0x13000 0 0xffed000>;
+				dma-ranges = <0x02000000 0x0 0x00000000 0x00000000 0x1 0x00000000>;
 				bus-range = <0x00 0xff>;
 				#interrupt-cells = <1>;
 				num-lanes = <1>;
@@ -238,6 +239,7 @@
 				device_type = "pci";
 				ranges = <0x81000000 0 0          0x03000 0 0x00010000
 					  0x82000000 0 0x30013000 0x13000 0 0xffed000>;
+				dma-ranges = <0x02000000 0x0 0x00000000 0x00000000 0x1 0x00000000>;
 				bus-range = <0x00 0xff>;
 				#interrupt-cells = <1>;
 				num-lanes = <1>;
-- 
2.17.1


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

* Re: [PATCH] ARM: dts: dra7: Add "dma-ranges" property to PCIe RC DT nodes
  2020-01-28  6:41 [PATCH] ARM: dts: dra7: Add "dma-ranges" property to PCIe RC DT nodes Kishon Vijay Abraham I
@ 2020-02-26 18:36 ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2020-02-26 18:36 UTC (permalink / raw)
  To: Kishon Vijay Abraham I
  Cc: Benoît Cousson, Rob Herring, Mark Rutland, linux-omap,
	devicetree, linux-kernel

* Kishon Vijay Abraham I <kishon@ti.com> [200127 22:39]:
> 'dma-ranges' in a PCI bridge node does correctly set dma masks for PCI
> devices not described in the DT. Certain DRA7 platforms (e.g., DRA76)
> has RAM above 32-bit boundary (accessible with LPAE config) though the
> PCIe bridge will be able to access only 32-bits. Add 'dma-ranges'
> property in PCIe RC DT nodes to indicate the host bridge can access
> only 32 bits.

Sorry looks like I missed this fix earlier, applying into fixes.

Thanks,

Tony

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

end of thread, other threads:[~2020-02-26 18:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-28  6:41 [PATCH] ARM: dts: dra7: Add "dma-ranges" property to PCIe RC DT nodes Kishon Vijay Abraham I
2020-02-26 18:36 ` Tony Lindgren

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).