From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <stable-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 69F00A058B
	for <public@inbox.dpdk.org>; Wed, 25 Mar 2020 15:40:04 +0100 (CET)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id 3A464F3E;
	Wed, 25 Mar 2020 15:40:04 +0100 (CET)
Received: from us-smtp-delivery-74.mimecast.com
 (us-smtp-delivery-74.mimecast.com [216.205.24.74])
 by dpdk.org (Postfix) with ESMTP id 9D332F3E
 for <stable@dpdk.org>; Wed, 25 Mar 2020 15:40:02 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
 s=mimecast20190719; t=1585147202;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding:
 in-reply-to:in-reply-to:references:references;
 bh=+wT7WkiYZ0rw87xZYVAhUpYZ4YNBD15EKsdkY/Kwhyc=;
 b=GzhnB8sbnKw6OP0vO1Dzi7QzUu0MwXWcaMQm/rE1QVDXj2Y/mxK8sIfOFNEd6RvhBmqVPr
 lbenMKTFbJ9IEAHxFXJmN6Z9TIK0uGfEWdAL/q9kw0bX901RoSaWJ1y6E5k1vsxo1t6VLe
 0ViTXqeQ1rLj58TxVy71yzPPULssek4=
Received: from mail-ua1-f70.google.com (mail-ua1-f70.google.com
 [209.85.222.70]) (Using TLS) by relay.mimecast.com with ESMTP id
 us-mta-251-6Huyi9q1M8Kim9zpBrJApQ-1; Wed, 25 Mar 2020 10:40:00 -0400
X-MC-Unique: 6Huyi9q1M8Kim9zpBrJApQ-1
Received: by mail-ua1-f70.google.com with SMTP id a30so923031uae.6
 for <stable@dpdk.org>; Wed, 25 Mar 2020 07:40:00 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=s4nabHewIzx9q+rzL99H2HxDR8TFrIrM9wzRZ21VYzA=;
 b=WsfO4CRW1kDi+mh6YbmyEZ5JKxP46mNxiN2+xyvPH+NAhHOFJtJsCoagpZaneCjoVK
 weB0P1qShuG5Bq4tLuVQH+X3dxV5NLSg1urigp3iw9j9Mf6olFI/fMPJk/fHiv8Pyimf
 ry+7b+n5HY4bnn8LRzL+oepoDuGC4QfiRZfMtrZ4j4lYqDp7zi5/+d/nkBkJdUok4+K3
 CpmCZo8cqVakV5/N0fB4rpG7XsG5JAmdtEJccILL019XgDTXeoSs9qqYF5p449VAnQf+
 x9A0Kxgr7aQxd29S0djtDtG5Ht1I/DM5F3sqXM8xzsnp9J+M0TCgKtmUsFovbeJu6eOK
 nAHg==
X-Gm-Message-State: ANhLgQ1Xd2IROM9WaKgAwcF6+Ap8Srt9ICYGb3nKH6HE14aa0Skq8N+N
 Yne/s8v6pP9Wh6yGNGI1f5AONAuBxcmLhKNBFNkvUzHmea+ZFg/H9C2F/5A/gnHmNzPlN2WwL+w
 Gbnr4UnnTot/zW7azCmCB76M=
X-Received: by 2002:ab0:698e:: with SMTP id t14mr2574492uaq.53.1585147199761; 
 Wed, 25 Mar 2020 07:39:59 -0700 (PDT)
X-Google-Smtp-Source: ADFU+vupdO+qio+tY5jv5viQkq/ZIQUgLqr9MSDJjnSkKGlc9+aGvmB//J104jdmqudJXfZTr8OxvQsjWUUP9ioY9AQ=
X-Received: by 2002:ab0:698e:: with SMTP id t14mr2574468uaq.53.1585147199481; 
 Wed, 25 Mar 2020 07:39:59 -0700 (PDT)
MIME-Version: 1.0
References: <99d72c1b91e3fce36713b529ab47e8aa3fd78454.1579885526.git.anatoly.burakov@intel.com>
 <5ebcce5b7df8fa0620b3d0fd6bf67a0668b942ac.1581073866.git.anatoly.burakov@intel.com>
In-Reply-To: <5ebcce5b7df8fa0620b3d0fd6bf67a0668b942ac.1581073866.git.anatoly.burakov@intel.com>
From: David Marchand <david.marchand@redhat.com>
Date: Wed, 25 Mar 2020 15:39:48 +0100
Message-ID: <CAJFAV8y+HchqfE85QNpvJ613RoUSuRce86V_=uD03jiYG6RWWg@mail.gmail.com>
To: Anatoly Burakov <anatoly.burakov@intel.com>
Cc: dev <dev@dpdk.org>, dpdk stable <stable@dpdk.org>
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Subject: Re: [dpdk-stable] [PATCH v3] eal/mem: preallocate VA space in
	no-huge mode
X-BeenThere: stable@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches for DPDK stable branches <stable.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/stable>,
 <mailto:stable-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/stable/>
List-Post: <mailto:stable@dpdk.org>
List-Help: <mailto:stable-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/stable>,
 <mailto:stable-request@dpdk.org?subject=subscribe>
Errors-To: stable-bounces@dpdk.org
Sender: "stable" <stable-bounces@dpdk.org>

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?

--=20
David Marchand