From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) (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 CE24D3E638E for ; Mon, 27 Jul 2026 21:18:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785187105; cv=none; b=dFaJ8CG/xyIghVm9zaJSZIPfiYh21EBp06aeg3b2/ndZtE/mrBXkgFFfSi0hp/KQS4/lfpbLuYZcQ3AsfCi/yCnYzEulafcJ4KpsQfvad029tDDeZXcaUYbw/iwctuEnJqf7hlVuP+4xKxa+i2kvsIwdxaCQzxQi4uMTETTjyVE= 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.215.172 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-pg1-f172.google.com with SMTP id 41be03b00d2f7-ca80d708489so222538a12.1 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=kGJjNyLuNT1O4BuwhoRQkwd5ddGdoAXQcnsFgD8QFnsMKuRRVwpSxr1q8rw7FXdXmJ dlUshxcIAU2gZAfylV13h0bqwQZtEguTPozmJVBzosl3Tbb9PaataLihZVlmNA9tZGgp yoE0i9BJ4GxPrJNoXbE4Bb4YlNE1XaNpcjhmD7s7tePlI8KAK0AuuiuBe8EXXtpegkiF y9MWaFFjBZWIl9REm0lBFXZnBqELPXDE8ChMw0dpGjZSKK2M6AmxrzTLLwD4xCdKlZvd y02yFhPOeBr/5ST0QOgKsdofyC8+ICmFPXE249WpNqNtBD3rMcNcXgfWOFQo56MfxN5y 9aWw== X-Forwarded-Encrypted: i=1; AHgh+RpRcG1HlWvV5ULmnx593gpoQTJxLBrn9666K4myflHjGPMCqI7EJgwWnIrLub+YRRmkKd32aryRos6H0AvVMJk=@vger.kernel.org X-Gm-Message-State: AOJu0YwyWUHchiwqcdrNFQ5vju0C3s52Og8WtgmMyxuGRZStMd3sZT81 lvHSExV9FBbD57lQeZBRB8RjVcSPjPWyW9XwLz+vFEOsoBPzrRhFw6o= X-Gm-Gg: AR+sD12XKjRF5W7FA/xTltYyht8KuqQfRx/pzOgQ39ezbsAqIgasitfchu0uMYWP1Mo YeBZOhhPIre9dFr9Wym3Kho7ZWw+Q2pyeYEAS9yTLDZ1XZYgCDwftpIejt3j9vp8mXZQP97S7qI LgdG9DPCGacAvBew0KIZIV43o6bnBnZUGq/6xFe/ag83oPzULsZHCXg9a97UG8CV1zlLEhjZpKN 35raSKTm2l+08HjAiCrRJ9rgFhLtb+Dr9yMjFmSaxWZ70aDRWIwY38VyZZdVZZ9I1JcNfqI5Uix Fz2PLSfjldQgB7BH2XIsc/UVKuhKLK+4BYbcs0RLW25QMvsLnUTfPqyjWxAmVsBNqA4J6Q1tjvM B1mJLrJ/+o1G75Nw0fwnaewVOpyuAsfGrfkiIEtYShbpvpM7wlmoIdBH00pv9i9AAuRFrnjR4Hg 2wpKjjsYqA9IdOdpF74AwPwsuuF7+qkc7656bTwALxCV8Y9A6NV/T4ZgLxFEvtR7JccaxkCsp4i VbFLQVhyxaDSpVG5NgRaPIQRmBdyd1sfg== 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-integrity@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