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 X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 800CFC433DF for ; Tue, 16 Jun 2020 16:07:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 58CE9214DB for ; Tue, 16 Jun 2020 16:07:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592323637; bh=3FKReWcTjxvtWSUP+wv760H8pXRYIvClXEOzXJsmKFs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=2VKnw05WsogtWfPyz3xfHvSWzd1Vyer+Ys9kkpgj35H1TeFrGhfNPyDSXVK2GIS/6 BOcZZpGX0O8KIo5Bd08dvhPkFbcV4HkOCbAtU2qTgj7p36nUxXJz/omhBy/zjgAodw cQpW4DhTqj7ddW1JJsa2FcOOdRv2i8jYS+z6RPC0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731610AbgFPQHQ (ORCPT ); Tue, 16 Jun 2020 12:07:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:40568 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732437AbgFPQHP (ORCPT ); Tue, 16 Jun 2020 12:07:15 -0400 Received: from dhcp-10-100-145-180.wdl.wdc.com (unknown [199.255.45.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 005572071A; Tue, 16 Jun 2020 16:07:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592323635; bh=3FKReWcTjxvtWSUP+wv760H8pXRYIvClXEOzXJsmKFs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UZpcW41sZs78uweTNWmMHceoI27W6QrK2th1ZNmdYMFnEbV45nWsMaStiXP8jtx1q 44Xj4Arvy0uvR4kWThVQkxNpjeuEfD8gyJWl06RFdKDPiBI0kJIpyT8Trn9spTz8GU blNykQbTSBXDvBsj/YCdDFgHUaXQZLzpxd9V0WDo= Date: Tue, 16 Jun 2020 09:07:12 -0700 From: Keith Busch To: Javier =?iso-8859-1?Q?Gonz=E1lez?= Cc: Damien Le Moal , Matias =?iso-8859-1?Q?Bj=F8rling?= , Jens Axboe , Niklas Cassel , Ajay Joshi , Sagi Grimberg , Keith Busch , Dmitry Fomichev , Aravind Ramesh , "linux-nvme@lists.infradead.org" , "linux-block@vger.kernel.org" , Hans Holmberg , Christoph Hellwig , Matias Bjorling Subject: Re: [PATCH 5/5] nvme: support for zoned namespaces Message-ID: <20200616160712.GB521206@dhcp-10-100-145-180.wdl.wdc.com> References: <20200616120018.en337lcs5y2jh5ne@mpHalley.local> <20200616122448.4e3slfghv4cojafq@mpHalley.local> <20200616141620.omqf64up523of35t@MacBook-Pro.localdomain> <20200616150217.inezhntsehtcbjsw@MacBook-Pro.localdomain> <20200616154812.GA521206@dhcp-10-100-145-180.wdl.wdc.com> <20200616155526.wxjoufhhxkwet5ya@MacBook-Pro.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200616155526.wxjoufhhxkwet5ya@MacBook-Pro.localdomain> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Tue, Jun 16, 2020 at 05:55:26PM +0200, Javier González wrote: > On 16.06.2020 08:48, Keith Busch wrote: > > On Tue, Jun 16, 2020 at 05:02:17PM +0200, Javier González wrote: > > > This depends very much on how the FS / application is managing > > > stripping. At the moment our main use case is enabling user-space > > > applications submitting I/Os to raw ZNS devices through the kernel. > > > > > > Can we enable this use case to start with? > > > > I think this already provides that. You can set the nsid value to > > whatever you want in the passthrough interface, so a namespace block > > device is not required to issue I/O to a ZNS namespace from user space. > > Mmmmm. Problem now is that the check on the nvme driver prevents the ZNS > namespace from being initialized. Am I missing something? Hm, okay, it may not work for you. We need the driver to create at least one namespace so that we have tags and request_queue. If you have that, you can issue IO to any other attached namespace through the passthrough interface, but we can't assume there is an available namespace. 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 X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D9576C433DF for ; Tue, 16 Jun 2020 16:07:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AF120208B3 for ; Tue, 16 Jun 2020 16:07:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="QI9aUUC8"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="UZpcW41s" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AF120208B3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=b020RYmO1o8F0X6bpr3u1F6s9TeEAYwo15fx57GEYW0=; b=QI9aUUC8Xk/kWR peSEYhhmGz1TKykwGX59Hjs0zGyYDhyr5CvxFUK3FL3dLPnHwnq/Q90XbeVs7knzaFLAuMU954Si3 WMZUhfwoQVoydBHigm+S2DFe2InzvkgfWwW6GpX3GEHn/332Q5D/1bHaxMiIXiofJ2qAo9aJymvzY 256ZT/R6yLo02Ol8EvJlP52fvS32pz4eyygOq8yGj2zzL66AD8acdhOuRGmbKv0422q/HZRO72zKP vRiDJ85l63gva/rG/Uf19s17i+HzrgwYIX/o7rYRhPn96t072yhORod49fzdXklVMhKUrfPQ7C8KJ PRMdWCb9qO5x0zPu+dWA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jlE7M-0003ZQ-Lm; Tue, 16 Jun 2020 16:07:20 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jlE7H-0003VL-Ao for linux-nvme@lists.infradead.org; Tue, 16 Jun 2020 16:07:16 +0000 Received: from dhcp-10-100-145-180.wdl.wdc.com (unknown [199.255.45.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 005572071A; Tue, 16 Jun 2020 16:07:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592323635; bh=3FKReWcTjxvtWSUP+wv760H8pXRYIvClXEOzXJsmKFs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UZpcW41sZs78uweTNWmMHceoI27W6QrK2th1ZNmdYMFnEbV45nWsMaStiXP8jtx1q 44Xj4Arvy0uvR4kWThVQkxNpjeuEfD8gyJWl06RFdKDPiBI0kJIpyT8Trn9spTz8GU blNykQbTSBXDvBsj/YCdDFgHUaXQZLzpxd9V0WDo= Date: Tue, 16 Jun 2020 09:07:12 -0700 From: Keith Busch To: Javier =?iso-8859-1?Q?Gonz=E1lez?= Subject: Re: [PATCH 5/5] nvme: support for zoned namespaces Message-ID: <20200616160712.GB521206@dhcp-10-100-145-180.wdl.wdc.com> References: <20200616120018.en337lcs5y2jh5ne@mpHalley.local> <20200616122448.4e3slfghv4cojafq@mpHalley.local> <20200616141620.omqf64up523of35t@MacBook-Pro.localdomain> <20200616150217.inezhntsehtcbjsw@MacBook-Pro.localdomain> <20200616154812.GA521206@dhcp-10-100-145-180.wdl.wdc.com> <20200616155526.wxjoufhhxkwet5ya@MacBook-Pro.localdomain> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200616155526.wxjoufhhxkwet5ya@MacBook-Pro.localdomain> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200616_090715_408238_ECC2450B X-CRM114-Status: GOOD ( 12.69 ) X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jens Axboe , Niklas Cassel , Damien Le Moal , Ajay Joshi , Sagi Grimberg , Keith Busch , Dmitry Fomichev , Aravind Ramesh , "linux-nvme@lists.infradead.org" , "linux-block@vger.kernel.org" , Hans Holmberg , Matias =?iso-8859-1?Q?Bj=F8rling?= , Christoph Hellwig , Matias Bjorling Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-nvme" Errors-To: linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org On Tue, Jun 16, 2020 at 05:55:26PM +0200, Javier Gonz=E1lez wrote: > On 16.06.2020 08:48, Keith Busch wrote: > > On Tue, Jun 16, 2020 at 05:02:17PM +0200, Javier Gonz=E1lez wrote: > > > This depends very much on how the FS / application is managing > > > stripping. At the moment our main use case is enabling user-space > > > applications submitting I/Os to raw ZNS devices through the kernel. > > > = > > > Can we enable this use case to start with? > > = > > I think this already provides that. You can set the nsid value to > > whatever you want in the passthrough interface, so a namespace block > > device is not required to issue I/O to a ZNS namespace from user space. > = > Mmmmm. Problem now is that the check on the nvme driver prevents the ZNS > namespace from being initialized. Am I missing something? Hm, okay, it may not work for you. We need the driver to create at least one namespace so that we have tags and request_queue. If you have that, you can issue IO to any other attached namespace through the passthrough interface, but we can't assume there is an available namespace. _______________________________________________ linux-nvme mailing list linux-nvme@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-nvme