Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp254278ybx; Tue, 29 Oct 2019 17:56:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdTHILlsGJ7NTBusWdOAjNqi6OTzdAQ7SVErKQPtH4E0VATTKxg6iaGf6/MhXoREaa4C5y X-Received: by 2002:a50:b63b:: with SMTP id b56mr27398731ede.165.1572397002823; Tue, 29 Oct 2019 17:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572397002; cv=none; d=google.com; s=arc-20160816; b=uPaoJ7PeZWtv/SdR8JMJidkONgpYjdufCsnU8Kpz/Ptl1rZ/t9cl3nj/AFaBzv5sIm J5a/odg2A6JiAcpdBa/A+sfhxSoDZLkaQOO3bS2hIA85OXS9y1r4AXlIriTy04KKJcee 8cWbydw2+CyveU6mZP51xwcEsgo1NC76QnIjleYzTtnI42P8YmDkgSKi6uqaJoeaSE8i 8b6eP77djkP7kO04IlUdp9o9uO4X0WIe82ZOOM8b4lYh0MPNTFYsCWwRbUf96PmI1KMF ZIv4Tb4ge20fr8RZZyJtsba03Z/XM7NPajBPjv/E+Oeikow8IgssLtrwphkD9nsLQqzn 8jFQ== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UbWtq2IMB4EVjQ2MUuqY/ciI/42witu6BxPfTzxfQ9A=; b=jDQnxYVvD5IWgYfSIAYvIh24db2GsH20JSD6HMyuzXrCVcupiBFBY5t8pjVEuZXeJ6 D1TyYreMCB54/78LZ7qRv4d2bNvLUTSI59VSBQFwkucX1sm9LLUlBjpfZQEddAhScDCG CospcL2xKBtRhd3US1mD3GGjU+wTHNYkj+GoWJM4ploNKi91vZJ6+ugI9Yndvf8d+5+v u8iNQYyxk3gw2tkquzJ4GFSJPBJHTqmSEiTZFcP3qCNuV2U9hHPAguWsrc7rrBKR2cAZ FcaRn2IP0qHWgrWX6wJrlJIL4FEUkS+20S8kvm1h0GiSakJTXiJXR5FOYARZY7AE1xEY Lr0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=f6X+5fgp; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f21si332832edf.277.2019.10.29.17.56.18; Tue, 29 Oct 2019 17: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=@kernel.org header.s=default header.b=f6X+5fgp; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726830AbfJ3Axg (ORCPT + 99 others); Tue, 29 Oct 2019 20:53:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:51598 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726076AbfJ3Axf (ORCPT ); Tue, 29 Oct 2019 20:53:35 -0400 Received: from redsun51.ssa.fujisawa.hgst.com (unknown [199.255.47.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A898320862; Wed, 30 Oct 2019 00:53:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572396815; bh=CiN8+uBGBBbTGDNsi2Hq3KM6FLtlK9d7Wva0KwIc9AE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=f6X+5fgpK5x5cJvSZ6A3HfkeIYsIcBMFlK4k1FonoDO9lwlgatFeb/YO50HwKQmVm jrAvuv3CwkdD2EaURvLvWNkF9SyJZwUc0j+9XJkNAdje7SEH/dVmF7w0FUcO3mKiVv pZXTiaQxmaw+BxhX3CIAZkdPj5V3mvHWxRnyL7S0= Date: Wed, 30 Oct 2019 09:53:27 +0900 From: Keith Busch To: Guenter Roeck Cc: Jens Axboe , Christoph Hellwig , Sagi Grimberg , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, Akinobu Mita , linux-pm@vger.kernel.org, Chris Healy Subject: Re: [PATCH v2] nvme: Add hardware monitoring support Message-ID: <20191030005327.GC15332@redsun51.ssa.fujisawa.hgst.com> References: <20191029223214.18889-1-linux@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191029223214.18889-1-linux@roeck-us.net> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 29, 2019 at 03:32:14PM -0700, Guenter Roeck wrote: > nvme devices report temperature information in the controller information > (for limits) and in the smart log. Currently, the only means to retrieve > this information is the nvme command line interface, which requires > super-user privileges. > > At the same time, it would be desirable to use NVME temperature information > for thermal control. > > This patch adds support to read NVME temperatures from the kernel using the > hwmon API and adds temperature zones for NVME drives. The thermal subsystem > can use this information to set thermal policies, and userspace can access > it using libsensors and/or the "sensors" command. > > Example output from the "sensors" command: > > nvme0-pci-0100 > Adapter: PCI adapter > Composite: +39.0?C (high = +85.0?C, crit = +85.0?C) > Sensor 1: +39.0?C > Sensor 2: +41.0?C > > Signed-off-by: Guenter Roeck This looks fine to me, but I'll wait a few more days to see if there are any additional comments..