Skip to contentSkip to conversation

x86/reboot: use EFI reboot on ThinkPad X1 Carbon 5th

PATCH New Marek Marczykowski-Górecki 1 participant 1 message May 10 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/reboot: use EFI reboot on ThinkPad X1 Carbon 5th

This laptop needs EFI reboot to respect BootNext variable, otherwise it uses just BootOrder on reboot.

---
 arch/x86/kernel/reboot.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/x86/kernel/reboot.c +11 -0
index 6032fa9ec753..97d139a6d7e5 100644
@@ -471,6 +471,17 @@ static const struct dmi_system_id reboot_dmi_table[] __initconst = {
 		},
 	},
 
+	/* Lenovo */
+	{
+		/* BootNext EFI variable is not respected without EFI reboot */
+		.callback = set_efi_reboot,
+		.ident = "Lenovo ThinkPad X1 Carbon 5th",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X1 Carbon 5th"),
+		},
+	},
+
 	{	/* PCIe Wifi card isn't detected after reboot otherwise */
 		.callback = set_pci_reboot,
 		.ident = "Zotac ZBOX CI327 nano",
Signature · 1 line
2.52.0