Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1573277ybx; Thu, 31 Oct 2019 12:35:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqwb5vOnGtEoXBR0V+42RJYRs95E8DTpt2CMn4rtW5Sa3rSX2iXuB9Y2v69wKyf8iFMAeqVi X-Received: by 2002:a50:b3b6:: with SMTP id s51mr8296169edd.88.1572550526578; Thu, 31 Oct 2019 12:35:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572550526; cv=none; d=google.com; s=arc-20160816; b=0uE3YqIt8xd83lAxx/NnBH9BgSghQZiL8UK5sUbkPS5XbOmxvmrfZTW2c4FWAVYxJR XTnCVwuWVI6MJ57ZT2eN7XgxJHA8PwsehMveAFjq4vxjcTnbhE/k+4d3J7hd6dWjXgQj cB/t4bleSVWaFQeSDrDcKHxbbiAxEwexpfVKMVuVqgP8kc97TDknAFo/9+GshfZG7nXv Tw7dFybdocSfpexygQcTHfilj2ed/PzqhrVnxeDADnBpZ003jOw/Ry3xvfR6WSxFL6ab g7q+wUS3G7ldcbaqhqEa4Rs8xNNpukQZwr6nsPkgO1LWTvvRDuw0ev5QDVprjtQjVWvE ugvw== 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=Q5d0ydYp/ptTQ9vHd3UzSNtpmE/REEwTqm2IaznSbE4=; b=PvP/JwL5vSwgJb6F0uN9ddjL7CLfTK2w/GiDv1Kp4tU1DRYM2sU0iRihzRWah4O1jS bUBJojyMoK4GlOIBt6KCoouLQzNgnwejB4L3rnqOGZNRAsqY/2/S4KxJSK+sdoK19zRl OQ9cb4lf0t0PQoWQyIJEfHEBQEUdCq7WUwNyEPOc5mN4mXsaO0emTBQS+H2kRWYMv8UW BGxDR0hwZJGIToHLQW8ld9Z+8lGCEv/PigaQXrQ2KtmlBJ9deeJ61qBu37R8gFjh6t/k ieE44fOZUUiaD/zSXIvLmPaWTtnTLvThbh0fC/log39bZF1hOkwU5Ih/tBJEf/6wJX+I J2kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JDJR04Z2; 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 k18si5268224edj.94.2019.10.31.12.35.02; Thu, 31 Oct 2019 12:35:26 -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=JDJR04Z2; 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 S1727684AbfJaNq6 (ORCPT + 99 others); Thu, 31 Oct 2019 09:46:58 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:35665 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727486AbfJaNq6 (ORCPT ); Thu, 31 Oct 2019 09:46:58 -0400 Received: by mail-pg1-f195.google.com with SMTP id c8so4109367pgb.2; Thu, 31 Oct 2019 06:46:57 -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=Q5d0ydYp/ptTQ9vHd3UzSNtpmE/REEwTqm2IaznSbE4=; b=JDJR04Z2x1prHv1ALXSs8WeR/FfMUBuDg+FckRq9WOy3QuTjr4tv8/K+URJwEBgW7w XoGJ3BDWa5NLEIG0kBg5dv0nwIMywUA+4UfLFe57n+3xO9lORFCV3GPyDLu82qW5WODA cdLz+IW9KIOVl84p39YNMiK0/KTFvC4r//22hCtAP7x7iP5EwZU9bz7xuie41/UaPgZ5 8MIF+wrBv/+KIkAoy2afLqJ/iSQiZvGXRQ4ApWhgnxLPpgoW0vlHPKdjF3Fa0Q6ubVtT iiV4JUA98oeMQttYJNQxViYfSsT3RmHjBCcv7KqM/+y5s5CqT6FNppSsxdtelzDLfhOT AMAA== 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=Q5d0ydYp/ptTQ9vHd3UzSNtpmE/REEwTqm2IaznSbE4=; b=rbxgsYr7xsL0DMUjVTO55MtiGkdf6mt0dybABFJkatIusj1RW8p1zAl5HKHusbidau mxp/OU41oqBLy/ZpiZWc45Aj7N85px2sNoi4uwMhc7qNxSeb+EDMeetknpIy1A6Cg/TJ ZoDnwD6owSrBf3Hi4Rn8MmY/4wArrhNqPZVIR6KulQ05guheajplduqxERLwffplksnQ mvvcNbFVML/LOa+CMo3b3CDsQ7ztXZkAPkoRz4y885hdmc3YPDwWfbGxYlDCeBO9xCvq rC5AsoOKytNDAfr9wxMNO2AYeitxOc5Jek3YPUN5q1KzYmG25hY3edKLpGPrTiJOGioH W5BQ== X-Gm-Message-State: APjAAAWlUTKDOWlphzW/xZpE/L2OXq4fDEAuA6h/PB3GNXSvdGkQ9Une UYeVJ1oFelX607X8QcGsNblHX6/2k/WcIiP2uM0= X-Received: by 2002:a17:90a:f48f:: with SMTP id bx15mr7672163pjb.115.1572529616927; Thu, 31 Oct 2019 06:46:56 -0700 (PDT) MIME-Version: 1.0 References: <20191029223214.18889-1-linux@roeck-us.net> <20191030140511.GA14252@lst.de> In-Reply-To: <20191030140511.GA14252@lst.de> From: Akinobu Mita Date: Thu, 31 Oct 2019 22:46:46 +0900 Message-ID: Subject: Re: [PATCH v2] nvme: Add hardware monitoring support To: Christoph Hellwig Cc: Guenter Roeck , Keith Busch , Jens Axboe , Sagi Grimberg , LKML , linux-nvme@lists.infradead.org, Linux PM , Chris Healy 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=B410=E6=9C=8830=E6=97=A5(=E6=B0=B4) 23:05 Christoph Hellwig : > > On Wed, Oct 30, 2019 at 08:16:48PM +0900, Akinobu Mita wrote: > > The nvme_init_identify() can be called multiple time in nvme ctrl's > > lifetime (e.g 'nvme reset /dev/nvme*' or suspend/resume paths), so > > should we need to prevent nvme_hwmon_init() from registering hwmon > > device more than twice? > > > > In the nvme thermal zone patchset[1], thernal zone is registered in > > nvme_init_identify and unregistered in nvme_stop_ctrl(). > > So Guenter said above the thermal subsystem could use the information > from hwmon as well. Does this mean this patch would solve your needs > as well? The main reason I chose thermal framework was to utilize the temperature threshold feature for notification on crossing a trip point temperature without polling for smart log. But the device I used for testing doesn't seem to report asynchronous event immediately, so I'm not fully sure that's useful for now. I have no problem with this nvme hwmon patch. Maybe we can integrate the temperature threshold feature into the nvme hwmon afterward.