From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by inbox.dpdk.org (Postfix) with ESMTP id C6B30A057C;
	Thu, 26 Mar 2020 18:06:59 +0100 (CET)
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 <david.marchand@redhat.com>
Cc: dev <dev@dpdk.org>, dpdk stable <stable@dpdk.org>
References: <99d72c1b91e3fce36713b529ab47e8aa3fd78454.1579885526.git.anatoly.burakov@intel.com>
 <5ebcce5b7df8fa0620b3d0fd6bf67a0668b942ac.1581073866.git.anatoly.burakov@intel.com>
 <CAJFAV8y+HchqfE85QNpvJ613RoUSuRce86V_=uD03jiYG6RWWg@mail.gmail.com>
From: "Burakov, Anatoly" <anatoly.burakov@intel.com>
Message-ID: <bd6ed5db-d234-cf49-d104-3ee20ba75971@intel.com>
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: <CAJFAV8y+HchqfE85QNpvJ613RoUSuRce86V_=uD03jiYG6RWWg@mail.gmail.com>
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 <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

On 25-Mar-20 2:39 PM, David Marchand wrote:
> On Fri, Feb 7, 2020 at 12:11 PM Anatoly Burakov
> <anatoly.burakov@intel.com> 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 <anatoly.burakov@intel.com>
> 
> Reproduced issue reported by Thomas on v2.
> Works fine with v3.
> 
> Tested-by: David Marchand <david.marchand@redhat.com>
> 
> 
> Does this issue affect FreeBSD too?
> 

I don't think we have support for IOMMU on FreeBSD so my guess is no :)

-- 
Thanks,
Anatoly