Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp304755iog; Tue, 28 Jun 2022 23:58:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1shsKQ1KtrdzD2y4QrCpjw6Zwg4UeKVNucS/DeY7VYwz7KZIm4Cx/Swsw9buGkkKkY7p0Lg X-Received: by 2002:a17:907:608d:b0:722:ebcc:b108 with SMTP id ht13-20020a170907608d00b00722ebccb108mr1765054ejc.94.1656485930503; Tue, 28 Jun 2022 23:58:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656485930; cv=none; d=google.com; s=arc-20160816; b=hop2q84JpUXm0SHRfdDC/ezeDbiZjULlnrA25bQBuvUPzNY88Aqlm2BawtU/Ub9FNA sqFpXoz2F3FJrp0yfGklI7c+OTc37JpIo0wq5ziRt/CEG+4gp0thA+aYBE3l8V/UblJc Z/37irB/lntgdZ+bq8nK54llFpv2pb2LVn/OgQL/PeSkDiIfTTwjeO3cQgQ4GcdbYIxn BoF1UdxcKWXHuTwIOVU4zqc0bX+PaKMNWAvnAu4Dtx5STafDfwkb+fi698xpH8L3Xwu3 RPWsOKW6TiKzfRZnhah09qFE0kw0XkvN1/7Un5d1cEEt7547s83SRZLc+fnEMlMW2OEe bJ/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=a65a54vFn27IP9Hkwts42TIGKxFASTy6sg8ls7Qq+Gs=; b=Tiu5a/Vrf7IhIdSPbcReUqhjGyYNYtM1W8D2W+hEjLAN2ciupmRXa0aWtvOghexPbK vPD4SPdc7mDVewKPetJ11z376NntTAVFiyHMGF0iTo/VTrnUR7vWPyFQTUU/EH0MEwef ojek0FqpICc1dvPJ/m5ZBt21N4YYZ+PsUJlvWxVf+dnQEwzEunaBvBx+bbN7UivCTTMd CMrD8edU+v/l3Po7XgMKKB5FxD3pR3OVztNDIRvehQjLVeRUMGbUHbfGg73PUXiN9dzs /QE2myFaQCBmt0l44HsrbnymErkBbGz49StuJ7/LjXgWZCiDkA+DuMhdR7H+sIvTsyHj JY0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh44-20020a1709076eac00b006ff077eab22si19074137ejc.0.2022.06.28.23.58.23; Tue, 28 Jun 2022 23:58:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232113AbiF2GpI (ORCPT + 99 others); Wed, 29 Jun 2022 02:45:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230080AbiF2GpG (ORCPT ); Wed, 29 Jun 2022 02:45:06 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD3CE275C2; Tue, 28 Jun 2022 23:45:05 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id D8DF467373; Wed, 29 Jun 2022 08:45:02 +0200 (CEST) Date: Wed, 29 Jun 2022 08:45:02 +0200 From: Christoph Hellwig To: Logan Gunthorpe Cc: 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 , Christoph Hellwig , Dan Williams , Jason Gunthorpe , Christian =?iso-8859-1?Q?K=F6nig?= , John Hubbard , Don Dutile , Matthew Wilcox , Daniel Vetter , Minturn Dave B , Jason Ekstrand , Dave Hansen , Xiong Jianxin , Bjorn Helgaas , Ira Weiny , Robin Murphy , Martin Oliveira , Chaitanya Kulkarni , Ralph Campbell Subject: Re: [PATCH v7 14/21] mm: introduce FOLL_PCI_P2PDMA to gate getting PCI P2PDMA pages Message-ID: <20220629064502.GA17576@lst.de> References: <20220615161233.17527-1-logang@deltatee.com> <20220615161233.17527-15-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220615161233.17527-15-logang@deltatee.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 15, 2022 at 10:12:26AM -0600, Logan Gunthorpe wrote: > GUP Callers that expect PCI P2PDMA pages can now set FOLL_PCI_P2PDMA to > allow obtaining P2PDMA pages. If GUP is called without the flag and a > P2PDMA page is found, it will return an error. > > FOLL_PCI_P2PDMA cannot be set if FOLL_LONGTERM is set. Looks good: Reviewed-by: Christoph Hellwig