2a6d4007fa6625a4676b5b3286a0fbd01ef2fa6f
[openwrt/openwrt.git] / target / linux / ipq806x / patches-5.10 / 103-ARM-dts-qcom-reduce-pci-IO-size-to-64K.patch
1 From 84909e85881d67244240c9f40974ce12a51e3886 Mon Sep 17 00:00:00 2001
2 From: Ansuel Smith <ansuelsmth@gmail.com>
3 Date: Tue, 11 May 2021 23:09:45 +0200
4 Subject: [PATCH] ARM: dts: qcom: reduce pci IO size to 64K
5
6 The current value is probably a typo and is actually uncommon to find
7 1MB IO space even on a x86 arch. Also with recent changes to the pci
8 driver, pci1 and pci2 now fails to function as any connected device
9 fails any reg read/write. Reduce this to 64K as it should be more than
10 enough and 3 * 64K of total IO space doesn't exceed the IO_SPACE_LIMIT
11 hardcoded for the ARM arch.
12
13 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
14 ---
15 arch/arm/boot/dts/qcom-ipq8064.dtsi | 6 +++---
16 1 file changed, 3 insertions(+), 3 deletions(-)
17
18 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
19 +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
20 @@ -1162,7 +1162,7 @@
21 #address-cells = <3>;
22 #size-cells = <2>;
23
24 - ranges = <0x81000000 0 0x0fe00000 0x0fe00000 0 0x00100000 /* downstream I/O */
25 + ranges = <0x81000000 0 0x0fe00000 0x0fe00000 0 0x00010000 /* downstream I/O */
26 0x82000000 0 0x08000000 0x08000000 0 0x07e00000>; /* non-prefetchable memory */
27
28 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
29 @@ -1213,7 +1213,7 @@
30 #address-cells = <3>;
31 #size-cells = <2>;
32
33 - ranges = <0x81000000 0 0x31e00000 0x31e00000 0 0x00100000 /* downstream I/O */
34 + ranges = <0x81000000 0 0x31e00000 0x31e00000 0 0x00010000 /* downstream I/O */
35 0x82000000 0 0x2e000000 0x2e000000 0 0x03e00000>; /* non-prefetchable memory */
36
37 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
38 @@ -1264,7 +1264,7 @@
39 #address-cells = <3>;
40 #size-cells = <2>;
41
42 - ranges = <0x81000000 0 0x35e00000 0x35e00000 0 0x00100000 /* downstream I/O */
43 + ranges = <0x81000000 0 0x35e00000 0x35e00000 0 0x00010000 /* downstream I/O */
44 0x82000000 0 0x32000000 0x32000000 0 0x03e00000>; /* non-prefetchable memory */
45
46 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;