All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH] hwmon: it87 support for 16-bit fan reading
Date: Mon, 07 Jul 2008 07:14:04 +0000	[thread overview]
Message-ID: <20080707091404.2d5309d2@hyperion.delvare> (raw)
In-Reply-To: <76366b180802102232o60442894gfca038eb4b6f181d@mail.gmail.com>

Hi Andrew,

On Sun, 6 Jul 2008 20:52:40 -0400, Andrew Paprocki wrote:
> On Sun, Jul 6, 2008 at 7:16 AM, Jean Delvare <khali@linux-fr.org> wrote:
> 
> > can't test. Someone with such a chip (you?) could attempt to reset it
> > (write 1 to bit 7 of register 00h) and check what the default value
> > of register 0Bh actually is.
> 
> I tested this, and the value is in fact 09h. I did this as the first
> thing in it87_init_device():
> 
> it87_write_value(data, 0x00, 1<<7);
> tmp = it87_read_value(data, IT87_REG_FAN_DIV);
> 
> As you said, it doesn't really matter, because the chips that support
> 16-bit will use it now.
> 
> > So maybe we should simply always enable all of fan1, fan2 and fan3,
> > regardless of what the BIOS did. That's a one-line change as far as I
> > can see, fairly simple.
> 
> I'm in favor of that. It can't do any harm, really, as everyone
> controls what inputs/temps/fans are ignored via sensors.conf anyway.

My hope was to make the configuration a bit easier by not presenting to
the users fan inputs which were not used on their systems. But this
only works if the BIOS plays the game, and experience has shown that it
does not always do.

> Should I submit a separate patch for that?

Yes please.

> > revisions >= J as far as I can see. This makes me wonder why your patch
> > doesn't also cover revision I, as it already had 16-bit fan speed
> > registers and the 2 extra fans as well.
> 
> I updated the documentation in the patch I'll post next. I went back
> and looked at the I datasheet, and you are correct. It (rev 07h)
> supports both 8-bit and 16-bit modes, and the fan divisors were simply
> dropped in rev 08h. I modified the patch to check for rev >= 07h.

Good.

> I also noticed the documentation mentioned that later IT8705F
> revisions also support 16-bit fans. I looked at the only datasheet
> currently online (Version G) and it does indeed support the same
> registers. I will submit a patch to enable 16-bit on this chip as
> well. Do you happen to have any older datasheets for this chip? I'll
> enable 16-bit for >= rev 05h (G), but if you have data showing it
> exists in an earlier revision than that, please let me know. Also, is
> Version G actually rev 05h? The G datasheet says the default value for
> the 22h register is 03h and does not enumerate the version values like
> the IT8712F datasheet. What revision does your chip report?

My IT8705F chip reports:
it87: Found IT8705F chip at 0x290, revision 2

That would correspond to "rev. F" in the datasheets. My personal notes
on the IT8705F revisions are:

IT8705F rev. F: 0x02
IT8705F rev. G: 0x03 (datasheet v0.4.1)

My rev. F chip has no register 0Ch, so it definitely doesn't support
16-bit mode. So you would test for revision code >= 0x03 for the
IT8705F. Should be fairly easy after the patch you've just written.

Thanks,
-- 
Jean Delvare

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

  parent reply	other threads:[~2008-07-07  7:14 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-11  6:32 [lm-sensors] [PATCH] hwmon: it87 support for 16-bit fan reading in Andrew Paprocki
2008-02-24 15:43 ` [lm-sensors] [PATCH] hwmon: it87 support for 16-bit fan reading Jean Delvare
2008-06-12  7:53 ` Jean Delvare
2008-06-12 22:56 ` Andrew Paprocki
2008-06-24 13:16 ` Andrew Paprocki
2008-07-05 12:40 ` Bruno Prémont
2008-07-05 13:32 ` Jean Delvare
2008-07-05 14:22 ` Bruno Prémont
2008-07-05 14:54 ` Jean Delvare
2008-07-05 15:49 ` Bruno Prémont
2008-07-05 16:31 ` Jean Delvare
2008-07-06 11:16 ` Jean Delvare
2008-07-07  0:52 ` Andrew Paprocki
2008-07-07  0:57 ` [lm-sensors] [PATCH] hwmon: it87 support for 16-bit fan reading in Andrew Paprocki
2008-07-07  7:14 ` Jean Delvare [this message]
2008-07-07  7:33 ` [lm-sensors] [PATCH] hwmon: it87 support for 16-bit fan reading 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=20080707091404.2d5309d2@hyperion.delvare \
    --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.