Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp180474ybl; Wed, 21 Aug 2019 17:10:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTEgcg3Z0x/tHUjsT/6i/qh59RKW5Dtm7Wj3zbNkStWbwc14N/cRH+3QYiApOPFsyTfAXq X-Received: by 2002:a17:902:7083:: with SMTP id z3mr36501134plk.87.1566432655144; Wed, 21 Aug 2019 17:10:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566432655; cv=none; d=google.com; s=arc-20160816; b=InwZnANhu0q2qUSUIKRJtA66YJiyyd/U2XA7dnnB0d4HVXuk39oV2MGs8ZMV1mgmmA OjJ2CgtcnHCWEwGB6sio3o13L30o0Yk0+2Ca+UgpLMhmouxC9Sw90XQTZ+G7lbUtn728 c8LDdAxMly5YN1o/mDT/9JHe9hcJO6PvTVcMYse/ERC8HfSJODRRXwd27GoOINaA0sbI zHwVNXCHV2t6IFPYt9b2iJPm163sXGgDTUS0eWvkYuHO5gOdhObjhRqLvUDU7LiB+ZpK cvU+65zFgncplb6ZBTymxbphxsXRawKBBC7DyzHoq8EzcQyX+1S+DTMYHcp06KXqkN62 Ahug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=voSjQz58JgrYpRiexxzc1gT+HoUg8PGdrpFxeMm4SSI=; b=oPkNNlxSdpVnrUfK0j9uWwRXFrM61FsDlU4zSjzMxTz9QNu/c19t4KO7EfYOcVCO/9 fyuUQKqoy8jS391M74a2NhNRc/m81PjyLVNU8L2+LcvGvGvyJzMbuiL39LEQ8uW429dW Q1QTAFKKWkjYX61NOi2mFDeY8U+20gwb7hQGbrWDZaeH673vNE2qX21l+fF+vUCEL1VE l2c84jWKj2FNVnafCfwdYNzJp2HzLfODHqQ8Q1LydoPlDKhqGmE268NwkuR0bg21kbNk egZETUhtz7txPTAPsN7H0+hPGl8xTRMrzt5VFf0DEQ64J7kR3kDt1AQQDga4+nI4nZMs bfqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d18si1064741pjz.58.2019.08.21.17.10.40; Wed, 21 Aug 2019 17:10:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730916AbfHUX7V (ORCPT + 99 others); Wed, 21 Aug 2019 19:59:21 -0400 Received: from verein.lst.de ([213.95.11.211]:41874 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728124AbfHUX7U (ORCPT ); Wed, 21 Aug 2019 19:59:20 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 2757568C7B; Thu, 22 Aug 2019 01:59:17 +0200 (CEST) Date: Thu, 22 Aug 2019 01:59:16 +0200 From: Christoph Hellwig To: Keith Busch Cc: Marta Rybczynska , Christoph Hellwig , axboe , Sagi Grimberg , linux-nvme , linux-kernel , Samuel Jones , Guillaume Missonnier Subject: Re: [PATCH v2] nvme: allow 64-bit results in passthru commands Message-ID: <20190821235916.GE9511@lst.de> References: <89520652.56920183.1565948841909.JavaMail.zimbra@kalray.eu> <20190816131606.GA26191@lst.de> <469829119.56970464.1566198383932.JavaMail.zimbra@kalray.eu> <20190819144922.GC6883@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190819144922.GC6883@localhost.localdomain> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 19, 2019 at 08:49:22AM -0600, Keith Busch wrote: > On Mon, Aug 19, 2019 at 12:06:23AM -0700, Marta Rybczynska wrote: > > ----- On 16 Aug, 2019, at 15:16, Christoph Hellwig hch@lst.de wrote: > > > Sorry for not replying to the earlier version, and thanks for doing > > > this work. > > > > > > I wonder if instead of using our own structure we'd just use > > > a full nvme SQE for the input and CQE for that output. Even if we > > > reserve a few fields that means we are ready for any newly used > > > field (at least until the SQE/CQE sizes are expanded..). > > > > We could do that, nvme_command and nvme_completion are already UAPI. > > On the other hand that would mean not filling out certain fields like > > command_id. Can do an approach like this. > > Well, we need to pass user space addresses and lengths, which isn't > captured in struct nvme_command. Well, the address would fit into the data pointer. But yes, the lack of a command length concept in nvme makes this idea a mess and not really workable.