Skip to content

Commit 0e289e5

Browse files
Lee Jonesolofj
authored andcommitted
ARM: dts: STi: stih407-family: Disable reserved-memory co-processor nodes
This patch fixes a non-booting issue in Mainline. When booting with a compressed kernel, we need to be careful how we populate memory close to DDR start. AUTO_ZRELADDR is enabled by default in multi-arch enabled configurations, which place some restrictions on where the kernel is placed and where it will be uncompressed to on boot. AUTO_ZRELADDR takes the decompressor code's start address and masks out the bottom 28 bits to obtain an address to uncompress the kernel to (thus a load address of 0x42000000 means that the kernel will be uncompressed to 0x40000000 i.e. DDR START on this platform). Even changing the load address to after the co-processor's shared memory won't render a booting platform, since the AUTO_ZRELADDR algorithm still ensures the kernel is uncompressed into memory shared with the first co-processor (0x40000000). Another option would be to move loading to 0x4A000000, since this will mean the decompressor will decompress the kernel to 0x48000000. However, this would mean a large chunk (0x44000000 => 0x48000000 (64MB)) of memory would essentially be wasted for no good reason. Until we can work with ST to find a suitable memory location to relocate co-processor shared memory, let's disable the shared memory nodes. This will ensure a working platform in the mean time. NB: The more observant of you will notice that we're leaving the DMU shared memory node enabled; this is because a) it is the only one in active use at the time of this writing and b) it is not affected by the current default behaviour which is causing issues. Fixes: fe135c6 (ARM: dts: STiH407: Move over to using the 'reserved-memory' API for obtaining DMA memory) Signed-off-by: Lee Jones <[email protected]> Reviewed-by Peter Griffin <[email protected]> Signed-off-by: Maxime Coquelin <[email protected]> Signed-off-by: Olof Johansson <[email protected]>
1 parent 7752b0d commit 0e289e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/arm/boot/dts/stih407-family.dtsi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,21 @@
2424
compatible = "shared-dma-pool";
2525
reg = <0x40000000 0x01000000>;
2626
no-map;
27+
status = "disabled";
2728
};
2829

2930
gp1_reserved: rproc@41000000 {
3031
compatible = "shared-dma-pool";
3132
reg = <0x41000000 0x01000000>;
3233
no-map;
34+
status = "disabled";
3335
};
3436

3537
audio_reserved: rproc@42000000 {
3638
compatible = "shared-dma-pool";
3739
reg = <0x42000000 0x01000000>;
3840
no-map;
41+
status = "disabled";
3942
};
4043

4144
dmu_reserved: rproc@43000000 {

0 commit comments

Comments
 (0)