From: Guenter Roeck <guenter.roeck@ericsson.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [w83627ehf] Not all fans are shown (#3)
Date: Sat, 28 Jan 2012 01:26:30 +0000 [thread overview]
Message-ID: <20120128012630.GA629@ericsson.com> (raw)
In-Reply-To: <20120127145130.GA29746@ericsson.com>
On Fri, Jan 27, 2012 at 06:52:17PM -0500, CC wrote:
> On Fri, Jan 27, 2012 at 11:41 PM, Guenter Roeck
> <guenter.roeck@ericsson.com> wrote:
> > Hi,
> >
> > On Fri, Jan 27, 2012 at 12:49:48PM -0500, CC wrote:
> > [ ... ]
> >> >
> >> > I tested all three fan outputs. Another thing is weird: pwm1_mode has
> >> > its meaning reversed (it's a 3-pin connector and the value 1 is DC
> >> > mode, in contrast to pwm2 and the documentation).
> >> >
> > You lost me there. pwm1 supports both DC and PWM. pwm1_mode should return 0 for DC mode,
> > 1 for pwm mode. The other pwm channels only support pwm mode on the NCT6776F, thus
> > pwm2_mode and pwm3_mode should both return 1.
> >
> > Are you saying that reading pwm1_mode returns 1, and pwm2_mode and pwm3_mode
> > both return 0 ?
> >
> > Thanks,
> > Guenter
>
> Maybe my reasoning is wrong...
>
> We have that
>
> * fan1 is linked to pwm1
> * fan2 is linked to pwm2
> * fan4 can only be monitored
> * fan5 is linked to pwm3
>
> Only fan2 has a 4-pin connector and could thus be controlled by PWM,
> the others can only be controlled by voltage. Let's assume all fans to
> be in manual mode.
>
> * regardless of pwm1, fan1 runs at full speed when pwm1_mode returns 0
> * the fan's speed can be controlled by pwm1 when pwm1_mode returns 1
>
> So DC mode is only (correctly) activated when pwm1_mode returns 1.
>
> * fan2 stops when pwm2 returns 0 and pwm2_mode also returns 0
> * fan2 runs slowly when pwm2 returns 0 and pwm2_mode returns 1
>
> I interpret this as DC mode being used when pwm2_mode returns 0.
>
> * regardless of pwm3, fan5 runs at full speed whenever pwm3_mode returns 0
> * the fan's speed can be controlled when pwm1_mode returns 1
>
> So DC mode is only (correctly) activated when pwm3_mode returns 1.
>
On pwm2 and pwm3, the chip doesn't even support DC mode (per datasheet).
So setting those to 0 is, at best, undefined, and should not yield any results.
I guess the "bug" here is that pwm2_mode and pwm3_mode are writable for the NCT6776F.
We should really reject setting DC mode for those attributes.
Regarding pwm1_mode, maybe the board plays with the pwm output and converts
it to a voltage - really hard to say. Question really is - what are the powerup
settings ? Presumably those should be correct.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2012-01-28 1:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-27 14:51 [lm-sensors] [w83627ehf] Not all fans are shown (#3) Guenter Roeck
2012-01-27 17:49 ` CC
2012-01-27 22:41 ` Guenter Roeck
2012-01-27 23:52 ` CC
2012-01-28 1:26 ` Guenter Roeck [this message]
2012-01-28 8:41 ` Jean Delvare
2012-01-28 12:08 ` CC
2012-01-28 12:53 ` Jean Delvare
2012-01-28 15:14 ` CC
2012-01-31 15:12 ` 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=20120128012630.GA629@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.