[dpdk-stable] patch 'net/hns3: fix mailbox communication with HW' has been queued to stable release 20.11.4

Xueming Li xuemingl at nvidia.com
Wed Nov 10 07:31:42 CET 2021


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 <xuemingl at nvidia.com>

---
>From c87b5347403bd33eb0f6ea98f0795956bc0326a3 Mon Sep 17 00:00:00 2001
From: "Min Hu (Connor)" <humin29 at huawei.com>
Date: Thu, 28 Oct 2021 19:52:30 +0800
Subject: [PATCH] net/hns3: fix mailbox communication with HW
Cc: Xueming Li <xuemingl at nvidia.com>

[ 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) <humin29 at huawei.com>
---
 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 <xuemingl at nvidia.com>
+
+[ upstream commit 599ef84add7ed02537ff43a8e8a36f42b36e107e ]
@@ -16 +18,0 @@
-Cc: stable at 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)


More information about the stable mailing list