Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4070867ybx; Mon, 4 Nov 2019 07:23:56 -0800 (PST) X-Google-Smtp-Source: APXvYqxSDHrkg5hQ3AG+HxQt/vc05zKvI4gNbxC01dxn3Uvh/SCFRw8SdzuraiLdNUUsGcLVkWHh X-Received: by 2002:a17:906:742:: with SMTP id z2mr24714039ejb.32.1572881036245; Mon, 04 Nov 2019 07:23:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572881036; cv=none; d=google.com; s=arc-20160816; b=lf7I8l/MZL9v3n5YeTZowJjKbsvn0fLF6b3rhZZ4Z+I3EK/RHYe+Pjl+cD8q36rkst SbtikxysH1JWZUvR08fHYoM4vUFOdzUQzukdV9XpovXjEK0WgwPgRMHblWJ51ucaRshg qRs2fXrm00lPWvrukt4LeHPoeimufbOnHFJt/1eHZb/QXZWFJ4iDBtDmbXuKo+ajDctd dMx8/zCRCId/Jnopv8PYTZS/KmS1e27zH1O9aL/OKmN7fn9e3FTtbVQh9Wln3hhjrmIT nMQHc8klzdyVXPKowtKloQhYP33SEbMo33potiOUEVWhCAgKP8kyZnmTTJlPnwKj6dNK oLJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Luti0tQiJhItUnQbPoidnL8DId53OBM9Rj2bS+xXQGQ=; b=bSZTQ6O5tFCL9J8bksBpe32J5ytnB4um7f+D/KUQNEeGNy91dIVS1OPXr3j5FOv8N+ zSyi+5yyXmqA0SFgeYtu14BM7Z0HA3/9ovMiY3NM84zoHGDHVO2HjDAtLb3aHafOIQAE TZWvnUOp49lsq8cAStqioNfUT7m5Lf34YoFE3kRdE4RdcSRirGFmbIG94mEg6shpXzNC RLeQzSX2ot+Az2+lVNooxuPDhdiPBGVnigSR0CzJRA9Z9Rq+g4V2kH6pBvDvTxfL63PH O/VR3qfauYkUxT9PHF+9F9XLlEiwo0JDSA5OtxRR3CR6LbUChqZgv5zYr7Uo5M30i3+v LPgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SIWwAK2m; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gz10si1140076ejb.32.2019.11.04.07.23.33; Mon, 04 Nov 2019 07:23:56 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=SIWwAK2m; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728874AbfKDPUz (ORCPT + 99 others); Mon, 4 Nov 2019 10:20:55 -0500 Received: from mail-yw1-f66.google.com ([209.85.161.66]:46997 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727989AbfKDPUz (ORCPT ); Mon, 4 Nov 2019 10:20:55 -0500 Received: by mail-yw1-f66.google.com with SMTP id i2so7051625ywg.13 for ; Mon, 04 Nov 2019 07:20:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Luti0tQiJhItUnQbPoidnL8DId53OBM9Rj2bS+xXQGQ=; b=SIWwAK2mezGoY9UG7SR1eHZmjkDzG+LtE9EPBS4fE0EpIf3cqQaT//OrBo+EtWNKoA AuN0fA1lwsO1D678F23Qr6r59UdlTDfgiob2fFHrvvegK9zt+yVMOBg8Z7R2g2Y9liDU 8+wXMmy5LRtVlm7bp5ZDcdfZ4+H5GD2LTSmdYWd4jlWQbIDWUjATVAsDE4Ir5+sJJX9s MzPnmk9XQ/pPWNSRRM5FHjU4Q2q3VG0gh3XhrHoJiXMLBHucBAdMMAVJHGmnAtx0NKjA vjDb4Z2IdZdUV7I7Hr2CkHNm+y2ZzggFcaa7jnPq8ULG3j9ZUG94ZMyJy1NEWamJo5S0 9SeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Luti0tQiJhItUnQbPoidnL8DId53OBM9Rj2bS+xXQGQ=; b=U5pkQzLVr2s8UFo2fuSDuP9vQnnPiQF7QBvtYi17Bf6KKEUYoIYlhI6VUD3sN097De 0vu5NhkCeARaqlIWKGaI7r2QHEbExLPMrjQM/wX8rnIIS/2UNX0lCZyGZNlN4YxoZbH/ B3lK7OEHRYNmXlGWzU/EcJeyxb/crBdfOt6tHQjPOt5QR2gfi7SKvfcLqC+OW0q2zr3V Pqcem14mKneie4rAjWbZiQ8eBKT777KDfU4CTX3MQRUCMO5SiNFNUBArJNqXagp/6G/o mQIkinWaCP9fnc8MfuUn7/QjNIIJpDuxyNM0Cav633KGDZFu9gxzwMxySB3J9LaD5RSf MYsg== X-Gm-Message-State: APjAAAVtvVv7lrGia/6copoDll6KYhuRI56RbATZcxEZFY2QDrPftnyc 4vfAFXl1cDMpCAapzDgnFDluDS8KQ0jGfzjAmhc= X-Received: by 2002:a81:27cd:: with SMTP id n196mr21457626ywn.148.1572880852863; Mon, 04 Nov 2019 07:20:52 -0800 (PST) MIME-Version: 1.0 References: <20191031050338.12700-1-csm10495@gmail.com> <20191031133921.GA4763@lst.de> <1977598237.90293761.1572878080625.JavaMail.zimbra@kalray.eu> <871357470.90297451.1572879417091.JavaMail.zimbra@kalray.eu> <266047531.90300507.1572880575232.JavaMail.zimbra@kalray.eu> In-Reply-To: <266047531.90300507.1572880575232.JavaMail.zimbra@kalray.eu> From: Charles Machalow Date: Mon, 4 Nov 2019 07:20:43 -0800 Message-ID: Subject: Re: [PATCH] nvme: change nvme_passthru_cmd64's result field. To: Marta Rybczynska Cc: Christoph Hellwig , linux-nvme , kbusch , axboe , Sagi Grimberg , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The thing with that structure is if you use it with the old IOCTL, the result will go into rsvd2 instead of the first 32 bits of result. - Charlie Scott Machalow On Mon, Nov 4, 2019 at 7:16 AM Marta Rybczynska wrote: > > > > ----- On 4 Nov, 2019, at 16:01, Charles Machalow csm10495@gmail.com wrote: > > > Yes. The idea is just to change the 64 IOCTL structure so it lines up > > with the old ones so that the same struct can be used from userspace. > > Right now the first 32 of 64's result doesn't line up with the old > > result field. > > > > - Charlie Scott Machalow > > OK, then this will work on all architectures I know: > > struct nvme_passthru_cmd64 { > __u8 opcode; > __u8 flags; > __u16 rsvd1; > __u32 nsid; > __u32 cdw2; > __u32 cdw3; > __u64 metadata; > __u64 addr; > __u32 metadata_len; > __u32 data_len; > __u32 cdw10; > __u32 cdw11; > __u32 cdw12; > __u32 cdw13; > __u32 cdw14; > __u32 cdw15; > __u32 timeout_ms; > __u32 rsvd2; > __u64 result; > }; > > Marta