Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp611578rwb; Fri, 23 Sep 2022 01:27:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6nIxybz9MpSWtfDwC/ERYJSmRmPN1tL0c003EijSIy1V1aXXhYnLTaoxbCD5nXCYupWPMd X-Received: by 2002:a17:907:c22:b0:77c:32e9:f056 with SMTP id ga34-20020a1709070c2200b0077c32e9f056mr6024130ejc.768.1663921666678; Fri, 23 Sep 2022 01:27:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663921666; cv=none; d=google.com; s=arc-20160816; b=mJGDW++opeeGXAxpQS/AYs1R6UAYpKZhIJJE4ZxTpV60etxkq9/we7OdfV4tXAuF7Q 97Ab0Uc82b+oNW4ESg/23vHYGLtuXgXLGPFIVvLqYx4Xd+z7xuq6YXGQxf3H79UTJhHo q9qghj2pJz7OJMDgSVddLeGKJ5mpUPz16HLOGW7q5PDCXuDFsQNav7m0uuVRfLYTMV3X xiGHJGqbbG6xK+YpKesN30qvCcPbc2QfKLKZBNpdVJQ6FHf9zUMkwZlSCQfxRaJkUZGE XXkLptzQhPbiopxTUkkobsxES3El55STZ3JVe1BnnmKKm9f7K4v+A4uy+Mz+38OnlF3M oHJw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CFds7XLAidVoJOIhtgk4625a0JA0XxXOF9vnzsnO7GQ=; b=k28RTvYTRLgmmisQEgY8vh/WVBdBj8+juxugSmMNVnuvR1VvB/ApgcJ4UEcQUonGYI bmVS2Wb7khpd/kUIQ5lAO45RgoS+56dMJsB4IFr/VGjshfuTPH5AKPjQA0bWMr6zYXyn SUGG8J3NPMhAWV3bT1VGloxTU5/goQE11GGzxBjkMrcnNxnbEyAOiWSd7VdZ+eD7E5La RSOYGGAReHaa8V6q5HzmaagzlMC3HnVWcQKJphtbgqspjk5l/m5C27aN6J7Lch02NxaO EojkGVeQZ3521E67HyjcqyzKrbHp7XK7AcKylifGhbuHi8OZYzpFykrF5wUFgso+CkBs 1UOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=o9+tOWYJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i7-20020a1709064fc700b0073dbc331a40si8077323ejw.188.2022.09.23.01.27.15; Fri, 23 Sep 2022 01:27:46 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=o9+tOWYJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231239AbiIWIQ3 (ORCPT + 99 others); Fri, 23 Sep 2022 04:16:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231134AbiIWIQ0 (ORCPT ); Fri, 23 Sep 2022 04:16:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C780121664; Fri, 23 Sep 2022 01:16:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 22E0DB821C3; Fri, 23 Sep 2022 08:16:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7AFE6C433C1; Fri, 23 Sep 2022 08:16:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1663920982; bh=qQQawoyo8Ms4rX1gVkbqT0fErkXp61RRShIVeBDKDKI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=o9+tOWYJSpa68OMyolen1G+5DULplrdUjy4vXQ2W5eZ0I6oOtsDqosgxCxyn5Uxg+ +redHmE741xCg+64+6lVvrTSCeBcS3CZKLk7kCE53NVX586JI8bIsLA2Z/BPLeOB/Y kVm7JeJmU3M/nPyA8FAHfVzZlG18ryXif+fvcTo0= Date: Fri, 23 Sep 2022 10:16:19 +0200 From: Greg Kroah-Hartman 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, 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 , Stephen Bates Subject: Re: [PATCH v10 0/8] Userspace P2PDMA with O_DIRECT NVMe devices Message-ID: References: <20220922163926.7077-1-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220922163926.7077-1-logang@deltatee.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Thu, Sep 22, 2022 at 10:39:18AM -0600, Logan Gunthorpe wrote: > Hi, > > This is the latest P2PDMA userspace patch set. This version includes > some cleanup from feedback of the last posting[1]. > > This patch set enables userspace P2PDMA by allowing userspace to mmap() > allocated chunks of the CMB. The resulting VMA can be passed only > to O_DIRECT IO on NVMe backed files or block devices. A flag is added > to GUP() in Patch 1, then Patches 2 through 6 wire this flag up based > on whether the block queue indicates P2PDMA support. Patches 7 > creates the sysfs resource that can hand out the VMAs and Patch 8 > adds brief documentation for the new interface. > > Feedback welcome. > > This series is based on v6.0-rc6. A git branch is available here: > > https://github.com/sbates130272/linux-p2pmem/ p2pdma_user_cmb_v10 Looks good to me, thanks for sticking with it. greg k-h