From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (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 DCACF3E7145 for ; Mon, 27 Jul 2026 21:18:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785187105; cv=none; b=N4Ppumczzq1QKq4Ybi/bIN34PdvGMj7m8zzAqghzogFyazDzHFTq8myKP7Kgh3NKpJhOkbTQTapvQfztzTb9dGe+onLBSLXPySBHPORBI8W818Vrp7vIqVQdE4PbzULafJ8+F/m2jn6PhT5nRsK6Sdgy5PsauM8k8Es0uX8TJH0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785187105; c=relaxed/simple; bh=3CbbR2OL6iy/vE34PxqlFInK6NVsD5LXXqSf2ANoapg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=R4yfvdh2MXv7i9CM66HhXGhjKmuAm1xbv5rS7rEaMZtrmxFK9vPXpIa2nPavrGvUXBjt1fmugI5Jor4SihYvHj2HpJeZQ9npIgU1oO4jQ4lCiYja8Ik28dAUQ+gDUE4RgVtM87yHlkxpScfMoruxOY1EAH4X8EYbRMIUwbT98Ok= 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=UFfA7oTz; arc=none smtp.client-ip=209.85.214.177 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="UFfA7oTz" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-2cc61541f8cso5227535ad.0 for ; Mon, 27 Jul 2026 14:18:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785187103; x=1785791903; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=qQqWUZmrvTZ8p8YK697dL17ozshe0vWXwcEmOAnzcLQ=; b=UFfA7oTzWtADJOJQVdjayW1f2TQ/CJoE8usBj7JBhWwURagylWHJK396z6tNaQa3oN 40S5VwbF6aTrpSAXYmZQXrTJnOsQ2pRq8nsmS636FuZ6BWtP81c6aPGnu9isfchiHDOY XFGePtabW+X0pLo528k2KPgBEgllNMfh+oFHlK0ks0sLPH+uSDcJ/cqcbvKhdShl8UsP cSg6sOxyvfzwB+9gHauioh8WldlRTKHWYoUTC4oq/HcRw6PFPnMJRqIY8md/EOnMYa+U 0RxXaRJNTp6svu94HuMf0SiTSITcm4uFJgdumTBlXuMBunCV3SBYQkymTou5ar8rtCWW LwzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785187103; x=1785791903; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=qQqWUZmrvTZ8p8YK697dL17ozshe0vWXwcEmOAnzcLQ=; b=m+56ZR0N4OCxnBuKAP3ieWU2cnfR7MlyviaV+/IML2CjyQ6CYWVBB7L+i1iJthV3lt XySmcYRIgAvEZeaCsZOxXfwUIuGruQIh3fVgts5iIRFdqw6Yjq1oTH0QEfG/m2f6+PHT ARcnZDmDgqcw8GXC9OxoRVy4W31fSjOtDKo+Nu42HkZgdmiH20T9rqIcVBjpDF90meBu F7yWpvPxAaJAzSPduBYlwqtEP6kWkwlysWh6+LlsEy6oo+ECPxLUJEZWklxHj/OVWle8 v9rnFXz9cwT/jXJtRp3IlbRdi9KXwrSd9DSg0BPg2P3Kh5ktO0PIMBQDE4LtlEOoD8Pj 1tVA== X-Forwarded-Encrypted: i=1; AHgh+Rp6r0TW9N3aPzsWcCRLCcqEOuVgMJHM7at8QVluxtEyanHrHZYnwsSY4jqtjGLnX6e9Q/Vy1COX/MvLrQ0=@vger.kernel.org X-Gm-Message-State: AOJu0Yx8MvQojkhw/APpLmZu5R73n73ADVjCx7kKbXzoOsaIsZxCiqsH eZXZ9jrwOfYIuw6LvSW2138MaaoIXpeKIM/qIe5htG0wZGZ7kNPPISg= X-Gm-Gg: AR+sD11ur4zmhxmJaEPxjbCwgFiD8QeMNZzP/lDUA434iUHFH0kwsueHDeHPIWboGsC bT2E9XfU1S+xxtSi58fdCWYAF6/ZFgqMgOLuUyGYg/EqYNvJgW23brhgRIOPg3dDHTI7AoONzWf GxkRblFehyUd7Hh/fRSSoJkERBZAxevseEe63hhJwVn13Mc4oDEOLl/bfuQ0pUF6h87G6otIzS8 /nuyGGEzPvVWJ8cH3Wm2BQhqN4deYSJunY+avXNa5A37CtkfoUDV2ZHJuHme5lEv2ZE+JDLtNTo h0zYxga90yMvL+yvarwTS0+x8qFiUVnn6eDk9Sa+V1/0+uRqSaie+FAUqOsNgtZXKde6IiMEAFi 06nwb4d+vfcWNCxz1FmJ02z+dkpSCbMGJfA54yMwRrJJZHuo57DkOSaK8W1TgXX6ZHzjPkRSFcn K4VbhIa2XY+XI7vknQM0bVrD3nl2iecH/4QkhAxBOjFYvfulPf/ujymPAJJ6JkCELbyKMdRxxTz w228Oj9+EWOru6noB0SWDom9JPP4gKEjg== X-Received: by 2002:a05:6a21:7706:b0:3c4:2cd3:f0bb with SMTP id adf61e73a8af0-3c7857620bfmr410550637.10.1785187103141; Mon, 27 Jul 2026 14:18:23 -0700 (PDT) Received: from at-Standard-PC-Q35-ICH9-2009.. ([27.59.84.42]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-314e17a6f5fsm7916699eec.31.2026.07.27.14.18.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2026 14:18:22 -0700 (PDT) From: Atharva Tiwari To: Cc: Atharva Tiwari , Bjorn Helgaas , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Andreas Noever , Mika Westerberg , Yehezkel Bernat , Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Jarkko Sakkinen , Mimi Zohar , Roberto Sassu , Dmitry Kasatkin , Eric Snowberg , Paul Moore , James Morris , "Serge E. Hallyn" , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-integrity@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org Subject: [PATCH v5 0/2] Add Apple T2 NHI device links Date: Mon, 27 Jul 2026 17:18:01 -0400 Message-ID: <20260727211807.1223-1-atharvatiwarilinuxdev@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This series adds a cached flag to detect Apple T2 systems, then uses it to create device links for the Thunderbolt NHI. Changes in v5: - Used Icelake root PCI IDs for detection of root ports instead of TRP Changes in v4: - Limited TRP check to T2 Icelake systems only - Optimized has_apple_t2_chip check - Included pci.h to drivers/thunderbolt/tb.c - Used __free(pci_dev_put) to avoid label Changes in v3: - Fix build errors with non-x86 machines - Used __initconst for apple_t2_devices - Removed UEFI_QUIRK_SKIP_CERT as its unused now - Used IS_ENABLED(CONFIG_ACPI) in tb_apple_add_links for the T2 part - Removed !bid check to remove warning with -Waddress Changes in v2: - Used a less generic name for has_t2_chip - Used DMI instead of PCI for has_apple_t2_chip to avoid PCI problems - Initialized ret in tb_apple_add_links Link to v4: https://lore.kernel.org/all/20260724164641.2239-1-atharvatiwarilinuxdev@gmail.com/ Link to v3: https://lore.kernel.org/all/20260721063412.11588-1-atharvatiwarilinuxdev@gmail.com/ Link to v2: https://lore.kernel.org/all/20260721054506.11871-1-atharvatiwarilinuxdev@gmail.com/ Link to v1: https://lore.kernel.org/all/20260719180308.1398-1-atharvatiwarilinuxdev@gmail.com/ Atharva Tiwari (2): treewide: Add a flag to detect the Apple T2 chip thunderbolt: Add device links for Apple T2 NHI arch/x86/kernel/quirks.c | 37 +++++++++++++ drivers/thunderbolt/tb.c | 54 ++++++++++++++++++- include/linux/platform_data/x86/apple.h | 5 ++ .../platform_certs/keyring_handler.h | 8 --- security/integrity/platform_certs/load_uefi.c | 38 +++---------- 5 files changed, 102 insertions(+), 40 deletions(-) -- 2.43.0