Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3214040ybl; Mon, 19 Aug 2019 14:19:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3nxOJmuJg8bCn5V2od3rCZwf5dlHLT/cFNAZlo6s4T4Zceh9Rkxt5Nf0ObsXLxi93YGIz X-Received: by 2002:a63:607:: with SMTP id 7mr21694741pgg.240.1566249576201; Mon, 19 Aug 2019 14:19:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566249576; cv=none; d=google.com; s=arc-20160816; b=AKzaJ5y3PYHa97qtZgILXrK1SVFpC4hi0ErgD6+4jhyBGbxnUbcX6EuIypcRTi41iS Kaj8bO2EPglZ1bo3iVicyXO6NJ+Ro5Aay4I90u7cu6pBMk0rgiMUMQ9AjHwn7WBXaH8B +b64EBcAPyMJBkXm9YAZ6WbwShw4NxT+W/X/BR8kufaP3r8IUUUaTUwWojrx+PlSq49R fFrB393bqFdcrFtxShFbdq1+sjjvV6R692FzKTnrZC04d8A6BLpxG8MstJ361fIqb1rD kWpsZ1o8bF1wLIwfiysXdQX/Flfl201RWUq5+cdH+aQgVQYQng2HUT7V90miMiyQsRQ2 0lXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Iaf9uTw5RRpqXWMcFy0w3sEb9pCbcDKI4jRiTBEYduE=; b=hxDzZ58FMqdlQPIPfAlCsaZWPSMEvkStvtcvUvYtAD1X2Rx9IP7dFy3l0kXQS1nagc wC1rdelPQ0FNgjw+HPELM18939oRhbY/kDnk5P6tTFC+ykdNOeaBbTA1L6j95Jy2FH5F K/s6Ru4sNzbRvcMRFGTLZZpmgExcaQ8yJ92m4tWYRSHJCdGrK6Vik5eUlMYr73rp6uuy J5b5TSWbNUDtutZnzReUQG9n9gGJYNuUQjkU81hPVLVGjNF816/ungsr/GZ/rlohQJCJ RaLzGybG/2qJfzG5O6kPF4yl7kgXDMum6tCt2J6AE1YEv5OLMO0E9J1VQfLTMbBsuvtB JshA== 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 r8si11144923pfh.185.2019.08.19.14.19.21; Mon, 19 Aug 2019 14:19:36 -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 S1728488AbfHSVRs (ORCPT + 99 others); Mon, 19 Aug 2019 17:17:48 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:38114 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728283AbfHSVRr (ORCPT ); Mon, 19 Aug 2019 17:17:47 -0400 Received: by mail-ot1-f68.google.com with SMTP id r20so3048649ota.5 for ; Mon, 19 Aug 2019 14:17:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Iaf9uTw5RRpqXWMcFy0w3sEb9pCbcDKI4jRiTBEYduE=; b=XuXnXpn6OCKSKULN43QSZMedHC+z26oThr/B4AdGTxz3Gs1gMyiuaphgRh0q55WJdR byah2/2anbUx3D8R7dwXU93ng0ZH1IQoPINTCf4Cpp1og+Z+hR1nZgfc34WW75UvlQ3r W8jhEL0ksz8vZmTGyRW6uFuZIQnhvAxhZvSqyOrn113jdHYobjOMtDbm8JpRoHXJ5QwU pnlqEltNvx8o/3vkWzqTP6P8iBxUkgcSAZwuxp05/TE/Yb1gbujsy8ShBpbdkgqZJAUk WQ+K6vl7HcYBz+bAiK8bvqTzm0YuVpm50IG/dZTooEarUvW0GyoyLWeRq+/m4+oVcvyb T66w== X-Gm-Message-State: APjAAAWGsJOkPEunD/qthIo9yWLRTgVrw42g2u2pFPhFTL65ZX7pds1n UbSIUj/ayaJkLCsuZGT+RKk= X-Received: by 2002:a9d:5d18:: with SMTP id b24mr20248731oti.264.1566249466955; Mon, 19 Aug 2019 14:17:46 -0700 (PDT) Received: from ?IPv6:2600:1700:65a0:78e0:514:7862:1503:8e4d? ([2600:1700:65a0:78e0:514:7862:1503:8e4d]) by smtp.gmail.com with ESMTPSA id 20sm5979925otd.71.2019.08.19.14.17.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Aug 2019 14:17:46 -0700 (PDT) Subject: Re: [PATCH v2] nvme: allow 64-bit results in passthru commands To: Keith Busch Cc: Marta Rybczynska , Christoph Hellwig , axboe , linux-nvme , linux-kernel , Samuel Jones , Guillaume Missonnier References: <89520652.56920183.1565948841909.JavaMail.zimbra@kalray.eu> <20190816131606.GA26191@lst.de> <469829119.56970464.1566198383932.JavaMail.zimbra@kalray.eu> <20190819144922.GC6883@localhost.localdomain> <1d7819a9-9504-2dc6-fca4-fbde4f99d92c@grimberg.me> <20190819185749.GA11202@localhost.localdomain> From: Sagi Grimberg Message-ID: Date: Mon, 19 Aug 2019 14:17:44 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190819185749.GA11202@localhost.localdomain> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>>> ----- 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. >> >> Isn't simply having a 64 variant simpler? > > Could you provide more details on what you mean by this? Why would we need to pass addresses and lengths if userspace is sending the 64 variant when it is expecting a 64 result? Or maybe I'm missing something...