From: Jean Delvare <khali@linux-fr.org>
To: Paulo Marques <pmarques@grupopie.com>
Cc: sensors@Stimpy.netroedge.com, linux-kernel@vger.kernel.org
Subject: Re: [RFC] Dynamic fan clock divider changes (long)
Date: Sat, 22 May 2004 16:46:51 +0200 [thread overview]
Message-ID: <20040522164651.1f8099a0.khali@linux-fr.org> (raw)
In-Reply-To: <40AC947E.2050706@grupopie.com>
> > The user still doesn't have to care, which is fine, but if the user
> > has a fan speed between 2000 and 5000 RPM, with low limit set to
> > 1500 RPM, he/she will have a "bad" accuracy at 5000 RPM (+/- 104
> > RPM). I see this as the low limit "nailing" the divider ;)
>
> This doesn't sound so bad at all. And this seems to be the simplest
> approach.
Agreed.
> > This is what I implemented in my new pc87360 driver (after trying
> > #1). I use 85 and 224 as the arbitrary limits for changing
> > dividers.
>
> This confused me a bit. It seems that a direct consequence of
> implementation #2 is that the divider will be set in a way that the
> low limit will be between 128 and 255, and that there is no point in
> changing the divider, because it will only get worse.
You're absolutely right.
> This leads directly to implementation #4. Am I missing something?
You are. In #4, the divider is arbitrarily chosen by "us", regardless of
the user's setup. In #2, the divider is chosen according to the user's
hardware and fan use. The common point is that (after setting the low
limit for #2) the divider will no longer change (until the low limit
changes for #2). But in #2 the divider is optimal, in #4 it is
arbitrary.
This makes a big difference because we cannot possibly arbitrarily pick
a divider and not allow the user to change it, so in #4 we would have to
keep the manual interface as well, as it exists for now. For #2, we can
reasonably hope to get rid of the manual interface after some times
(once the automatic mode will have been tested and is believed to be
correct).
> Anyway, if the user is really concerned about accuracy an average of
> several measurements should increase precision in this kind of
> problem.
Yes, that's a possibility. Not sure it's even worth the extra code, but
someone motivated could do it, you're right.
Thanks for your comments :)
--
Jean Delvare
http://khali.linux-fr.org/
prev parent reply other threads:[~2004-05-22 14:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-16 20:28 [RFC] Dynamic fan clock divider changes (long) Jean Delvare
2004-05-16 21:36 ` Rutger Nijlunsing
2004-05-19 21:28 ` Jean Delvare
[not found] ` <20040518021540.GB11012@earth.solarsys.private>
2004-05-20 9:03 ` Jean Delvare
2004-05-20 11:20 ` Paulo Marques
2004-05-22 14:46 ` Jean Delvare [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=20040522164651.1f8099a0.khali@linux-fr.org \
--to=khali@linux-fr.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pmarques@grupopie.com \
--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