Message ID | 20241125090719.2159124-1-wei.fang@nxp.com (mailing list archive) |
---|---|
Headers | show
Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2084.outbound.protection.outlook.com [40.107.104.84]) (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 C5492188907 for <imx@lists.linux.dev>; Mon, 25 Nov 2024 09:23:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.104.84 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732526605; cv=fail; b=BGewgiukdeeC+cwzwHJKz7sGaq9r0IUGw8GCTWzF2AwW0pHW9rpiuqUjLfMZ233atePxFp5cBYdNBJZC2I3vsOYWA4qDaa2+/MG/d+9HGNuZdY5QLgbCBrpMoqvfqD3Sv1VskmtxDhjwLKIMqkrSo7+8mJNQa1HigxxujO7/mEQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732526605; c=relaxed/simple; bh=/Qny5A9R2CmLvbleijfcq5XA4IfpcXsukSqzTJfxnuU=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=Uye221jM/FaN1n3ZkLvcypl4G3W1b/UBnZPP08joylWceW8GJKwOnRSZC73aPEAPeLmwAuqOcz24TxQNugYw3bAM9Z0X5qlwdtgG6XDkL0wWD79SRirD+JhHFr0hEeG06BWXUOp43hHnq7hpEfhPDrU1G1tBNhE378dedAPihYg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=icfpMaBF; arc=fail smtp.client-ip=40.107.104.84 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="icfpMaBF" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=P3IipYllezQuGv5xydkDuXVBEkmhYT0cFIPODaWrj3kbwqsCQfoEUODTJEIxIYcekHNV/Zy5sfgYr8xN3UgHyU6fslhxBWUYzw/jmdwUIF97iehEfdzotLZQpxyaG3+tI4hgUkZMymrUM5SXhbidZJNR8PdSLN9fIQMbYUTora0RzZnU7uAgzOaHJYpORNnanK398Gcse4hZP2R5HxF3Kyxal6gYjsYefDJsHr8C4lg6tLS/pjY4GfGVUizmGwbus9pvDy5m6ZZ6LSlmVUcOQuF32t/+4hwsJ96mpfQ/SX1aMWYf1DlU9Qf5IfHHWpEVqsNKS49Ot+dcewMDjxoS9w== 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=RAUBVZcPbR8GlwOUt/D+s80x3JRgnncUcWkatDXV51E=; b=H3OfmsX6w8WjlOyQeZPLr1I4Ah0E9IWNMP4yRCtBrklL/aNXycG1Zwy/qBtKkJiyPRcR69q2GDbAB5niV4GOZYL3iu6xVYeYEP+2hhGIFZwXo3xzIJ9icHxnDaYeM5fR9186tRnC8I+XZkgx/0p0BYTrHLEGL3hFd1FuO424NkxJYZuLViRbd52jffMs0mS8vCfxsWPMiBKDbCpnVoZV/dvuOfYhYXT3MLnszXX5UzQsYsvJLoDyMS+aTnC9JXFP6ZlYBZqD0no/FQhz9ZWBO4h+ajGfKT8+52Owu1BwYdd7hJizaC9xmVwNEcsfZ+YilYNVC5UTLAOQJUauR/z+jw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RAUBVZcPbR8GlwOUt/D+s80x3JRgnncUcWkatDXV51E=; b=icfpMaBFEu/1YO2lXUOp4htWZ7m9jBAlCCqltw1HC62fqTMfAO3J608ulAkyn6e6yeGY/lMaWcdg+Mv+PrTkYobNhfHqUh3EoiJbP2TXNBvtIspDURymsshyvhZWw1H6grmwzurgbRuIM7LRcPMwEZ0h4x8zRLu2k3acmCGJiCDcGOSf/TexiqnYXCiEVe46znnYSnIN+gWDUZ+1wXvcO+ce55tZb28iSE5qZFbpDHUCXIi/ssrpebBpSuGuCxoAhySDRnkQOys5w1k3JkhFVzaA5NWUAgVRKFZKVbgd2xne1WRgtXcqlHAglGziAAQEZ6XnwI9gg7RAa/lBCjXVcA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB8510.eurprd04.prod.outlook.com (2603:10a6:102:211::7) by AM7PR04MB6773.eurprd04.prod.outlook.com (2603:10a6:20b:dc::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.18; Mon, 25 Nov 2024 09:23:20 +0000 Received: from PAXPR04MB8510.eurprd04.prod.outlook.com ([fe80::a7c2:e2fa:8e04:40db]) by PAXPR04MB8510.eurprd04.prod.outlook.com ([fe80::a7c2:e2fa:8e04:40db%7]) with mapi id 15.20.8182.019; Mon, 25 Nov 2024 09:23:20 +0000 From: Wei Fang <wei.fang@nxp.com> To: claudiu.manoil@nxp.com, vladimir.oltean@nxp.com, xiaoning.wang@nxp.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev Subject: [PATCH v3 net 0/2] fix crash issue when setting MQPRIO for VFs Date: Mon, 25 Nov 2024 17:07:17 +0800 Message-Id: <20241125090719.2159124-1-wei.fang@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2P153CA0041.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c6::10) To PAXPR04MB8510.eurprd04.prod.outlook.com (2603:10a6:102:211::7) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: <imx.lists.linux.dev> List-Subscribe: <mailto:imx+subscribe@lists.linux.dev> List-Unsubscribe: <mailto:imx+unsubscribe@lists.linux.dev> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8510:EE_|AM7PR04MB6773:EE_ X-MS-Office365-Filtering-Correlation-Id: 91c4b6e8-fdac-422a-67a9-08dd0d32cd67 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|366016|52116014|38350700014; X-Microsoft-Antispam-Message-Info: /97qIh9IISdUg5yd3R7yVF21st8oq6ooo36gNohF6NGSWRo+gsBgfKowJPN80x7AsnAtB6+YJBMApgpzLMSnYIZ5E4oKFGyk5wVBveM9xoQD/q5DHawDL8F6cNtI6zfvDqr1sofLwiNtEJ/VxY67kRyrdtObdjhziBZo2IWgeqKTgh0wEt497rb4gAXFeDHBD02jLdMaALmgDaZDXNUzQbycQqjv/UvNNTph52+LIBDJyiQWuEjan0C3RBnJswe7B4WwguiqaqrDn2PXzcykFBm8pwb9jGK1jB/WWn9aLJE4imwWFz3SliZ/Mu8PIxTNm6hlVjfkOUX+8Fgad2dXZwHt1aq7/njSaXivnYsdVNpV7WmuzJXWfA0YZH0nepVrWJhNi/jZUICanQ7JCkRDwgMovRr1b9+GHmrjuOWBb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.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(366016)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2R2PyHxk6l0pvtezWaUeQK6Lm330MwyAx9AwsMc3yPjG3myUbw0j5ybpU75aCzaNbOAam7wdt0lAdUu/ef3IM430cOtcsvW3eOo0C0jK2TNT5pOvElCFol91q8KA9Sm5yIABzsJIrb/ierHfzvvl5rSghvui7Z9vFyCVHS4Kz0RT5JXipcMAk44xZ861/8lr7oMXVUm+sE4LnGmiDenWhxli6Y197iKN92b6/YRO33dvmKxyjtJwesoP+ZVUn7oDM2SieUvCh9kMx6WuHBtWqGDbW9QTChH8dWUO1pdsxL5CNiNfqNXI+gpV1XJ1B+fWWtUJELgaL4JVrUp4R8cSfqarhX28azqQX8XskrgFo4ESMYNpfXJaOuTVHbweFRPoRNKkFETtpt7zVphU6GMGuvZb0rU0d6WqjAtbrQwrhcnSkCNM1pciQhC3BbxlvxeoeGLiqO8iWp/xidF+WvKSHOpVdHTKNR0SD4Vk8ZrKo+JmtzFNGEd+qrd6PRgbOCvWPLIBRABdU6HbD1NZuLhWeGYehHJNVW6zsqBFHiYQN4AP+FNovbcykMiiX+MV4rqQ2xgXs0tf7icmYeX55p9NHsDM1gjzx2hlYDH5JH9twqMVWSSI2ci97thuj3bOH6UYSXJoZu72SMQNLgOLVS3yrfi+x+LCkfsdLZ0YatYGsspH0viuJZn9YkUspakI5iMVoRo3IyR/aYhafUW89xLUJlHD9DmlhPOcG733wtjjFXVRyGbm6jgIGXSQ5uP38ezKyBvQP7722HJvPDdbNLOwxe+vcGwrigB/cdyuLBPn1/VHtHOqjJXESaROsrbXb0hY0SAyCogGboAI60iX/ND+XJ3Kd86pyIeCwyMV20qIZFCfAuKS76U/wVhW3O9lVfEh6ksNMhGuDvYT0U/VTF6kf/bG6kwHqFmqgUnSD613ppGFN61LgLisy4zIMLHhd9vaZGpwgjb9mBzqxtpokU4AXlZ51BWDJTGeeCJDaYpUmbw7RwCHiJllFEUqb2VuwEfh4sKp8akVYeVxwXzwhJ0KOAZa0Cuwi9Ko5wdiN+p1tm3K5jO9mpjArStNzTWpl28TvdMmNzSpQAUoIxZGdZkp5ol6/AtlfDNqinI/IVHaIcaLmi9uL3ITguHti9+SYVGN8ZMdDxCHFQYPI7xUYtxG31VHNGSDzqpvZDHnBvw3oR5OlDp4fpx8Fvy7v81bc0jcCWRibq57INkkF9L7nW1qkF12D3ob8ExFf+0W8tVQf2whMtBmGofeq0UxPK2jRbFRzVGtlspTMuK72U+hWAbtVe1UvHCdEAlRXb3vhuSP1Y48prY3MHeTTab/9c9sHGEHpWHmijfbIJLVlEaZVVm1QexxNnpXSANDcqG1qtBRCJecWsVcLdceIzN9KjM5K9EGBO8r8q3X78A4FoF77ngn3q0TVNKBJyc/d8TNtf77xp1vgmfwWzwy4iZoyDHDBojH60k/wR+hJ86/K2EiMzXKucwE1rzhWQrpbRoc33ncx/ZU99bpdti8at+9BNTfId0Thwp/Okn+/tqB6hfd9keHTvJPUdhN/K+k2yJhmZW57g10vDhjoGlvKsN6EniO+H6w X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 91c4b6e8-fdac-422a-67a9-08dd0d32cd67 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8510.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Nov 2024 09:23:20.5342 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rmsSK9xHzp9UPK2GpObjSkvd/7vfp5xr4KdAeD3twpYT0GDo1MY3z1zNGJft2I1KiLfJHHAM8rynI6C2m0ZOrw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB6773 |
Series |
fix crash issue when setting MQPRIO for VFs
|
expand
|
Hello: This series was applied to netdev/net.git (main) by David S. Miller <davem@davemloft.net>: On Mon, 25 Nov 2024 17:07:17 +0800 you wrote: > There is a crash issue when setting MQPRIO for ENETC VFs, the root casue > is that ENETC VFs don't like ENETC PFs, they don't have port registers, > so hw->port of VFs is NULL. However, this NULL pointer will be accessed > without any checks in enetc_mm_commit_preemptible_tcs() when configuring > MQPRIO for VFs. Therefore, two patches are added to fix this issue. The > first patch sets ENETC_SI_F_QBU flag only for SIs that support 802.1Qbu. > The second patch adds a check in enetc_change_preemptible_tcs() to ensure > that SIs that do not support 802.1Qbu do not configure preemptible TCs. > > [...] Here is the summary with links: - [v3,net,1/2] net: enetc: read TSN capabilities from port register, not SI https://git.kernel.org/netdev/net/c/8e00072c31e2 - [v3,net,2/2] net: enetc: Do not configure preemptible TCs if SIs do not support https://git.kernel.org/netdev/net/c/b2420b8c81ec You are awesome, thank you!