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 C6A1CA058B; Wed, 25 Mar 2020 15:40:08 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 61D5B2BCE; Wed, 25 Mar 2020 15:40:08 +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 7E3702BCE for ; Wed, 25 Mar 2020 15:40:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585147206; 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=E/4k28AV7XsAZclrQcFvJTlF5jRerIRYSexgsW9bM/lR6iHsstj+hmTM+ZCLYK3viLnM/7 yD68mIWVRCH12mKGcfMMyw2qq3DM4lYGIYUGuGqjPeswmV9+r9EMoXH5uUCFv76t6ZNB4k h+y60wWylnCCzxkkC6iUP8Ew8kDkZ7s= Received: from mail-vk1-f197.google.com (mail-vk1-f197.google.com [209.85.221.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-357-Fd163hnUOm-fjIjQ2y0TzA-1; Wed, 25 Mar 2020 10:40:02 -0400 X-MC-Unique: Fd163hnUOm-fjIjQ2y0TzA-1 Received: by mail-vk1-f197.google.com with SMTP id c127so835421vkh.18 for ; Wed, 25 Mar 2020 07:40:02 -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=DfyxU+u4ap7+OFtOHm5K15elkdXKgcNzvoTZUaF0qFEIT99TgWSRGElSP0dV9SOo0t F2/lz/cOj5XN6nP46QOfepKN+Y8UI/MkX/c1bAS7b1ASN2ibVsAA5xOl3WUdnmuT/HTG IQo6Zy9Sf7Z82hd5es7grT4BWgEAAMefa3ojEtgeCBXFLRtq8TWRprlqzMWkvHka3IdL Ariv1A07IsgrcFah9r1+CjuBz7L4MpZ6OQlEond+N0JPeRej/5UJlk7C7zp40SuDlG+n 7rRwSImAvXTrsCpqtyhXF1zcVRpcen7RcImsWjUCUG1/cW82WSDLCUjFjVK1MhNYv4Dv 9O0A== X-Gm-Message-State: ANhLgQ3o/I70k9PBdQiXZiS8tCQnenqlLVEY5nrlDC3LOstUxywqERK2 dcFv5bMkW/4mv53eJuTVElOfGDPCLY9wRFWfVfzF6q3SC1rSIoQMHnkjsJtK4HgU8AQsMW6fTr8 y4AMFEXYFpGO5lnqW+J0= X-Received: by 2002:ab0:698e:: with SMTP id t14mr2574491uaq.53.1585147199759; 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 Date: Wed, 25 Mar 2020 15:39:48 +0100 Message-ID: To: Anatoly Burakov Cc: dev , dpdk stable 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 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? --=20 David Marchand