Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03D29606A31A for ; Tue, 1 Dec 2026 15:20:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256 header.s=default header.b=C57eXEid; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=WCDMeqWV Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id D13A480F7B; Tue, 1 Dec 2026 15:20:21 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 8vMg5ldCaLT1; Tue, 1 Dec 2026 15:20:21 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org 3303080F7D Authentication-Results: smtp1.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796138421; b=IafBNhOJLqVUSqrc+D0qspD+wr9EPY51HihtbdjwKZ9XpdDQ8bzkIb0Rtijvw1hB31RX bcvmZbxehZR8LAUGoVXYE4Obq6CgfZp2yTYjVh9fNEeaF/zoZMJ9HPNkialLXjNDDFqje fUh2gFzSg8wXqePlPBiT1aOfFAFLjcmna/le+LKZK6nRAIE9YfErQrYGQBrnm/oxKiKnZ ffp1cq9YC9tTOG6bRcbnMnU1LcwVDsB+ekUAlI3yECx3TOpJUimKk2KGqlU1MSgXJtJN5 /EvXF+SPM69/vCXa1c7w7gM8a9xrcCV+icdCMgjMzZ8mmMJjhGHLV9YKrakOy+ZisFw== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796138421; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received: DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-IronPort-AV: X-IronPort-AV:Received:X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-ExtLoop1: X-IronPort-AV:Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding: X-BeenThere:X-Mailman-Version:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:Errors-To; bh=K6V4jK1SB0N7TG6JhpZ07Mrmkrq+CxlsfDrsWuHTdWA=; b=BUFeJnLYov5OL7zfzWO62rTMsIjNwnoCM5QwvpaCS8XkNyWwJ1uuy25MZVqxbGnqDMVP Uw7fy10RowMiBC5Bbs1nbgKgYd0bSoGnk6JnUxdOTHcTJWaYjhao5nJ1xrf0R3XUH1+Ip y/htnu8Owk3RrkDkVt+JGCUH5Xod0cx83VYYW9YTIP12/OJ4GXDisCN8XZNjzPRNV/b3K oHH1CA6bTUs3sMAheZD4ajcJkSHwLV1eELAYdBP8zPmQSC8ClS4E2k2efQkIElSVlUVtu T2EKdSn6LVj6LJ1T1v3L2U/K28vt9+zfxSZ6gl7JPoBWEOS0c5q94adLJt0kZuwuweQ== ARC-Authentication-Results: i=1; smtp1.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1796138421; bh=K6V4jK1SB0N7TG6JhpZ07Mrmkrq+CxlsfDrsWuHTdWA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=C57eXEid+cjlFZOSgSdpa0F0Da0UAn3jt2UY+D5w1WLqUHR01As+lRpANxGVdm4iX fKJYU+07Bpi3RC+0G2M2pKjLUNQiVWm7fLLjkpS7AC6vOuekAEoY+vL0zFP4oEzli8 uVD/fwXYZPjvpeT+iA/GIaCk32A/5WkPtWrNgXITTzpAcN2+oZFCgz6gQYcAB0i6SG F8MIBgtWsQyAum7Fm4WOyieP/IWiQWv3l+KaeuN3p6Ni/H67b5JBOsqz3RDsBYD6y3 J+ieb+C7zuBaYj3KGF/F8bJxHjqIaTbzwXiTZPQUqV+v3eZzuz1J3Zeks5xT3tycQh eBvlzvxFk9OuA== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 3303080F7D; Tue, 1 Dec 2026 15:20:21 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists1.osuosl.org (Postfix) with ESMTP id 5E783A0F for ; Tue, 1 Dec 2026 15:20:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 456B840111 for ; Tue, 1 Dec 2026 15:20:19 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id peE8H61ZtTMX for ; Tue, 1 Dec 2026 15:20:18 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp2.osuosl.org D393840079 Authentication-Results: smtp2.osuosl.org; arc=none smtp.remote-ip=198.175.65.19 Received-SPF: None (mailfrom) identity=mailfrom; client-ip=198.175.65.19; helo=mgamail.intel.com; envelope-from=aleksandr.loktionov@intel.com; receiver= Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=WCDMeqWV Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by smtp2.osuosl.org (Postfix) with ESMTPS id D393840079 for ; Tue, 1 Dec 2026 15:20:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796138418; x=1827674418; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=K6V4jK1SB0N7TG6JhpZ07Mrmkrq+CxlsfDrsWuHTdWA=; b=WCDMeqWVsJI/CH65jAHhMUKnvrEnumxj8WmHhTZmnr5GHhNOFoxcTp5D OBCIfY0XDXHwp2oiyto/Rw5V13hDqKx1mnzS/bAdEAx/r1rewqdvHs5nF yqgm11Mq29g+JAUO4gIdjaxxNfTnAzLs0OQIXYQLAAfgOZTxgUjQvJxJ7 sCX/Tfls0RfHebk37xr59HDOcyVhbzoCM0+IZ7e7Jncb4/NO6tpd595Hv ZOSC9NQWEJjLZtWCMQCgczFIGVGGLy51IE+VH0P14SNfhZKDRfX398Iwj 68/EhVXmnfPovqmSTbsUMwEVu1YBQai7FbNVOQA4d746fG7t8SFLsXvo6 g==; X-CSE-ConnectionGUID: 1wScrTwaTq2mrbWvxZEHpg== X-CSE-MsgGUID: yXHf4WXWRzSlNtMBGUruzQ== X-IronPort-AV: E=McAfee;i="6800,10657,11983"; a="5093138" X-IronPort-AV: E=Sophos;i="6.27,245,1787036400"; d="scan'208";a="5093138" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 07:20:06 -0800 X-CSE-ConnectionGUID: 4cWB8DlPS3GPGz4r4pfbfQ== X-CSE-MsgGUID: 3/suiswdQhCVO8f2p1kcwA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,245,1787036400"; d="scan'208";a="13112567" Received: from amlin-019-225.igk.intel.com ([10.102.19.225]) by orviesa004.jf.intel.com with ESMTP; 01 Dec 2026 07:20:05 -0800 From: Aleksandr Loktionov To: intel-wired-lan@lists.osuosl.org, anthony.l.nguyen@intel.com, aleksandr.loktionov@intel.com Cc: Przemek Kitszel , Tomasz Lichwala Subject: [PATCH iwl-next v4 1/2] ice: parse external Root of Trust capability Date: Tue, 1 Dec 2026 16:20:01 +0100 Message-ID: <20261201152002.52045-2-aleksandr.loktionov@intel.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261201152002.52045-1-aleksandr.loktionov@intel.com> References: <20261201152002.52045-1-aleksandr.loktionov@intel.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-18.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_NONE,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Reserve the external PQC Root of Trust capability ID in the shared libie capability list and parse its value into the device capabilities. Firmware reports 1 when an external Root of Trust (eRoT) controller is present and 0 when it is not. Keep a separate bit for an explicit value other than 0 or 1, so the flash path can reject an unknown answer instead of reading it as absence: an image the eRoT turns down leaves an erased flash bank behind, so guessing is worse than not flashing. Set both bits with |=, so a duplicated capability entry cannot undo a verdict already taken from an earlier one: an invalid value always rejects the update, and a mix of 0 and 1 keeps the eRoT checks enabled. Reviewed-by: Przemek Kitszel Reviewed-by: Tomasz Lichwala Signed-off-by: Aleksandr Loktionov --- drivers/net/ethernet/intel/ice/ice_common.c | 7 +++++++ drivers/net/ethernet/intel/ice/ice_type.h | 3 +++ include/linux/net/intel/libie/adminq.h | 1 + 3 files changed, 11 insertions(+) diff --git a/drivers/net/ethernet/intel/ice/ice_common.c b/drivers/net/ethernet/intel/ice/ice_common.c index ac46f21..54e2b01 100644 --- a/drivers/net/ethernet/intel/ice/ice_common.c +++ b/drivers/net/ethernet/intel/ice/ice_common.c @@ -2503,6 +2503,13 @@ ice_parse_common_caps(struct ice_hw *hw, struct ice_hw_common_caps *caps, case LIBIE_AQC_CAPS_TX_SCHED_TOPO_COMP_MODE: caps->tx_sched_topo_comp_mode_en = (number == 1); break; + case LIBIE_AQC_CAPS_EXTERNAL_PQC_ROT_PRESENT: + /* sticky, so a duplicated entry cannot clear an earlier verdict */ + caps->external_pqc_rot_present |= (number == 1); + caps->external_pqc_rot_invalid |= (number != 0 && number != 1); + ice_debug(hw, ICE_DBG_INIT, "%s: external_pqc_rot = %u\n", + prefix, number); + break; default: /* Not one of the recognized common capabilities */ found = false; diff --git a/drivers/net/ethernet/intel/ice/ice_type.h b/drivers/net/ethernet/intel/ice/ice_type.h index 4b6ed42..1ff69f7 100644 --- a/drivers/net/ethernet/intel/ice/ice_type.h +++ b/drivers/net/ethernet/intel/ice/ice_type.h @@ -311,6 +311,9 @@ struct ice_hw_common_caps { /* Post update reset restriction */ bool reset_restrict_support; bool tx_sched_topo_comp_mode_en; + /* External Root of Trust (eRoT) controller present */ + bool external_pqc_rot_present; + bool external_pqc_rot_invalid; }; /* IEEE 1588 TIME_SYNC specific info */ diff --git a/include/linux/net/intel/libie/adminq.h b/include/linux/net/intel/libie/adminq.h index 839114d..df42f5b 100644 --- a/include/linux/net/intel/libie/adminq.h +++ b/include/linux/net/intel/libie/adminq.h @@ -175,6 +175,7 @@ LIBIE_CHECK_STRUCT_LEN(16, libie_aqc_list_caps); #define LIBIE_AQC_CAPS_PENDING_OROM_VER 0x004B #define LIBIE_AQC_CAPS_NET_VER 0x004C #define LIBIE_AQC_CAPS_PENDING_NET_VER 0x004D +#define LIBIE_AQC_CAPS_EXTERNAL_PQC_ROT_PRESENT 0x004E #define LIBIE_AQC_CAPS_RDMA 0x0051 #define LIBIE_AQC_CAPS_LED 0x0061 #define LIBIE_AQC_CAPS_SDP 0x0062 -- 2.56.0