From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E980CA0561; Fri, 5 Mar 2021 08:50:46 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1B5B14069B; Fri, 5 Mar 2021 08:50:46 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id 6FF7840147 for ; Fri, 5 Mar 2021 08:50:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614930643; 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: in-reply-to:in-reply-to:references:references; bh=9t6qV2bUOFntEpSFgmoybcgwQ89gtamqu/xs5JwmEQs=; b=aRh8Ty1SUeackXwOvK2RxcCOMbGFoZHiWrsyVugLxMqlAd7Ztiv2b5YqcbPCVRgs+jbk5m 3bo4cvxeEplrL4dQ90pQC0tm2yVR8vJtKvUHkvGSsVXxildklklqjT7u23YwIze4/s4iyx hlgKdXJDPrhCyZ49I/xI2FbT1k01EmE= 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-327-_VK1m7IWOgqxQlcJMS1IOQ-1; Fri, 05 Mar 2021 02:50:40 -0500 X-MC-Unique: _VK1m7IWOgqxQlcJMS1IOQ-1 Received: by mail-ua1-f72.google.com with SMTP id 16so129506uaq.18 for ; Thu, 04 Mar 2021 23:50:40 -0800 (PST) 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=9t6qV2bUOFntEpSFgmoybcgwQ89gtamqu/xs5JwmEQs=; b=d9/asKJO46zgGFBuOE/tse6qdr4YfOwrx9otnHcUikOWFvwop77FeFiQgOx7nVHbWp gCQ2HAbs4wPvWfos8baJR1IQdAg6NG7+uY+eUupmS9gtkcmSHkZ9dyC9D0TSkAIfRBoV SuvzJwXoD5yo+pWEfLBZJhVW952MPykWpoBUKrQH9FZN49yNGMQhkXM6clD7n18MPVyq 04GKvWZyII9CUSnwNfdqhrvOT72ti8ghazHMbxpkjHrnsmOF3z0SKiJa5QinzjyrUxu5 9cMgDU1byPfH30mjoYriRZPVy57YIai7ubqHv7mxOZa3XZA9SbJYCxNJtn2v3FJUTMeQ K3ng== X-Gm-Message-State: AOAM531nG4mpemWm4c9+lp8OxiXA55xMH0zgX7lhCYpxljFPtAe0vRiX 7y/ZuxwD/Pd9hDd/J+hPZbeEH11IZ5J3yBu9Y64/fJM5AOzGbnSKybtrnreAXUCA+q5beePKba4 i1C0wwcaZ3KQNebBFxhQ= X-Received: by 2002:a05:6102:ed4:: with SMTP id m20mr4784124vst.27.1614930639608; Thu, 04 Mar 2021 23:50:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwh3xg3k0A/o90iCb2mvWoNqBTa2VEHP60rVFsEsLdA9ZfDR3Tcte/OXcNpBJJ0DuI+XDeCfD48MKM+g3lz7n8= X-Received: by 2002:a05:6102:ed4:: with SMTP id m20mr4784116vst.27.1614930639384; Thu, 04 Mar 2021 23:50:39 -0800 (PST) MIME-Version: 1.0 References: <20201012081106.10610-1-ndabilpuram@marvell.com> <20210115073243.7025-1-ndabilpuram@marvell.com> <20210115073243.7025-2-ndabilpuram@marvell.com> In-Reply-To: <20210115073243.7025-2-ndabilpuram@marvell.com> From: David Marchand Date: Fri, 5 Mar 2021 08:50:28 +0100 Message-ID: To: Nithin Dabilpuram Cc: "Burakov, Anatoly" , David Christensen , Jerin Jacob Kollanukkaran , dev , dpdk stable Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v8 1/3] vfio: revert changes for map contiguous areas in one go X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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, Jan 15, 2021 at 8:33 AM Nithin Dabilpuram wrote: > > In order to save DMA entries limited by kernel both for externel > memory and hugepage memory, an attempt was made to map physically > contiguous memory in one go. This cannot be done as VFIO IOMMU type1 > does not support partially unmapping a previously mapped memory > region while Heap can request for multi page mapping and > partial unmapping. > Hence for going back to old method of mapping/unmapping at > memseg granularity, this commit reverts > commit d1c7c0cdf7ba ("vfio: map contiguous areas in one go") > > Also add documentation on what module parameter needs to be used > to increase the per-container dma map limit for VFIO. > > Fixes: d1c7c0cdf7ba ("vfio: map contiguous areas in one go") > Cc: anatoly.burakov@intel.com > Cc: stable@dpdk.org > > Signed-off-by: Nithin Dabilpuram > Acked-by: Anatoly Burakov > Acked-by: David Christensen There is a regression reported in bz: https://bugs.dpdk.org/show_bug.cgi?id=649 I assigned it to Anatoly for now. Nithin, can you have a loo too? Thanks. -- David Marchand