-
Notifications
You must be signed in to change notification settings - Fork 60
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
arm64: Force Morello kernels to use the FDT #2316
Conversation
Older firmware doesn’t provide an FDT, and being EDK2 won’t load one. We install one as part of bsdinstall, and enforce it in loader.conf, but that doesn’t help the installer itself. On such systems we still have to boot with ACPI, and the lack of GPU drivers isn’t a problem because it can use efifb for the VT. Also, QEMU uses ACPI. It maybe can also provide an FDT, but we want to use ACPI there, both because it’s the fancier thing and because it tests ACPICA in CI. |
I think what we want is for GENERIC-MORELLO to just reverse the order back to what it used to be. |
I need to test in QEMU, but I believe this change has exactly that effect: if there's an FDT, we'll use it, otherwise we'll fall back to the default, which is ACPI. |
The code in question does fall back to auto-guessing and will find ACPI if there is no FDT table:
|
Though the CI failures seem to imply that the code didn't work the way I thought it would. |
I do wonder if the static environment is overriding the environment from the loader (in which case the kernel won't "see" the ACPI tables)? I thought Kyle fixed it so that we merged the static and dynamic environments, but perhaps not? |
/*
* If no option was set the default is valid, otherwise we are
* setting one to get cninit() working, then calling panic to tell
* the user about the invalid bus setup.
*/
return (env == NULL); So it'll fall back on picking the right default, but since acpi isn't listed in the env it'll panic as soon as it's used that to configure the console to tell the user that it couldn't find the requested method. |
(That is, like I said, it needs to be a reversal of the order, not requesting only fdt) |
Otherwise, after upstream commit 33f2cf4 we boot using ACPI tables, which prevents the panfrost driver from attaching.
8df2fb7
to
51b30c3
Compare
No description provided.