Skip to content

Commit 747b57f

Browse files
6by9yafen
authored and
yafen
committed
dtoverlay: Reduce size of PCIE IB window in pcie-32-dma overlay
The PCIE inbound window is rounded up to a power of 2, so the default of 3GB rounds up to 4GB starting at 0. This prohibits the MSI vector sitting at 0x0_fffffffc, and causes warnings from some subsystems (eg ahci) of a 64bit address on a 32bit configuration. Reduce the window down to 2GB to avoid this issue. raspberrypi/linux#4848 Signed-off-by: Dave Stevenson <[email protected]>
1 parent 4c5d1c0 commit 747b57f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

arch/arm/boot/dts/overlays/pcie-32bit-dma-overlay.dts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,26 @@
1111
fragment@0 {
1212
target-path = "/aliases";
1313
__overlay__ {
14+
/*
15+
* Removing this alias stops the firmware patching the
16+
* PCIE DT dma-ranges based on the detected chip
17+
* revision.
18+
*/
1419
pcie0 = "";
1520
};
1621
};
1722

23+
fragment@1 {
24+
target = <&pcie0>;
25+
__overlay__ {
26+
/*
27+
* The size of the range is rounded up to a power of 2,
28+
* so the range ends up being 0-4GB, and the MSI vector
29+
* gets pushed beyond 4GB.
30+
*/
31+
dma-ranges = <0x02000000 0x0 0x00000000 0x0 0x00000000
32+
0x0 0x80000000>;
33+
};
34+
};
35+
1836
};

0 commit comments

Comments
 (0)