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 29BB442B12; Mon, 15 May 2023 13:17:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AC68640687; Mon, 15 May 2023 13:17:12 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id EFAD440395 for ; Mon, 15 May 2023 13:17:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1684149429; 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=ig7XQqA5luuyi4al7rNocn5beGF7zwwrG4yMhtI8tSc=; b=INR7uES4x5mq1UcPprKOEnF9d0vr+425ieCN5/np+XbnPwQxVBHDUOp3eMdoOKuTF3vqlF hNklAE5evCUpSWS/54tyP/wFKmwH39SWLKMQeH9Rlw6CkHcWiZkezd7eSX1R9LbzTxwQLA efYbYYoUpVbXCiTG6CauVKyAFzKgWuQ= Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-608-BUF2bQyUNiappe6AJG-fOQ-1; Mon, 15 May 2023 07:17:08 -0400 X-MC-Unique: BUF2bQyUNiappe6AJG-fOQ-1 Received: by mail-pf1-f199.google.com with SMTP id d2e1a72fcca58-643fdfb437aso46806756b3a.0 for ; Mon, 15 May 2023 04:17:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684149427; x=1686741427; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ig7XQqA5luuyi4al7rNocn5beGF7zwwrG4yMhtI8tSc=; b=eLglefz8RXT0GhbJhFkAwEnAdLdHrjoW5d/vbOqrS5ouQKHknYY/20VzIW4Cs9nKvH 5o/nSLcgLi0qw0DwSV4hXaWx6PufKLD0Bc6aN8l1BhPkA/i6KsLpbtCwfr0G/PSBoV8B nixozKy1MBxIegiKrMlUBeHWWxyWdg6N+7fTtixqRVnr8FUxkSUNN5q7ldMZWC09aSkX Sj85PZtirVk2P6871ck3UeaZTVo9Wr1LPZqooM41B9DVvJemjc4J8X5GVa9l1hj1WivG +vHgY4HSPj13+53i4/K8ET2scBSn2s6Bc9TwZa888p0jqPn14u6LYHklOWumtwFBFe/u 72mw== X-Gm-Message-State: AC+VfDxF/RXADqENFEknBGZuFk1XJeY/6VKOugAcu6cYESuQrJhvK4eK hWMNSyWAGPA3GG5lIA3nSBDa7RBLEIslvgdhbuTL3nVhYQzEVbg01odMbprnkEXuZZRRlJYRnW2 VP7BZnZQbk23mv6cSVww= X-Received: by 2002:a17:903:48e:b0:1a9:4cd5:e7e0 with SMTP id jj14-20020a170903048e00b001a94cd5e7e0mr39254201plb.17.1684149427343; Mon, 15 May 2023 04:17:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/cisqHKIqMWGhinisLPEfMIxe1u3zA4rXvPQkxriJs7eUMfKcxCRxKLxc1S7516UtPitkHZYWnasA67Aa3xU= X-Received: by 2002:a17:903:48e:b0:1a9:4cd5:e7e0 with SMTP id jj14-20020a170903048e00b001a94cd5e7e0mr39254175plb.17.1684149426993; Mon, 15 May 2023 04:17:06 -0700 (PDT) MIME-Version: 1.0 References: <20221230095853.1323616-1-nipun.gupta@amd.com> <20230104051936.2456411-1-nipun.gupta@amd.com> In-Reply-To: <20230104051936.2456411-1-nipun.gupta@amd.com> From: David Marchand Date: Mon, 15 May 2023 13:16:55 +0200 Message-ID: Subject: Re: [PATCH v2] vfio: do not coalesce DMA mappings To: Nipun Gupta Cc: dev@dpdk.org, thomas@monjalon.net, anatoly.burakov@intel.com, ferruh.yigit@amd.com, nikhil.agarwal@amd.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Wed, Jan 4, 2023 at 6:19=E2=80=AFAM Nipun Gupta wr= ote: > At the cleanup time when dma unmap is done, linux kernel > does not allow unmap of individual segments which were > coalesced together while creating the DMA map for type1 IOMMU > mappings. So, this change updates the mapping of the memory > segments(hugepages) on a per-page basis. > > Signed-off-by: Nipun Gupta > Signed-off-by: Nikhil Agarwal Reviewed-by: Anatoly Burakov Applied, thanks. --=20 David Marchand