All of lore.kernel.org
 help / color / mirror / Atom feed
From: khali@linux-fr.org (Jean Delvare)
To: Nicolas Pitre <nico@cam.org>
Cc: LM Sensors <sensors@Stimpy.netroedge.com>,
	lkml <linux-kernel@vger.kernel.org>,
	Jonas Munsin <jmunsin@iki.fi>,
	Simone Piunno <pioppo@ferrara.linux.it>, Greg KH <greg@kroah.com>
Subject: 2.6.10-mm2: it87 sensor driver stops CPU fan
Date: Thu, 19 May 2005 06:25:32 +0000	[thread overview]
Message-ID: <20050121074624.3db5af6a.khali@linux-fr.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0501201536240.5315@localhost.localdomain>

Hi Nicolas,

> I confirm that 0x7f is full speed.

So at least the polarity bit is correct, and Gigabyte isn't to blame.

> > Once you know if the polarity is correct, you can try different
> > values of PWM between 0x00 and 0x7F and see how exactly your fan
> > reacts to them.
> 
> That's where things get really really interesting.  As mentioned
> above 0x7f drives the fan full speed (2596 RPM).  Now lowering that
> value slows the CPU fan gradually down to a certain point.  With a
> value of 0x3f the fan turns at 1041 RPM.  But below 0x3f the fan
> starts speeding up again to reach a peak of 2280 RPM with a value
> of 0x31, then it slows  down again toward 0 RPM as the register
> value is decreased down to 0.
> 
> Bit 3 of register 0x14, when set, only modifies the curve so the
> first minimum is instead reached at 0x30 then the peak occurs at 0x1d
> before dropping to 0.
> 
> Changing the PWM base clock select has no effect.

Wow! Unexpected, to say the least. First time I see such a behavior.

Could it be that your CPU fan isn't a simple passive device but one of
these high-tech models with an embedded thermal sensor and automatic
speed adjustment? This would possibly interact with the motherboard PWM
capability and could explain the strange speed curve your obtained.

I would also like you to try a similar test with your case fan. Enable
"smart guardian" mode for this one (by writing 0x73 to register 0x13),
then scan the 0x7f-0x00 range (register 0x16) like you did for your CPU
fan. I wonder if you will obtain the same kind of result or a standard
linear curve.

