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 3CE24A058E for ; Fri, 27 Mar 2020 11:16:23 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1743F1C08C; Fri, 27 Mar 2020 11:16:23 +0100 (CET) Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [63.128.21.74]) by dpdk.org (Postfix) with ESMTP id 72FC11BFD7 for ; Fri, 27 Mar 2020 11:16:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585304180; 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=Uv7nm+yRDO3Cfqz7lRUCOWWclK6QsYO1TwYT0jT9T6k=; b=gbBHwxplCgTR01uXOxKvZ1CCfC6U3+XT+SyZ91E11AVZv2c54lFdnZG/JCWXpVYY/fwbFC ObpZNae1flb7Hbg1+k8qxcM3EH4SUqES0VPELQakXEIdZGfbAcX5Ejtd54TTwj7Brap6rv kjdD1h16WnAajEjX9p5rRFMzf3uIxUM= Received: from mail-ua1-f72.google.com (mail-ua1-f72.google.com [209.85.222.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-390-sL7Q24L3ML2LfgTb--ZmYQ-1; Fri, 27 Mar 2020 06:16:17 -0400 X-MC-Unique: sL7Q24L3ML2LfgTb--ZmYQ-1 Received: by mail-ua1-f72.google.com with SMTP id u3so3588779uau.22 for ; Fri, 27 Mar 2020 03:16:17 -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=kb7AF/VA3PKp4SCyd5Q0mMQy5MWp4J6T21ZhH7DPbQ0=; b=swhmdkJsRgDnzEVOdojfdIYuIxuGVo2fsfatvNjfFkn/8NjkkwCE7tAc3bqw1WRVY0 drp6spDhTwcM5CO7iaayKoRFKiQJQX3tl+ZykRD9+UYmdZKtsStzOryYkq14slMnmBPV PwhHwjx/qdtm3D50nuU1dsM5Se4JjjGXdk2loILyS0o4Tjlco8oyO7Es8tVevjCyMoOf cX8JoDoYLNLubmO53N+w01uGheS7uQKIy/u8toJCBb3WkRFJe8XvsBZRpEz6Uh7PbyZQ y7izhLsdoHlEna9v0ab6k8j4+U1jM6nHOrfCA4R9GGhY37XwhOoU9JqkabVa/RokoZyV IuZw== X-Gm-Message-State: ANhLgQ2RxqNV4GRs1G9wILo/nQvTjOX2Zy3c0X49aQeanIU6Ib5GM4HZ shL9g1zOVVXC+IEe3GQWs8ieCbCDSnm70hAmUT2/Escs1HZn+uvxmxnxRP656tfUWXW8mqDk6sC 8w2yZZ90FrR6ufQBrAjhfdh4= X-Received: by 2002:a67:2c81:: with SMTP id s123mr9924845vss.198.1585304177308; Fri, 27 Mar 2020 03:16:17 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt8lFFK01VOb49yJDz2AbZ7eKEU4nxdhhFfIDUpg1+p1V250bUzn/o+D6fYSjWWDNPHTgfmHsha6yopat7xFYA= X-Received: by 2002:a67:2c81:: with SMTP id s123mr9924834vss.198.1585304177096; Fri, 27 Mar 2020 03:16:17 -0700 (PDT) MIME-Version: 1.0 References: <99d72c1b91e3fce36713b529ab47e8aa3fd78454.1579885526.git.anatoly.burakov@intel.com> <5ebcce5b7df8fa0620b3d0fd6bf67a0668b942ac.1581073866.git.anatoly.burakov@intel.com> In-Reply-To: From: David Marchand Date: Fri, 27 Mar 2020 11:16:06 +0100 Message-ID: To: Anatoly Burakov Cc: dev , dpdk stable , junx.w.zhou@intel.com 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Wed, Mar 25, 2020 at 3: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 > Tested-by: David Marchand Tested-by: Jun W Zhou Applied, thanks. --=20 David Marchand