From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (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 EABBE3F660E for ; Mon, 27 Jul 2026 21:18:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785187105; cv=none; b=qs4crJAvUjeWKIBQJEBsSVaCCRTZ5Cc5dtMlGpqV9AK+HDpO2Xf40qdKDf4uAh7e/xYJXa1lhWKoKhsSt3pG2UvVXbCgoe2p7Z08BjxF7qT1Q/pYymZ+P7Wz5OtIHIQgptblWOc43WHf6pvndQN6Bzk634VOMfo8FltMOlcy0fM= 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.176 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-f176.google.com with SMTP id d9443c01a7336-2cc61541f8cso5227555ad.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=MGjTLpCQWe6SjVOhuRGbC9UQiRfwaf6whziscugcSFnskmYi63a6nT8Z3dUs73IT9l HoG+N/Zv3aQgUAqL/C8Cz0nskNDXuovVyYoqe7ZdIhySNlm7AnBPBtjkVhVsOtc9sLn2 2PY285phxiXAT2K5T87tUMOZg+PGAAiECqYWAatnJRG1AWl6prsz0Omdl7xqPEGWOSbl DLzAD0YwUL2OAUkfGbx5mqgX2G89Iqmv6fzmNm+VsY9LW9jANfD568l2YhM4dDTVFi4f Ey/+q9DtrbAuIrPxnf5H9dReO2l3eTKFTHS4YmVuRUnUxOvi7C7hEXMfyaIqbaErUYLo 2Myg== X-Forwarded-Encrypted: i=1; AHgh+RqZAs/ogGKV4nv1wXMn1Kc+v1ISTO62jwj+qwo5i1PeRcVPG6oW4Ey8KXsN0jk2f4jvtSakBAzKu/0AQGbaapEqAqteLAU=@vger.kernel.org X-Gm-Message-State: AOJu0Yyblv8fFg4wA9Qdkfxf4r0wRVJ8GeJqBYcx5oTqn15BUbIvBR6L vNiz0Xed3C4K6V8dG/uf2iFbwe+rt4FcYL8pdJXJGwIahuw6YrP4lsU= X-Gm-Gg: AR+sD10koE2imKPDAI7WfBR/J2IYGjuQRWiThTlsGnZdKtizmod5JncLAvh5Hd9/Zyk GlkOQxbz/ps1p+hLV4yRypEdWmjqedT0NWw8wxFV+UDsuJydk8tHAOqWhgInYpK0//i2yDhAgt5 i7EUmaGeTNmnPMJqJDQFaNgoCXyXKy+9NdKA9bVC7WM6SrCzs3qkMdaMBXQ24kClj4HJVJnAohJ zpyLNOIZacDbFSlaVCdKpnAyAr7efQuEIhw2oNaaZHWEOlqo4pM90UUJSxN9g9gukH3a+6Hkmfd woAP9uBtgHEX8DLcKgDBWrfN91xKkKESz7hLJ80i6Mk7DRUUmy6f7MVnAR5Sy8EI/n/XyOScd6A U5O4QyTKgLVWR3P3YCLovUUKO/2p1F0xR7V4hwbOZu3TrrvRapeikQv7d0BEHkWPCsj+cx/lMdK /PouXtVSLcqYCAjxSnYLVFBVVnRt0h2cCgKzMRJvwfMMC3oeHEjpry2Qf7uhaA4UxazLzeT5n9C dftyw1t+EXvkmOla25QgTowXLqFF70jeQ== 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-security-module@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