From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AA61FA04C5; Fri, 4 Sep 2020 15:50:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BCA911C0C0; Fri, 4 Sep 2020 15:50:16 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 6AF801BC25 for ; Fri, 4 Sep 2020 15:50:14 +0200 (CEST) IronPort-SDR: uVd0kWaUqIQh8wwjzGwZOZ5G0xr7/xL4roDhBiqpM3tJq8ROADtPL+XPYSdUSOmQ5Sze6/ONjM hS/shLv0PT3w== X-IronPort-AV: E=McAfee;i="6000,8403,9733"; a="157750541" X-IronPort-AV: E=Sophos;i="5.76,389,1592895600"; d="scan'208";a="157750541" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Sep 2020 06:50:13 -0700 IronPort-SDR: k11ln+UqtJYzvQsE3fZcMQLew/gihU4r+BYVN9vSlHkMutV3Ehv9n57iCn8B+WxO7ItMgvTAhY 5hfM8uJpo+tQ== X-IronPort-AV: E=Sophos;i="5.76,389,1592895600"; d="scan'208";a="478494395" Received: from aburakov-mobl.ger.corp.intel.com (HELO [10.252.57.174]) ([10.252.57.174]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Sep 2020 06:50:12 -0700 From: "Burakov, Anatoly" To: Vikas Gupta , dev@dpdk.org Cc: Ajit Kumar Khaparde , Vikram Prakash References: Message-ID: <828830f7-8f39-72e4-2f64-c20f6b56d8a9@intel.com> Date: Fri, 4 Sep 2020 14:50:10 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] Issue with VFIO/IOMMU X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 times? > > > > *Details for the setup* > > Platform: Armv8 (Broadcom Stingray) > > DPDK release: DPDK 20.08 > > 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 -w 0000:00:00.0 --iova-mode pa * > > > > The test suite is launched over dpdk-test application command prompt using > command ‘cryptodev__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 > -- Thanks, Anatoly