From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3B343C6FA82 for ; Fri, 23 Sep 2022 08:16:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B4A668000A; Fri, 23 Sep 2022 04:16:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AD19B80007; Fri, 23 Sep 2022 04:16:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 972128000A; Fri, 23 Sep 2022 04:16:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 84AA780007 for ; Fri, 23 Sep 2022 04:16:24 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 611771A0F03 for ; Fri, 23 Sep 2022 08:16:24 +0000 (UTC) X-FDA: 79942643088.04.7302BF5 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf07.hostedemail.com (Postfix) with ESMTP id 147FE4001F for ; Fri, 23 Sep 2022 08:16:23 +0000 (UTC) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 6E2FC6200E; Fri, 23 Sep 2022 08:16:23 +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> ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=linuxfoundation.org header.s=korg header.b=o9+tOWYJ; spf=pass (imf07.hostedemail.com: domain of gregkh@linuxfoundation.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org; dmarc=pass (policy=none) header.from=linuxfoundation.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663920984; a=rsa-sha256; cv=none; b=0YcRMhSyABdnVh7aA0NVMlvnsPm8q+WnPuNadkauK68+9OnDLP41GaHY7GPxlIHaVRhGuF glP8t9JLl/wW4jSJe3wZsyPYwu2H9bt1xHK+swpXAx8CRWVvUIMXE2YtXQlbFzLN2mY5RW fpTOZC09MR9nQg+mr3A+I3y5s60RatY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663920984; h=from:from:sender: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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=CFds7XLAidVoJOIhtgk4625a0JA0XxXOF9vnzsnO7GQ=; b=xmcXAMJUw3NbWk73b3qo43LEQF8AumSKKOQZ2Lkaw5n0PdsjeyE4uvZHp41ayX/5PK9QUI SPhTKr6uSFHnjYoDjeQJZT9v1LarRKGif+vz1HtVoYeKfzeXrlBFKj+I+ZwkIu5y1FgAXR vezNlmKuzsF3m/SKxhXv0/4DuA9YgAg= Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=linuxfoundation.org header.s=korg header.b=o9+tOWYJ; spf=pass (imf07.hostedemail.com: domain of gregkh@linuxfoundation.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org; dmarc=pass (policy=none) header.from=linuxfoundation.org X-Rspam-User: X-Stat-Signature: yx8q63y4c5t9kqwqqzua948ngrstmjxa X-Rspamd-Queue-Id: 147FE4001F X-Rspamd-Server: rspam09 X-HE-Tag: 1663920983-528261 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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