From 4772c24cc3f7034c6b8bd392b5893a595a9ea4d7 Mon Sep 17 00:00:00 2001
From: David Sebek <dasebek@gmail.com>
Date: Wed, 2 Jun 2021 10:31:00 -0400
Subject: [PATCH] acpi: Disable x2APIC also on Sandy Bridge Samsung computers

Include Samsung laptops/computers in the x2APIC Sandy Bridge
blacklist.

Almost always, my Samsung RF511 laptop could not boot with
x2APIC enabled in the kernel. It froze during SMP initialization,
shortly after "ACPI APIC Table: <SECCSD LH43STAR>" was printed
to the console. When the kernel is instructed not to use x2APIC,
the system boots correctly.

Signed-off-by: David Sebek <dasebek@gmail.com>
---
 sys/x86/acpica/madt.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sys/x86/acpica/madt.c b/sys/x86/acpica/madt.c
index 5683f7eb321..e59dfc06576 100644
--- a/sys/x86/acpica/madt.c
+++ b/sys/x86/acpica/madt.c
@@ -183,7 +183,9 @@ madt_setup_local(void)
 			if (hw_vendor != NULL) {
 				if (!strcmp(hw_vendor, "LENOVO") ||
 				    !strcmp(hw_vendor,
-				    "ASUSTeK Computer Inc.")) {
+				    "ASUSTeK Computer Inc.") ||
+				    !strcmp(hw_vendor,
+				    "SAMSUNG ELECTRONICS CO., LTD.")) {
 					reason =
 				    "for a suspected SandyBridge BIOS bug";
 				}
-- 
2.31.1