DPDK patches and discussions
 help / color / mirror / Atom feed
From: Hemant Agrawal <hemant.agrawal@oss.nxp.com>
To: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH v2 1/4] mem: remove physical address aliases
Date: Thu, 17 Sep 2020 16:23:28 +0530	[thread overview]
Message-ID: <60029109-d44d-bbfe-acb6-4c5a35cc2051@oss.nxp.com> (raw)
In-Reply-To: <20200917104133.6186-2-thomas@monjalon.net>


On 9/17/2020 4:11 PM, Thomas Monjalon wrote:
> Remove the deprecated unioned fields phys_addr
> from the structures rte_memseg and rte_memzone.
> They are replaced with the fields iova which are at the same offsets.
>
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
> Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
> ---
>   doc/guides/rel_notes/release_20_11.rst            |  4 ++++
>   drivers/bus/fslmc/portal/dpaa2_hw_pvt.h           |  2 +-
>   drivers/common/dpaax/dpaax_iova_table.c           |  2 +-
>   drivers/compress/qat/qat_comp.c                   |  2 +-
>   drivers/compress/qat/qat_comp_pmd.c               |  2 +-
>   drivers/crypto/ccp/ccp_dev.c                      |  2 +-
>   drivers/crypto/octeontx/otx_cryptodev_hw_access.c |  2 +-
>   drivers/crypto/virtio/virtio_cryptodev.c          |  6 +++---
>   drivers/net/ice/base/ice_osdep.h                  |  2 +-
>   drivers/net/pfe/base/pfe.h                        |  2 +-
>   lib/librte_eal/include/rte_memory.h               |  6 +-----
>   lib/librte_eal/include/rte_memzone.h              |  6 +-----
>   lib/librte_kni/rte_kni.c                          | 14 +++++++-------
>   13 files changed, 24 insertions(+), 28 deletions(-)
>
> diff --git a/doc/guides/rel_notes/release_20_11.rst b/doc/guides/rel_notes/release_20_11.rst
> index b729bdf200..c49e612c43 100644
> --- a/doc/guides/rel_notes/release_20_11.rst
> +++ b/doc/guides/rel_notes/release_20_11.rst
> @@ -84,6 +84,10 @@ API Changes
>      Also, make sure to start the actual text at the margin.
>      =======================================================
>   
> +* mem: Removed the unioned field ``phys_addr`` from
> +  the structures ``rte_memseg`` and ``rte_memzone``.
> +  The field ``iova`` is remaining from the old unions.
> +
>   * mbuf: Removed the unioned field ``refcnt_atomic`` from
>     the structures ``rte_mbuf`` and ``rte_mbuf_ext_shared_info``.
>     The field ``refcnt`` is remaining from the old unions.
> diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h
> index 35423df12b..2dd53c63ba 100644
> --- a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h
> +++ b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h
> @@ -368,7 +368,7 @@ static phys_addr_t dpaa2_mem_vtop(uint64_t vaddr)
>   
>   	memseg = rte_mem_virt2memseg((void *)(uintptr_t)vaddr, NULL);
>   	if (memseg)
> -		return memseg->phys_addr + RTE_PTR_DIFF(vaddr, memseg->addr);
> +		return memseg->iova + RTE_PTR_DIFF(vaddr, memseg->addr);
>   	return (size_t)NULL;
>   }
>   
> diff --git a/drivers/common/dpaax/dpaax_iova_table.c b/drivers/common/dpaax/dpaax_iova_table.c
> index 5ba8ed1933..91bee65e7b 100644
> --- a/drivers/common/dpaax/dpaax_iova_table.c
> +++ b/drivers/common/dpaax/dpaax_iova_table.c
> @@ -440,7 +440,7 @@ dpaax_memevent_walk_memsegs(const struct rte_memseg_list *msl __rte_unused,
>   			    void *arg __rte_unused)
>   {
>   	DPAAX_DEBUG("Walking for %p (pa=%"PRIu64") and len %zu",
> -		    ms->addr, ms->phys_addr, len);
> +		    ms->addr, ms->iova, len);
>   	dpaax_iova_table_update(rte_mem_virt2phy(ms->addr), ms->addr, len);
>   	return 0;
>   }


Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>



  reply	other threads:[~2020-09-17 10:53 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-14 16:17 [dpdk-dev] [PATCH 0/4] remove aliases replaced with IOVA Thomas Monjalon
2020-09-14 16:17 ` [dpdk-dev] [PATCH 1/4] mem: remove physical address aliases Thomas Monjalon
2020-09-15  7:07   ` Andrew Rybchenko
2020-09-15 11:46   ` Burakov, Anatoly
2020-09-14 16:17 ` [dpdk-dev] [PATCH 2/4] mempool: " Thomas Monjalon
2020-09-15  7:08   ` Andrew Rybchenko
2020-09-14 16:17 ` [dpdk-dev] [PATCH 3/4] mbuf: remove deprecated function and macro aliases Thomas Monjalon
2020-09-15  7:09   ` Andrew Rybchenko
2020-09-15  8:38     ` Thomas Monjalon
2020-09-14 16:18 ` [dpdk-dev] [PATCH 4/4] mbuf: remove physical address alias Thomas Monjalon
2020-09-15  7:10   ` Andrew Rybchenko
2020-09-17 10:41 ` [dpdk-dev] [PATCH v2 0/4] remove aliases replaced with IOVA Thomas Monjalon
2020-09-17 10:41   ` [dpdk-dev] [PATCH v2 1/4] mem: remove physical address aliases Thomas Monjalon
2020-09-17 10:53     ` Hemant Agrawal [this message]
2020-09-18 14:38     ` Kinsella, Ray
2020-09-17 10:41   ` [dpdk-dev] [PATCH v2 2/4] mempool: " Thomas Monjalon
2020-09-18 14:39     ` Kinsella, Ray
2020-09-17 10:41   ` [dpdk-dev] [PATCH v2 3/4] mbuf: remove deprecated function and macro aliases Thomas Monjalon
2020-09-17 10:55     ` Hemant Agrawal
2020-09-18 14:42     ` Kinsella, Ray
2020-09-17 10:41   ` [dpdk-dev] [PATCH v2 4/4] mbuf: remove physical address alias Thomas Monjalon
2020-09-18 14:43     ` Kinsella, Ray
2020-09-18 22:32       ` Thomas Monjalon

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=60029109-d44d-bbfe-acb6-4c5a35cc2051@oss.nxp.com \
    --to=hemant.agrawal@oss.nxp.com \
    --cc=dev@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).