From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] W83667HG on ASUS P6T6 WS Revolution
Date: Tue, 24 Feb 2009 09:25:41 +0000 [thread overview]
Message-ID: <20090224102541.3492bdff@hyperion.delvare> (raw)
In-Reply-To: <498B944A.3060502@ioerror.us>
Hi Gong Jun,
On Tue, 24 Feb 2009 16:49:53 +0800, JGong@nuvoton.com wrote:
> Dear Jean,
>
> So far, the w83667hg's pin 109(in6 and temp3's shared pin) selection is
> only decided by BIOS.
Can you please clarify what you mean by "decided by BIOS"? Do you mean
that the BIOS is writing something to the chip to configure pin 109? Or
do you mean that the BIOS author has the knowledge of the board and
displays either in6 or temp3 depending on the board's wiring?
> So maybe the user has to config the value with the help of its own
> BIOS readings, and then disables the meaningless output in the
> sensors.conf file.
This is really not ideal from a usability perspective.
Why don't we simply trust bit 0 of register 0x52 in bank 2? After all,
your original code changes this bit to switch between temp3 and in6, so
it would seem reasonable that the BIOS sets it to the right value as
well.
So I propose the following approach:
* Make the driver trust bit 0 of register 0x52 in bank 2. If the bit is
set, create in6 attributes but not temp3 attributes. If it is clear,
create temp3 attributes but not in6 attributes. Issue a debug message
explaining the decision. For the W83667HG only, of course; for older
chips we keep always creating all attributes.
* If it is ever found that some motherboard doesn't properly initialize
this configuration bit, try to get the manufacturer to fix the BIOS.
If we fail, either add a per-motherboard override in the driver, or
add a module parameter or a sysfs attribute to let the user override
the default configuration.
What do you think? It would be great to get this solved quickly so that
support for the W83667HG makes it into kernel 2.6.30.
Thanks,
--
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:[~2009-02-24 9:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-06 1:37 [lm-sensors] W83667HG on ASUS P6T6 WS Revolution Michael Hampton
2009-02-23 16:23 ` Jean Delvare
2009-02-24 8:49 ` JGong
2009-02-24 9:25 ` Jean Delvare [this message]
2009-02-24 10:09 ` JGong
2009-02-24 10:20 ` Jean Delvare
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=20090224102541.3492bdff@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.