From: Arek Kusztal <arkadiuszx.kusztal@intel.com>
To: dev@dpdk.org
Cc: gakhil@marvell.com, roy.fan.zhang@intel.com,
Arek Kusztal <arkadiuszx.kusztal@intel.com>,
stable@dpdk.org
Subject: [PATCH] common/qat: fix vf2pf answer
Date: Fri, 29 Jul 2022 08:47:31 +0100 [thread overview]
Message-ID: <20220729074731.5641-1-arkadiuszx.kusztal@intel.com> (raw)
This commit fixes answer sent to physical device in
vf2pf communication.
Fixes: b17d16fb47b4 ("common/qat: add PF to VF communication")
Cc: stable@dpdk.org
Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@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
@@ -59,7 +59,7 @@ int qat_pf2vf_exch_msg(struct qat_pci_device *qat_dev,
* the message
*/
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) &&
(++count < ADF_IOV_MSG_ACK_MAX_RETRY));
@@ -70,6 +70,8 @@ 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 ?
10 : 8) & 0xff);
--
2.25.1
next reply other threads:[~2022-07-29 7:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-29 7:47 Arek Kusztal [this message]
2022-08-09 9:34 ` Zhang, Roy Fan
2022-08-28 9:29 ` Akhil Goyal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220729074731.5641-1-arkadiuszx.kusztal@intel.com \
--to=arkadiuszx.kusztal@intel.com \
--cc=dev@dpdk.org \
--cc=gakhil@marvell.com \
--cc=roy.fan.zhang@intel.com \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).