From nobody Sat Feb 7 20:41:04 2026 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C2C3212554 for ; Tue, 3 Feb 2026 07:31:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770103919; cv=none; b=VoMaO5WS1sClC3jL/azoshNp2K80JbBQBa3yiIzhDsBX1Ts9peMhzrCxZxytr7t02pRR2Geot455vi9QuGid3p1DDVLFsJX0ZxGg+FLbiFSkfoJQMZvpYl9r/ttKZZoj0AOeDXdmM6MkOjB4eMfwS2et8CAWrkYy+MF+RmxRKto= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770103919; c=relaxed/simple; bh=JPmSucsEIJvnITlI+6E+ViaITfqKP7DT7Hn0utPJy/M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qDTf6G4UM7Wh64eM6ivECsouD1kaBehAGU07Y1YE/IbqQbjc23DPMJDDie+UtDNnZkuqTQPO1zGr+XUE829k1N7AIhV11JYjjPeaq9yJdYEjnGxT02krZIUxdm6f4HW63WnFZMsEFQYa2ZQ2oCAx6Oqbw/FvCNRAx5kcZS8Fshw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BTZl3tR6; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BTZl3tR6" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-2a871c8b171so31416365ad.3 for ; Mon, 02 Feb 2026 23:31:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770103917; x=1770708717; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JuaUAhd1+lDG6wBrbXZqMO2C5ILHdpZJbCQrItpX1Ck=; b=BTZl3tR6H/BiWoJ8JsiGKxwAoyyqN3TMtSGC83glNLtXrtkP1/kGDmkW0Qa0Fi4GAN qhhVHwepC2bwuWOCjOKJthOe7cSTx40h7lLQ06t3alDjRgWiEfZXjewnzXvmGlszYabP CLKB7s246tKz/hh9UA9Fmiwhm2ifVYcuKEoo9N34/gtbnG1FS3o6n0EGrbXqekzX1s4r 1GwfZUsvPdwgfBYZ+v/XnyHNx6QbZPsYP8kWxCRcBLm9NLIKLx4OakuZlXmksgSwP+7v XSSAFJhXz3EFYSuX5PTx7BQPTVYP/94bjbixWRlDor38qWgfJO3lXfSFhTjR7BlK5l7W 0UJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770103917; x=1770708717; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=JuaUAhd1+lDG6wBrbXZqMO2C5ILHdpZJbCQrItpX1Ck=; b=AlgsqadRBI05vLu6eaueQ9f7F3LVDyB9aFNNxmvsGtA77KWOYDvnzkIitCvfO2oG7J fBjAC9tnh1JbAboiEah+pn9zVHPu6J2nR0J5CGBCTAhyEnHYzAeyjpx1PK+JZypYcFFQ DZXSyg46CzaKIIYk0YCwCHZLR+zeML6UckMTHft8yYtZ8PWZb7tVfPRMbe6CcZInRPun JChOZMkeXGcfHgm80fbeLFR0MhJW5DMVP65EwmJ6YLD5l4ePh6taGO3kYcSEU+ia4zeR Cx2XTCU2o1I6dNn/Z/ZrTAlXKpcXBkSAFt+rnb9b/iHbeXvTlAosnaXT94Z9DxaPT9uM 2czg== X-Forwarded-Encrypted: i=1; AJvYcCUAXpu5mk/PHuigCsNR4GOyeIOP4GbEOeUCBNPVYX3f9M3LtB2Jgbr+T504EL4trCzZat+BlWmxjYrB3PU=@vger.kernel.org X-Gm-Message-State: AOJu0YzmZ2PPyS5rw3t+lHhR7ibsnwi3U3wkC+XcU2T1LP3GyR96xKLQ p6Cm2CTLtEnUaTUHIECvnz/+gc4vPQIvM35Mx4tSy8y7Z7nx/oSvX9M= X-Gm-Gg: AZuq6aIaHKSwByuP2GyZ3pafM/kS57AGDWejLRP+9v89cXSdkmXRkx1Kib03XuBJy0I WDQ7aLCxpNTA9GQUZNRlYNTgCjaPDyo34tOc/KhINA7kjO06CdzzYMdywAhXsBX/1Qq3Q9twOZw QWzBim5A+Ht5WnzA557uAPuwylhii08Bggpln2+bacgsUILs1ZVYoKbMEYE7FMU+mMRIlIjfuKp fEE9W42Wji5cEAIk/0tW4FFAFQ8UIUuoDGlbvDlWzoBPQojKxowFoiXlk2z/lBMN2ftXwtXaBqj 1IUW0Y+bwwdn5ER2m4cLw6APBaiyPUMEOGyUhYjyTVAh2vE//WrEx9JjB7hJR4t+f6tiaC9UW6o DbhYDYdflrowmQ3C920BPRuCAeLagYLwrhUihiUH+AhNE9jB+ppEMJS1MRWo/CC51IgaLmqCR6D sgKiK2FdsvfMmEzPeQMNw8ql+aYw== X-Received: by 2002:a17:903:1ac8:b0:2a0:d728:2e79 with SMTP id d9443c01a7336-2a8d7ed9bcbmr138418055ad.16.1770103917493; Mon, 02 Feb 2026 23:31:57 -0800 (PST) Received: from at.. ([171.61.163.171]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a8dc225534sm108280865ad.68.2026.02.02.23.31.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Feb 2026 23:31:57 -0800 (PST) From: Atharva Tiwari To: Cc: Atharva Tiwari , Ard Biesheuvel , Jani Nikula , Rodrigo Vivi , Joonas Lahtinen , Tvrtko Ursulin , David Airlie , Simona Vetter , Javier Martinez Canillas , Thomas Zimmermann , Lenny Szubowicz , "Borislav Petkov (AMD)" , Francesco Pompo , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH v3 1/2] efi/libstub: Enable apple-set-os for most apple devices Date: Tue, 3 Feb 2026 07:31:17 +0000 Message-ID: <20260203073130.1111-2-atharvatiwarilinuxdev@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260203073130.1111-1-atharvatiwarilinuxdev@gmail.com> References: <20260203073130.1111-1-atharvatiwarilinuxdev@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 --- 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_recor= d(u8 type) =20 static bool apple_match_product_name(void) { - static const char type1_product_matches[][15] =3D { - "MacBookPro11,3", - "MacBookPro11,5", - "MacBookPro13,3", - "MacBookPro14,3", - "MacBookPro15,1", - "MacBookPro15,3", - "MacBookPro16,1", - "MacBookPro16,4", + static const char disabled_product_matches[][14] =3D { + "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; =20 - for (int i =3D 0; i < ARRAY_SIZE(type1_product_matches); i++) { - if (!strcmp(product, type1_product_matches[i])) - return true; + for (int i =3D 0; i < ARRAY_SIZE(disabled_product_matches); i++) { + if (!strcmp(product, disabled_product_matches[i])) + return false; } =20 - return false; + return true; } =20 static void apple_set_os(void) --=20 2.43.0