Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2344860ybl; Mon, 19 Aug 2019 00:07:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxeEImJSJjcq8qNlGrQ8J3b0VPv0V68n33CnqMh6saOV3uEn6KaBD+Kra7GvWx8VXdwAV0t X-Received: by 2002:a17:90a:24ed:: with SMTP id i100mr19263043pje.47.1566198455187; Mon, 19 Aug 2019 00:07:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566198455; cv=none; d=google.com; s=arc-20160816; b=k7b84H3kd6fSseItxHXcPFhHiHQmIbe05ZRUWhbgTkHa6qEGXaj7aPNSeF+j7OOS55 hz2ZmD/B2sKsYEWPZ2LSUdHhkAMZiiXU5jXXRe8fpZfXHYG5tzjqZD/taD+62hDn6eE8 RwgG9rz0pcxs2OW2dbfiD+b5zYobpRqnBcGn51jnYMB5KFlBbc5gy1O08qr+4EbHOSb+ 27cBzc7nWZ93atGN/QLP9HECQAOQBprzb2iDrjLQ//2WanO2HB340q6buQW++alGbWZ7 MyhAK4dkbSnvT4j7gfzePPSt8hJ2zLT8nvNYQJhWLOdCiL5aCizF9FeoB+pgludYaRc/ 0a0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:dkim-signature:dkim-filter; bh=dRbE1G1rLC8d0xbZihvvSPfRukHmXOgB5B+WDmoRRFg=; b=q7UuN5Dx/fdLELTb/BSu35pwL/luQ9rRXoCRxi7VeIYjGjyEti22FcfGPn/LxwxGIl xsBn2eMNTsaMrNaRPFou3w0/HyNCfdGjOBYNQ9I/qnsGa6Dc1nyYUNG8fDlQm+HrVM7C 7JmgDNtrCQjLGVRf8g4nEI/TTmYczbO5XyH4zFboWt0c6e3Qu+ImFE4FeVyT8mmLMdeL LuNjkLb/G0xv6HXSyUjY2ZYP+j5t7KfQpEXS8Qjzn41yibV7V/tr6RWCIIY43/3ZnSTr kpXThFsX9aYKX1XDJYuk4GAWLdViwdd0kErRlKcvIzzf9sTs84laUiYCcbjkDZgc4IYJ BW4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kalray.eu header.s=32AE1B44-9502-11E5-BA35-3734643DEF29 header.b=DBiJNvZp; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=kalray.eu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a18si9196687pgg.28.2019.08.19.00.07.19; Mon, 19 Aug 2019 00:07:35 -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; dkim=pass header.i=@kalray.eu header.s=32AE1B44-9502-11E5-BA35-3734643DEF29 header.b=DBiJNvZp; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=kalray.eu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726390AbfHSHG0 (ORCPT + 99 others); Mon, 19 Aug 2019 03:06:26 -0400 Received: from zimbra2.kalray.eu ([92.103.151.219]:35154 "EHLO zimbra2.kalray.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725872AbfHSHGZ (ORCPT ); Mon, 19 Aug 2019 03:06:25 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTP id A510527E06B6; Mon, 19 Aug 2019 09:06:24 +0200 (CEST) Received: from zimbra2.kalray.eu ([127.0.0.1]) by localhost (zimbra2.kalray.eu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id tin4bzQYQocK; Mon, 19 Aug 2019 09:06:24 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTP id 315B627E0C50; Mon, 19 Aug 2019 09:06:24 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 zimbra2.kalray.eu 315B627E0C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kalray.eu; s=32AE1B44-9502-11E5-BA35-3734643DEF29; t=1566198384; bh=dRbE1G1rLC8d0xbZihvvSPfRukHmXOgB5B+WDmoRRFg=; h=Date:From:To:Message-ID:MIME-Version; b=DBiJNvZpojEcci5vbx4InadAxSgnp38scHxWHSetHfn6tOMnNszlXx+6KVL1aEFFq +SO0Zhl1RYIXAvaBX1JyEcOXYcqx+ty0IA6RonvgtAccVhvdGc1/OAvy3KcFEtoLzX cwuoiWsM0QLqUdA1BxbS+YzRaS5wDOeSzzAHy8eU= X-Virus-Scanned: amavisd-new at zimbra2.kalray.eu Received: from zimbra2.kalray.eu ([127.0.0.1]) by localhost (zimbra2.kalray.eu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id OBDtmaUaefpI; Mon, 19 Aug 2019 09:06:24 +0200 (CEST) Received: from zimbra2.kalray.eu (zimbra2.kalray.eu [192.168.40.202]) by zimbra2.kalray.eu (Postfix) with ESMTP id 1555C27E06B6; Mon, 19 Aug 2019 09:06:24 +0200 (CEST) Date: Mon, 19 Aug 2019 09:06:23 +0200 (CEST) From: Marta Rybczynska To: Christoph Hellwig Cc: kbusch , axboe , Sagi Grimberg , linux-nvme , linux-kernel , Samuel Jones , Guillaume Missonnier Message-ID: <469829119.56970464.1566198383932.JavaMail.zimbra@kalray.eu> In-Reply-To: <20190816131606.GA26191@lst.de> References: <89520652.56920183.1565948841909.JavaMail.zimbra@kalray.eu> <20190816131606.GA26191@lst.de> Subject: Re: [PATCH v2] nvme: allow 64-bit results in passthru commands MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.40.202] X-Mailer: Zimbra 8.8.12_GA_3794 (ZimbraWebClient - FF57 (Linux)/8.8.12_GA_3794) Thread-Topic: nvme: allow 64-bit results in passthru commands Thread-Index: SvpBEuMWC+bTcJ9PbNdGJh/muWTsoA== 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. > > On Fri, Aug 16, 2019 at 11:47:21AM +0200, Marta Rybczynska wrote: >> It is not possible to get 64-bit results from the passthru commands, >> what prevents from getting for the Capabilities (CAP) property value. >> >> As a result, it is not possible to implement IOL's NVMe Conformance >> test 4.3 Case 1 for Fabrics targets [1] (page 123). > > Not that I'm not sure passing through fabrics commands is an all that > good idea. But we have pending NVMe TPs that use 64-bit result > values as well, so this seems like a good idea in general. I'm not sure how those tests could be implemented otherwise today. The goal is to send an arbitrary command to the target and the passthru command is AFAIK the only solution. If we have something better I'm sure they will be ready to use it. Regards, Marta