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 D7DDCA0589; Fri, 27 Mar 2020 11:16:22 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A8CD01C029; Fri, 27 Mar 2020 11:16:21 +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 11FD11BFD7 for ; Fri, 27 Mar 2020 11:16:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585304179; 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=hgDMat5z8I0EUzmF9H2rrU+vmFvSBzP+C76K4BUkeDjTLDZio7YtNe9Pmvg64zRNXYfdDD 1CEjQQ0tqt4Fjqff5vZ1qGp0iovXIewW4wFPZ28F6o/CPmoa7T9Xy4an7IoZ+h+zPRhLjA ZOcT6wldxH0UPJLwDZ3rpKP+48TWMyM= Received: from mail-vs1-f69.google.com (mail-vs1-f69.google.com [209.85.217.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-57-pm_7HcmAM7-M9XY-3nSDag-1; Fri, 27 Mar 2020 06:16:17 -0400 X-MC-Unique: pm_7HcmAM7-M9XY-3nSDag-1 Received: by mail-vs1-f69.google.com with SMTP id v75so1984142vsv.10 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=WDoHC37mJFE+YYZD0j+fPsQOGFs6NorLw2ng+xQLqSjLg4vJ/Ke3IY7WGSSZCGJeVI VzgBy7gj6HPJNOhJ65LLeXr1wwNUqzANPzIHcGiaLYhYUTSWbjkz0dwc+rbjb2radGK0 AblgIXPWrgcZ+dfQgak/L675Tzaoz8i+bOpLxRjay9AFZU1kvelvkCbihSzzSkdFk9pz TkAhISk+SjLvlsDs6PNbWf4a/Ld++JI/g5jxb5bFX+Bj+lYgtqSqT1RwlfpEQ9m1JeqU dY+coh87AH7rmYXJFj56DISjbs6s6PyNpAJDZvafDg5E/WhUDBCkCHKZQnowlLpuwUmR DAIA== X-Gm-Message-State: ANhLgQ0sKxq6BAQ8QmHG1s+aPOpD5rhn1tSELQqwCMMM4KXHFGKdX+Xg rcJn9GL0uSD1B3j8AWGqt+doNMWF+NyCSdEhsUq/v33imySk3VDneJgVgwpo1lBZeBms3ZJYCbM Twa49nTfxu6lHlqzBRQo= X-Received: by 2002:a67:2c81:: with SMTP id s123mr9924848vss.198.1585304177316; 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-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 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