From: Justin Thiessen <jthiessen@penguincomputing.com>
To: LM Sensors <sensors@stimpy.netroedge.com>,
LKML <linux-kernel@vger.kernel.org>
Cc: Greg KH <greg@kroah.com>
Subject: Re: adm1026 driver port for kernel 2.6.X - [REVISED DRIVER]
Date: Tue, 2 Nov 2004 14:17:45 -0800 [thread overview]
Message-ID: <20041102221745.GB18020@penguincomputing.com> (raw)
In-Reply-To: <20041102203122.7e7a8366.khali@linux-fr.org>
On Tue, Nov 02, 2004 at 08:31:22PM +0100, Jean Delvare wrote:
> Hi justin,
<snip>
> On a side note, MBM lists the ADM1026 as being used on only two
> motherboard models, one being yours. Considering this and the fact that
> nobody ever requested us to port the adm1026 driver to Linux 2.6, I
> would conclude that the motherboard you use is possibly the only one
> worth supporting. Do not bother with anything that you don't personally
> need. We can still add it later on request.
Ok.
> Hysteresis temperatures have to be absolute temperatures as per
> interface standard.
Ok.
> > temp[1-3]_auto_point2_temp {temp[1-3]_auto_point1_temp + 20000}
>
> I'm a bit surprised not to see temp[1-3]_auto_point[1-2]_pwm. Trip
> points are supposed to be (temp, pwm) pairs. Doesn't pwm1_auto_pwm_min
> above correspond to one or more of these?
Yes. On its way. I think it got lost somewhere in my reading of the
discussion over auto-fan interface proposals.
> > Failsafe critical temperatures at which the fans go to maximum speed
> > are controled via:
> >
> > temp_crit_enable {0-1} (off, on)
> > temp[1-3]_crit {-128000 - 127000}
>
> Granted it's not part of the standard yet, but you would have three
> files temp[1-3]_crit_enable if we stick to our chip-indenpendent
> interface logic. Either make 1 read-write and [2-3] read-only, or make
> all read-write and each one changes the three values.
Any reason not to simply provide 3 sysfs files pointing at the same variable/
register bit? Maintaining separate variables for a single, uncomplicated
value seems rather overkill.
> > These values override any values set for the pwm-mediated automatic
> > fan control.
>
> Doesn't this mean that you could integrate these in the auto-pwm
> interface as point3?
No. It is important for this to remain seperate from the auto-pwm interface.
It can be set to operate when PWM control is set to "manual", providing a
useful fail-safe mechanism, or when PWM control is set to "off" (Although
it should not be needed in the latter case, as in theory the fans are running
at full speed when PWM control is disabled.)
Moreover, integrating it into the *auto_pointN_temp heirarchy would be
ugly, as there is really only one set of values (temp[1-3]_auto_point1_temp)
that can be independently changed by the end-user.
temp[1-3]_auto_point1_temp_hyst and temp[1-3]_auto_point2_temp are fixed in
hardware at positions relative to temp[1-3]_auto_point1_temp. The function
of temp[1-3]_crit essentially overlaps that of temp[13]_auto_point2_temp
when both automatic PWM fan control and critical temperature monitoring
are enabled. Both provide temperatures at which fan speeds are ramped up
to maximum. This means integrating the temp[1-3]_crit function into the
*_auto_point?_temp heirarchy would result in 2 distinct sets of files that
determine when fan speeds are supposed to go to max.
A better way to think of it is that the temp[1-3]_crit files provide a
method for the end-user to set absolute "holy-cow-my-system-is-glowing"
temperatures at which fans MUST ramp up to full speed. It's a fail-safe
that will kick in to try and save the system's bacon in an emergency. As
it operates with or without the PWM automatic fan control, it can be employed
whether or not the end-user wants to muck about with such.
I would agree that it is a bit confusing that there are essentially 2
temperature-motivated mechanisms for forcing fan speeds to full (automatic
PWM fan control, and critical temperature monitoring), but I think that the
utility of providing a critical temperature fail-safe is worth the
minor amount of confusion.
> > Thanks to all for the feedback.
>
> You're welcome. Sorry to ask questions about the proposed interface
> again, I just want things to be as clean and logical as possible.
No problem. Sorry that it's taking so much revision to get the kinks worked
out. This will undoubtedly become less trouble as I get more familiar with
i2c/lm_sensors/kernel issues.
Justin Thiessen
---------------
jthiessen@penguincomputing.com
next prev parent reply other threads:[~2004-11-02 22:17 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20041025210057.GB19053@penguincomputing.com>
[not found] ` <GNXY8AG6.1098776962.4770080.khali@gcu.info>
[not found] ` <20041029191229.GB803@penguincomputing.com>
2004-11-02 16:46 ` adm1026 driver port for kernel 2.6.X - [REVISED DRIVER] Justin Thiessen
2004-11-02 19:31 ` Jean Delvare
2004-11-02 22:17 ` Justin Thiessen [this message]
2004-11-03 8:01 ` Jean Delvare
2004-11-03 16:43 ` adm1026 driver port for kernel 2.6.X - [RE-REVISED DRIVER] Justin Thiessen
2004-11-16 18:56 ` Jean Delvare
2004-11-18 18:56 ` adm1026 driver port for kernel 2.6.10-rc2 " Justin Thiessen
2004-11-20 9:57 ` Jean Delvare
2004-11-22 19:35 ` Justin Thiessen
2004-11-20 10:13 ` Arjan van de Ven
2004-11-20 10:32 ` Jean Delvare
2004-11-22 19:43 ` Justin Thiessen
2004-11-22 21:00 ` Arjan van de Ven
2004-11-22 21:30 ` linux-os
2004-11-23 17:58 ` Jean Delvare
2004-11-23 16:52 ` adm1026 driver port for kernel 2.6.10-rc2 (patch includes driver, patch to Kconfig, and patch to Makefile) Justin Thiessen
2004-11-23 17:50 ` Jean Delvare
2004-11-24 21:36 ` Greg KH
2004-11-24 23:10 ` adm1026 driver port for kernel 2.6.10-rc2 (patch includes driver, patch to Kconfig, and patch to Makefile) [fixed] Justin Thiessen
2004-11-24 22:35 ` Greg KH
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=20041102221745.GB18020@penguincomputing.com \
--to=jthiessen@penguincomputing.com \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sensors@stimpy.netroedge.com \
/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).