From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) (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 3B319428470 for ; Tue, 21 Jul 2026 06:34:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784615672; cv=none; b=NKdY5+/lcXPM9WTHZFCYW4m4A0ocbch4GdcVXPK0yhaV3j+qhK/iZMDzXg1NgQcF+wqJSdG1oGA7lYazE3ChWPlqOZLeEkgFegcGBEUO7VeuUh4ro83IN9RR4v4KPLgc3kOctbgqgjoSCxscdwCFuIaZs8XjVGfcw0E/HZeY4C8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784615672; c=relaxed/simple; bh=CuR5q0hG/ysY6cDljY7+7vdeuayA1M3MknJPwWSlmnI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RbWGbmpzyhDOdYVmlqqoruWXfUr/PIJrAxQyyyUSoSk+PqHuf9u3+uPThLBHmXVa92aRm+YLUKW+tEpEyBwr2TXyWEDCGkLSYQjS9miH8N1KLYw5Y/Eah6zeWO7LbTjrkec6tlHOhEn3n8t8yFqjqYvECv6HduMKG0xgtYJvmdM= 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=QbhARNiu; arc=none smtp.client-ip=209.85.216.41 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="QbhARNiu" Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-38dc4553f62so9269204a91.0 for ; Mon, 20 Jul 2026 23:34:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784615666; x=1785220466; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=Qpio1MA//9AANLCzTxy+rZBs26K9YsY9hJV884pqdVI=; b=QbhARNiuqzABgVH5uyyQxIQ6PqIS2awdcowz7+cYZWFgLmQCMzKDQUg+QLptRpDDF9 /F5s7QE88eK8nGgCs5LYEvSo3VCotaBu2q3TbsmErsIveUeOLHlOf2jz+1EwT+ebalD7 8+jMhAJmnNfsmfHUng1HKScAIFjh4Imis6WNztTjzXcRTrdYfGMSJoHTFFCgefrBMuDr UnshuyjcvR10IEWyAWYHSOwD44aCLOjD/ky8zhfC/PKAQScSB1auM23jaj/rBEGNkq1b F4NbJHTr/RO8x5VN54YJOtpJjRha/MvSqmSwbe6aM0SdpAoamurIJSXaqygvi/ca8y4J r4mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784615666; x=1785220466; h=content-transfer-encoding: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=Qpio1MA//9AANLCzTxy+rZBs26K9YsY9hJV884pqdVI=; b=VehN21tjXrt9r3l5SNTvbrBNHP33MOUfJedDXsWGGW4csMSZ+TeVC2oCZBf6lpXeZZ J5d/BHbpwbYVJAY1w78eGQk5ryt6OsUK8U1iSxBSddJlHkBDJiVseEDyVOUHmHAqghSm t0IjO1iLakTb/5/H5pyL6Q90Mn2jBiSuR3+Z+03RuZdPdGP6ddYIY30Bobq6BeaxUqH3 tpS2DaABGj3fSB+g5KGL1b4jmKn+jobScEL54fEYxSeRs6iu5bOIPabaHgAY4SXy2bmj ajlxHqV38pQcpqJ2sCw0Xn6P44Lw/cISTxGUSqis5Gm4svp+a7Vt8jY7DaEMXMs0sXYO 56rQ== X-Forwarded-Encrypted: i=1; AHgh+Rqzl9FaOyACMixPeilTF7vv/85THBoTSewOX4FIqHMdPExiNwFo9ozSPxZHbdSTbizukZafFggVrEvRUEY200CFVsRXGBo=@vger.kernel.org X-Gm-Message-State: AOJu0Yz5z9cUkhKFdY3XcMRLsAY0AkPcTWtOYql9pFPagYBFu10aIvgE M9GYSelRXc86U3JISgeDaCf3fvWZniptMK184eX+01aTNLZWvP3EGiM= X-Gm-Gg: AR+sD12QHBkO48Y/g4C25qBA13gqKz0uWx4LuKokY+epq1X8np5SEPFFwou8hft+MLB i/8oUEmd6qPs+50fv0BW/zXIFOQAKnlaObibzHEwVmvuOU51NkCkHZNRRqtPtkrJeKWY1HquZi9 uV2rXukORHYCy1276sryi1vRxsh9ogHa8jCK6NDjSgbm6NqAolcF09gvDwT5E6qDVz0fOoanoQX v0J/ogz1dGT6AGmlEDNxq1PIf1ox1/d7ZpZYYiQB6Wz9rdEzmO+SuRgLrLU8YxOYa3PzuvxF5f8 TawJkdu2pR0Ns9CYKnWBdY3V68ozCpy62p1kWfbvXx8B3T/LJ/2zYuxopNdIhaZ//gasiHxo9Nb mQ6nLl6Bx65OiPqJ7YM1cUlRCDwSm3uMjKFlKWTDmXySUnS48Ey9GOHTARJBGYI3/TanvktiE/4 d+1NYqTU9+5csIreSw8uT+QA/kbPlJCCTavCTozYqNh+Vbw0SH X-Received: by 2002:a17:902:ce87:b0:2c9:bf82:dd11 with SMTP id d9443c01a7336-2cf34895290mr177684225ad.7.1784615665937; Mon, 20 Jul 2026 23:34:25 -0700 (PDT) Received: from at-Standard-PC-Q35-ICH9-2009.. ([27.60.20.188]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3142a1dde81sm73608386eec.21.2026.07.20.23.34.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2026 23:34:25 -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 v3 0/2] Add Apple T2 NHI device links Date: Tue, 21 Jul 2026 02:34:05 -0400 Message-ID: <20260721063412.11588-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-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 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 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 | 105 ++++++++++++++++++ drivers/thunderbolt/tb.c | 51 ++++++++- 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, 168 insertions(+), 39 deletions(-) -- 2.43.0