Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp304223iog; Tue, 28 Jun 2022 23:57:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uFT5fz8Akx2DeuUKWz9zbLe0+9R9qvPLI5wtUsO2Mu3SgdCOsEWB9/WUjwrfwRk+xx44mJ X-Received: by 2002:a05:6402:2929:b0:435:6dfc:c4f2 with SMTP id ee41-20020a056402292900b004356dfcc4f2mr2239032edb.284.1656485870663; Tue, 28 Jun 2022 23:57:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656485870; cv=none; d=google.com; s=arc-20160816; b=pX4Nq/+op00gCC6l1/Rv6xQQWtPalnwf8rfnadfYvN8aYM+9LOPXPIDJBRzScqCBRq ZeieNTBEmGh/2HgKSlU/wLWuosWIPxB4SdwofAEgfd0L2T66QZsxCKHEmOA+HCQ4j1NM o+8E1xFPGBMV4aIoZCCDSWvAUqy/mnKEY8IZIx7jZqi4k7G19rMKH9IFSMTw3kqaLYjo EHMKyn1nOgcGszgrNPrhKFPHHX6Gr5QSK0k9Viq9wZs2IJolj7kCWOHAxoNrOcZT+NXU HPFwAEa02+5eyn1zwCdQhHl7WhPgOoU3tGdJ5+hVlw0Plw1Nw40WolSqG5r8D2lti7G4 +JTw== 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=ijpxmAbTE0vRZn+aZto/IHK42HMSoe2IL8nzCtTckDo=; b=jOp/R4xdoYJoXJms1YJSPtRtHRb7yk05c40/Sf71N1sIhAQ18JyvzN6fowYJcMRV4U oYVi7dC8btx7NELZdJgm7M2VHn73q37slOdk0h3a5unTtIMSW7C1D7ik7ru6IlBb76pp P5hiXQBRftIs9vDCBSMjyUEZpSiyNh2fkX0DiOB0pzdj3P84vqSbXzanB7XnNYeNPP7Q 1r1lMS9+C2JTvtEhpH4GrmhRbcPl7uqH/JYDUERfGTOFkHsMVlKs6dgTATjKSHDQgRdZ kcNjyv9NOCYbbnTaZ6//5t9ibaIupnRsEumbTAGvpylyD8wW6he3bGGeih3Ho8dmfjOi oxUg== 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 r16-20020aa7cb90000000b00435d7a8d48esi822434edt.53.2022.06.28.23.57.25; Tue, 28 Jun 2022 23:57: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 S231968AbiF2GdQ (ORCPT + 99 others); Wed, 29 Jun 2022 02:33:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230201AbiF2GdO (ORCPT ); Wed, 29 Jun 2022 02:33:14 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3FF31D0C8; Tue, 28 Jun 2022 23:33:13 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id E206E68AFE; Wed, 29 Jun 2022 08:33:08 +0200 (CEST) Date: Wed, 29 Jun 2022 08:33:08 +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 , Chaitanya Kulkarni Subject: Re: [PATCH v7 01/21] lib/scatterlist: add flag for indicating P2PDMA segments in an SGL Message-ID: <20220629063308.GB17234@lst.de> References: <20220615161233.17527-1-logang@deltatee.com> <20220615161233.17527-2-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220615161233.17527-2-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:13AM -0600, Logan Gunthorpe wrote: > Make use of the third free LSB in scatterlist's page_link on 64bit systems. > > The extra bit will be used by dma_[un]map_sg_p2pdma() to determine when a > given SGL segments dma_address points to a PCI bus address. > dma_unmap_sg_p2pdma() will need to perform different cleanup when a > segment is marked as a bus address. > > The new bit will only be used when CONFIG_PCI_P2PDMA is set; this means > PCI P2PDMA will require CONFIG_64BIT. This should be acceptable as the > majority of P2PDMA use cases are restricted to newer root complexes and > roughly require the extra address space for memory BARs used in the > transactions. > > Signed-off-by: Logan Gunthorpe > Reviewed-by: Chaitanya Kulkarni Looks good: Reviewed-by: Christoph Hellwig