Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4064451ybx; Mon, 4 Nov 2019 07:17:55 -0800 (PST) X-Google-Smtp-Source: APXvYqyUFAA2iuP29fEI5IZganO7dmbSt1YI4rMz7pEgnU21Bo9QY3UA8EB7SIzzYS9WdPpHX5P/ X-Received: by 2002:a17:906:6d4f:: with SMTP id a15mr3666384ejt.175.1572880675773; Mon, 04 Nov 2019 07:17:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572880675; cv=none; d=google.com; s=arc-20160816; b=dm4Swz57403rqxQ79v8HQxgY08wDM/XZ334htpjCCQVWZrc0uZg1l1Ab+U3sHB+h2C xFe04jbgUUwamxkIFaCTo6UwW2joKMBR4ce/FVtZrlwgebO+8u2ICOcsAXMknVKTn3EW Eg3DiUKWBRv9R6ac53SM5IRj0D5GK94sf/DAIBjw59xCK6fKplESI+6QPVjSwC5R69jI XkIjYI9SUZsR/7jkmpbVBp2GYTdF+/LAnIEX/KkmgVzxwdUt2jYNrZ/xu/GZ+LSDU2yW fT5RK3xwQ7I/4l9BRhRxvwm/NkmLqTOTH9nH9rVbBUWb9+oVfr/H8TQ1WXoEZ/RUtaQ4 z32A== 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=AjnnDpDaF7bW9PCgTtGxUhgirQ2AQU543GX7VWx8kp4=; b=hHg2qebOpqbEefBNYa+5D7NbDw0d21lKIfLxOZg7DNVoHNn+prn4CM5YfT0r4M64g9 lS0wySOX9n5zmLupRLU7JI0xddJQIlrq6pyDPnX4ZkTSlhjOFNJz/iFCKgu0vSzbM9Me wHxGXa+qHXa30Asc5knM767QBRkteu9JdRjiNX2LhrMApNEzzeYj4ylbtfJwsLW0Kpv4 cTYNU9d0bUqY68IOyy/vsrk8DN2gMHkQz+XQMaOaHGvJg+QTRPb1UeVgLCpNlPTHKEpv 89mIxYElOk6ZvDR9STjJXQf1TRea19mVrfZLXPHrSOPRRsXby7eSrxZNc3NLY8Z3VBtE 1RiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kalray.eu header.s=32AE1B44-9502-11E5-BA35-3734643DEF29 header.b=DwOKDmRs; 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 a13si8635254ejy.365.2019.11.04.07.17.32; Mon, 04 Nov 2019 07:17:55 -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=@kalray.eu header.s=32AE1B44-9502-11E5-BA35-3734643DEF29 header.b=DwOKDmRs; 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 S1729138AbfKDPQR (ORCPT + 99 others); Mon, 4 Nov 2019 10:16:17 -0500 Received: from zimbra2.kalray.eu ([92.103.151.219]:54496 "EHLO zimbra2.kalray.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727796AbfKDPQQ (ORCPT ); Mon, 4 Nov 2019 10:16:16 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTP id C20EA27E03F9; Mon, 4 Nov 2019 16:16:15 +0100 (CET) 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 KfDxJ_klKXSE; Mon, 4 Nov 2019 16:16:15 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTP id 6640227E064D; Mon, 4 Nov 2019 16:16:15 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.10.3 zimbra2.kalray.eu 6640227E064D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kalray.eu; s=32AE1B44-9502-11E5-BA35-3734643DEF29; t=1572880575; bh=AjnnDpDaF7bW9PCgTtGxUhgirQ2AQU543GX7VWx8kp4=; h=Date:From:To:Message-ID:MIME-Version; b=DwOKDmRs+wSBhUmzJSSKP2Mcz7b8xxO65LNQITeTMQdJmPkueWiQFGa/TxprqgUZu NEASZwXjQNq7+ck51KhFPhy+FNT6wyFmMYIqXG0tn7ZGMD+rdgs4zTzVDE483Z3kix 6RSlf2eqpAuQMStLbOa2RFZtnPzDELA9v2aAvWsA= 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 IAkr1OWFfAie; Mon, 4 Nov 2019 16:16:15 +0100 (CET) Received: from zimbra2.kalray.eu (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTP id 4DF6927E03F9; Mon, 4 Nov 2019 16:16:15 +0100 (CET) Date: Mon, 4 Nov 2019 16:16:15 +0100 (CET) From: Marta Rybczynska To: Charles Machalow Cc: Christoph Hellwig , linux-nvme , kbusch , axboe , Sagi Grimberg , linux-kernel Message-ID: <266047531.90300507.1572880575232.JavaMail.zimbra@kalray.eu> In-Reply-To: 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> Subject: Re: [PATCH] nvme: change nvme_passthru_cmd64's result field. 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: change nvme_passthru_cmd64's result field. Thread-Index: lwHoMaVJp4iAGDQQRMXUf/hZljBQaQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- 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