From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2D93445CE3 for ; Mon, 11 Nov 2024 07:39:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 22DBE4067A; Mon, 11 Nov 2024 07:39:14 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2050.outbound.protection.outlook.com [40.107.93.50]) by mails.dpdk.org (Postfix) with ESMTP id 79B7240E1E for ; Mon, 11 Nov 2024 07:39:12 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pd+A4ur6DYHkQQUS4bcCoiLryMfdO220I0qFy72+OCsuZPu/phb+5DoUc5KAgMYiusfpGYX4BSwxMAyLwRT674AlmEhhyNKlB/lm2+V7uGntvtjNmX/RztZGu8/J19CMD0DtRJrut6CNZkHBX5UAerpjgaOZVcjn2B7ES7GLMJoMqy6A0alW6ARef8r58EJB8TzDWITrvjMJKSrKXdpbbPmgxSUWTwjW25s6mM1KMq/NFAsnE/rYIxg/5l9TBWtCdexVRy/MGHzstChZVlazdvwE/GgBUTbXUfHxwnfx+Yk9gwAYaXo/oiBj5q+T4e02qEQ90RrwSG5hmdjusiZS+g== 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=7uqGUlbxw7irEqeNM1I5LFmnZqpX0AgVjtO7uBkI/aM=; b=L2JQOSkuAsCQOlU0n/nqQsG/fODRoh3MARJwNFGwqWiKd6p7gqCfze45Vguti6jiYsDZ25unxQ7mfH2gl5pFfYLDZYn460L4GCYpocma8KiKTnE6uTJoKua3tRUc0hKuhjctEJAQsyzQZuckNQYhkHpogyZ4kcT2wyrBPtOZJrI9u13WSfyvsE0M1XFe8NSzA/xfOv7criMaUcKkySTg5rpIxg8X/NDVY1mS9HVPXUcQJQCvasZy/VlE8gTIMTpC3KJuZOpinpvxa0x0ukMW9yK/9fy2I+RlpDsbU/SmMgwCR1xwQ3z/gwE3n7Xm8wtadFmLpQj6AoHO9lkoHEN51w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=huawei.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) 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=7uqGUlbxw7irEqeNM1I5LFmnZqpX0AgVjtO7uBkI/aM=; b=exmMMsx0VJCKffOUzn44PcSNGKTToS7olXeT/GDFAVX74vgzMs4lCQf24wynKYbKphi7Acu6xQ8NwvDTITVdjQF6abLiPxk0QIa0ceDFNYfw1Jgz4WpDeZmnYTy84aNtuwzr5hriIDpbLen4lrLxy1hI2pyM/p+zbdGyWidWF9vZbvJO/jeRYvZlHtuHjFTVbnHGDKt+7XcmyRWZfgnZdO77fJaZIui4M5e5FPueTDZB1XT4ooJScEVqMKFuycUBIri1OGSV8T8ihlDztKTrx5DZPCNbzBhatTP6jG9oydibLkUqP21h6kQ86U3NtSDG2QiquzoEJnSjEx/HvoU4Rg== Received: from SN1PR12CA0060.namprd12.prod.outlook.com (2603:10b6:802:20::31) by IA0PR12MB8301.namprd12.prod.outlook.com (2603:10b6:208:40b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.25; Mon, 11 Nov 2024 06:39:09 +0000 Received: from SN1PEPF00026367.namprd02.prod.outlook.com (2603:10b6:802:20:cafe::1f) by SN1PR12CA0060.outlook.office365.com (2603:10b6:802:20::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.27 via Frontend Transport; Mon, 11 Nov 2024 06:39:09 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by SN1PEPF00026367.mail.protection.outlook.com (10.167.241.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.14 via Frontend Transport; Mon, 11 Nov 2024 06:39:08 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sun, 10 Nov 2024 22:38:57 -0800 Received: from nvidia.com (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sun, 10 Nov 2024 22:38:55 -0800 From: Xueming Li To: Chengwen Feng CC: , Jie Hai , dpdk stable Subject: patch 'net/hns3: verify reset type from firmware' has been queued to stable release 23.11.3 Date: Mon, 11 Nov 2024 14:28:23 +0800 Message-ID: <20241111062847.216344-98-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241111062847.216344-1-xuemingl@nvidia.com> References: <20241111062847.216344-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF00026367:EE_|IA0PR12MB8301:EE_ X-MS-Office365-Filtering-Correlation-Id: 998f65bb-acc3-4ffa-a584-08dd021b8b93 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|36860700013|376014|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?4hFs5pubEiYVaMVP2Mzj33ZtVvCbXpV67IuXpG3EqYiWw2kRiWU0KByrKEp9?= =?us-ascii?Q?owrLiRfR7sRivsG+5eyl61n+FLnMvKjgsh/RSSvfkFq//eGZ9ZMpQvpd4nk6?= =?us-ascii?Q?6/Z+0sg4Z4u9dXzeHNSJVo63N1EaVi2sJFRXsC2gRS8C0C7OK8WZRPp1rFxc?= =?us-ascii?Q?lDLOqzjhmyEbYrnyMonw8Dw1kSTxJS2Qb70nUke9uHTnTLIWfHxeIm/MOQcF?= =?us-ascii?Q?+1Qbme56zv9pXIDnibLOphKOp/adsXktpgI3lfR9unkoQQutfkZuS6Bq++mK?= =?us-ascii?Q?JPZUjc9zDI3Xb4jKR3tt1vSm16LoDSGRdgNCswG3HCLfnoCIT2gVYb1ElCRn?= =?us-ascii?Q?jqIQFzQR3wpbNGX8O8/dI/YgdMG8zEp/Ug2Pr3rUrvq1m4Mg7gLtHCUWx9NI?= =?us-ascii?Q?BCVia2Wj+UaOa2FAycIJkoSb6XFzXrnogFHwZ1W9FnZNjFI/2/d7Y2XP4D1f?= =?us-ascii?Q?lrc+8vPIPcQJkbe6ylUv/Y+PuHR5CU/txg/AphuBIxE3bBnebfP5fQfkH1Jq?= =?us-ascii?Q?aWgmVQF5qm9jZpeEBaqsMmKtPoMimrWGLSm7dFqyPdw/240zS1smHZ8d5c+m?= =?us-ascii?Q?JJGlwIOVOfVR+/FIY+dBU59K5owmjH5A/OLjsbFFTbR2IH3q/IcCexkn7JTL?= =?us-ascii?Q?i3MiY9fLQcqn+PbWNP3MZnkaY4q+InPwkFmfAb4vtz33tehX1xr6U51Sv0Hx?= =?us-ascii?Q?JFb7ycTzYcMtsT487d3YsNTx32d/K0H2dMKDPW8mRAb9/S6ex8aHomaucq2y?= =?us-ascii?Q?u3FSa4jBvkodNK6pLcQ7qb5f1/uxdO5UvNV83Aj01X6D1HDTdoqnhr7nuDR7?= =?us-ascii?Q?Uy8lp6BadpALPtzRewgt/Wj3nBPkDx6BoJE0qlLz8QlDdFTCinKiT8JwF68H?= =?us-ascii?Q?lre0IwoBQKdEZW1PoIVcn560055jA8/22fofOIIvDXH9hYbD/M3FfOUO40L8?= =?us-ascii?Q?6C8WloSN7Nx6w2r6jkZd5KzZpKwnndBb689riLwIcLUKma69q7WOT2u0jqui?= =?us-ascii?Q?XWFyBkvKl5s1/cFUU9rHeQmjHVMYT48pDAmZp/yj1spNrua06vYny9ITUtSk?= =?us-ascii?Q?nfNBvFRq9/yuZnIKZiuBImLG6UaUKSRc9PYDc3iDkDmvYg9k6Ctuvxapp8wt?= =?us-ascii?Q?kHX69UzFQ91D59sTpaSvuawA3kJxWz2nKtVsHatVKCpzOZoa2odt/onGOsbG?= =?us-ascii?Q?5oboqydarjO0WkuIyz0hWptqi5GACA1vpc9FxtnSuN23Cp23ljPjHXnI5d6z?= =?us-ascii?Q?PVHdkVrnkN0Cs0jD+OStCZ5qdsMxiCdFTrsT72TbQsrkvNwC2alAnmhOJjEQ?= =?us-ascii?Q?B+viFKm1y3Fsfke85Zo/eQHpQR147SgXMAeNBSMJH22CUQuhQc5nmRzvyCXa?= =?us-ascii?Q?EKB09tdkFRC8eJaFMMnkmzYREhQAFIM7NL3/N8ksAPjBpvg4pQ=3D=3D?= X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230040)(1800799024)(36860700013)(376014)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 06:39:08.3372 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 998f65bb-acc3-4ffa-a584-08dd021b8b93 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF00026367.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB8301 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 23.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/30/24. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://git.dpdk.org/dpdk-stable/log/?h=23.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=689c302c20ced757d4a0790c984aefc73c37daec Thanks. Xueming Li --- >From 689c302c20ced757d4a0790c984aefc73c37daec Mon Sep 17 00:00:00 2001 From: Chengwen Feng Date: Sat, 12 Oct 2024 17:14:57 +0800 Subject: [PATCH] net/hns3: verify reset type from firmware Cc: Xueming Li [ upstream commit 3db846003734d38d59950ebe024ad6d61afe08f0 ] Verify reset-type which get from firmware. Fixes: 1c1eb759e9d7 ("net/hns3: support RAS process in Kunpeng 930") Signed-off-by: Chengwen Feng Acked-by: Jie Hai --- drivers/net/hns3/hns3_intr.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/hns3/hns3_intr.c b/drivers/net/hns3/hns3_intr.c index 0b768ef140..3f6b9e7fc4 100644 --- a/drivers/net/hns3/hns3_intr.c +++ b/drivers/net/hns3/hns3_intr.c @@ -2252,6 +2252,12 @@ hns3_handle_module_error_data(struct hns3_hw *hw, uint32_t *buf, sum_err_info = (struct hns3_sum_err_info *)&buf[offset++]; mod_num = sum_err_info->mod_num; reset_type = sum_err_info->reset_type; + + if (reset_type >= HNS3_MAX_RESET) { + hns3_err(hw, "invalid reset type = %u", reset_type); + return; + } + if (reset_type && reset_type != HNS3_NONE_RESET) hns3_atomic_set_bit(reset_type, &hw->reset.request); -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-11-11 14:23:09.495799151 +0800 +++ 0097-net-hns3-verify-reset-type-from-firmware.patch 2024-11-11 14:23:05.252192837 +0800 @@ -1 +1 @@ -From 3db846003734d38d59950ebe024ad6d61afe08f0 Mon Sep 17 00:00:00 2001 +From 689c302c20ced757d4a0790c984aefc73c37daec Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 3db846003734d38d59950ebe024ad6d61afe08f0 ] @@ -9 +11,0 @@ -Cc: stable@dpdk.org @@ -18 +20 @@ -index f7162ee7bc..2de2b86b02 100644 +index 0b768ef140..3f6b9e7fc4 100644