mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 09:39:00 +00:00
538a1d740c
The patches were generated from the RPi repo with the following command: git format-patch v6.6.58..rpi-6.6.y Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
110 lines
3.6 KiB
Diff
110 lines
3.6 KiB
Diff
From 2b5de12af9bb390239d5f3385c49e0c34f335de8 Mon Sep 17 00:00:00 2001
|
|
From: Jonathan Bell <jonathan@raspberrypi.com>
|
|
Date: Fri, 27 Sep 2024 10:59:02 +0100
|
|
Subject: [PATCH 1289/1350] dts: align PCI BAR allocation on bcm2711 and
|
|
bcm2712 to start at 2GB
|
|
|
|
Fold the Pi 5 mmio-hi compatibility option into the base DTB, and
|
|
shuffle the single MMIO window on bcm2711 to match.
|
|
|
|
Certain devices cannot handle low addresses, e.g. by failing to
|
|
enumerate or failing to route the traffic appropriately.
|
|
|
|
Link: https://github.com/raspberrypi/linux/issues/6134
|
|
Link: https://github.com/raspberrypi/linux/issues/6278
|
|
|
|
Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
|
|
---
|
|
.../arm/boot/dts/broadcom/bcm2711-rpi-ds.dtsi | 6 +++---
|
|
arch/arm/boot/dts/overlays/README | 2 --
|
|
.../overlays/pciex1-compat-pi5-overlay.dts | 20 -------------------
|
|
arch/arm64/boot/dts/broadcom/bcm2712.dtsi | 10 ++++++----
|
|
4 files changed, 9 insertions(+), 29 deletions(-)
|
|
|
|
--- a/arch/arm/boot/dts/broadcom/bcm2711-rpi-ds.dtsi
|
|
+++ b/arch/arm/boot/dts/broadcom/bcm2711-rpi-ds.dtsi
|
|
@@ -123,7 +123,7 @@
|
|
|
|
ranges = <0x0 0x7c000000 0x0 0xfc000000 0x0 0x03800000>,
|
|
<0x0 0x40000000 0x0 0xff800000 0x0 0x00800000>,
|
|
- <0x6 0x00000000 0x6 0x00000000 0x0 0x40000000>,
|
|
+ <0x6 0x00000000 0x6 0x00000000 0x0 0x80000000>,
|
|
<0x0 0x00000000 0x0 0x00000000 0x0 0xfc000000>;
|
|
dma-ranges = <0x4 0x7c000000 0x0 0xfc000000 0x0 0x03800000>,
|
|
<0x0 0x00000000 0x0 0x00000000 0x4 0x00000000>;
|
|
@@ -167,8 +167,8 @@
|
|
|
|
&pcie0 {
|
|
reg = <0x0 0x7d500000 0x0 0x9310>;
|
|
- ranges = <0x02000000 0x0 0xc0000000 0x6 0x00000000
|
|
- 0x0 0x40000000>;
|
|
+ ranges = <0x02000000 0x0 0x80000000 0x6 0x00000000
|
|
+ 0x0 0x80000000>;
|
|
};
|
|
|
|
&genet {
|
|
--- a/arch/arm/boot/dts/overlays/README
|
|
+++ b/arch/arm/boot/dts/overlays/README
|
|
@@ -3617,8 +3617,6 @@ Params: l1ss Enable A
|
|
the MSI-MIP peripheral. Use if a) more than 8
|
|
interrupt vectors are required or b) the EP
|
|
requires DMA and MSI addresses to be 32bit.
|
|
- mmio-hi Move the start of outbound 32bit addresses to
|
|
- 2GB and expand 64bit outbound space to 14GB.
|
|
|
|
|
|
[ The pcf2127-rtc overlay has been deleted. See i2c-rtc. ]
|
|
--- a/arch/arm/boot/dts/overlays/pciex1-compat-pi5-overlay.dts
|
|
+++ b/arch/arm/boot/dts/overlays/pciex1-compat-pi5-overlay.dts
|
|
@@ -32,29 +32,9 @@
|
|
};
|
|
};
|
|
|
|
- /*
|
|
- * Shift the start of the 32bit outbound window to 2GB,
|
|
- * so there are no BARs starting at 0x0. Expand the 64bit
|
|
- * outbound window to use the spare 2GB.
|
|
- */
|
|
- fragment@3 {
|
|
- target = <&pciex1>;
|
|
- __dormant__ {
|
|
- #address-cells = <3>;
|
|
- #size-cells = <2>;
|
|
- ranges = <0x02000000 0x00 0x80000000
|
|
- 0x1b 0x80000000
|
|
- 0x00 0x7ffffffc>,
|
|
- <0x43000000 0x04 0x00000000
|
|
- 0x18 0x00000000
|
|
- 0x03 0x80000000>;
|
|
- };
|
|
- };
|
|
-
|
|
__overrides__ {
|
|
l1ss = <0>, "+0";
|
|
no-l0s = <0>, "+1";
|
|
no-mip = <0>, "+2";
|
|
- mmio-hi = <0>, "+3";
|
|
};
|
|
};
|
|
--- a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
|
|
+++ b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
|
|
@@ -1052,12 +1052,14 @@
|
|
msi-controller;
|
|
msi-parent = <&mip1>;
|
|
|
|
- ranges = <0x02000000 0x00 0x00000000
|
|
- 0x1b 0x00000000
|
|
- 0x00 0xfffffffc>,
|
|
+ // 2GB, 32-bit, non-prefetchable at PCIe 00_80000000
|
|
+ ranges = <0x02000000 0x00 0x80000000
|
|
+ 0x1b 0x80000000
|
|
+ 0x00 0x80000000>,
|
|
+ // 14GB, 64-bit, prefetchable at PCIe 04_00000000
|
|
<0x43000000 0x04 0x00000000
|
|
0x18 0x00000000
|
|
- 0x03 0x00000000>;
|
|
+ 0x03 0x80000000>;
|
|
|
|
dma-ranges = <0x03000000 0x10 0x00000000
|
|
0x00 0x00000000
|