From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 1DF349E3 for ; Tue, 7 Feb 2017 16:59:22 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP; 07 Feb 2017 07:59:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,346,1477983600"; d="scan'208";a="222390024" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.137]) ([10.237.220.137]) by fmsmga004.fm.intel.com with ESMTP; 07 Feb 2017 07:59:20 -0800 To: Alejandro Lucero , dev@dpdk.org References: <1484742475-41005-1-git-send-email-alejandro.lucero@netronome.com> From: Ferruh Yigit Message-ID: <67a9fd3b-b7f5-c641-9f59-590155cbd30b@intel.com> Date: Tue, 7 Feb 2017 15:59:20 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <1484742475-41005-1-git-send-email-alejandro.lucero@netronome.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH] igb_uio: map dummy dma forcing iommu domain attachment 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: , X-List-Received-Date: Tue, 07 Feb 2017 15:59:24 -0000 Hi Alejandro, On 1/18/2017 12:27 PM, Alejandro Lucero wrote: > For using a DPDK app when iommu is enabled, it requires to > add iommu=pt to the kernel command line. But using igb_uio driver > makes DMAR errors because the device has not an IOMMU domain. Please help to understand the scope of the problem, 1- How can you re-produce the problem? 2- What happens get DMAR errors, is it prevents device work or some annoying error messages? 3- Can you please share the error messages? > > Since kernel 3.15, iommu=pt requires to use the internal kernel > DMA API for attaching the device to the IOMMU 1:1 mapping, aka > si_domain. Previous versions did attach the device to that > domain when intel iommu notifier was called. Again, what is not working since 3.15? > > This is not a problem if the driver does later some call to the > DMA API because the mapping can be done then. But DPDK apps do > not use that DMA API at all. Is this same/similar with: http://dpdk.org/dev/patchwork/patch/12654/ > > Doing this dma map and unmap is harmless even when iommu is not > enabled at all. > > Signed-off-by: Alejandro Lucero <...> Thanks, ferruh