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 2C393A034F for ; Wed, 10 Nov 2021 07:56:35 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 22F684014D; Wed, 10 Nov 2021 07:56:35 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2075.outbound.protection.outlook.com [40.107.94.75]) by mails.dpdk.org (Postfix) with ESMTP id 9D4894014D for ; Wed, 10 Nov 2021 07:56:33 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P1rB6r4LOQtKrV0Ns2ajfG1gHZzFNUMic5g3+BdkrRdiEneRUadRGo51xVkGu5JAKDxALY1QKPxU7CeOC4KCIZZYPv03jv0VIaFW+fnUysSRVcq++4NMeY+AaHlTld1fS6GEJhKiZ9BK4u2oitNEaOnthgQga15yGsBvuoNDNsKpAPhFqbbTRugLbo9T6BUR3otMOzCsi+M/g5fPXe7IBhu20W3tPy0qzPkwUyq2XvUye0lJWzYDCpte3exe/Tl2m9X1mT3Ro1lMNYGPnXK2L3x87n+7bBq9c1O5H12oMAQ9ehh2xw4cdnirU9KEfrghIQurhIBQYPK7o9SfOsWFBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=H8DLzbSizIpXLSXN7s9siCfWWl2GTf1BXttDR2pdsXo=; b=blUZykTJbrYhhSITI2YhDprVmcdLVp6AoJt0J+79OOut8nTOQGkDB4ZVCNHfG3WLI9BH4SsBtLlKU4rtdLtex0Oyv+Z1T/VzyXkYSjJbTYJ4MV75mCAEswFWC0Sn8jU0Zg+XGwvSeyGQMIGsDpZkfAH/Lh4gejgF7dy+QAqyCmZJJA1Vs0XQWPhjX7XZ+D9D6z7UNPV1fEjxrkID2ozlD3FYWZUQEMglA0hoX8EINboQOftg3kRL2gUqZdj3mET7aMEy1ZXSfu8yzuHIDlcxlYnpEzwwbymZA2rLRpJTLGXT+PS8zE6faF8GQDMs9EkB5CZLoYgdCbv94NfBAiWT6A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); 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=H8DLzbSizIpXLSXN7s9siCfWWl2GTf1BXttDR2pdsXo=; b=r3vgXe7J11IofVGWJI9aLnTUz9ypP2Cp+0ptwqGlkpgspp58jGq4/0Mdb7PkDayNDgmfUIJUJwCF7D3Rm2pLO5XDMRTt5yy4z6AFPwg+tOg9Ssvysfr1XJmYchBZPNAaDFkMjMpZ0IDd4mEzvCsC9fjZQIPzlofgRx4ClUjfOkmTI9DDGh3Z8AdaWTnNkqaDcwu5blXdaTpIjF9G9B5YLY/qodHPOpBCtw+feX9g/SfZNC+sV6BGuTWHx0eTDuAuNc8qecU/e3A9ycsz7V3y1jVZDifkN/C7EBMVVTg9dMfGGLEUKBo6LWjlAGJCdjGbq8geoNAbcFDTAB4zF88tMA== Received: from DM6PR08CA0026.namprd08.prod.outlook.com (2603:10b6:5:80::39) by BYAPR12MB3224.namprd12.prod.outlook.com (2603:10b6:a03:137::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.15; Wed, 10 Nov 2021 06:56:31 +0000 Received: from DM6NAM11FT032.eop-nam11.prod.protection.outlook.com (2603:10b6:5:80:cafe::64) by DM6PR08CA0026.outlook.office365.com (2603:10b6:5:80::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.13 via Frontend Transport; Wed, 10 Nov 2021 06:56:31 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) 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.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT032.mail.protection.outlook.com (10.13.173.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4690.15 via Frontend Transport; Wed, 10 Nov 2021 06:56:31 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 10 Nov 2021 06:56:28 +0000 From: Xueming Li To: "Min Hu (Connor)" CC: Luca Boccassi , dpdk stable Date: Wed, 10 Nov 2021 14:31:42 +0800 Message-ID: <20211110063216.2744012-219-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211110063216.2744012-1-xuemingl@nvidia.com> References: <20211110063216.2744012-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ee61b41b-328d-4420-504c-08d9a41739df X-MS-TrafficTypeDiagnostic: BYAPR12MB3224: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UQB6KZetSydSI0z5btoJetW1tm629hl3gWfPw3TLuGbK5OncKHsRvSj0jHfFSAK+ZgF6xpCeUsqlKtwMJ3Hcg096MnnIiCZCgkqiulp/E/tZZ4nJvNAJaFP/TNZqjCyds5xMi2PgNXPPg+cgOyWySePi7L5MjXSgauNv18HttYOaOjDm0l/D/6bsfFcC+gDGps10PMMuMZ2B6MYSmEkrXigorATG3VjMIH1vVh7P6mjcx4exN5TXktTx+qonQZPcSZmbaNxmgrI3jO+1+DUa58pLcI4GSOYWecNRGZbrP7hUrQcypHV5twdp0MrBRdB862DdYpzOIVrThKlpnmT8ywRI+PtYU4jtXf2v0fFGm0X1ZfKmbUFyqoSz8apbfBHIgh3sNf61r88cUWsGWwvjweJL6PUW7+PDhlKnukpYUUYDos2y4u+X7F2wBWVeCw0RdUzLS9dGfeeubJuQwP9oxoK0eamvtZi3quYzcEwZ+3Rq0xH5XRBUvxGcY3l6h4PAGlz1XviCPrXwRRNWhqs7ub6WZbre8Umxt1ll8mKuKltIq8LVCBYFkciOao7KKnvVnSZn63L0v33doDbUVJMl0T2Qz9t9LnlXOjS+Cnpp0fIVPiRLOVOxyDEq6VgRa+azYS34oepFA0NOhzoV48xzEsEKiIiMXAuSQFIUNxHQHGf+PiGl4RdIjKtu64ewQvOr9O8IQ7cX5Q2Hno4zf1TcbAnEGCXMwD3eiwq1xytubEwDGPrmK+4xhxLCNiJWltfxrtgdIgvJ06BOw3FGlbUlBnFjQ76MYUFP+Fr76uKzPEiuazMsvQneilyM97F3brhSuPk0i/N5jdnCTJtOkThLsw== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(70206006)(82310400003)(26005)(2906002)(70586007)(8676002)(4326008)(7696005)(86362001)(6666004)(36756003)(55016002)(336012)(1076003)(186003)(47076005)(426003)(356005)(508600001)(316002)(6286002)(16526019)(54906003)(83380400001)(8936002)(4001150100001)(6916009)(966005)(15650500001)(2616005)(53546011)(7636003)(36860700001)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2021 06:56:31.0755 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ee61b41b-328d-4420-504c-08d9a41739df X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT032.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB3224 Subject: [dpdk-stable] patch 'net/hns3: fix mailbox communication with HW' has been queued to stable release 20.11.4 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 Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.4 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/12/21. 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://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/c87b5347403bd33eb0f6ea98f0795956bc0326a3 Thanks. Xueming Li --- >From c87b5347403bd33eb0f6ea98f0795956bc0326a3 Mon Sep 17 00:00:00 2001 From: "Min Hu (Connor)" Date: Thu, 28 Oct 2021 19:52:30 +0800 Subject: [PATCH] net/hns3: fix mailbox communication with HW Cc: Xueming Li [ upstream commit 599ef84add7ed02537ff43a8e8a36f42b36e107e ] Mailbox is the communication mechanism between SW and HW. There exist two approaches for SW to recognize mailbox message from HW. One way is using match_id, the other is to compare the message code. The two approaches are independent and used in different scenarios. But for the second approach, "next_to_use" should be updated and written to HW register. If it not done, HW do not know the position SW steps, then, the communication between SW and HW will turn to be failed. Fixes: dbbbad23e380 ("net/hns3: fix VF handling LSC event in secondary process") Signed-off-by: Min Hu (Connor) --- drivers/net/hns3/hns3_mbx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/hns3/hns3_mbx.c b/drivers/net/hns3/hns3_mbx.c index f8d83c313d..9d245610c9 100644 --- a/drivers/net/hns3/hns3_mbx.c +++ b/drivers/net/hns3/hns3_mbx.c @@ -441,6 +441,9 @@ hns3_handle_mbx_msg_out_intr(struct hns3_hw *hw) scan_next: next_to_use = (next_to_use + 1) % hw->cmq.crq.desc_num; } + + crq->next_to_use = next_to_use; + hns3_write_dev(hw, HNS3_CMDQ_RX_HEAD_REG, crq->next_to_use); } void -- 2.33.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-10 14:17:11.526904965 +0800 +++ 0218-net-hns3-fix-mailbox-communication-with-HW.patch 2021-11-10 14:17:02.030744782 +0800 @@ -1 +1 @@ -From 599ef84add7ed02537ff43a8e8a36f42b36e107e Mon Sep 17 00:00:00 2001 +From c87b5347403bd33eb0f6ea98f0795956bc0326a3 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 599ef84add7ed02537ff43a8e8a36f42b36e107e ] @@ -16 +18,0 @@ -Cc: stable@dpdk.org @@ -24 +26 @@ -index a47622b8a6..245652e2ed 100644 +index f8d83c313d..9d245610c9 100644 @@ -27 +29 @@ -@@ -435,6 +435,9 @@ hns3_handle_mbx_msg_out_intr(struct hns3_hw *hw) +@@ -441,6 +441,9 @@ hns3_handle_mbx_msg_out_intr(struct hns3_hw *hw)