Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1174637ybx; Thu, 31 Oct 2019 06:48:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqyiVobT1a1qeJ+PJwuuBJ1hgpI3SJ2Cpr7uw+Cn+VoRt8JNwMWoooGXHk91HEfnp1uIBLV3 X-Received: by 2002:aa7:d389:: with SMTP id x9mr6142902edq.219.1572529682568; Thu, 31 Oct 2019 06:48:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572529682; cv=none; d=google.com; s=arc-20160816; b=a2C/WJQtn5PYV5ui0IOg93mBocViqcd6tc8wV1052EaEpFrXVbUOB2YXNsmogX/qfh oLY+HDstnmlcOp3vd/Pg2HsXZtwNfGv7mCqS9YCR87BOm+8QyrgLxugvR3kzm2iYaXjj rORGzfcYNoPBTBgVgZbT3jKf6A+WA0IGNU2G+hzzi/P6VBBLn5BwHN0NYM/XQGmYx5gs 8QRPyMcJsZATKyaa79DO/K0vl0X3XJXnNLmJzncFuIHs3tWb54KzyFCv/aUqJApKirIf Dlq32OvBJZ8ENKNrAJ4APbdkCDYtqf5J2CT2g4Oo17CmyrPZx3V9wYsRE8NYB2cB0SrC pPug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=gqYnGXcybQc+ePBUgl4Nfg2uou6vUU74ydXgVElFq0A=; b=On6cNqo8MgJIVQLvTKrA0aJ6sx4djUBY3n5iByKqUXgnSaIf/9u3rZksEIi3kKqP89 Dt1aGmjEXw0FfsjkJfHEITBEMEylkMHI01we1WhT+AD8HQuWiQEDt5uf2V0aPeXnhfdD oYAJPTMS6aGwzza2twpJEd56S4hlzM2iu8j8rmCLev6jya41m2IgFh6KgwROBWTt96jf wRl8bzMUZimH7L1fDPkKut//mjZWInNr63mkgQb8+ZqAytG8hasjGbxE4Cbn/X4oDDzf sFb1vz6+8JsKJW2j+tBvcUuZnQD4bCOs2oeoTRhJMuk0EOwkjr2SYqDKOC4lMLoPjeo0 IrYw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q8si4357739edi.445.2019.10.31.06.47.39; Thu, 31 Oct 2019 06:48:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727669AbfJaNqp (ORCPT + 99 others); Thu, 31 Oct 2019 09:46:45 -0400 Received: from verein.lst.de ([213.95.11.211]:51093 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727502AbfJaNqp (ORCPT ); Thu, 31 Oct 2019 09:46:45 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id DC96E68C65; Thu, 31 Oct 2019 14:46:42 +0100 (CET) Date: Thu, 31 Oct 2019 14:46:42 +0100 From: Christoph Hellwig To: Guenter Roeck Cc: Christoph Hellwig , Akinobu Mita , Keith Busch , Jens Axboe , Sagi Grimberg , LKML , linux-nvme@lists.infradead.org, Linux PM , Chris Healy Subject: Re: [PATCH v2] nvme: Add hardware monitoring support Message-ID: <20191031134642.GC4763@lst.de> References: <20191029223214.18889-1-linux@roeck-us.net> <20191030140511.GA14252@lst.de> <2931487e-2720-fd42-fda0-e47cf89c90c9@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2931487e-2720-fd42-fda0-e47cf89c90c9@roeck-us.net> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 30, 2019 at 07:54:47PM -0700, Guenter Roeck wrote: > On 10/30/19 7:05 AM, Christoph Hellwig wrote: >> 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? >> > Depends on the requirements. Unlike hwmon/iio, we don't have clear > guidelines describing when thermal vs. hwmon would be a better choice. > There is some interconnect between thermal and hwmon, but quite often > it is a one-way street (hwmon devices can easily register thermal > zones, for thermal zone devices it is a bit more difficult to register > associated hwmon devices). I'd like to hear from Akinobu-san if this also solves the thermal zone use case. If so I'd be much happier as we at least solve two use cases with one patch.