[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260203073130.1111-2-atharvatiwarilinuxdev@gmail.com>
Date: Tue, 3 Feb 2026 07:31:17 +0000
From: Atharva Tiwari <atharvatiwarilinuxdev@...il.com>
To:
Cc: Atharva Tiwari <atharvatiwarilinuxdev@...il.com>,
Ard Biesheuvel <ardb@...nel.org>,
Jani Nikula <jani.nikula@...ux.intel.com>,
Rodrigo Vivi <rodrigo.vivi@...el.com>,
Joonas Lahtinen <joonas.lahtinen@...ux.intel.com>,
Tvrtko Ursulin <tursulin@...ulin.net>,
David Airlie <airlied@...il.com>,
Simona Vetter <simona@...ll.ch>,
Javier Martinez Canillas <javierm@...hat.com>,
Thomas Zimmermann <tzimmermann@...e.de>,
Lenny Szubowicz <lszubowi@...hat.com>,
"Borislav Petkov (AMD)" <bp@...en8.de>,
Francesco Pompo <francescopompo2@...il.com>,
linux-efi@...r.kernel.org,
linux-kernel@...r.kernel.org,
intel-gfx@...ts.freedesktop.org,
intel-xe@...ts.freedesktop.org,
dri-devel@...ts.freedesktop.org
Subject: [PATCH v3 1/2] efi/libstub: Enable apple-set-os for most apple devices
Enable apple-set-os on Apple Mac systems by default.
Exclude MacBook6,2 and MacBookAir7,2, as enabling apple-set-os on
these models causes regressions.
(tested on iMac20,1)
Signed-off-by: Atharva Tiwari <atharvatiwarilinuxdev@...il.com>
---
drivers/firmware/efi/libstub/x86-stub.c | 20 +++++++-------------
1 file changed, 7 insertions(+), 13 deletions(-)
diff --git a/drivers/firmware/efi/libstub/x86-stub.c b/drivers/firmware/efi/libstub/x86-stub.c
index cef32e2c82d8..532a713adef5 100644
--- a/drivers/firmware/efi/libstub/x86-stub.c
+++ b/drivers/firmware/efi/libstub/x86-stub.c
@@ -303,15 +303,9 @@ static const struct efi_smbios_record *get_table_record(u8 type)
static bool apple_match_product_name(void)
{
- static const char type1_product_matches[][15] = {
- "MacBookPro11,3",
- "MacBookPro11,5",
- "MacBookPro13,3",
- "MacBookPro14,3",
- "MacBookPro15,1",
- "MacBookPro15,3",
- "MacBookPro16,1",
- "MacBookPro16,4",
+ static const char disabled_product_matches[][14] = {
+ "MacBookPro6,2",
+ "MacBookPro7,2",
};
const struct efi_smbios_type1_record *record;
const u8 *product;
@@ -325,12 +319,12 @@ static bool apple_match_product_name(void)
if (!product)
return false;
- for (int i = 0; i < ARRAY_SIZE(type1_product_matches); i++) {
- if (!strcmp(product, type1_product_matches[i]))
- return true;
+ for (int i = 0; i < ARRAY_SIZE(disabled_product_matches); i++) {
+ if (!strcmp(product, disabled_product_matches[i]))
+ return false;
}
- return false;
+ return true;
}
static void apple_set_os(void)
--
2.43.0
Powered by blists - more mailing lists