From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 418EFC43331 for ; Thu, 26 Mar 2020 17:07:00 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id F111620714 for ; Thu, 26 Mar 2020 17:06:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F111620714 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E5F601C0AD; Thu, 26 Mar 2020 18:06:58 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 3200E1C06D; Thu, 26 Mar 2020 18:06:56 +0100 (CET) IronPort-SDR: NY71O8wLsKl98gVa55vMbpbjGf0DD2vjeqNsUUJ3ERX23jqgPxHm4CYfdamWn5bJNAi/wHMLQw gc/t/JOmYGXw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2020 10:06:56 -0700 IronPort-SDR: 4xo1E8ZWP2JhpMGEf+ngARjNxCEXJArpruv8w2PZ+xxR/P2uQnBekVQI1zJlOeTPQFH3FSxrAq UR/DrWNKEdzA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,309,1580803200"; d="scan'208";a="447083975" Received: from aburakov-mobl.ger.corp.intel.com (HELO [10.214.213.185]) ([10.214.213.185]) by fmsmga005.fm.intel.com with ESMTP; 26 Mar 2020 10:06:54 -0700 To: David Marchand Cc: dev , dpdk stable References: <99d72c1b91e3fce36713b529ab47e8aa3fd78454.1579885526.git.anatoly.burakov@intel.com> <5ebcce5b7df8fa0620b3d0fd6bf67a0668b942ac.1581073866.git.anatoly.burakov@intel.com> From: "Burakov, Anatoly" Message-ID: Date: Thu, 26 Mar 2020 17:06:53 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [dpdk-stable] [PATCH v3] eal/mem: preallocate VA space in no-huge mode 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 25-Mar-20 2:39 PM, David Marchand wrote: > On Fri, Feb 7, 2020 at 12:11 PM Anatoly Burakov > wrote: >> >> When --no-huge mode is used, the memory is currently allocated with >> mmap(NULL, ...). This is fine in most cases, but can fail in cases >> where DPDK is run on a machine with an IOMMU that is of more limited >> address width than that of a VA, because we're not specifying the >> address hint for mmap() call. >> >> Fix it by preallocating VA space before mapping it. >> >> Cc: stable@dpdk.org >> >> Signed-off-by: Anatoly Burakov > > Reproduced issue reported by Thomas on v2. > Works fine with v3. > > Tested-by: David Marchand > > > Does this issue affect FreeBSD too? > I don't think we have support for IOMMU on FreeBSD so my guess is no :) -- Thanks, Anatoly