[dpdk-stable] patch 'net/bnxt: replace memory barrier for doorbell response' has been queued to LTS release 18.11.6
Kevin Traynor
ktraynor at redhat.com
Tue Dec 3 19:26:35 CET 2019
Hi,
FYI, your patch has been queued to LTS release 18.11.6
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/10/19. 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/kevintraynor/dpdk-stable-queue
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable-queue/commit/b2bfe186b0770637d2fdff4f5357bce8950b816c
Thanks.
Kevin.
---
>From b2bfe186b0770637d2fdff4f5357bce8950b816c Mon Sep 17 00:00:00 2001
From: Gavin Hu <gavin.hu at arm.com>
Date: Mon, 16 Sep 2019 19:27:17 +0800
Subject: [PATCH] net/bnxt: replace memory barrier for doorbell response
[ upstream commit 21ecbde99b2f0772d36eef8276a686f3135e5de9 ]
To read the doorbell response, which is held in the host CIO memory,
rte_cio_rmb is sufficient.
Fixes: 804e746c7b73 ("net/bnxt: add hardware resource manager init code")
Signed-off-by: Gavin Hu <gavin.hu at arm.com>
Acked-by: Ajit Khaparde <ajit.khaparde at broadcom.com>
---
drivers/net/bnxt/bnxt_hwrm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c
index cecf8abdc..7e6209a55 100644
--- a/drivers/net/bnxt/bnxt_hwrm.c
+++ b/drivers/net/bnxt/bnxt_hwrm.c
@@ -125,5 +125,5 @@ static int bnxt_hwrm_send_message(struct bnxt *bp, void *msg,
for (i = 0; i < HWRM_CMD_TIMEOUT; i++) {
/* Sanity check on the resp->resp_len */
- rte_rmb();
+ rte_cio_rmb();
if (resp->resp_len && resp->resp_len <=
bp->max_resp_len) {
--
2.21.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2019-12-03 17:29:53.346198806 +0000
+++ 0026-net-bnxt-replace-memory-barrier-for-doorbell-respons.patch 2019-12-03 17:29:51.745750057 +0000
@@ -1 +1 @@
-From 21ecbde99b2f0772d36eef8276a686f3135e5de9 Mon Sep 17 00:00:00 2001
+From b2bfe186b0770637d2fdff4f5357bce8950b816c Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 21ecbde99b2f0772d36eef8276a686f3135e5de9 ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index e73d8ed76..d7c33d21e 100644
+index cecf8abdc..7e6209a55 100644
@@ -22,2 +23,2 @@
-@@ -151,5 +151,5 @@ static int bnxt_hwrm_send_message(struct bnxt *bp, void *msg,
- for (i = 0; i < timeout; i++) {
+@@ -125,5 +125,5 @@ static int bnxt_hwrm_send_message(struct bnxt *bp, void *msg,
+ for (i = 0; i < HWRM_CMD_TIMEOUT; i++) {
@@ -27,2 +28,2 @@
- if (resp->resp_len && resp->resp_len <= bp->max_resp_len) {
- /* Last byte of resp contains the valid key */
+ if (resp->resp_len && resp->resp_len <=
+ bp->max_resp_len) {
More information about the stable
mailing list