Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5169848yba; Wed, 8 May 2019 08:56:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyCNcbbelGB8GOn0c+AugOopVWOkLxyWcIPBWFRJRmI3Bbeg9/WY2kl235asEvBPNRz3+ue X-Received: by 2002:aa7:8e0d:: with SMTP id c13mr50790720pfr.193.1557331002247; Wed, 08 May 2019 08:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557331002; cv=none; d=google.com; s=arc-20160816; b=gT4BpWa+STMYHMvo9As7IqGBvuPrqoLM/Vn6eyyywYFw0D5culrjaziaXNCHB86wl4 oOO6vHswHNO6q5R4yK62Qtrl5Ek5NRcmNP3ok7VlkOgzw6/3zO7GE4zESWBMwOeL+BAN nADi/YIG24LlR9sJy3KIb+00xbX6vUyc8dUrM1X8WRHbwvrTQnE1b9piv7xxMZBMd1pW ev8ZfkCQdDUJVfvfNGeOvzcKW+OmrYWckWiLYiuJIrcyClOiiQxGVjY6Xaq+RU/2QT2A Ia6NCuSNNzh6hyXRPIeQAxyBXoh+5YOXw9iV0aP2bjhYTlrFshWblPkMabLg8R3VzNHS y1aA== 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=UO6VSipa/vxLnsHx2jHyOWY71noSHX2RiG7VVCaq85k=; b=FBVI6HyEs/LALkwanf8ASLN4u+JZlzTgNnPhhCViOkUnCvvIn2oUkOB91wrJaD3qTW hp1yZqBYiI4wVsGXAcSnFZVPzRD5Z+x3p+xrwaZMrgVPFonmQbZDBCgYSyiCmIj05FOh hNuAwlrATaXDyqYb7gh47DymqZUJeWBLVc+wtWiwZLNJx/wDNyVtsGE6lYg2bDi7o5e8 qzz2bMfdzB8oGEvuFMMB5AmTq5/3dfIeMZfqy45QM2t0tS0UOwLQTPS5Za3I97tQmPI2 9J8NWXVJumf2dFGLFOTFb0RtC6GbBHKizIdf1KgwizkO4iNi38xJeFZiX8IFtE0ayfP0 FQDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Hjj/96MQ"; 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 s22si24434406pgg.436.2019.05.08.08.56.26; Wed, 08 May 2019 08:56:42 -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="Hjj/96MQ"; 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 S1727547AbfEHPyy (ORCPT + 99 others); Wed, 8 May 2019 11:54:54 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:44713 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727298AbfEHPyy (ORCPT ); Wed, 8 May 2019 11:54:54 -0400 Received: by mail-pl1-f196.google.com with SMTP id d3so6107045plj.11 for ; Wed, 08 May 2019 08:54:53 -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=UO6VSipa/vxLnsHx2jHyOWY71noSHX2RiG7VVCaq85k=; b=Hjj/96MQ0SFne889FlFXkcvcTJkOxSdQVL1Blf4CleWMC2Zv2xNO+eofyYTRunO6k8 ykHVDgQVKXJV7YYQ0vL0ecq0xDMvDCCZXTLM2/5Oem0Rft51zSEtLTl/QwTfM32af0UD xCweiercawjfhsslE1qu4Ib5UtxxuNe7IJoBX6HuEu/bSnx9dczZDv8TIncfl1mE1mQE IuZ6Qq9mVTFUrKBCCO7A4iWGjDMdSWQP8RntBGBQsdHLDGJDJBp90bO29OHM6iCPDYlg AZEB2tFUVI/NTDHEFNmKzQnJZc7SmABaQPPU6mvXAkaFBZHOYJuUJTju5OeQrz7sSphM BVkQ== 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=UO6VSipa/vxLnsHx2jHyOWY71noSHX2RiG7VVCaq85k=; b=ZWkWe2FKSU8vn2Aw/49+y5cSz53kTcTf0xnfoiTOgCbN9xEwbkzpNlCz0qPEQiDs9C npdsiYp8WUeV1AtGmqLtPNjsLLYUDQLkSFuEeMA0Vs7VU/sl7LeU3RmZx52pWpb9tZu7 XzxRWlPhYfgsloqxZsiJ+jWQARsO1bTleRlVP7rEkEdVwvYKfVULnj7VH3Xxzqo8dTjo B22unrSL5q+Kzwv/N4sgdRopmktvQN3npWFr5Ch2eVhzB+ObFLoJFKZSrvRWygV3stZh TykgLqwWuwTadS8BMCxkY0S9KfKDoieGODSt41+wipb0tUwQtpVzql+WtKDA/AAiZH+l CVAA== X-Gm-Message-State: APjAAAUWMh+sUsZRcItWutUvdLauPj65h0h3hSARtD5HppP5FRttsW0r u0+WM/XYk2V3eczd1uu3GGnI9sJ/HBZZFwlAKHg= X-Received: by 2002:a17:902:7047:: with SMTP id h7mr49072884plt.177.1557330893382; Wed, 08 May 2019 08:54:53 -0700 (PDT) MIME-Version: 1.0 References: <1557248314-4238-1-git-send-email-akinobu.mita@gmail.com> <1557248314-4238-5-git-send-email-akinobu.mita@gmail.com> <67f0d1ab-2edb-24ea-a4b5-62c90c1ef0fb@intel.com> In-Reply-To: <67f0d1ab-2edb-24ea-a4b5-62c90c1ef0fb@intel.com> From: Akinobu Mita Date: Thu, 9 May 2019 00:54:42 +0900 Message-ID: Subject: Re: [PATCH v2 4/7] nvme.h: add telemetry log page definisions To: "Heitke, Kenneth" Cc: linux-nvme@lists.infradead.org, LKML , Jens Axboe , Sagi Grimberg , 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=888=E6=97=A5(=E6=B0=B4) 2:53 Heitke, Kenneth : > > > > On 5/7/2019 10:58 AM, Akinobu Mita wrote: > > Copy telemetry log page definisions from nvme-cli. > > > > Cc: Johannes Berg > > Cc: Keith Busch > > Cc: Jens Axboe > > Cc: Christoph Hellwig > > Cc: Sagi Grimberg > > Cc: Minwoo Im > > Signed-off-by: Akinobu Mita > > --- > > * v2 > > - New patch in this version. > > > > include/linux/nvme.h | 23 +++++++++++++++++++++++ > > 1 file changed, 23 insertions(+) > > > > diff --git a/include/linux/nvme.h b/include/linux/nvme.h > > index c40720c..5217fe4 100644 > > --- a/include/linux/nvme.h > > +++ b/include/linux/nvme.h > > @@ -396,6 +396,28 @@ enum { > > NVME_NIDT_UUID =3D 0x03, > > }; > > > > +/* Derived from 1.3a Figure 101: Get Log Page =E2=80=93 Telemetry Host > > + * -Initiated Log (Log Identifier 07h) > > + */ > > Is this Host Initiated or Controller Initiated? The comment says host > initiated but everything else seems to indicated controller initiated. Both telemetry host initiated and controller initiated log headers have the same structure. If this comment is confusing, it is also considered to be removed. > Is controller initiated even the correct choice because the controller > would have sent an AER to indicate that the host should pull the > telemetry data. It seems useful to retrieve telemetry log continually with the aid of user space tool reacting an Asynchronous Event. Similarly, it could be useful to retrieve telemetry log as soon as the device is successfully recovered from the crash. (Although I still do not find the device that has Telemetry Controller-Initiated Data Available field is set to 1h.)