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

[Linux] Minimally support probing CPUs with non-Loongson PRID #31

Open
xen0n opened this issue Dec 14, 2023 · 1 comment
Open

[Linux] Minimally support probing CPUs with non-Loongson PRID #31

xen0n opened this issue Dec 14, 2023 · 1 comment

Comments

@xen0n
Copy link
Member

xen0n commented Dec 14, 2023

https://github.com/torvalds/linux/blob/5bd7ef53ffe5ca580e93e74eb8c81ed191ddc4bd/arch/loongarch/kernel/cpu-probe.c#L312-L316

This means any non-Loongson LoongArch design will not correctly probe, because they don't get a PRID with a company ID of Loongson.

According to the LoongArch spec, at least the CPUCFG data is standardized across all compliant LoongArch implementations, so we should be able to derive essential feature bits (such as the ELF platform -- bitness info) without first checking PRID.

@xen0n
Copy link
Member Author

xen0n commented Dec 14, 2023

cc @chenhuacai -- I might do this early next year, targetting v6.8 or v6.9 depending on my free time.

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

No branches or pull requests

1 participant