All of lore.kernel.org
 help / color / mirror / Atom feed
From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: [RFC] Dynamic fan clock divider changes (long)
Date: Thu, 19 May 2005 06:25:00 +0000	[thread overview]
Message-ID: <20040531112719.10b7d64c.khali@linux-fr.org> (raw)
In-Reply-To: <20040516222809.2c3d1ea2.khali@linux-fr.org>

> I like the idea of dynamic divisor changes (I'll call it auto fan
> divisors or A.F.D.). Whether it belongs in the driver or in userspace
> is a tougher call. There may be more information available to a driver
> on clock rate and possible divisors, but it would be more work to
> propagate the code to all the drivers rather than do it once in
> 'sensors'.
> 
> I'm all for AFD in pc87360 as a demonstration / proof of concept.
> However let's think about what it would take to do the same thing in
> 'sensors' and whether that offers some advantages.

We discussed this a bit with MMH already, and as you pointed out, the
problem is that the userspace would then need to know the possible
dividers and clock frequency. This is likely to represent more code than
the AFD algorithm itself, which is why I'm not it favor of this.

One thing MMH and I are in favor of (if we agree that it's more simple
to put that stuff in the drivers) would be to have a generic function in
i2c-sensor instead of one in all chip drivers. Almost all chips work on
the same model, the function would have to know the possible dividers
and that's about all. Most chips accept a divider "range", typically
from 1 to 8 or 1 to 128. Only the IT87 fan 3 is different AFAIK (only
accept 2 and 8) so this one would probably have its own function.

I will try to improve the pc87360 implementation so that everything is
centralized in a single function. Then, if no problems are reported with
this implementation, we'll modify the prototype so that the funtion has
enough parameters to be chip-independant, and move it to i2c-sensor. All
this won't happen before I (or anyone else) have ported the pc87360
driver to Linux 2.6, so this leaves enough time for testing and feedback
if any problem arises.

Thanks.

-- 
Jean Delvare
http://khali.linux-fr.org/

      parent reply	other threads:[~2005-05-19  6:25 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-16 20:28 [RFC] Dynamic fan clock divider changes (long) Jean Delvare
2005-05-19  6:24 ` Jean Delvare
2004-05-16 21:36 ` Rutger Nijlunsing
2005-05-19  6:24   ` Rutger Nijlunsing
2004-05-19 21:28   ` Jean Delvare
2005-05-19  6:24     ` Jean Delvare
2004-05-20 11:20 ` Paulo Marques
2005-05-19  6:24   ` Paulo Marques
2004-05-22 14:46   ` Jean Delvare
2005-05-19  6:24     ` Jean Delvare
2005-05-19  6:24 ` Mark M. Hoffman
2004-05-20  9:03   ` Jean Delvare
2005-05-19  6:24     ` Jean Delvare
2005-05-19  6:25 ` Mark Studebaker
2005-05-19  6:25 ` 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=20040531112719.10b7d64c.khali@linux-fr.org \
    --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.