Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong boot CPUID on device tree header #385

Open
IkerGalardi opened this issue Jan 8, 2025 · 3 comments
Open

Wrong boot CPUID on device tree header #385

IkerGalardi opened this issue Jan 8, 2025 · 3 comments

Comments

@IkerGalardi
Copy link

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
Copy link
Author

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)?

@avpatel
Copy link
Collaborator

avpatel commented Jan 8, 2025

Any example of software which relies on boot_cpuid_phys ?

@IkerGalardi
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants