Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3649374pxb; Mon, 4 Oct 2021 06:52:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzB8sypnmt0+n1IzdzRdbWjBQ/zlfXQhsFbAdFy7eMb4WK0LnYfHWChV6icAqhcyl401ZSF X-Received: by 2002:aa7:858e:0:b0:44c:5e03:e7f7 with SMTP id w14-20020aa7858e000000b0044c5e03e7f7mr6164992pfn.9.1633355567732; Mon, 04 Oct 2021 06:52:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633355567; cv=none; d=google.com; s=arc-20160816; b=B4DU7FUPW0z2Zo7mBPYJipgLGGu4RuHyezH3iBl0nbhs3jQyGRPkoTAnnf6X2cfSzq TGtEEBtN5pUHENXi7Ak6WB+lwUuDDduP+80SwWCZjjfWouXGyEe8E79sidQcWaNjmWAg Nm3E0j6kyr0zPdgD7d0tDZgBObwsKoLix3hrDXMc3eGnPQePQMRi0WiEe/+y3lNwzgWl SnESVVj47nj/Rs1JTuqd7JsIoBZ0NxnpJJLSS3OXzyMaGfrpJt/Ff4DB0rEqRk3jd5lS eK9QN5ddgeqqVyBc0LRj36bM/nMvI+n99x0PCirkZa1JuARBY6n1LBxSZTxwT78DqWyB dwqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6DU7gsbiNP9sjcVSmyhc3kWa3WRl9w7+FTLOGs4ZFN4=; b=I46mbYvSzEeXq0HWjC8PfoJeNlADw1Fdvey9NahnimoOHPIBLVai9xeNKwkHr2nBGS Zt/IO3XBmR3FewQ5Oh6u3S3Fj8nxkB4Me3hmPia6eLjIyJruKzQ5dpRUcaGA8Xt6YCW8 H/ryN3+uLHtW3zA3N1v5D7kxUdgNZRzdf7FGdyxThId3clMSrryK/o+889Bz78GF3TXh qc9iceDUEK841MC0+R49mQEly5wSIVbBKxCM8azSvC0N8E17IiUx1TALb6Q1gSbOucf2 eIXF8Cy+iqY1qS9s16ziTvdh2KkJyzeuF1g58f4c1b+42kdOzSV3sBsDoQoRGIootF2E GJ1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=iDoHZmkG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ob15si23686372pjb.1.2021.10.04.06.52.31; Mon, 04 Oct 2021 06:52:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=iDoHZmkG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238332AbhJDNw5 (ORCPT + 99 others); Mon, 4 Oct 2021 09:52:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237210AbhJDNwy (ORCPT ); Mon, 4 Oct 2021 09:52:54 -0400 Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40BCAC09E7CD for ; Mon, 4 Oct 2021 06:28:01 -0700 (PDT) Received: by mail-qt1-x82f.google.com with SMTP id c20so15808719qtb.2 for ; Mon, 04 Oct 2021 06:28:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=6DU7gsbiNP9sjcVSmyhc3kWa3WRl9w7+FTLOGs4ZFN4=; b=iDoHZmkGlGlOGmyIALhCRv5d0FGVqcyqzKnkCSrwDERdEycsj9nKdyI4CDCY7dUkfu xidxgyjRN5kfHIRBmzvXWUYCVWONcmsNAfVlEJPerQ36OixcgdNf6z6xIX+i983wIGxX Fm+2zsmQUKlte1RY1Yvt03JDL8dJLW8PrakA/6MUOUbzXeejqw51g5Eeeoks+5BR2RWt 8H1t/KDZUmwt+6LpGInv6V0CGPBr9+/eJziRGIauTdgjFf1nuaO3lqEPw168Nple9yyR oLcnT0bAheHnXc8spN7mnErr+Hx9iaPz3jI3W/1sr1SvZCmQMtgwq+8Jx3uPm4zXeBnI 0JOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=6DU7gsbiNP9sjcVSmyhc3kWa3WRl9w7+FTLOGs4ZFN4=; b=pWoBSIMnS6CTxcnCExtvht+38NCg3Eb036Htn/7imaIQc/yIdJ3/J6zhE2Jhvpx6S4 OWFsQ1yoD5SA/aCaxRdTrUh2nVGR02ygEkHr/4OcoTLYOREetAg13vT/unwi+fM2hqSc rAhArasyt8I61scDrUT4ES9J/NnIpj056rvTfGHvHPPib7/Z3BBfofJkoOznLbdzCgMT 4ZHh+x53sNxz2L4Qxo+4QNcoNafDdxmlieDWXZ4l3qFv7Fd1iIzXojrIjoOasej8utH8 yakTwe9fhyQv8w0smdy0CfOEzSA7yqyEIIUvmHrSCWk7KpQ/wiG6NOpse2+jzYnLxOVk LDow== X-Gm-Message-State: AOAM532lL04ZWiXBQ/xfPGWEikAfkLX2k0JmllUoohFPzYoUEwtXkwGc V7Zp55pI2VLkXroDeYqW3oz0vA== X-Received: by 2002:ac8:564d:: with SMTP id 13mr13726534qtt.228.1633354080469; Mon, 04 Oct 2021 06:28:00 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-162-113-129.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.113.129]) by smtp.gmail.com with ESMTPSA id 205sm7652317qkf.19.2021.10.04.06.27.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Oct 2021 06:28:00 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1mXO0d-00ATnh-F3; Mon, 04 Oct 2021 10:27:59 -0300 Date: Mon, 4 Oct 2021 10:27:59 -0300 From: Jason Gunthorpe To: Christian =?utf-8?B?S8O2bmln?= Cc: Logan Gunthorpe , Alistair Popple , Felix Kuehling , Christoph Hellwig , Dan Williams , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-pci@vger.kernel.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org, Stephen Bates , John Hubbard , Don Dutile , Matthew Wilcox , Daniel Vetter , Jakowski Andrzej , Minturn Dave B , Jason Ekstrand , Dave Hansen , Xiong Jianxin , Bjorn Helgaas , Ira Weiny , Robin Murphy , Martin Oliveira , Chaitanya Kulkarni Subject: Re: [PATCH v3 19/20] PCI/P2PDMA: introduce pci_mmap_p2pmem() Message-ID: <20211004132759.GX3544071@ziepe.ca> References: <32ce26d7-86e9-f8d5-f0cf-40497946efe9@deltatee.com> <20210929233540.GF3544071@ziepe.ca> <20210930003652.GH3544071@ziepe.ca> <20211001134856.GN3544071@ziepe.ca> <4fdd337b-fa35-a909-5eee-823bfd1e9dc4@deltatee.com> <20211001174511.GQ3544071@ziepe.ca> <809be72b-efb2-752c-31a6-702c8a307ce7@amd.com> <20211004131102.GU3544071@ziepe.ca> <1e219386-7547-4f42-d090-2afd62a268d7@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1e219386-7547-4f42-d090-2afd62a268d7@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 04, 2021 at 03:22:22PM +0200, Christian König wrote: > That use case is completely unrelated to GUP and when this doesn't work we > have quite a problem. My read is that unmap_mapping_range() guarentees the physical TLB hardware is serialized across all CPUs upon return. It also guarentees GUP slow is serialized due to the page table spinlocks. Jason