(Note that PWM2 might not be wired at all on your motherboard, so don't
be surprised if the case fan speed doesn't change at all.)

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

WARNING: multiple messages have this Message-ID (diff)
From: Jean Delvare <khali@linux-fr.org>
To: Nicolas Pitre <nico@cam.org>
Cc: LM Sensors <sensors@Stimpy.netroedge.com>,
	lkml <linux-kernel@vger.kernel.org>,
	Jonas Munsin <jmunsin@iki.fi>,
	Simone Piunno <pioppo@ferrara.linux.it>, Greg KH <greg@kroah.com>
Subject: Re: 2.6.10-mm2: it87 sensor driver stops CPU fan
Date: Fri, 21 Jan 2005 07:46:24 +0100	[thread overview]
Message-ID: <20050121074624.3db5af6a.khali@linux-fr.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0501201536240.5315@localhost.localdomain>

Hi Nicolas,

> I confirm that 0x7f is full speed.

So at least the polarity bit is correct, and Gigabyte isn't to blame.

> > Once you know if the polarity is correct, you can try different
> > values of PWM between 0x00 and 0x7F and see how exactly your fan
> > reacts to them.
> 
> That's where things get really really interesting.  As mentioned
> above 0x7f drives the fan full speed (2596 RPM).  Now lowering that
> value slows the CPU fan gradually down to a certain point.  With a
> value of 0x3f the fan turns at 1041 RPM.  But below 0x3f the fan
> starts speeding up again to reach a peak of 2280 RPM with a value
> of 0x31, then it slows  down again toward 0 RPM as the register
> value is decreased down to 0.
> 
> Bit 3 of register 0x14, when set, only modifies the curve so the
> first minimum is instead reached at 0x30 then the peak occurs at 0x1d
> before dropping to 0.
> 
> Changing the PWM base clock select has no effect.

Wow! Unexpected, to say the least. First time I see such a behavior.

Could it be that your CPU fan isn't a simple passive device but one of
these high-tech models with an embedded thermal sensor and automatic
speed adjustment? This would possibly interact with the motherboard PWM
capability and could explain the strange speed curve your obtained.

I would also like you to try a similar test with your case fan. Enable
"smart guardian" mode for this one (by writing 0x73 to register 0x13),
then scan the 0x7f-0x00 range (register 0x16) like you did for your CPU
fan. I wonder if you will obtain the same kind of result or a standard
linear curve.

(Note that PWM2 might not be wired at all on your motherboard, so don't
be surprised if the case fan speed doesn't change at all.)

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

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

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-08  0:50 2.6.10-mm2: it87 sensor driver stops CPU fan Simone Piunno
2005-01-08  9:34 ` Jean Delvare
2005-05-19  6:25   ` Jean Delvare
2005-01-10 22:41   ` Simone Piunno
2005-05-19  6:25     ` Simone Piunno
2005-01-11  9:26     ` Jean Delvare
2005-05-19  6:25       ` Jean Delvare
2005-01-11 20:24       ` Jonas Munsin
2005-05-19  6:25         ` Jonas Munsin
2005-01-11 20:56         ` Jean Delvare
2005-01-11 22:41         ` Greg KH
2005-05-19  6:25           ` Greg KH
2005-01-11 21:04       ` Simone Piunno
2005-01-12  9:44         ` Jean Delvare
2005-05-19  6:25           ` Jean Delvare
2005-01-12 22:27       ` Jonas Munsin
2005-05-19  6:25         ` Jonas Munsin
2005-01-13 23:29         ` Greg KH
2005-05-19  6:25           ` Greg KH
2005-01-14 14:40           ` Jean Delvare
2005-05-19  6:25             ` Jean Delvare
2005-01-15 15:30             ` [PATCH 2.6] I2C: Allow it87 pwm reconfiguration Jean Delvare
2005-05-19  6:25               ` Jean Delvare
2005-01-15 17:18               ` Simone Piunno
2005-05-19  6:25                 ` Simone Piunno
2005-01-19 23:23               ` Greg KH
2005-05-19  6:25                 ` Greg KH
2005-01-15 15:54             ` 2.6.10-mm2: it87 sensor driver stops CPU fan Simone Piunno
2005-05-19  6:25               ` Simone Piunno
2005-01-15 16:55               ` Jean Delvare
2005-05-19  6:25                 ` Jean Delvare
2005-01-16 22:32                 ` Simone Piunno
2005-05-19  6:25                   ` Simone Piunno
2005-01-17 19:19                   ` Jean Delvare
2005-05-19  6:25                     ` Jean Delvare
2005-01-17 19:37                     ` 2.6 Series Mem Mgmt Chris Bookholt
2005-01-17 19:56                       ` Brian Gerst
2005-01-08 16:20 ` 2.6.10-mm2: it87 sensor driver stops CPU fan Jean Delvare
2005-01-08 19:23   ` Simone Piunno
2005-05-19  6:25     ` Simone Piunno
2005-01-10 19:23     ` Simone Piunno
2005-05-19  6:25       ` Simone Piunno
2005-01-10 19:34       ` Jean Delvare
2005-01-19 20:19         ` Nicolas Pitre
2005-05-19  6:25           ` Nicolas Pitre
2005-01-19 20:52           ` Jean Delvare
2005-05-19  6:25             ` Jean Delvare
2005-01-19 22:10             ` Nicolas Pitre
2005-05-19  6:25               ` Nicolas Pitre
2005-01-20 11:08               ` Jean Delvare
2005-05-19  6:25                 ` Jean Delvare
2005-01-20 16:01                 ` Nicolas Pitre
2005-05-19  6:25                   ` Nicolas Pitre
2005-01-20 16:28                   ` Jean Delvare
2005-05-19  6:25                     ` Jean Delvare
2005-01-20 21:19                     ` Nicolas Pitre
2005-05-19  6:25                       ` Nicolas Pitre
2005-01-21  6:46                       ` Jean Delvare [this message]
2005-05-19  6:25                         ` 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=20050121074624.3db5af6a.khali@linux-fr.org \
    --to=khali@linux-fr.org \
    --cc=greg@kroah.com \
    --cc=jmunsin@iki.fi \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nico@cam.org \
    --cc=pioppo@ferrara.linux.it \
    --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 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.