From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from DM5PR21CU001.outbound.protection.outlook.com (mail-centralusazon11011041.outbound.protection.outlook.com [52.101.62.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 68563204C3B; Thu, 9 Apr 2026 18:20:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.62.41 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775758855; cv=fail; b=tXJBcdMGocZA4aSIL9iUyq6DrKvoYDT9C8Hp4oM8+h/6P80q2cAHNQ8T/mOPn2FWFeLL7SCuW2EjiyROVxTNm2reyrAE0phbwumWXl/kounA5/6OYGgbGDst+n7F7gg5AuRbjGoAOHUwefUETldyprMaprVm7mI/qvMEI9IJUr8= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775758855; c=relaxed/simple; bh=w4ZfGkIvl1wl7Nvz09gdIRD3edH2YAKH8KGCm4EqdAk=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=sjmXhvBZNe1Qh51ai96Rv/46ibaHD8EgRDea5vZydTmVhZhIs8+hQOCb+FqvKENWEl5rQU40b+F7sD/yd7LgZiCzvYljPyhSSjEYBBuggQubN/H4QrhQafClMEKeDbWBTMM8wz1w5/uhKjMzcRyVOm5k0ZKIN+nAPeUGk1NcsJE= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=afcFUtFj; arc=fail smtp.client-ip=52.101.62.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="afcFUtFj" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=TC5+a7HeH1uUl9T5uPo9xMjYOzwci11bG8Gsngvfru5WwdKRS3Bs44B42mzPpVwOFSNp7KpEN9S/0x4jRGa+IF7iMqRtJIU9gCqrZbCiemTNDPT6Eoi6WfPu48VUgTgyyz6Pb4m2S8KxmuahGNpfFKvE66zFOAhIKgwR9vhAK0vKoAYMiq3CcaJSXbZNFv7fESyhWSKyzhEO2ODcqtfMr3u05SPE4KXfcvCNTHfZ49wRXkxCvZwP81GH4Gp0ZxIHZYrhxxZY3LhHAsgdyWGmxYWfYSRbyb09YqNfxvGaLM7JiDQpcBTO79VtoIUHuTQp170sbZOy7WFGmP2/CxTgcA== 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=TbrJDvN1NnrYFKYsJ/AxsfAQAziBTbM8z+FaNjFkWpU=; b=ABq7/MNl/iEdR49TPsxmtXc133m0dRLYbVCIAMMHK+fB3ExJakWd3dsQP0W8Y4XOPIuOwn4N6UqxeHOMZLOqG3cohrX4BBOFpgw+g7IFVj6TlD8KBAufT2Bd3I5hj7iV36nhIuLFewAv9HrGqKn6Ok1rZrCgxcyhjdVT/HrQ4AQb7RxrHcz4QcaSYKn0CVl1JP+9CSYg0y1hY+XGIwtOKOBc5I2PApL5YQphMltQ2iYLgylW677wQrNj9jIzRhME4iH80+6HOaqM84p4oTxjtsoeUr24jIVnndwrcotVGvuTmXYI6kQLN4LWV8z2kMPGPNviuadPvyTgvrHh7/2b+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TbrJDvN1NnrYFKYsJ/AxsfAQAziBTbM8z+FaNjFkWpU=; b=afcFUtFjT1EJOdPLR0Gz/OlNVg1KKzVpdsXLD7+pjho/KBuo0wqnkzTqmypiHV6gQ3xV7NNJXUF2d89x46jsXEW4BpK9ski9OO69dVcbmEahcvAKrZDQ0BoGVDjgU0aufSrMawqf9MhO5LKaUmn4DZ6vangDStsAEF19XlrqbSvEMY45cb8P/J6LglAGVo2H/hPRytyGMSGjYQx9h/E3ihxdGdeH1YVB3jLvdX34mWjWeHdiTQvCfNY2rPL2uAsQvoa1yKI7uehZcjbRLQK831RBbCoYWoeqdzOzjKsnDVgJGgXR6fWeN7ApeJM7fj8h0vOK6NzcK18jRG7Xhg7iaw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from IA1PR12MB7541.namprd12.prod.outlook.com (2603:10b6:208:42f::13) by SJ0PR12MB7457.namprd12.prod.outlook.com (2603:10b6:a03:48d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9769.18; Thu, 9 Apr 2026 18:20:49 +0000 Received: from IA1PR12MB7541.namprd12.prod.outlook.com ([fe80::4445:7716:8576:62c7]) by IA1PR12MB7541.namprd12.prod.outlook.com ([fe80::4445:7716:8576:62c7%5]) with mapi id 15.20.9769.018; Thu, 9 Apr 2026 18:20:49 +0000 Message-ID: Date: Thu, 9 Apr 2026 21:20:45 +0300 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next 0/7] net/mlx5: Improve representor lifecycle and fix work queue deadlock To: Tariq Toukan , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , "David S. Miller" Cc: Saeed Mahameed , Leon Romanovsky , Shay Drory , Or Har-Toov , Edward Srouji , Maher Sanalla , Simon Horman , Moshe Shemesh , Kees Cook , Patrisious Haddad , Gerd Bayer , Parav Pandit , Cosmin Ratiu , Carolina Jubran , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Gal Pressman , Dragos Tatulea References: <20260409115550.156419-1-tariqt@nvidia.com> Content-Language: en-US From: Mark Bloch In-Reply-To: <20260409115550.156419-1-tariqt@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: TL0P290CA0003.ISRP290.PROD.OUTLOOK.COM (2603:1096:950:5::18) To IA1PR12MB7541.namprd12.prod.outlook.com (2603:10b6:208:42f::13) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR12MB7541:EE_|SJ0PR12MB7457:EE_ X-MS-Office365-Filtering-Correlation-Id: ebf0376e-e0d6-4e8b-1d9e-08de9664b9d9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|7416014|376014|56012099003|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: 39GJNWoAGpPkS8mjmqLAVG56Q8SeE9ClRNrUX5r1G3ECQiNbZq/Tu6p67UoABQ9HzRsVwd/BDuHNPa44uAMzH5B8HAgttquYcLsVtHtHLJtE+u0lEiL46/FF575W+9Vhs2ptmoH43iIuAkVwVOJeBEnOxkjAgXi1jfWauuNcZFa1LzkrcDHWDXS2ECX3JdGvFwXl1iR7MmrIrMdHFg5NUMrJ9Yjdgsyp6s1vxLFymcnddktTySzNKa8ZMTuY3NgmmGez/FN8cqn+w2qMNQCoWpz/AVpP8P+8FNCv+LFt10m99rHH3mJvPHoHQpJcwXz8T5H0+WwP5z/UGPfgV43BtLIHwbRgx2mtIid+4xkIvf54E5fPKRQ7KtnqN8zgzlcACREa3i2fcZiMzw53PsA9DlKm9nHL/BO71nf9tQQtTfjf7IgisKQhmaZXn0vjW4Ek04inpqwXYemRZd5xFkqfZNQwACqfOh0B8o3hvQ5f2RjJJT5AWZUBoSPEALg1VPokWJADHjbp5DcTzvwmHSX5KQZtpI0reUxMIBWQBrFdFk9f+NgwcXshoXCOpyd/AmwhE7g3PGoy9ZAfU/PqKMqA8rr4/q8GeQj8MysJ1wdJlKv5mcWg0Mrdoao1Nv31TEXAjSP0PtVBkeCAFgk3vGjGfaEjn/0ZnDuclWSyQTLnbnXIIGIWHXgRnZNFfl5seYePaq4ORUaClKeqc89VGCxeCRm+HAB5wUBK/HFcYSwc5rg= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:IA1PR12MB7541.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(7416014)(376014)(56012099003)(22082099003)(18002099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cDEvYnBBZEpLTlRBRCtqdjE5K2J4WVdZZ2ExQ2F5M0U4aXhlUmJrcjl2N3hR?= =?utf-8?B?VU5oZ2pqTXBvZ01mRWhSWk9GU0JvdkM2bGNPM2kyR09GUzdzb0t4V2JPQ3c4?= =?utf-8?B?SjZ0Y01zT3oybnJYVW8zT0h6NEd4enVHS3RrNWYyQ3ZydWZwUWx5Z0E5VkFD?= =?utf-8?B?M3lkTVBBakhLam1BTUhwYllWOWpaZnFnQ0NsbHFqdURGdzBJbUlHRkpGeU41?= =?utf-8?B?OWF4NGl1T0d5cFpzZkE3a3U3QU1XQnNrb0I5Qjg0MFBDTllhTEZ0WnF4MGZh?= =?utf-8?B?TDBVOGZqWW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a2RzV2h6Sk9E?= =?utf-8?B?S3RqTEVSN2FaWWtnZWgwSmpsbWtVTU5HWlcxRjBvZ0RPTHNzc1FyckZ0UzBp?= =?utf-8?B?R3BwZzJDMDdrbTJ1WG80eUhiQ3N6VFVXNFdnTk0rOVRIZnQ1R0lrQlRYU3oy?= =?utf-8?B?R21FTjdtbGF2RFNNU1ZXZ080OXFKYWtFU0g2RDFaVzZVMnRsLzkrcXRuRE4v?= =?utf-8?B?bWdlQSswcTJTSGlOOEF3OE45ZENtc3FKa0Q3ODFaZ3A1SnJ6LzdRZz09?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: ebf0376e-e0d6-4e8b-1d9e-08de9664b9d9 X-MS-Exchange-CrossTenant-AuthSource: IA1PR12MB7541.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2026 18:20:49.3777 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +fgp5rIOt5mQCTM61sea+tfzOwJmqCrOJY+pqaKJqNyqmRZG/g1DAgZt4EiF+bVLGP69utQ0kWfzUEWsH5Gkdg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB7457 On 09/04/2026 14:55, Tariq Toukan wrote: > Hi, > > See detailed description by Mark below [1]. > Sashiko flagged a few issues in the series. The main ones are in patch 4 ([PATCH net-next 4/7] net/mlx5: E-Switch, fix deadlock between devlink lock and esw->wq). These are known, and I currently consider them acceptable trade-offs rather than bugs. That said, reviewers/maintainers may reasonably see this differently. Before sending a v2 focused on patch 4, I’d appreciate feedback on the overall approach and direction of the series, please see sashiko's comments here: https://sashiko.dev/#/patchset/20260409115550.156419-1-tariqt%40nvidia.com I've provided my commetns on each patch on the mailing list and included what was found by sashiko. the patch series can be broken into 3: [patches 2/3/4] – workqueue deadlock: During teardown we must ensure all pending work is completed. However, since the teardown path already holds the devlink lock, we cannot have work items blocking on that same lock without risking a deadlock. [patches 5/6] – reps block/unblock state The interaction between mlx5_core and mlx5_ib (load/unload), eswitch mode transitions, and auxiliary device handling makes this particularly tricky. Several conventional locking/synchronization approaches were explored, but they either reintroduced deadlocks or created even more complex issues. The current approach is admittedly not the cleanest, but it has proven to behave correctly in practice. [patch 7] – switchdev by default The long-term goal is to have switchdev as the default mode for DPU environments. Flipping that behavior globally in one step is risky. This patch provides a controlled, incremental way to move in that direction, allowing validation in real deployments before making it the default. Mark > Regards, > Tariq > > [1] > This series addresses three problems that have been present for years. > First, there is no coordination between E-Switch reconfiguration and > representor registration. The E-Switch can be mid-way through a mode > change or VF count update while mlx5_ib walks in and registers or > unregisters representors. Nothing stops them. The race window is small > and there is no field report, but it is clearly wrong. > > A mutex is not the answer. The representor callbacks reach into RDMA, > netdev, and LAG layers that already hold their own locks, making a > new mutex in the E-Switch layer a deadlock waiting to happen. > > Second, the E-Switch work queue has a deadlock of its own. > mlx5_eswitch_cleanup() drains the work queue while holding the devlink > lock. Workers on that queue acquire devlink lock before checking whether > their work is still relevant. They block. The cleanup path waits for > them to finish. Deadlock. > > Third, loading mlx5_ib while the device is already in switchdev mode > does not bring up the IB representors. This has been broken for years. > mlx5_eswitch_register_vport_reps() only stores callbacks; nobody > triggers the actual load after registration. > > For the work queue deadlock: introduce a generation counter in the > top-level mlx5_eswitch struct (moved from mlx5_esw_functions, > which only covered function-change events) and a generic dispatch helper > mlx5_esw_add_work(). The worker esw_wq_handler() checks the counter > before touching the devlink lock using devl_trylock() in a loop. Stale > work exits immediately without ever contending. The counter is > incremented at every E-Switch operation boundary: cleanup, disable, > mode-set, enable, disable_sriov. > > For the registration race: a simple atomic block state guards all > reconfiguration paths. mlx5_esw_reps_block()/mlx5_esw_reps_unblock() > spin a cmpxchg between UNBLOCKED and BLOCKED. Every reconfiguration > path (mode set, enable, disable, VF/SF add/del, LAG reload, and the > register/unregister calls themselves) brackets its work with this guard. > No new locks, no deadlock risk. > > For the missing IB representors: now that the work queue infrastructure > is in place, mlx5_eswitch_register_vport_reps() queues a work item that > acquires the devlink lock and loads all relevant representors. This is > the change that actually fixes the long-standing bug. > > One thing worth calling out: the block guard is non-reentrant. A caller > that tries to transition UNBLOCKED->BLOCKED while the E-Switch is already > BLOCKED will spin forever. All call sites were audited: > > - mlx5_eswitch_enable/disable/disable_sriov hold BLOCKED only around > low-level vport helpers that do not call register/unregister. > > - Inside mlx5_eswitch_unregister_vport_reps the unload callbacks run > while BLOCKED is held. The one callback that calls unregister > (mlx5_ib_vport_rep_unload in LAG shared-FDB mode) only does so on > peer E-Switch instances, each with its own independent atomic. > > - mlx5_devlink_eswitch_mode_set acquires BLOCKED, then calls > esw_offloads_start/stop -> esw_mode_change. esw_mode_change releases > BLOCKED before calling rescan_drivers so that the probe/remove > callbacks that trigger register/unregister see UNBLOCKED. > esw_mode_change re-acquires before returning, and mode_set releases > at the end. This is an explicit hand-off of the guard across the > rescan window. > > - mlx5_eswitch_register_vport_reps holds BLOCKED only while storing > callbacks and queuing the load work. The actual rep loading runs from > the work queue after the guard is released. > > Patch 1 is cleanup. LAG and MPESW had the same representor reload > sequence duplicated in several places and the copies had started to > drift. This consolidates them into one helper. > > Patches 2-4 fix the work queue deadlock in three steps: first move the > generation counter from mlx5_esw_functions to mlx5_eswitch; > then introduce the generic esw_wq_handler/mlx5_esw_add_work dispatch > infrastructure; then apply the actual fix by switching to devl_trylock > and adding generation increments at all operation boundaries. > > Patch 5 adds the atomic block guard for representor registration, > protecting all reconfiguration paths. > > Patch 6 moves the representor load triggered by > mlx5_eswitch_register_vport_reps() onto the work queue. This is the > patch that fixes IB representors not coming up when mlx5_ib is loaded > while the device is already in switchdev mode. > > Patch 7 adds a driver profile that auto-enables switchdev at device > init, for deployments that always operate in switchdev mode and want > to avoid a manual devlink command after every probe. > > Mark Bloch (7): > net/mlx5: Lag: refactor representor reload handling > net/mlx5: E-Switch, move work queue generation counter > net/mlx5: E-Switch, introduce generic work queue dispatch helper > net/mlx5: E-Switch, fix deadlock between devlink lock and esw->wq > net/mlx5: E-Switch, block representors during reconfiguration > net/mlx5: E-switch, load reps via work queue after registration > net/mlx5: Add profile to auto-enable switchdev mode at device init > > .../net/ethernet/mellanox/mlx5/core/eswitch.c | 25 ++- > .../net/ethernet/mellanox/mlx5/core/eswitch.h | 15 +- > .../mellanox/mlx5/core/eswitch_offloads.c | 204 ++++++++++++++---- > .../net/ethernet/mellanox/mlx5/core/lag/lag.c | 46 ++-- > .../net/ethernet/mellanox/mlx5/core/lag/lag.h | 1 + > .../ethernet/mellanox/mlx5/core/lag/mpesw.c | 12 +- > .../net/ethernet/mellanox/mlx5/core/main.c | 26 ++- > .../ethernet/mellanox/mlx5/core/sf/devlink.c | 5 + > include/linux/mlx5/driver.h | 1 + > include/linux/mlx5/eswitch.h | 5 + > 10 files changed, 267 insertions(+), 73 deletions(-) > > > base-commit: 9700282a7ec721e285771d995ccfe33845e776dc