-
Notifications
You must be signed in to change notification settings - Fork 46
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
Wait for modules loading completion before switching to userspace #120
Comments
This amdgpu issue suppose to be fixed by #104 What is the content of mkinitpcio generated image? Does it even try to load the |
mkinitcpio.conf:
Mkinitcpio content. I dont see any |
Thanks. So the bin file is in mkinitcpio version as well. It probably successfully and silently loaded and not printed to the logs.
@hxss do you see any interesting debug messages before or inbetween these ^^ logs? Anything related to loading files/firmware/booster/... |
And the error itself comes from It is not clear why this function returns EINTR error. |
I added full logs for booster and mkinitcpio in gist. Only info messages exist before the sardine error. |
@ishitatsuyuki san maybe you have any ideas what is going on here? |
I'm running booster-git 21bafff (one commit behind master, from chaotic-aur) and it has been working fine. @hxss Are you running the latest version? Try the git version if you have not already. If you have already updated, then try the following config:
(This is the only line I have in config btw) |
Thanks for the help @ishitatsuyuki and @hxss The difference between
Item 2 is what triggers this problem. I think that item 2 is too confusing for users. It should wait for modules loading completion from |
…to userspace Currently there are 2 ways to load modules - using `modules` and then let udev events match the module and start loading it - using `modules_force_load` that starts loading the modules at the beginning of booster execution. `modules_force_load` waits for the modules loading completion while `modules` codepath does not. It causes problems when heavy modules (like AMD GPU) is being added to `modules` rather than to `modules_force_load`. Add a counter that tracks whether modules are loaded via any of these codepaths. Wait for the counter to get down to zero before switching to userspace. Closes #120
I added a possible fix for the root of this problem. With the commit above AMD GPU drivers should be able to boot even if it added to @hxss please try |
@anatol works great 👍 |
Thank you for confirmation @hxss. Note that |
Boot fails when I add
amdgpu
module inbooster.yaml
The last message I see on boot screen is
Switching to the userspace now.
, wherein keyboard doesn't work.Journalctl shows this errors:
The file
/lib/firmware/amdgpu/green_sardine_sdma.bin
exists on disk, but I don't see any mention of it in logs when loading into mkinitcpio withamdgpu
.The text was updated successfully, but these errors were encountered: