patch 'common/qat: fix VF to PF answer' has been queued to stable release 21.11.3

Kevin Traynor ktraynor at redhat.com
Tue Oct 25 17:06:29 CEST 2022


Hi,

FYI, your patch has been queued to stable release 21.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/01/22. 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

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/656b3579683a2476573151dcbd4875fb2aaef828

Thanks.

Kevin

---
>From 656b3579683a2476573151dcbd4875fb2aaef828 Mon Sep 17 00:00:00 2001
From: Arek Kusztal <arkadiuszx.kusztal at intel.com>
Date: Fri, 29 Jul 2022 08:47:31 +0100
Subject: [PATCH] common/qat: fix VF to PF answer

[ upstream commit 66c0ad1f3dbbb344c43b93f7b6495c57edb8c4fb ]

This commit fixes answer sent to physical device in
vf2pf communication.

Fixes: b17d16fb47b4 ("common/qat: add PF to VF communication")

Signed-off-by: Arek Kusztal <arkadiuszx.kusztal at intel.com>
Acked-by: Fan Zhang <roy.fan.zhang at intel.com>
---
 drivers/common/qat/qat_pf2vf.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/common/qat/qat_pf2vf.c b/drivers/common/qat/qat_pf2vf.c
index 4e9ffc72fc..621f12fce2 100644
--- a/drivers/common/qat/qat_pf2vf.c
+++ b/drivers/common/qat/qat_pf2vf.c
@@ -60,5 +60,5 @@ int qat_pf2vf_exch_msg(struct qat_pci_device *qat_dev,
 		 */
 		do {
-			rte_delay_us_sleep(5);
+			rte_delay_us_sleep(ADF_IOV_MSG_ACK_DELAY_US * 2);
 			val = ADF_CSR_RD(pmisc_bar_addr, vf_csr_off);
 		} while ((val & ADF_PFVF_INT) &&
@@ -71,4 +71,6 @@ int qat_pf2vf_exch_msg(struct qat_pci_device *qat_dev,
 
 		uint32_t pf_val = ADF_CSR_RD(pmisc_bar_addr, pf_csr_off);
+		msg &= ~ADF_PFVF_INT;
+		ADF_CSR_WR(pmisc_bar_addr, pf_csr_off, msg);
 
 		*(ret + i) = (uint8_t)(pf_val >> (pf2vf_msg.block_hdr > 0 ?
-- 
2.37.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2022-10-25 14:18:59.321823905 +0100
+++ 0034-common-qat-fix-VF-to-PF-answer.patch	2022-10-25 14:18:58.397798041 +0100
@@ -1 +1 @@
-From 66c0ad1f3dbbb344c43b93f7b6495c57edb8c4fb Mon Sep 17 00:00:00 2001
+From 656b3579683a2476573151dcbd4875fb2aaef828 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 66c0ad1f3dbbb344c43b93f7b6495c57edb8c4fb ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org



More information about the stable mailing list