Bug 1215151

Summary: [Lenovo X13s] grub2 always runs into unexpected system reset when jumping to Linux kernel
Product: [openSUSE] openSUSE Tumbleweed Reporter: Chester Lin <chester.lin>
Component: BootloaderAssignee: E-mail List <screening-team-bugs>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: afaerber, guillaume.gardet, mchang
Version: Current   
Target Milestone: ---   
Hardware: aarch64   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Chester Lin 2023-09-08 08:03:02 UTC
On some aarch64 CPUs, the grub2 can always experience unexpected system reboot while jumping to the Linux kernel. Based on the patch suggested by ARM [merged in Fedora39]:

https://github.com/rhboot/grub2/commit/4f9d3f4f8d7866c69e52ba7d81562daea38b22e6

The kernel pages are allocated as EFI_LOADER_DATA rather than EFI_LOADER_CODE, which still causes execution failures on some arm64 machines, such as Microsoft Surface Pro X [CPU: Microsoft SQ1 co-developed with Qualcomm] and Lenovo X13s [Qualcomm Snapdragon 8cx gen3].

In order to enable openSUSE on Lenovo X13s and other QCOM-based aarch64 machines in the future, it's necessary to solve this boot issue on arm64.
Comment 1 Chester Lin 2023-09-08 08:17:18 UTC
I have created a pull request based on the latest BaseSystem:grub2

https://build.opensuse.org/request/show/1109697
Comment 2 Michael Chang 2023-09-12 02:14:22 UTC
The patch has been submitted to factory so let's set the resolution to fixed. Feel free to reopen if you find it not work for you. Thanks.