* [PATCH] ARM: dts: dra7: Fix bus_dma_limit for PCIe
@ 2020-04-17 6:43 Kishon Vijay Abraham I
2020-04-21 16:34 ` Tony Lindgren
0 siblings, 1 reply; 2+ messages in thread
From: Kishon Vijay Abraham I @ 2020-04-17 6:43 UTC (permalink / raw)
To: Benoît Cousson, Tony Lindgren, Rob Herring
Cc: linux-omap, devicetree, linux-kernel, Kishon Vijay Abraham I, stable
Even though commit cfb5d65f2595 ("ARM: dts: dra7: Add bus_dma_limit
for L3 bus") added bus_dma_limit for L3 bus, the PCIe controller
gets incorrect value of bus_dma_limit.
Fix it by adding empty dma-ranges property to axi@0 and axi@1
(parent device tree node of PCIe controller).
Cc: stable@kernel.org
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
---
arch/arm/boot/dts/dra7.dtsi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
index 4740989ed9c4..7191ee6a1b82 100644
--- a/arch/arm/boot/dts/dra7.dtsi
+++ b/arch/arm/boot/dts/dra7.dtsi
@@ -172,6 +172,7 @@
#address-cells = <1>;
ranges = <0x51000000 0x51000000 0x3000
0x0 0x20000000 0x10000000>;
+ dma-ranges;
/**
* To enable PCI endpoint mode, disable the pcie1_rc
* node and enable pcie1_ep mode.
@@ -185,7 +186,6 @@
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>;
@@ -230,6 +230,7 @@
#address-cells = <1>;
ranges = <0x51800000 0x51800000 0x3000
0x0 0x30000000 0x10000000>;
+ dma-ranges;
status = "disabled";
pcie2_rc: pcie@51800000 {
reg = <0x51800000 0x2000>, <0x51802000 0x14c>, <0x1000 0x2000>;
@@ -240,7 +241,6 @@
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: Fix bus_dma_limit for PCIe
2020-04-17 6:43 [PATCH] ARM: dts: dra7: Fix bus_dma_limit for PCIe Kishon Vijay Abraham I
@ 2020-04-21 16:34 ` Tony Lindgren
0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2020-04-21 16:34 UTC (permalink / raw)
To: Kishon Vijay Abraham I
Cc: Benoît Cousson, Rob Herring, linux-omap, devicetree,
linux-kernel, stable
* Kishon Vijay Abraham I <kishon@ti.com> [200416 23:44]:
> Even though commit cfb5d65f2595 ("ARM: dts: dra7: Add bus_dma_limit
> for L3 bus") added bus_dma_limit for L3 bus, the PCIe controller
> gets incorrect value of bus_dma_limit.
>
> Fix it by adding empty dma-ranges property to axi@0 and axi@1
> (parent device tree node of PCIe controller).
Applying into fixes thanks.
Tony
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-21 16:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-17 6:43 [PATCH] ARM: dts: dra7: Fix bus_dma_limit for PCIe Kishon Vijay Abraham I
2020-04-21 16:34 ` 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).