From: Daniel Wagner <dwagner@suse.de>
To: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>,
linux-nvme@lists.infradead.org, Keith Busch <keith.busch@wdc.com>,
Guenter Roeck <linux@roeck-us.net>,
Sagi Grimberg <sagi@grimberg.me>
Subject: Re: [PATCHv2] nvme/hwmon: rework to avoid devm allocation
Date: Tue, 9 Feb 2021 13:37:36 +0100 [thread overview]
Message-ID: <20210209123736.pkfb2aokt47n3jw5@beryllium.lan> (raw)
In-Reply-To: <20210127163555.GA22717@lst.de>
On Wed, Jan 27, 2021 at 05:35:55PM +0100, Christoph Hellwig wrote:
> On Tue, Jan 19, 2021 at 09:54:30PM -0800, Guenter Roeck wrote:
> > It needs lm-sensors version 3.5.0 or later. Older versions
> > don't support a device hierarchy.
>
> Hannes, did you get a chance to test this with lm-sensors?
I gave it a go. All looks good.
Tested-by: Daniel Wagner <dwagner@suse.de>
dolin:~/:[0]# sensors --version
sensors version 3.5.0 with libsensors version 3.5.0
Baseline:
dolin:~/:[0]# sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +36.0°C (high = +67.0°C, crit = +77.0°C)
Core 0: +28.0°C (high = +67.0°C, crit = +77.0°C)
Core 1: +29.0°C (high = +67.0°C, crit = +77.0°C)
Core 2: +29.0°C (high = +67.0°C, crit = +77.0°C)
Core 3: +28.0°C (high = +67.0°C, crit = +77.0°C)
Core 4: +29.0°C (high = +67.0°C, crit = +77.0°C)
Core 8: +27.0°C (high = +67.0°C, crit = +77.0°C)
Core 9: +28.0°C (high = +67.0°C, crit = +77.0°C)
Core 10: +28.0°C (high = +67.0°C, crit = +77.0°C)
Core 11: +28.0°C (high = +67.0°C, crit = +77.0°C)
Core 12: +28.0°C (high = +67.0°C, crit = +77.0°C)
nvme-virtual-0
Adapter: Virtual device
Composite: -273.1°C
nvme-virtual-0
Adapter: Virtual device
Composite: -273.1°C
[...]
With the patch:
dolin:~/:[0]# sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +38.0°C (high = +67.0°C, crit = +77.0°C)
Core 0: +29.0°C (high = +67.0°C, crit = +77.0°C)
Core 1: +31.0°C (high = +67.0°C, crit = +77.0°C)
Core 2: +29.0°C (high = +67.0°C, crit = +77.0°C)
Core 3: +30.0°C (high = +67.0°C, crit = +77.0°C)
Core 4: +29.0°C (high = +67.0°C, crit = +77.0°C)
Core 8: +30.0°C (high = +67.0°C, crit = +77.0°C)
Core 9: +28.0°C (high = +67.0°C, crit = +77.0°C)
Core 10: +30.0°C (high = +67.0°C, crit = +77.0°C)
Core 11: +30.0°C (high = +67.0°C, crit = +77.0°C)
Core 12: +28.0°C (high = +67.0°C, crit = +77.0°C)
nvme-virtual-0
Adapter: Virtual device
Composite: -273.1°C
nvme-virtual-0
Adapter: Virtual device
Composite: -273.1°C
[...]
dolin:~/:[0]# find /sys -name hwmon*
/sys/kernel/debug/tracing/events/hwmon
/sys/kernel/debug/tracing/events/hwmon/hwmon_attr_show
/sys/kernel/debug/tracing/events/hwmon/hwmon_attr_store
/sys/kernel/debug/tracing/events/hwmon/hwmon_attr_show_string
/sys/class/hwmon
/sys/class/hwmon/hwmon16
/sys/class/hwmon/hwmon14
/sys/class/hwmon/hwmon8
/sys/class/hwmon/hwmon12
/sys/class/hwmon/hwmon6
/sys/class/hwmon/hwmon20
/sys/class/hwmon/hwmon10
/sys/class/hwmon/hwmon4
/sys/class/hwmon/hwmon19
/sys/class/hwmon/hwmon2
/sys/class/hwmon/hwmon17
/sys/class/hwmon/hwmon0
/sys/class/hwmon/hwmon15
/sys/class/hwmon/hwmon9
/sys/class/hwmon/hwmon13
/sys/class/hwmon/hwmon7
/sys/class/hwmon/hwmon11
/sys/class/hwmon/hwmon5
/sys/class/hwmon/hwmon3
/sys/class/hwmon/hwmon18
/sys/class/hwmon/hwmon1
/sys/devices/platform/coretemp.3/hwmon
/sys/devices/platform/coretemp.3/hwmon/hwmon19
/sys/devices/platform/coretemp.1/hwmon
/sys/devices/platform/coretemp.1/hwmon/hwmon17
/sys/devices/platform/coretemp.2/hwmon
/sys/devices/platform/coretemp.2/hwmon/hwmon18
/sys/devices/platform/coretemp.0/hwmon
/sys/devices/platform/coretemp.0/hwmon/hwmon16
/sys/devices/pci0000:00/0000:00:02.2/0000:03:00.0/hwmon
/sys/devices/pci0000:00/0000:00:02.2/0000:03:00.0/hwmon/hwmon20
/sys/devices/virtual/nvme-fabrics/ctl/nvme23/hwmon11
/sys/devices/virtual/nvme-fabrics/ctl/nvme7/hwmon1
/sys/devices/virtual/nvme-fabrics/ctl/nvme21/hwmon9
/sys/devices/virtual/nvme-fabrics/ctl/nvme18/hwmon6
/sys/devices/virtual/nvme-fabrics/ctl/nvme26/hwmon14
/sys/devices/virtual/nvme-fabrics/ctl/nvme16/hwmon4
/sys/devices/virtual/nvme-fabrics/ctl/nvme24/hwmon12
/sys/devices/virtual/nvme-fabrics/ctl/nvme14/hwmon2
/sys/devices/virtual/nvme-fabrics/ctl/nvme22/hwmon10
/sys/devices/virtual/nvme-fabrics/ctl/nvme6/hwmon0
/sys/devices/virtual/nvme-fabrics/ctl/nvme20/hwmon8
/sys/devices/virtual/nvme-fabrics/ctl/nvme19/hwmon7
/sys/devices/virtual/nvme-fabrics/ctl/nvme27/hwmon15
/sys/devices/virtual/nvme-fabrics/ctl/nvme17/hwmon5
/sys/devices/virtual/nvme-fabrics/ctl/nvme25/hwmon13
/sys/devices/virtual/nvme-fabrics/ctl/nvme15/hwmon3
_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme
next prev parent reply other threads:[~2021-02-09 12:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-19 6:43 [PATCHv2] nvme/hwmon: rework to avoid devm allocation Hannes Reinecke
2021-01-19 8:03 ` Daniel Wagner
2021-01-19 14:56 ` Guenter Roeck
2021-01-19 19:07 ` Hannes Reinecke
2021-01-20 5:54 ` Guenter Roeck
2021-01-27 16:35 ` Christoph Hellwig
2021-02-09 12:37 ` Daniel Wagner [this message]
2021-01-19 22:18 ` Enzo Matsumiya
2021-02-10 8:11 ` Christoph Hellwig
2021-02-10 12:10 ` Minwoo Im
2021-02-10 13:11 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210209123736.pkfb2aokt47n3jw5@beryllium.lan \
--to=dwagner@suse.de \
--cc=hare@suse.de \
--cc=hch@lst.de \
--cc=keith.busch@wdc.com \
--cc=linux-nvme@lists.infradead.org \
--cc=linux@roeck-us.net \
--cc=sagi@grimberg.me \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).