opensbi icon indicating copy to clipboard operation
opensbi copied to clipboard

Wrong boot CPUID on device tree header

Open IkerGalardi opened this issue 11 months ago • 3 comments

Currently the device tree passed to the supervisor software does not properly set the boot_cpuid_phys field in the header. It always returns 0 (I guess the default value set by QEMU in my case). The firmware should be able to modify this value so that software that relies in this field properly works.

The system I am currently using is qemu-system-riscv64 with the opensbi-dynamic.bin version.

IkerGalardi avatar Jan 08 '25 10:01 IkerGalardi

I could contribute the fix but I don't really know the internal structure of the firmware. Are there any resources I could use? Where should this fix go (qemu specific or general)?

IkerGalardi avatar Jan 08 '25 10:01 IkerGalardi

Any example of software which relies on boot_cpuid_phys ?

avpatel avatar Jan 08 '25 14:01 avpatel

Don't know any production software, just anecdotal experience in my personal projects.

IkerGalardi avatar Jan 08 '25 14:01 IkerGalardi