From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=198.175.65.13 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796085164; b=LrnIMealwPEQ3uStJ7C0A5WFj0YPiSzt6YrLmmyVnpxUM+iOsue/0fLpdKgqiaqJxS2O qjHhLdTmDzZ4UsVR/TzcvVQhWKNjb0PmBmvKCat8ilSUHJIBRELKSkUv+nSvphZPQCMTh VZHFCKPowiASHMr4EaenPC+md0Rzb8NZ8TH6Mu+lDRHGhIFWrq8Jm/xCGWw4hkmLuIQAw O86WpRYmvp+v71mshE8RSv+f88iD3L1L9Pl8i0jBE6FRpnwUH8bQ+j6v/TbM7G4xNM2Hn 7dAfGn7FdEqKbFwa7eW/AnFojKFW/sriKZjdOfqNq35rHQoQ430345dWFO7CsXKEV/A== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796085164; h=DMARC-Filter: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:Received:Received: Received:Received:Received:Message-ID:Date:User-Agent:Subject:To:CC: References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-ClientProxiedBy:MIME-Version: X-MS-PublicTrafficType:X-MS-TrafficTypeDiagnostic: X-MS-Office365-Filtering-Correlation-Id:X-MS-Exchange-SenderADCheck: X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam: X-Microsoft-Antispam-Message-Info:X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-Exchange-RoutingPolicyChecked: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-MailboxType: X-MS-Exchange-CrossTenant-UserPrincipalName: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; bh=mKzQKfk8KOcGGL9Ii+h/BQQ775mYSuH5g38uCsoBG3Y=; b=zA5Bdl8k5UiQX/7NFWH4s2x8juOZRjdW1C9NxjZkpfgT/wPhlzeIF97eiaVI2H3l00dM 1IJrjP/RwTXi6Ate6SQrnPythRN7zGWfVoy8lRGn3AUXLcaZT4CQoO5e3QeWjrEENaF9w gtfHWO2DKJBZnMw5i46CjFmzU8LtkKVgu7jHPLMCaMl/q7tK6h/in4JvMCb0DhxS9r4fW HxIYEo/cS5eMus9SV2vvNvtGHroBHRj+9w8I8nOxcA43N6Jz7+1hHe6/J/wGE+Vxvf/PX 36Aco90Ks6Z4NXqwUqNFumUb8DbF1DQTwvRSFFISNuB7ciSqHxzZOB8BIe7LxrBnMqw== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Djgl416D; arc=pass header.oldest-pass=0 smtp.remote-ip=198.175.65.13 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D331D606A31A for ; Tue, 1 Dec 2026 00:32:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D331D606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Djgl416D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796085163; x=1827621163; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=mKzQKfk8KOcGGL9Ii+h/BQQ775mYSuH5g38uCsoBG3Y=; b=Djgl416DucuXKxlYCYmhZ2ER4QABgJg20JDoLAFGETHgih09deEh9z+i p7tE/Cguexp6Qjm44yFYSqtZvYMirgU9XUlzFLm/dyTlHOdbGcrlJwIM1 Y/nQNj3B+PQBlbAUwzO6pHm+faOIzTrmUWUPMWefu6B5TCu+v3cX48NGW O3bXwfNMsbdv+7GDLfB+w57hwUjqM/ud73SCMrNeOAIaPuyempeMuAHbE 5t04b04FwXzSi/ZWYpYxBXHvw4YuJ5/9x0gvHc50xfS6AUkFz3UnaOisv KFruT4eCTjkPKAKjpYY6x3MpyyeVE0YKDPuNu5SMyPajGjVNHkxv0Gjbe w==; X-CSE-ConnectionGUID: Zhir7x2/SBWLduAw/jwVTw== X-CSE-MsgGUID: d0t/N3BdTBC2duGWGpz7pw== X-IronPort-AV: E=McAfee;i="6800,10657,11982"; a="4846370" X-IronPort-AV: E=Sophos;i="6.27,243,1787036400"; d="scan'208";a="4846370" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 16:32:42 -0800 X-CSE-ConnectionGUID: am/8olD1Rd2D9E29LwOI7w== X-CSE-MsgGUID: 9Ydwrzh0SIyJ3mhnm81qJA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,243,1787036400"; d="scan'208";a="13256438" Received: from orsmsx901.amr.corp.intel.com ([10.22.229.23]) by orviesa001.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 16:32:42 -0800 Received: from ORSMSX903.amr.corp.intel.com (10.22.229.25) by ORSMSX901.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Mon, 30 Nov 2026 16:32:41 -0800 Received: from ORSEDG901.ED.cps.intel.com (10.7.248.11) by ORSMSX903.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57 via Frontend Transport; Mon, 30 Nov 2026 16:32:41 -0800 Received: from BN1PR04CU002.outbound.protection.outlook.com (52.101.56.10) by edgegateway.intel.com (134.134.137.111) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Mon, 30 Nov 2026 16:32:41 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=nI9fK+b+ANiFyaxUGiI4MrR2Xs1hyNqEmjTsdRBLCHz1AmlbcT5gjlsCi5vgOl3qWCF0VNtvyghceGOIVNO2z5AFF/vzlOTHvNi1Flq1737Z1KZeX8VOEcAXJz3IfkfUOANvEgFid8JyaQ2rrKw2+YvUDsUL265avmPMHOAWOl+L5ML4kbObeptdMSmAExfTbq6J63GkhfxXrmE9sDWACmL/iEub75W3GvSCDsO4wh4A9sTmdHPu9Hmv7ZINn7yp0jfsdaM9Dy/Visksc3kAB4dnGzs7+dkYduK7X7bjqomArItu2vJefYeayLRddTrQBB8b4Ya1gQLFM1Eg+BL3BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mKzQKfk8KOcGGL9Ii+h/BQQ775mYSuH5g38uCsoBG3Y=; b=tdUkO4AdCyEyYkpNlbgpQz/qGQiAHK8cQjzl/ssSKILLY31MDapx3lZei8YnEeTRiu1j5P7O1O5XrfMX9JB0L9Wn5+La3cbpLCW0A5ff/lboQ8rh6llKvG5YTkAuKtM06UrUdaMvaQGcSLGWWWLMrIrlV7SVlHcLYuCO+YO3IH7bZ2QhSCY34StfZjusZlpxf3unCypeOffMnmKTj4O0sbuvGgbpr1Q3elslCokILaIt46w6TdaU6f8zehj9QTfhFT7iEA9gibUUb+iaJnlDyiX4SCqWveBBmIkMIANyIr23GoOy+6TsNuzBv0yTYg1As37f/dDo5V4QIITNJxEskw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB7710.namprd11.prod.outlook.com (2603:10b6:510:298::9) by BY1PR11MB8008.namprd11.prod.outlook.com (2603:10b6:a03:534::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.10; Tue, 1 Dec 2026 00:32:36 +0000 Received: from PH0PR11MB7710.namprd11.prod.outlook.com ([fe80::dc6:ac78:d884:137b]) by PH0PR11MB7710.namprd11.prod.outlook.com ([fe80::dc6:ac78:d884:137b%3]) with mapi id 15.21.0662.012; Tue, 1 Dec 2026 00:32:35 +0000 Message-ID: <7a34b30f-ca23-42ec-931f-d1991f4d82b9@intel.com> Date: Mon, 30 Nov 2026 16:32:31 -0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net 1/5] ice: restore DDP state during PFR recovery To: CC: , , , , , , , , , , , , , , , , , References: <20261125224428.4126195-2-anthony.l.nguyen@intel.com> <179573400258.3135.12405084770076028462@kernel.org> Content-Language: en-US From: Tony Nguyen In-Reply-To: <179573400258.3135.12405084770076028462@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: MW3PR05CA0029.namprd05.prod.outlook.com (2603:10b6:303:2b::34) To PH0PR11MB7710.namprd11.prod.outlook.com (2603:10b6:510:298::9) X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR11MB7710:EE_|BY1PR11MB8008:EE_ X-MS-Office365-Filtering-Correlation-Id: eaa945a4-09d3-4bae-9f74-08df4f429879 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|23010399003|366016|1800799024|4143699003|5023799004|11063799006|261009223027099003|22082099003|18002099003|10067099003|261026121527099003|261021123027099003|261021135927099003|261026140227099003|261021121427099003|56012099006|261026135527099003|261022075727099003|261028144727099003|261022115727099003|261021133027099003|261102123227099003|261021130227099003|261022105027099003|261022113327099003|261026130827099003; X-Microsoft-Antispam-Message-Info: HRVLdtYfivtmbYyyTaT2yTVuRPEzFhMawDKeLb0hf1ptAZpiL5Llhp46rae40/sh/lhi7u+TgEZYZYfafNixp3NLVcxUvWDibagbwa0TBfcns0enV/yImc+iWtpbtw/iQ6RhMLYGXDfxA9gr7vwaPYeSZkrTDM+gc/BuNj9mOtbK5H4aSF0W3OuaQEotT1MouKDGxcamRDYD90XGnbonlKwZsLPaIpvJD/grlibVOfcqRs2IvMH/Y29niqdbFImQcBaKu9YuEncwe+hYmo8361/zKnBc+WZO3FiECNOJVcFSovKYdxw676kEu5Vuosrzr+9jO2t4KM9/MqseGmNEgg1oJm8VSYAZVw7LAL2RKwZVqxF6Pi4+DRmngOxXojI6xW369tBxiHBLEkm7IWBC1INhGo0Rx9rORfVw5TBNvcSZg1ZKXp2hPyV2BQYA0PlNwyZ8l3VRgWEq4mJxWm0ffN8DGH5cDZva2wHoBrAgvSKYXTNstREf+9+Y76GP12mv1HMDOFzzYR6X5hEZhOZLGDvtoDKth+FbfTlHXb7RGRdqElrcJa9h3T+uYkbVNbdlI1Zko7YYIEt5fhJ9FAqshG8nSmRukQ5BHH5AhCqeXGA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR11MB7710.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(23010399003)(366016)(1800799024)(4143699003)(5023799004)(11063799006)(261009223027099003)(22082099003)(18002099003)(10067099003)(261026121527099003)(261021123027099003)(261021135927099003)(261026140227099003)(261021121427099003)(56012099006)(261026135527099003)(261022075727099003)(261028144727099003)(261022115727099003)(261021133027099003)(261102123227099003)(261021130227099003)(261022105027099003)(261022113327099003)(261026130827099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TUZZeEpTMXFWRkI5TkloczErYk9vZGlacEk5M1RBN3VUTUFhT3ZNSkpJQzFQ?= =?utf-8?B?aTcvTWJNT3JsZFg5SjZyaXJhYzl1bE15Wkx3VWFYNFJpNG9vdXlCamtSYnRz?= =?utf-8?B?b1F0blBrMTU2cnVJaVU3ajcyUmQwNTBTWmZKcDlZNTNqajl3M0JsZlhtTXF6?= =?utf-8?B?aUdYS1lOeEhGSkcvRXVGQ0xTbENSSUF6MlBZMGRkR0xSTWc2bjFiZ21vS3B6?= =?utf-8?B?N0o3R1N5MGxzakVaeTMxb3cyNkRoVjFON0VOUGZRQUxWbytuaUdWUVljNHZS?= =?utf-8?B?anpVeW5WK2tpMEU4YWgyNVZqdmpkVmtqQ3hucS94dmpjb2ZIbDZTZWhDOFB4?= =?utf-8?B?cjNWVmI1dVBwZWYxSzZKbGVuS3dkSTdxeGVnUVNkSUdzT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PWnZ2d2YrZ2dqTVlXT2EyOStUZW9valB0NUErb0Vw?= =?utf-8?B?bXFxLzZZTWxKUFl0Q0ZOVlg3TERKdWlIMUFsbVJMMERFdUhNWmx1SnI4Tysx?= =?utf-8?B?dS9lNmZkNUFPQ1I3S1ZjVVRLSHA0b1RidG80WldQVnZENHZnbEpsakZHbzhD?= =?utf-8?Q?w59Qp15w75DpByS8=3D?= X-Exchange-RoutingPolicyChecked: diTIoEiIy/Hn8JOY2593FDz7KgtWvPd+BBDHcyANXV5C4JNaU6sGphfp+m5EEXLRrsJxea8OR3kaq8eMvBLuW/9UbkDCURJt5N5IfUFmk9Bfp7axQsrcbDn4OWtvdl4SD95v2uSlcGD4cHbTHuGZ9cRT+5wwNYWdy/EvvdAlVnPci0JNseuDuBOmNyzunE5+wyQ04n2xCra1gCn52VwLF+nA/A+8Igsys7f2fDpZyBhydjMaU6eInprY9PjWIu4hXaiLDL74AIZkWg5gMhjEf70bHBEiDfUyzBNe12e6Xw9bA+wx383racgaNvZ/mWMai5p4g4jSRAyUolZfbIOl2Q== X-MS-Exchange-CrossTenant-Network-Message-Id: eaa945a4-09d3-4bae-9f74-08df4f429879 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB7710.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2026 00:32:35.7069 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: v0Qvm1JDE3obQ5Nsmm+8eHUups3V5YvYXWBJ3QqguBrOTTNY68cgo+gz7l5FajWsOjfjWLjInlQXRLpIHjDtNGBsa1qjZlc698/VccYlcP4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR11MB8008 X-OriginatorOrg: intel.com On 11/26/2026 3:00 PM, netdev-bot+sashiko@kernel.org wrote: > Thank you for your contribution! Sashiko AI review found 8 potential > issue(s) to consider. > > Critical: 0 · High: 2 · Medium: 2 · Low: 4 > > If you believe none of the issues are legitimate, please reply to each > issue of Medium severity or higher and explain why the AI is wrong. > If any of them are legitimate and you plan to respin, please let patchwork > know by including "pw-bot: cr" as a separate line at the end of your reply > (one such reply per series is enough). > > - [High] Every PF reset (PFR) now throws away the driver's record of > offloaded UDP tunnel ports. > - [High] The fix for 'in-flight rebuild dereferences pf->adapter after > ice_adapter_put()' covers only ice_remove(); the probe error-unwind… > - [Medium] The adapter-wide rebuild_lock covers the whole of > ice_rebuild() for every reset type. > - [Medium] The new PFR step replays only ice_dvm_update_dflt_recipes() > (ice_main.c:7703-7712). > - [Low] The new PFR branch of ice_rebuild() (ice_main.c:7691-7697) calls > ice_log_pkg_init() after a failed ice_init_pkg() and then jumps to… > - [Low] ice_init_pkg_hints() (ice_ddp.c:2098-2145) resets hw->tnl before > rescanning package labels but never resets hw->dvm_upd. > - [Low] rebuild_lock serializes only the two ice_rebuild() call sites. > - [Low] ice_remove() now calls ice_service_task_stop(pf) > (ice_main.c:5389) before devl_lock(), ice_free_vfs() and the rest of… Hi Aaron, Many of these seem plausible (and the other patch: https://lore.kernel.org/netdev/179573400458.3135.13972640700220102761@kernel.org/) Could you look these over and adjust the patches as needed? Thanks, Tony > -- > > ice: restore DDP state during PFR recovery > > This commit adds an adapter-wide rebuild_lock that serializes > ice_rebuild() across PFs of the same adapter. On PFR it reloads the DDP > package from the cached copy and restores the default DVM recipes. It > also stops the service task early in ice_remove(). > >> diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c >> index 47c6798c97e8f..f858473f6f532 100644 >> --- a/drivers/net/ethernet/intel/ice/ice_main.c >> +++ b/drivers/net/ethernet/intel/ice/ice_main.c >> @@ -659,7 +659,9 @@ static void ice_do_reset(struct ice_pf *pf, enum ice_reset_req reset_type) >> */ >> if (reset_type == ICE_RESET_PFR) { >> pf->pfr_count++; >> + mutex_lock(&pf->adapter->rebuild_lock); >> ice_rebuild(pf, reset_type); >> + mutex_unlock(&pf->adapter->rebuild_lock); > > [Severity: Low] > Does this lock cover every path that touches the shared package and > recipe state? Probe still downloads the DDP package and updates the > default recipes without rebuild_lock: > > ice_probe() > ice_init_dev() > ice_init_ddp_config() > ice_load_pkg() > ice_copy_and_init_pkg() > ice_init_pkg() > ice_download_pkg() > ice_post_dwnld_pkg_actions() > ice_set_vlan_mode() > ice_set_dvm() > ice_dvm_update_dflt_recipes() > > A probe or rebind of one PF can still interleave its package and recipe > AQ sequences with another PF's PFR rebuild. That is the interleaving the > commit message describes. The new ice_dvm_update_dflt_recipes() call in > ice_rebuild() also runs outside the firmware global config lock. > > The firmware global config lock already arbitrates the actual downloads. > A second PF normally gets ICE_DDP_PKG_ALREADY_LOADED and skips > ice_set_dvm(), so the remaining window is narrow. > >> clear_bit(ICE_PREPARED_FOR_RESET, pf->state); >> clear_bit(ICE_PFR_REQ, pf->state); >> wake_up(&pf->reset_wait_queue); >> @@ -704,7 +706,9 @@ static void ice_reset_subtask(struct ice_pf *pf) >> } else { >> /* done with reset. start rebuild */ >> pf->hw.reset_ongoing = false; >> + mutex_lock(&pf->adapter->rebuild_lock); >> ice_rebuild(pf, reset_type); >> + mutex_unlock(&pf->adapter->rebuild_lock); > > [Severity: Medium] > Is it intended that this lock also covers CORER, GLOBR and EMPR > rebuilds? The kernel-doc in ice_adapter.h only mentions PFR: > > * @rebuild_lock: serialize PFR recovery across PFs of the same adapter > > For EMPR, ice_rebuild() sleeps first, and now does so with the lock held: > > if (reset_type == ICE_RESET_EMPR) { > ... > msleep(ICE_EMP_RESET_SLEEP_MS); > } > > All PFs get the global reset OICR, finish ice_check_reset() and then > queue on this mutex. Their 5 second sleeps and full rebuilds now run one > after another. With N PFs, the last one finishes after roughly > N * (5s + rebuild time). > > Can this push fixed waits past their timeout? For example, > ice_devlink_reload_empr_finish() calls ice_wait_for_reset(pf, 60 * HZ). > It could then report "Device still resetting after 1 minute" while > recovery is still in progress. > >> /* clear bit to resume normal operations, but >> * ICE_NEEDS_RESTART bit is set in case rebuild failed >> */ >> @@ -5382,6 +5386,8 @@ static void ice_remove(struct pci_dev *pdev) >> return; >> } >> >> + ice_service_task_stop(pf); >> + > > [Severity: High] > This covers ice_remove(), but can the same use-after-free still happen > on the ice_probe() error path? > > Once ice_init() succeeds, ICE_SERVICE_DIS is cleared and serv_tmr is > armed. If ice_load() or ice_init_devlink() fails after that, the unwind > does: > > unroll_init: > devl_unlock(priv_to_devlink(pf)); > ice_deinit(pf); > unroll_dev_init: > need_dev_deinit = true; > unroll_adapter: > ice_adapter_put(pdev); > unroll_hw_init: > ice_deinit_hw(hw); > if (need_dev_deinit) > ice_deinit_dev(pf); > > ice_deinit() only sets ICE_SERVICE_DIS and ICE_DOWN. The service task is > not sync-cancelled until ice_deinit_dev(), which runs after > ice_adapter_put(). > > A service work item that is already running may be in > ice_reset_subtask() on the ICE_RESET_OICR_RECV path. There it polls > ice_check_reset() for several seconds. That path does not check > ICE_DOWN, and it then reaches the new: > > mutex_lock(&pf->adapter->rebuild_lock); > > ice_rebuild() only checks ICE_DOWN after the lock is taken. If this PF > held the last adapter reference, the adapter has already been kfree()d > at that point. > > Should the probe unwind also stop the service task before > ice_adapter_put()? > > [Severity: Low] > Is it safe to stop the service task this early? Through > ice_clean_adminq_subtask(), it is the only thing that drains the ARQ and > completes ice_aq_wait_for_event() waiters. > > A devlink flash update runs under the devlink instance lock and blocks > in ice_aq_wait_for_event(), for example in ice_write_one_nvm_block(): > > err = ice_aq_wait_for_event(pf, &task, 15 * HZ); > > If the device is unbound while a flash is in progress, ice_remove() now > sets ICE_SERVICE_DIS and then waits in devl_lock(). The flash no longer > gets its completions and fails with "Timed out waiting for firmware" > once the timeout expires, which also delays removal. > > Before this patch the service task stayed alive until ice_deinit_dev(). > Would stopping it just before ice_adapter_put() be enough for the > problem described in the commit message? > >> if (test_bit(ICE_FLAG_SRIOV_ENA, pf->flags)) { >> set_bit(ICE_VF_RESETS_DISABLED, pf->state); >> ice_free_vfs(pf); >> @@ -7682,14 +7688,27 @@ static void ice_rebuild(struct ice_pf *pf, enum ice_reset_req reset_type) >> goto err_init_ctrlq; >> } >> >> - /* if DDP was previously loaded successfully */ >> - if (!ice_is_safe_mode(pf)) { >> - /* reload the SW DB of filter tables */ >> - if (reset_type == ICE_RESET_PFR) >> - ice_fill_blk_tbls(hw); >> - else >> - /* Reload DDP Package after CORER/GLOBR reset */ >> - ice_load_pkg(NULL, pf); >> + if (!ice_is_safe_mode(pf) && reset_type == ICE_RESET_PFR) { >> + enum ice_ddp_state state; >> + >> + state = ice_init_pkg(hw, hw->pkg_copy, hw->pkg_size); > > [Severity: High] > Before this patch, a PFR only called ice_fill_blk_tbls(). Now > ice_init_pkg() also calls ice_init_pkg_hints(), which does: > > memset(&hw->tnl, 0, sizeof(hw->tnl)); > > and then rebuilds the table through ice_add_tunnel_hint() with port = 0. > Does this throw away the driver's record of offloaded VXLAN/GENEVE ports > on every PFR? > > Nothing in ice replays the tunnel ports afterwards, and there is no > udp_tunnel_nic_reset_ntf() call. The udp_tunnel_nic core therefore still > thinks the ports are offloaded. When firmware reports the package as > already loaded, the parser boost TCAM also keeps matching the old port. > > First, ice_get_open_tunnel_port() returns false. ice_fill_adv_packet_tun() > then fails tunnel switch rules with -EIO, and the ntuple and FDIR tunnel > paths stop handling tunnels. > > Second, when the vxlan/geneve device is removed later, > ice_udp_tunnel_unset_port()->ice_destroy_tunnel() hits: > > if (WARN_ON(!hw->tnl.tbl[index].valid || > hw->tnl.tbl[index].type != type || > hw->tnl.tbl[index].port != port)) { > status = -EIO; > goto ice_destroy_tunnel_end; > } > > It returns before the original boost entry is restored, so the parser > keeps classifying that UDP port as a tunnel. > > Third, the memset runs without hw->tnl_lock and without rtnl, while > udp_tunnel_nic calls set_port/unset_port under rtnl. Can a concurrent > ice_create_tunnel() memcpy() from hw->tnl.tbl[index].boost_entry while > it is NULL? > > CORER/GLOBR already reset this table. PFR is much more frequent, > though: tx timeout recovery, resume, PCI error resume. > > [Severity: Low] > ice_init_pkg_hints() clears hw->tnl but not hw->dvm_upd. > ice_add_dvm_hint() appends at the current count: > > if (hw->dvm_upd.count < ICE_DVM_MAX_ENTRIES) { > hw->dvm_upd.tbl[hw->dvm_upd.count].boost_addr = val; > hw->dvm_upd.tbl[hw->dvm_upd.count].enable = enable; > hw->dvm_upd.count++; > } > > Nothing ever resets dvm_upd.count. Does each PFR now append another > duplicate set of DVM/SVM boost hints until the 48-entry table is full? > > ice_set_dvm_boost_entries() would then issue a package update for every > accumulated entry on each later real download, while holding the global > config lock. The final hardware state should not change. The cost is > redundant firmware updates and longer lock hold times. > >> + ice_log_pkg_init(hw, state); >> + if (!ice_is_init_pkg_successful(state)) >> + goto err_init_ctrlq; > > [Severity: Low] > For most failure states, ice_log_pkg_init() prints a message ending in > "Entering Safe Mode.", for example: > > dev_err(dev, "The DDP package file is invalid. Entering Safe Mode.\n"); > > This path does not clear ICE_FLAG_ADV_FEATURES the way ice_load_pkg() > does. It jumps to err_init_ctrlq and then logs "Rebuild failed, unload > and reload driver". The log ends up with two contradictory messages. > > Should this either fall back to safe mode like the CORER/GLOBR path, or > avoid the safe mode wording here? > >> + } else if (!ice_is_safe_mode(pf)) { >> + /* Reload DDP Package after CORER/GLOBR reset */ >> + ice_load_pkg(NULL, pf); >> + } >> + >> + /* PFR can lose DVM recipes after system suspend. */ >> + if (!ice_is_safe_mode(pf) && reset_type == ICE_RESET_PFR && >> + ice_is_dvm_ena(hw)) { >> + err = ice_dvm_update_dflt_recipes(hw); > > [Severity: Medium] > Is replaying only the default recipes enough here? ice_set_dvm() > programs DVM in four steps: > > status = ice_aq_set_vlan_mode(hw, ¶ms); > ... > status = ice_dvm_update_dflt_recipes(hw); > ... > status = ice_aq_set_port_params(hw->port_info, true, NULL); > ... > status = ice_set_dvm_boost_entries(hw); > > On the usual ICE_DDP_PKG_ALREADY_LOADED path, > ice_post_dwnld_pkg_actions() is skipped, so only the recipe update is > replayed. Port params are reprogrammed later in ice_rebuild(), but the > DVM/SVM parser boost TCAM entries are not. > > The commit message says PFR clears package-derived firmware state. If > so, wouldn't the boost entries be lost as well, leaving the recipes > without matching parser state? > > ice_update_recipe_lkup_idx() also does a get/modify/add read-modify-write > on default recipes that the whole adapter shares. Before this patch that > happened only at package download time. Now every PFR does it while > other PFs may have live rules on those recipes, and rebuild_lock only > serializes against other rebuilds. > > Can firmware reject this update on an in-use recipe? If it does, the > whole PFR rebuild now fails. > >> + if (err) { >> + dev_err(dev, "failed to restore default DVM recipes: %d\n", >> + err); >> + goto err_init_ctrlq; >> + } >> } > > [ ... ] >