DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Burakov, Anatoly" <anatoly.burakov@intel.com>
To: Vikas Gupta <vikas.gupta@broadcom.com>, dev@dpdk.org
Cc: Ajit Kumar Khaparde <ajit.khaparde@broadcom.com>,
	Vikram Prakash <vikram.prakash@broadcom.com>
Subject: Re: [dpdk-dev] Issue with VFIO/IOMMU
Date: Fri, 4 Sep 2020 14:50:10 +0100	[thread overview]
Message-ID: <828830f7-8f39-72e4-2f64-c20f6b56d8a9@intel.com> (raw)
In-Reply-To: <e58baac48f6bbe14e2ccba10e68eeace@mail.gmail.com>

On 03-Sep-20 12:09 PM, Vikas Gupta wrote:
> Hi,
>    I observe an issue with IOVA address returned by api
> rte_memzone_reserve_aligned (flags= RTE_MEMZONE_IOVA_CONTIG) used for queue
> memory allocation. With high level debugging, I notice that IOVA address
> returned in mz->iova is not mapped by VFIO_IOMMU_MAP_DMA so in turn SMMU
> exception is seen.

I'm not sure i follow.

How did you determine that to be the case, given that, by your own 
admission below, `vfio_type1_dma_mem_map` function is executed several 

> *Details for the setup*
> Platform: Armv8 (Broadcom Stingray)
> DPDK release: DPDK 20.08 <http://fast.dpdk.org/rel/dpdk-20.08.tar.xz>
> PMD patch:
> https://patches.dpdk.org/project/dpdk/list/?series=&submitter=1907&state=&q=&archive=&delegate=
> dpdk-test is launched using below command
> *dpdk-test --vdev <cryptopmd_name> -w 0000:00:00.0 --iova-mode pa *
> The test suite is launched over dpdk-test application command prompt using
> command ‘cryptodev_<cryptopmd_name>_autotest’
> The issue is seen when several iterations of above test_suite is executed
> which in turn do multiple calls to rte_memzone_reserve_aligned,
> rte_mempool_create and rte_memzone_free, rte_mempool_free.
>   Function *vfio_type1_dma_mem_map* with map/unmap event is executed several
> times during test_suite run.
> Any inputs would be helpful.
> Thanks,
> Vikas


  reply	other threads:[~2020-09-04 13:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-03 11:09 Vikas Gupta
2020-09-04 13:50 ` Burakov, Anatoly [this message]
2020-09-07 13:31   ` Vikas Gupta
2020-09-07 15:43     ` Burakov, Anatoly

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=828830f7-8f39-72e4-2f64-c20f6b56d8a9@intel.com \
    --to=anatoly.burakov@intel.com \
    --cc=ajit.khaparde@broadcom.com \
    --cc=dev@dpdk.org \
    --cc=vikas.gupta@broadcom.com \
    --cc=vikram.prakash@broadcom.com \


* 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).