Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2813451ybl; Mon, 19 Aug 2019 07:53:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwL+H1Nq1stCuElPGckELgMlvQMcmonSnv5LVentgoB9cm4u16HC+aI0a+YwbDzv1/TBGZh X-Received: by 2002:aa7:914e:: with SMTP id 14mr24404438pfi.136.1566226427421; Mon, 19 Aug 2019 07:53:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566226427; cv=none; d=google.com; s=arc-20160816; b=PqlGw8ciLUPb9pgZJuzuicnLigQQ0sMcB/C94//sKbKJaE/nR6tdv6dPDZaP8a2J39 En2fIpAOfXIUw0AC//I8do6MgU7A7h+T/1XtRrFc8qrnwjNlXCwL1HCU0ZjXNz1rRzL/ O6oLrRQiRUGd2i5r6k64M1QEkRy6/GnmGon/+5ciU0hJQrBngz8iC/QHJLQc+IEoW+L3 T7f+cLpAbyKizd+iISmwtdNtd6b9oAIo+gAlvb8LE/HsXv3bPZFv2HQmYz8yDLIO3Xu2 j94kxI+ltJyNijSMH3MJkTNPgD/GhXBkmLVWcHIxlPDuP2XW53TXL6dLZtpfi0BOeIZc kfNA== 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=EV8HRQw4ahPrHVWAjmrvPIsj616jh9EPwW7Izned0n0=; b=MWLR1P8iccTB18huIAp3SzJ53oQUhMcw4/JiuS+7H09M0sij3eyjMCLCnx9GLV4kf7 qTzSRemPY7m+hIMh4HEBiR2qYnwa7FHbLn9lNZyXEj3ToU2diN7qieZopQ83PXHX1UUU T51+a3ZwagRbJBPYWNTkTioG9ojQO1Swm6jFEOOH1+64qawUPZ9zT9FSE17R8C4jI5jD 0juPniRMv9Mw/gpa4fQqdj3qdbHOveJlcRRCSEMjXWVreg4JUiD/nS8hxXi8Qp5WbPU/ 62eNCvnttKRWhNQQ+NyXE6pjklJ8vbZVZF890wjGD5CHoHlZqKDz4x237GA023yrYdKI /Zkg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o185si3113504pfb.206.2019.08.19.07.53.32; Mon, 19 Aug 2019 07:53:47 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726661AbfHSOv1 (ORCPT + 99 others); Mon, 19 Aug 2019 10:51:27 -0400 Received: from mga18.intel.com ([134.134.136.126]:34266 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726211AbfHSOv1 (ORCPT ); Mon, 19 Aug 2019 10:51:27 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Aug 2019 07:51:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,405,1559545200"; d="scan'208";a="195551635" Received: from unknown (HELO localhost.localdomain) ([10.232.112.69]) by fmsmga001.fm.intel.com with ESMTP; 19 Aug 2019 07:51:26 -0700 Date: Mon, 19 Aug 2019 08:49:22 -0600 From: Keith Busch To: Marta Rybczynska Cc: 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: <20190819144922.GC6883@localhost.localdomain> References: <89520652.56920183.1565948841909.JavaMail.zimbra@kalray.eu> <20190816131606.GA26191@lst.de> <469829119.56970464.1566198383932.JavaMail.zimbra@kalray.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <469829119.56970464.1566198383932.JavaMail.zimbra@kalray.eu> User-Agent: Mutt/1.9.1 (2017-09-22) 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 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.