Re: [PATCH v5 1/2] treewide: Add a flag to detect the Apple T2 chip

From: Borislav Petkov

Date: Mon Jul 27 2026 - 21:00:28 EST


On Mon, Jul 27, 2026 at 05:18:02PM -0400, Atharva Tiwari wrote:
> Add a flag to detect Apple T2 chips on Intel Macs.
> Cache the result to avoid repeated checks. That will
> be used in upcoming patches.
>
> Signed-off-by: Atharva Tiwari <atharvatiwarilinuxdev@xxxxxxxxx>
> ---
> arch/x86/kernel/quirks.c | 37 ++++++++++++++++++
> include/linux/platform_data/x86/apple.h | 5 +++
> .../platform_certs/keyring_handler.h | 8 ----
> security/integrity/platform_certs/load_uefi.c | 38 ++++---------------
> 4 files changed, 50 insertions(+), 38 deletions(-)
>
> diff --git a/arch/x86/kernel/quirks.c b/arch/x86/kernel/quirks.c
> index a92f18db9610..6651e5d4d106 100644
> --- a/arch/x86/kernel/quirks.c
> +++ b/arch/x86/kernel/quirks.c
> @@ -664,8 +664,45 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, 0x2083, quirk_intel_purley_xeon_ras
> bool x86_apple_machine;
> EXPORT_SYMBOL(x86_apple_machine);
>
> +bool has_apple_t2_chip;
> +EXPORT_SYMBOL(has_apple_t2_chip);

I'm guessing this is parrotting the non-GPL export of x86_apple_machine from

630b3aff8a51 ("treewide: Consolidate Apple DMI checks")

Lemme add those folks and ask why aren't those exports GPL only?

Thx.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette