Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp911891ybx; Wed, 30 Oct 2019 07:07:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXjdhTm1ew8RRXA5k43hdDVV0bi/w3StfS0q/VQHa+i4kQ7aDx9FrfJPQDaEo8RdkUS6g4 X-Received: by 2002:a17:906:6004:: with SMTP id o4mr9103959ejj.107.1572444454721; Wed, 30 Oct 2019 07:07:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572444454; cv=none; d=google.com; s=arc-20160816; b=aLkV5ymSHujkKDVd0v04QRwaCsEwIeXAV2XCkNevxhBlOs4dV371F9QIcSAjvgw7Ek FxDWb6i8Pws6bJ2ad9TEgodP17omS12mQAhBWsUgukqSVbvhv4JQX8BMWUg+2wSJnFlv LxseLVbjknmcBrDthVPWddnEFRsoBUJIxhZpeOj7Ej7p0RaoWF5kf/6LjjNk1RtdFD0i nb2E7wbf2Vq2kPGAIdfYGlLh1E/CTrVgdu1Ey0OqHvjKeC0xX1fyP31kDOmcae66EG8b kJyHHuG83+19siaRchaMCZxK+5Pq6tzbaLuERT2XbD7FvdNT0d+gTOwYQjzLh8gv+CmW 1vlQ== 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=GM4ZXs0EKEMmz/+sFqSlZce5ZRegpoFq7a74UvaWbYo=; b=y8FpGqqT/Kbw7j3XZsHAJtZISZt0b+nrk2/TZIVM1JeG01pRHYn+/1mP9BMA8s+zDP BLQe342qHjqvdAMP3u5dE/JVU4QZCLXKq+dwQRHzQEwszit/Ef8taSZ+a3igTD+TsQCr K6siBb6ovv9WUXdjLhZElqU0zudPUbFQi9qhe2di0dMZUdwFRO1bdG38KnKT0ZnFC5IL KRWz9l0gLe14gCL5JlChVITrSI3annnKfoaSkzX6AhXcMmy87lTlgyA8XZtQDS9kyAQx Eq5oz2DNN44CSe8Sw2ECVoStUyw/fFZM6CFDHXEHr8ufH0hh4inv3znJigXQSjJckaeY JcmQ== 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 g4si1602604edb.41.2019.10.30.07.07.09; Wed, 30 Oct 2019 07:07:34 -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 S1726784AbfJ3OFQ (ORCPT + 99 others); Wed, 30 Oct 2019 10:05:16 -0400 Received: from verein.lst.de ([213.95.11.211]:45675 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726284AbfJ3OFQ (ORCPT ); Wed, 30 Oct 2019 10:05:16 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id BC5D068C4E; Wed, 30 Oct 2019 15:05:11 +0100 (CET) Date: Wed, 30 Oct 2019 15:05:11 +0100 From: Christoph Hellwig To: Akinobu Mita Cc: Guenter Roeck , Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg , LKML , linux-nvme@lists.infradead.org, Linux PM , Chris Healy Subject: Re: [PATCH v2] nvme: Add hardware monitoring support Message-ID: <20191030140511.GA14252@lst.de> References: <20191029223214.18889-1-linux@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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?