Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6408406yba; Tue, 14 May 2019 07:07:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyd/vuqqPy+QgKNZMpyivql++zlCe4gKKL9IJlIdX8m7C1lIxcM5rG9i06KpcFCwjv3PLc5 X-Received: by 2002:aa7:8a81:: with SMTP id a1mr40230504pfc.121.1557842859979; Tue, 14 May 2019 07:07:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557842859; cv=none; d=google.com; s=arc-20160816; b=mD8GNlxDCsudQ2DfEOBk9MiQvn1BQV9YFqbtSsAdURGTDKg49H4yfCYFxYiJbgFJJ/ 1D8dDxKdnAJw6mid8pQqqUICEsP5Cww08rTDHeOvCk6aUcbT37tfwFtQjt7Ep8i9e8ZA RKsQEF+eEG/uDe1HRqDT8TKffKTc+wrjiaF9/pNpm4f8qMTXarZbRrTsjY2kZq8YI3QP 3x5rZZCpqH6MBq7EO1xv8cSIbOb887phwO0xRBzdZUs7KjHJl2we/jdkx55tqPAsmzTD EJPeJgMrqzHakpGz7TM6JStq6lBB4CH+2MsM9wBuS5L7jMOv4+3bBJbV9ozfdVoytYuP equQ== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=A8jWje4NgcT6MshH45a0i40xgDC1LZofezqqjj0Ab5Y=; b=W7gFcoh0+FWlo3ARQ9sNPlt2Cem/kKwK03h75dlIiIzG4+T6huhfjL2k/BHyZbOOKz VhD+VxIyjnRVtZSmSAGB802lkoIMEn/NPIYmDt/ZR8S6sR6CuOTBLDI/oLCXitKWBwCe fS9JmiE8J5wKcd5Xd4/GfPe9FvpotZ/Pe/BKbwIx7lIJRgqOfXeJE0aa8koyPLcA2Fgl /rX4uss7H8qkXommVX+zUFlLk5Bn9zOQs5BFwS0XJVfMk+fh3gUv1y+EBQG0dcRY6H39 tFWkuPfJIQNtmIr1NExaAM45zLCkSxtvSUsmA8x0mO7QZ3rzqu4nNkeZg2gE7GhuH/ag klag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pydUdVtc; 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 j1si2311169pld.399.2019.05.14.07.06.58; Tue, 14 May 2019 07:07:39 -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=@gmail.com header.s=20161025 header.b=pydUdVtc; 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 S1726870AbfENOEq (ORCPT + 99 others); Tue, 14 May 2019 10:04:46 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:38903 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726296AbfENOEp (ORCPT ); Tue, 14 May 2019 10:04:45 -0400 Received: by mail-pg1-f195.google.com with SMTP id j26so8697055pgl.5 for ; Tue, 14 May 2019 07:04:45 -0700 (PDT) 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:content-transfer-encoding; bh=A8jWje4NgcT6MshH45a0i40xgDC1LZofezqqjj0Ab5Y=; b=pydUdVtcvkl4WjYE6VFJSrN4kDpWkRSTw1NBe7MssMeEHZ6ZsggZmJbmNuOqLrSp40 3rOwaurGQyLmgvoQi2+q1hK24SVNEuQJjnSgLXMnxpaGI1zPFia+UFP/j0MaoWshxF6C mbjWq2fHWa7nsTW/U74hhlcsRwAeixNS6Tw+RSInNmelyLnZ39Vf7nnmH1vgpmD0jKK/ LLxDvoVhnkCq6o/EWDkCa1ho8NGMXI4vrbzEfFqIWjygYOYELmZrH+z4Ff3Bd8WQakjh hqRQY/UI97N9lBoOIGHk6r/fqIrDb6KzWBzRXIUlJxOF65cNXSQB99tETWcqdcXEWP4j A72Q== 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:content-transfer-encoding; bh=A8jWje4NgcT6MshH45a0i40xgDC1LZofezqqjj0Ab5Y=; b=LDWWWvJG2q6h2XSDNcxWx9H3c5DjFENFbcP7OgovNf/J2ZRclqgJ3Ca8nIUzizVvnz Tozpa2A+gMwD2TsZkq7SkJiZr684P39oozyAqIJ9jOtxxgc9H/dCxO1BZKrLbd28wcNT 1CzSrljGAGEoevMgK+VBt6fSWrA1dAlpkOz96muFs8wcMqXHa5tIr2d9tTvWWDPmJzcm aBD8LEVJXXEG+vO5SNjWiyOp/yhAWL8QhxTl18FSalwYFCQCidRMkMIDQz28fkPYUZJl Sb8CaUujYM7/gEbxTJjpSTgjziuwBjvDBdSnLQvmiYgAv4WxrPufcVhdez5dPh5iwUgi T+sg== X-Gm-Message-State: APjAAAWG/qodnTacxIsIzmDjboRWO9kdwpf3r7E9Lkfg9mGDr6ObO+mI kFWzNK+ELsGCeGU9VLwb05VbRPBt3Zsv6y0rlV0= X-Received: by 2002:a65:480c:: with SMTP id h12mr37371134pgs.266.1557842684846; Tue, 14 May 2019 07:04:44 -0700 (PDT) MIME-Version: 1.0 References: <1557676457-4195-1-git-send-email-akinobu.mita@gmail.com> <1557676457-4195-5-git-send-email-akinobu.mita@gmail.com> In-Reply-To: From: Akinobu Mita Date: Tue, 14 May 2019 23:04:33 +0900 Message-ID: Subject: Re: [PATCH v3 4/7] nvme: add basic facility to get telemetry log page To: Chaitanya Kulkarni Cc: "linux-nvme@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Jens Axboe , Sagi Grimberg , Kenneth Heitke , Keith Busch , Minwoo Im , Johannes Berg , Christoph Hellwig Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2019=E5=B9=B45=E6=9C=8814=E6=97=A5(=E7=81=AB) 0:34 Chaitanya Kulkarni : > > On 05/12/2019 08:55 AM, Akinobu Mita wrote: > > This adds the required definisions to get telemetry log page. > s/definisions/definitions/ OK. > > diff --git a/include/linux/nvme.h b/include/linux/nvme.h > > index c40720c..8c0b29d 100644 > > --- a/include/linux/nvme.h > > +++ b/include/linux/nvme.h > > @@ -294,6 +294,8 @@ enum { > > NVME_CTRL_OACS_DIRECTIVES =3D 1 << 5, > > NVME_CTRL_OACS_DBBUF_SUPP =3D 1 << 8, > > NVME_CTRL_LPA_CMD_EFFECTS_LOG =3D 1 << 1, > > + NVME_CTRL_LPA_EXTENDED_DATA =3D 1 << 2, > > + NVME_CTRL_LPA_TELEMETRY_LOG =3D 1 << 3, > > }; > > > > struct nvme_lbaf { > > @@ -396,6 +398,20 @@ enum { > > NVME_NIDT_UUID =3D 0x03, > > }; > > > > +struct nvme_telemetry_log_page_hdr { > > + __u8 lpi; /* Log page identifier */ > > + __u8 rsvd[4]; > > + __u8 iee_oui[3]; > > + __le16 dalb1; /* Data area 1 last block */ > > + __le16 dalb2; /* Data area 2 last block */ > > + __le16 dalb3; /* Data area 3 last block */ > > + __u8 rsvd1[368]; > > + __u8 ctrlavail; /* Controller initiated data avail?*/ > > + __u8 ctrldgn; /* Controller initiated telemetry Data Gen # */ > > + __u8 rsnident[128]; > > + __u8 telemetry_dataarea[0]; > > +}; > > + > > nit:- Thanks for adding the comments, can you please align all the above > comments like :- OK. I'll send a patch for nvme-cli at first. > +struct nvme_telemetry_log_page_hdr { > + __u8 lpi; /* Log page identifier */ > + __u8 rsvd[4]; > + __u8 iee_oui[3]; > + __le16 dalb1; /* Data area 1 last block */ > + __le16 dalb2; /* Data area 2 last block */ > + __le16 dalb3; /* Data area 3 last block */ > + __u8 rsvd1[368]; > + __u8 ctrlavail; /* Controller initiated data avail?*/ > + __u8 ctrldgn; /* Controller initiated telemetry Data > Gen # */ > + __u8 rsnident[128]; > + __u8 telemetry_dataarea[0]; > +}; > +