All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <guenter.roeck@ericsson.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH v3 7/7] hwmon: (w83627ehf) Use 16 bit fan
Date: Mon, 14 Feb 2011 06:03:06 +0000	[thread overview]
Message-ID: <20110214060306.GB20636@ericsson.com> (raw)
In-Reply-To: <1297444832-10874-8-git-send-email-guenter.roeck@ericsson.com>

On Sat, Feb 12, 2011 at 01:56:09PM -0500, Andrew Lutomirski wrote:
> On Sat, Feb 12, 2011 at 12:55 PM, Guenter Roeck
> <guenter.roeck@ericsson.com> wrote:
> > On Sat, Feb 12, 2011 at 11:01:11AM -0500, Andrew Lutomirski wrote:
> > [ ... ]
> >
> > Actually,
> >
> >> fan2_min = 200 (div = 64):
> >> fan2_input = 138 (read at a different time, so may differ a little)
> >>
> >> [56013.556243] Reg 0029 = 99
> >> [56013.556286] Reg 0630 = 0046
> >> [56013.556453] Reg 0658 = 0089
> >>
> >> fan2_min = 502 (div = 32):
> >> fan2_input = 0 (read at a different time, so may differ a little)
> >>
> >> [56085.471567] Reg 0029 = 00
> >> [56085.471644] Reg 0632 = 0000
> >> [56085.471804] Reg 0658 = 0000
> >
> > Must have been blind. So the RPM register returns 0 as well. Not good.
> > Wonder what is going on.
> 
> So far, the highest number I've been able to get out of the counter
> register is 0x2e8 by setting div = 16 and playing with the pwm.
> 
> If I set div = 8, then I can't get much above 0x10b.
> 
> I have no idea what's going on either.
> 
> I tried writing 0x80 to 0x508 (which is supposed to turn the whole
> thing on), but the only bits that seem to stick are 0x7, so I have no
> idea what's going on.
> 
Here is what I got from Nuvoton.

The chip has an internal "abort time" when waiting for the next pulse from the fan.
If this abort time expires and no pulse was received, all fan count and rpm registers
will return 0. This can happen if 1) the fan speed is very low and/or 2) if
the divisor setting is too low.

This means we can not depend on a reading of 0xff to determine if the divisor
is too low. A reading of 0x0 (for 8 bit and 16 bit fan count registers as well
as RPM) can also indicate that the divisor was too low.

I'll have to think about how to proceed. Best approach might be to increase the divisor
if the fan count returns 0. If anyone has a better idea, please let me know.

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

      parent reply	other threads:[~2011-02-14  6:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-11 17:20 [lm-sensors] [PATCH v3 7/7] hwmon: (w83627ehf) Use 16 bit fan count Guenter Roeck
2011-02-12  3:09 ` [lm-sensors] [PATCH v3 7/7] hwmon: (w83627ehf) Use 16 bit fan Andrew Lutomirski
2011-02-12  3:45 ` Guenter Roeck
2011-02-12  4:08 ` Andrew Lutomirski
2011-02-12  5:08 ` Guenter Roeck
2011-02-12 13:53 ` Andrew Lutomirski
2011-02-12 15:48 ` Guenter Roeck
2011-02-12 16:01 ` Andrew Lutomirski
2011-02-12 17:47 ` Guenter Roeck
2011-02-12 17:55 ` Guenter Roeck
2011-02-12 18:56 ` Andrew Lutomirski
2011-02-12 21:26 ` Guenter Roeck
2011-02-14  6:03 ` Guenter Roeck [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=20110214060306.GB20636@ericsson.com \
    --to=guenter.roeck@ericsson.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.