Skip to content

Commit 43d5f5d

Browse files
bjdooks-ctConchuOD
authored andcommitted
riscv: dts: sifive: fu740: fix size of pcie 32bit memory
The 32-bit memory resource is needed for non-prefetchable memory allocations on the PCIe bus, however with some cards (such as the SM768) the system fails to allocate memory from this. Checking the allocation against the datasheet, it looks like there has been a mis-calcualation of the resource for the first memory region (0x0060090000..0x0070ffffff) which in the data-sheet for the fu740 (v1p2) is from 0x0060000000..0x007fffffff. Changing this to allocate from 0x0060090000..0x007fffffff fixes the probing issues. Fixes: ae80d51 ("riscv: dts: Add PCIe support for the SiFive FU740-C000 SoC") Cc: Paul Walmsley <[email protected]> Cc: Greentime Hu <[email protected]> Signed-off-by: Ben Dooks <[email protected]> Cc: [email protected] Tested-by: Ron Economos <[email protected]> # from IRC Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Conor Dooley <[email protected]>
1 parent 1b929c0 commit 43d5f5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/boot/dts/sifive/fu740-c000.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@
328328
bus-range = <0x0 0xff>;
329329
ranges = <0x81000000 0x0 0x60080000 0x0 0x60080000 0x0 0x10000>, /* I/O */
330330
<0x82000000 0x0 0x60090000 0x0 0x60090000 0x0 0xff70000>, /* mem */
331-
<0x82000000 0x0 0x70000000 0x0 0x70000000 0x0 0x1000000>, /* mem */
331+
<0x82000000 0x0 0x70000000 0x0 0x70000000 0x0 0x10000000>, /* mem */
332332
<0xc3000000 0x20 0x00000000 0x20 0x00000000 0x20 0x00000000>; /* mem prefetchable */
333333
num-lanes = <0x8>;
334334
interrupts = <56>, <57>, <58>, <59>, <60>, <61>, <62>, <63>, <64>;

0 commit comments

Comments
 (0)