[PATCH] BugFix: grub menu gets stuck due to unserialized rdtsc

2024-12-08 Thread Duan Yayong via Grub-devel
This patch is used to fix grub menu gets stuck in server AC poweron/poweroff stress test of x86_64, which is reproduced with 1/200 ratio. The root cause analysis as below: Q: What's the code logic? A: "grub_tsc_init" function will init tsc by setting grub_tsc_rate, which call stack is: grub_tsc

[PATCH] Bugfix: grub menu gets stuck

2024-11-27 Thread Duan Yayong via Grub-devel
Adding "if (grub_tsc_rate == 0)" judgement just in case other unknown instruction exception, so that "grub_tsc_calibrate_from_pit||grub_tsc_calibrate_from_efi" getting "grub_tsc_rate" methods have a opportunity to be performed but causing grub menu stucking. Signed-off-by: Duan Yayong Signed-off-

[PATCH] BugFix: grub menu gets stuck due to unreliable rdtsc instruction.

2024-11-10 Thread Duan Yayong via Grub-devel
This patch is used to fix grub menu gets stuck in server AC poweron/poweroff stress test of x86_64, which is reproduced with 1/200 ratio. The root cause analysis as below: Q. What's the code logic? A. "grub_tsc_init" function will init tsc by setting grub_tsc_rate, which call stack is: grub_ts