From: Shreyansh Jain <shreyansh.jain@nxp.com>
To: thomas@monjalon.net
Cc: ferruh.yigit@intel.com, dev@dpdk.org,
Nipun Gupta <nipun.gupta@nxp.com>,
stable@dpdk.org
Subject: [dpdk-stable] [PATCH v3 01/15] net/dpaa2: fix IOVA conversion for congestion memory
Date: Fri, 12 Oct 2018 15:34:12 +0530 [thread overview]
Message-ID: <20181012100426.29349-2-shreyansh.jain@nxp.com> (raw)
In-Reply-To: <20181012100426.29349-1-shreyansh.jain@nxp.com>
From: Nipun Gupta <nipun.gupta@nxp.com>
The code was incorrectly using the Virtual mode, whent
the IOVA mode was set as Physical.
Fixes: 5ae1edff6895 ("dpaa2: prepare for 32-bit build")
Cc: stable@dpdk.org
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
---
drivers/net/dpaa2/dpaa2_ethdev.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c
index 880034fcf..9ae326023 100644
--- a/drivers/net/dpaa2/dpaa2_ethdev.c
+++ b/drivers/net/dpaa2/dpaa2_ethdev.c
@@ -568,7 +568,8 @@ dpaa2_dev_tx_queue_setup(struct rte_eth_dev *dev,
*/
cong_notif_cfg.threshold_exit = CONG_EXIT_TX_THRESHOLD;
cong_notif_cfg.message_ctx = 0;
- cong_notif_cfg.message_iova = (size_t)dpaa2_q->cscn;
+ cong_notif_cfg.message_iova =
+ (size_t)DPAA2_VADDR_TO_IOVA(dpaa2_q->cscn);
cong_notif_cfg.dest_cfg.dest_type = DPNI_DEST_NONE;
cong_notif_cfg.notification_mode =
DPNI_CONG_OPT_WRITE_MEM_ON_ENTER |
--
2.17.1
next prev parent reply other threads:[~2018-10-12 10:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20180917103631.32304-1-shreyansh.jain@nxp.com>
2018-09-17 10:36 ` [dpdk-stable] [PATCH 08/11] " Shreyansh Jain
2018-09-17 10:36 ` [dpdk-stable] [PATCH 11/11] net/dpaa2: fix VLAN filter enablement Shreyansh Jain
[not found] ` <20180926180440.31726-1-shreyansh.jain@nxp.com>
2018-09-26 18:04 ` [dpdk-stable] [PATCH v2 01/15] net/dpaa2: fix IOVA conversion for congestion memory Shreyansh Jain
2018-09-26 18:04 ` [dpdk-stable] [PATCH v2 02/15] net/dpaa2: fix VLAN filter enablement Shreyansh Jain
[not found] ` <20181012100426.29349-1-shreyansh.jain@nxp.com>
2018-10-12 10:04 ` Shreyansh Jain [this message]
2018-10-12 10:04 ` [dpdk-stable] [PATCH v3 " Shreyansh Jain
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=20181012100426.29349-2-shreyansh.jain@nxp.com \
--to=shreyansh.jain@nxp.com \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@intel.com \
--cc=nipun.gupta@nxp.com \
--cc=stable@dpdk.org \
--cc=thomas@monjalon.net \
/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).