Skip to contentSkip to conversation

DT with memory bank of size 0 (WAS: Re: AW: AW: Colibri imx8qxp: Missing kernel boot module)

DISCUSSION Daniel Wagner2 1 participant 1 message Sep 24, 2020

lore
Share & tools
lore
#0 lore raw

Hi Julien,

Quoted 19 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines

Do you have Linux running on baremetal on this board? If so would you mind to dump the DT from the userspace (via /proc/device-tree) this time?

I do have linux running on baremetal on the plattform. You were right, after the boot, the memory node contains the second bank with size=0.

Quoted 5 lines
memory@80000000 {
	device_type = "memory";
	reg = < 0x00 0x80200000 0x00 0x7fe00000 0x08 0x80000000 0x00 0x00

;
};

Thank you for the testing. I am glad we finally found the reason!

Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

In any case, we may want to relax the check in Xen. Any opinions?

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

Yeah, ignoring a bank with size=0 is fine. I checked the epapr and it

doesn't

Quoted 2 lines

specify that size=0 is invalid, so I think it is actually better to ignore

it and

Quoted 1 line

continue even from a spec perspective.

I have sent a patch to ignore empty bank ([1]). Would you mind to test it?

Yes, Xen is now able to boot Dom0, even if the chosen node comes after the memory node in the dtb.

Quoted 1 line

The patch is based on unstable, but it should be easy to apply it on older

release.

Your patch was applied to our sources, which are based on Branch "imx_5.4.24_2.1.0" of imx-xen [2],
with no modification needed.

Thank you for your support and help!

Best regards,
Daniel

Quoted 2 lines

[1] https://lore.kernel.org/xen-devel/20200918171116.29005-1-
[email protected]/

[2] git://source.codeaurora.org/external/imx/imx-xen.git