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

UEFI ResetSystem() crashes #41

Open
qzed opened this issue Jul 22, 2022 · 2 comments
Open

UEFI ResetSystem() crashes #41

qzed opened this issue Jul 22, 2022 · 2 comments
Labels
UEFI Area: UEFI

Comments

@qzed
Copy link
Member

qzed commented Jul 22, 2022

Calling the UEFI ResetSystem() function causes an oops. In contrast to the variable and RTC functions, this function should be supported (as can inferred by it crashing rather than returning EFI_UNSUPPORTED). My current theory is that it expects to be called in some kind of state that we're not fulfilling.

We're currently working around with a hack, preventing ResetSystem() from being called.

@qzed qzed added the UEFI Area: UEFI label Jul 22, 2022
@qzed qzed mentioned this issue Jul 23, 2022
@qzed
Copy link
Member Author

qzed commented Jan 16, 2023

Some debug info with the efi=debug command line option (as well as various others to prevent the display from being taken over and thus the crash from being hidden):

Tested on v6.0.6.

@qzed
Copy link
Member Author

qzed commented Jan 23, 2023

After linux-surface/kernel@8a9a1a1, the kernel can now recover from an EFI page fault. This means that reboot and poweroff fall back to the architecture functions.

Log for reboot with do_kernel_restart() commented out: log.jpg

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

No branches or pull requests

1 participant