From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH 05/12] adt7470: Add documentation
Date: Thu, 09 Oct 2008 10:31:17 +0000 [thread overview]
Message-ID: <20081009123117.46844403@hyperion.delvare> (raw)
In-Reply-To: <20081007011849.12701.53492.stgit@elm3a70.beaverton.ibm.com>
Hi Darrick,
On Wed, 8 Oct 2008 11:50:08 -0700, Darrick J. Wong wrote:
> On Wed, Oct 08, 2008 at 11:46:47AM +0200, Jean Delvare wrote:
> > > +sensors or the fan control algorithm will not run. The chip WILL NOT DO THIS
> > > +AUTOMATICALLY; this must be done from userspace. This may be a bug in the chip
> > > +design, given that many other AD chips take care of this. The driver will not
> >
> > This is very weird. This pretty much voids the point of an automatic
> > fan control mode. If you have to read registers continuously for it to
> > work, you can as well control it completely in software.
>
> Yes. Given the _long_ time it takes to read the external sensors and
> the chip being locked during those reads, I could see why they don't
> want to do automatic sensor reads. However, I only discovered this
> weird quirk by accident. Most likely you'd attach this thing to a BMC
> that would know to poke the chip to read its sensors periodically.
>
> It does explain why the hw designers of the Z30 were complaining that
> the CPU fans wouldn't speed up even if they blew a hair dryer at the
> thermal sensor. Apparently they got one of these things to overheat and
> explode the VRMs.
>
> All said, the algorithm that picks the pwm output based on the
> temperature input seems to work provided that somebody makes the chip
> read its temperature inputs.
Should we implement a kernel thread / tasklet / whatever it is called
these days that would actively read the needed temperature values (and
only these) every 5 seconds as soon as automatic fan speed control is
enabled? The current implementation seems dangerous to me, as
illustrated by the report you quoted above.
Maybe this driver should be integrated with the generic thermal zone
framework that was added to the kernel a few months ago? I this this
framework already handles polling of the chips (to be confirmed.)
> > Out of curiosity: isn't it possible to detect how many thermal sensors
> > are actually connected, and only create sysfs files for these? Creating
> > files for sensors which do not exist is rather confusing.
>
> I'm not sure. Sensors that aren't present return a temperature of 0,
> and I have no way of distinguishing a sensor reporting 0 vs. no sensor
> at all. For the Z30 I know that only temp1 and temp3 are actually
> hooked up, so I suppose we could special case it and any other machines
> we come across.
I don't really want to hard-code machine-specific configuration into
kernel drivers. I don't think this would scale over time.
0 doesn't seem like a terribly realistic temperature. So, maybe we can
have a heuristic that disables all sensors that report 0 when the
driver is loaded? To be totally safe, we can then provide a way for the
user to forcibly enable temperature sensors (either a module parameter
or a sysfs file.)
I know we usually don't do that, but OTOH this is the first hardware
monitoring chip which daisy-chains external thermal sensors like that.
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2008-10-09 10:31 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-07 1:18 [PATCH 00/12] Various hwmon patches Darrick J. Wong
2008-10-07 1:18 ` [lm-sensors] " Darrick J. Wong
2008-10-07 1:18 ` [PATCH 01/12] hwmon: Define sysfs interface for energy consumption register Darrick J. Wong
2008-10-07 1:18 ` [lm-sensors] [PATCH 01/12] hwmon: Define sysfs interface for energy Darrick J. Wong
2008-10-08 8:09 ` [lm-sensors] [PATCH 01/12] hwmon: Define sysfs interface for energy consumption register Jean Delvare
2008-10-08 8:09 ` [lm-sensors] [PATCH 01/12] hwmon: Define sysfs interface for Jean Delvare
2008-10-07 1:18 ` [PATCH 02/12] adt7462: New hwmon driver Darrick J. Wong
2008-10-07 1:18 ` [lm-sensors] " Darrick J. Wong
2008-10-07 1:18 ` [PATCH 03/12] adt7473: Fix some bogosity in documentation file Darrick J. Wong
2008-10-07 1:18 ` [lm-sensors] [PATCH 03/12] adt7473: Fix some bogosity in Darrick J. Wong
2008-10-08 9:08 ` [lm-sensors] [PATCH 03/12] adt7473: Fix some bogosity in documentation file Jean Delvare
2008-10-08 9:08 ` [lm-sensors] [PATCH 03/12] adt7473: Fix some bogosity in Jean Delvare
2008-10-07 1:18 ` [PATCH 04/12] adt7470: Fix pwm*-auto-point* to be temp*-auto-point* Darrick J. Wong
2008-10-07 1:18 ` [lm-sensors] [PATCH 04/12] adt7470: Fix pwm*-auto-point* to be Darrick J. Wong
2008-10-08 9:25 ` [lm-sensors] [PATCH 04/12] adt7470: Fix pwm*-auto-point* to be temp*-auto-point* Jean Delvare
2008-10-08 9:25 ` [lm-sensors] [PATCH 04/12] adt7470: Fix pwm*-auto-point* to be Jean Delvare
2008-10-08 18:36 ` [lm-sensors] [PATCH 04/12] adt7470: Fix pwm*-auto-point* to Darrick J. Wong
2008-10-07 1:18 ` [PATCH 05/12] adt7470: Add documentation Darrick J. Wong
2008-10-07 1:18 ` [lm-sensors] " Darrick J. Wong
2008-10-08 9:46 ` Jean Delvare
2008-10-08 9:46 ` Jean Delvare
2008-10-08 18:50 ` Darrick J. Wong
2008-10-09 10:31 ` Jean Delvare [this message]
2008-10-09 21:25 ` Darrick J. Wong
2008-10-10 8:25 ` Jean Delvare
2008-10-07 1:18 ` [PATCH 06/12] adt7470: Load automatically on IntelliStation Z30 via DMI Darrick J. Wong
2008-10-07 1:18 ` [lm-sensors] [PATCH 06/12] adt7470: Load automatically on Darrick J. Wong
2008-10-08 11:08 ` [lm-sensors] [PATCH 06/12] adt7470: Load automatically on IntelliStation Z30 via DMI Jean Delvare
2008-10-08 11:08 ` [lm-sensors] [PATCH 06/12] adt7470: Load automatically on Jean Delvare
2008-10-07 1:18 ` [PATCH 07/12] ics932s401: New driver Darrick J. Wong
2008-10-07 1:18 ` [lm-sensors] " Darrick J. Wong
2008-10-08 11:09 ` Jean Delvare
2008-10-08 11:09 ` Jean Delvare
2008-10-08 18:26 ` Darrick J. Wong
2008-10-09 11:37 ` Jean Delvare
2008-10-07 1:19 ` [PATCH 08/12] i5k_amb: Load automatically on all 5000/5400 chipsets Darrick J. Wong
2008-10-07 1:19 ` [lm-sensors] [PATCH 08/12] i5k_amb: Load automatically on all Darrick J. Wong
2008-10-08 11:13 ` [lm-sensors] [PATCH 08/12] i5k_amb: Load automatically on all 5000/5400 chipsets Jean Delvare
2008-10-08 11:13 ` [lm-sensors] [PATCH 08/12] i5k_amb: Load automatically on all Jean Delvare
2008-10-08 18:19 ` [lm-sensors] [PATCH 08/12] i5k_amb: Load automatically on Darrick J. Wong
2008-10-09 11:43 ` [lm-sensors] [PATCH 08/12] i5k_amb: Load automatically on all Jean Delvare
2008-10-10 17:54 ` [lm-sensors] [PATCH 08/12] i5k_amb: Load automatically on Darrick J. Wong
2008-10-15 8:48 ` [lm-sensors] [PATCH 08/12] i5k_amb: Load automatically on all Jean Delvare
2008-10-07 1:19 ` [PATCH 09/12] ibmpex: Automatically load on IBM systems via DMI Darrick J. Wong
2008-10-07 1:19 ` [lm-sensors] [PATCH 09/12] ibmpex: Automatically load on IBM Darrick J. Wong
2008-10-08 12:01 ` [lm-sensors] [PATCH 09/12] ibmpex: Automatically load on IBM systems via DMI Jean Delvare
2008-10-08 12:01 ` [lm-sensors] [PATCH 09/12] ibmpex: Automatically load on IBM Jean Delvare
2008-10-08 14:33 ` [lm-sensors] [PATCH 09/12] ibmpex: Automatically load on IBM systems via DMI Christian Krafft
2008-10-08 14:33 ` [lm-sensors] [PATCH 09/12] ibmpex: Automatically load on IBM Christian Krafft
2008-10-08 18:09 ` [lm-sensors] [PATCH 09/12] ibmpex: Automatically load on Darrick J. Wong
2008-10-09 11:47 ` [lm-sensors] [PATCH 09/12] ibmpex: Automatically load on IBM Jean Delvare
2008-10-09 17:21 ` [lm-sensors] [PATCH 09/12] ibmpex: Automatically load on Darrick J. Wong
2008-10-07 1:19 ` [PATCH 10/12] ibmaem: Automatically load on IBM systems via DMI Darrick J. Wong
2008-10-07 1:19 ` [lm-sensors] [PATCH 10/12] ibmaem: Automatically load on IBM Darrick J. Wong
2008-10-07 1:19 ` [PATCH 11/12] adt7470: Check input range when sysfs files are written Darrick J. Wong
2008-10-07 1:19 ` [lm-sensors] [PATCH 11/12] adt7470: Check input range when sysfs Darrick J. Wong
2008-10-09 9:09 ` [lm-sensors] [PATCH 11/12] adt7470: Check input range when Jean Delvare
2008-10-07 1:19 ` [PATCH 12/12] adt7473: Check inputs from sysfs writes Darrick J. Wong
2008-10-07 1:19 ` [lm-sensors] " Darrick J. Wong
2008-10-07 1:27 ` [PATCH 00/12] Various hwmon patches Darrick J. Wong
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=20081009123117.46844403@hyperion.delvare \
--to=khali@linux-fr.org \
--cc=lm-sensors@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.