* [RFC PATCH] arm: dts: integratorap: Remove top level dma-ranges
@ 2019-09-20 15:36 ` Rob Herring
0 siblings, 0 replies; 4+ messages in thread
From: Rob Herring @ 2019-09-20 15:36 UTC (permalink / raw)
To: Linus Walleij; +Cc: devicetree, linux-arm-kernel
'dma-ranges' at the top level doesn't make sense. 'dma-ranges' implies
there is a parent bus node with '#address-cells' and '#size-cells' which
is impossible here.
Likely this translation needs to be moved down to sub-nodes that need
it.
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Rob Herring <robh@kernel.org>
---
This probably worked due to bugs in dma-ranges address translations (or
lack of).
AFAICT, only PCI needs dma-ranges. The TRM says inbound PCI addresses
are 1:1. So a translation from child address 0x80000000 to cpu address
0x0 seems wrong. The v3 PCI driver also fails to look at parent nodes
for dma-ranges.
arch/arm/boot/dts/integratorap.dts | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/boot/dts/integratorap.dts b/arch/arm/boot/dts/integratorap.dts
index 94d2ff9836d0..198d66181c50 100644
--- a/arch/arm/boot/dts/integratorap.dts
+++ b/arch/arm/boot/dts/integratorap.dts
@@ -9,7 +9,6 @@
/ {
model = "ARM Integrator/AP";
compatible = "arm,integrator-ap";
- dma-ranges = <0x80000000 0x0 0x80000000>;
cpus {
#address-cells = <1>;
--
2.20.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [RFC PATCH] arm: dts: integratorap: Remove top level dma-ranges
@ 2019-09-20 15:36 ` Rob Herring
0 siblings, 0 replies; 4+ messages in thread
From: Rob Herring @ 2019-09-20 15:36 UTC (permalink / raw)
To: Linus Walleij; +Cc: devicetree, linux-arm-kernel
'dma-ranges' at the top level doesn't make sense. 'dma-ranges' implies
there is a parent bus node with '#address-cells' and '#size-cells' which
is impossible here.
Likely this translation needs to be moved down to sub-nodes that need
it.
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Rob Herring <robh@kernel.org>
---
This probably worked due to bugs in dma-ranges address translations (or
lack of).
AFAICT, only PCI needs dma-ranges. The TRM says inbound PCI addresses
are 1:1. So a translation from child address 0x80000000 to cpu address
0x0 seems wrong. The v3 PCI driver also fails to look at parent nodes
for dma-ranges.
arch/arm/boot/dts/integratorap.dts | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/boot/dts/integratorap.dts b/arch/arm/boot/dts/integratorap.dts
index 94d2ff9836d0..198d66181c50 100644
--- a/arch/arm/boot/dts/integratorap.dts
+++ b/arch/arm/boot/dts/integratorap.dts
@@ -9,7 +9,6 @@
/ {
model = "ARM Integrator/AP";
compatible = "arm,integrator-ap";
- dma-ranges = <0x80000000 0x0 0x80000000>;
cpus {
#address-cells = <1>;
--
2.20.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] 4+ messages in thread
* Re: [RFC PATCH] arm: dts: integratorap: Remove top level dma-ranges
2019-09-20 15:36 ` Rob Herring
@ 2019-10-04 21:12 ` Linus Walleij
-1 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2019-10-04 21:12 UTC (permalink / raw)
To: Rob Herring
Cc: open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, Linux ARM
On Fri, Sep 20, 2019 at 5:36 PM Rob Herring <robh@kernel.org> wrote:
> 'dma-ranges' at the top level doesn't make sense. 'dma-ranges' implies
> there is a parent bus node with '#address-cells' and '#size-cells' which
> is impossible here.
>
> Likely this translation needs to be moved down to sub-nodes that need
> it.
>
> Cc: Linus Walleij <linus.walleij@linaro.org>
> Cc: linux-arm-kernel@lists.infradead.org
> Signed-off-by: Rob Herring <robh@kernel.org>
Patch applied! I'll get this to ARM SoC with some
other stuff.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC PATCH] arm: dts: integratorap: Remove top level dma-ranges
@ 2019-10-04 21:12 ` Linus Walleij
0 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2019-10-04 21:12 UTC (permalink / raw)
To: Rob Herring
Cc: open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, Linux ARM
On Fri, Sep 20, 2019 at 5:36 PM Rob Herring <robh@kernel.org> wrote:
> 'dma-ranges' at the top level doesn't make sense. 'dma-ranges' implies
> there is a parent bus node with '#address-cells' and '#size-cells' which
> is impossible here.
>
> Likely this translation needs to be moved down to sub-nodes that need
> it.
>
> Cc: Linus Walleij <linus.walleij@linaro.org>
> Cc: linux-arm-kernel@lists.infradead.org
> Signed-off-by: Rob Herring <robh@kernel.org>
Patch applied! I'll get this to ARM SoC with some
other stuff.
Yours,
Linus Walleij
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-10-04 21:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-20 15:36 [RFC PATCH] arm: dts: integratorap: Remove top level dma-ranges Rob Herring
2019-09-20 15:36 ` Rob Herring
2019-10-04 21:12 ` Linus Walleij
2019-10-04 21:12 ` Linus Walleij
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.