From: mds@mds.gotdns.com (Mark Studebaker)
To: lm-sensors@vger.kernel.org
Subject: RFC parameter based voltage scaling
Date: Thu, 19 May 2005 06:25:58 +0000 [thread overview]
Message-ID: <4282199F.1060503@mds.gotdns.com> (raw)
In-Reply-To: <rl8u711rq5bc1e1jtt91s76fed180ctoav@4ax.com>
Grant Coady wrote:
> Hi Khali,
> On Tue, 10 May 2005 14:35:31 +0200 (CEST), "Jean Delvare" <khali@linux-fr.org> wrote:
>
> Sorry for mixing the thread up. Just got a working set of computes
> for w83697hf chip using sensors.conf.
>
> Its the comments up the top of file wrong, down further they mention
> the 3.6 volt offset but unfortunately comment:
> "
> # The math is convoluted, so we hope that your motherboard
> # uses the recommended resistor values.
> "
> I'd have to agree with convoluted math :)
>
IIRC the comment, and these original formulas, are mine.
compute in5 (5.14 * @) - 14.91 , (@ + 14.91) / 5.14
compute in6 (3.14 * @) - 7.71 , (@ + 7.71) / 3.14
If I made a mistake doing the formulas on the back of a napkin,
or they aren't correct for newer
Winbond chips (is the 697f the chip you've been referring to when you say
"Winbond"? - there are lots of separate sections for Winbond chips in
sensors.conf.eg), then let's fix them in sensors.conf.eg.
Or you suggested rewriting the formulas to be more transparent -
that's a good idea.
But just because the formula's wrong doesn't mean we should shove
the calculations into the driver. Let's fix the formulas and be done.
I think that's where you are now anyway? not sure...
Do you now think the formula is wrong or just hard to understand?
mds
>
>>and motherboards have a long history of not following the
>>recommendations anyway.
>
>
> This is the issue what I'm trying to redress by exposing resistor
> values in the computes, and providing (planning?) a user-space
> program for those with non-standard values on their mobo's.
>
> I've changed Winbond datasheet values to E24 values as I suspect
> that is what's on my mobo. These work for me, CVS lm_sensors
> (so I did compile that other patch, later :)
>
> ignore in1
> compute in3 @ * (50 + 34) / 50, @ * 50 / (50 + 34)
> compute in4 @ * (56 + 20) / 20, @ * 20 / (56 + 20)
> compute in5 ((@ - 3.6) * 100 / 24) + @, 3.6 - ((3.6 - @) * 24 / (100 + 24))
> compute in6 ((@ - 3.6) * 120 / 56) + @, 3.6 - ((3.6 - @) * 56 / (120 + 56))
> compute in7 @ * (33 + 17) / 33, @ * 33 / (33 + 17)
>
> These can be simplified back, but then we lose traceability?
>
>>From a documentation point of view the verbose example may be
> better?
prev parent reply other threads:[~2005-05-19 6:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 6:25 RFC parameter based voltage scaling Grant Coady
2005-05-19 6:25 ` Grant Coady
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Grant Coady
2005-05-19 6:25 ` Grant Coady
2005-05-19 6:25 ` Grant Coady
2005-05-19 6:25 ` Grant Coady
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Grant Coady
2005-05-19 6:25 ` Grant Coady
2005-05-19 6:25 ` Grant Coady
2005-05-19 6:25 ` Mark Studebaker
2005-05-19 6:25 ` Grant Coady
2005-05-19 6:25 ` Mark Studebaker [this message]
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=4282199F.1060503@mds.gotdns.com \
--to=mds@mds.gotdns.com \
--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.