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] hwmon-vid driver from linux 2.6.29
Date: Fri, 05 Jun 2009 15:12:29 +0000	[thread overview]
Message-ID: <20090605171229.5e557efb@hyperion.delvare> (raw)
In-Reply-To: <4A0C6BF7.9010107@assembler.cz>

Hi Hleb,

On Thu, 14 May 2009 22:14:36 +0300, Hleb Valoshka wrote:
> Vendor ID: "AuthenticAMD"; CPUID level 1
> 
> AMD-specific functions
> Version 00060fb1:
> Family: 15 Model: 11 []

This is a BH-G1 core, family 0Fh, it does have 6 VID pins, so VRM
version "25" (in hwmon-vid's terms) is correct. Is it the value
returned in /sys/bus/platform/devices/it87.552/vrm? I suppose the value
returned in that file in kernel 2.6.26 was "24" instead?

> >> Module hwmon_vid (drivers/hwmon/hwmon-vid.c) from linux-2.6.29(.3) returns
> >>
> >> incorrect voltage for my CPU from it8716f sensor (real/2).
> >> With module from 2.6.26 voltage is correct.

What was the voltage value before, and what is it now?

> >> Code changed between versions:
> >>
> >>  int vid_from_reg(int val, u8 vrm)
> >>  {
> >>         int vid;
> >> @@ -96,9 +102,16 @@
> >>                 if (val < 0x02 || val > 0xb2)
> >>                         return 0;
> >>                 return((1600000 - (val - 2) * 6250 + 500) / 1000);
> >> -       case 24:                /* Opteron processor */
> >> +
> >> +       case 24:                /* Athlon64 & Opteron */
> >>                 val &= 0x1f;
> >> -               return(val = 0x1f ? 0 : 1550 - val * 25);
> >> +               if (val = 0x1f)
> >> +                       return 0;
> >> +                               /* fall through */
> >> +       case 25:                /* AMD NPT 0Fh */
> >> +               val &= 0x3f;
> >> +               return (val < 32) ? 1550 - 25 * val
> >> +                       : 775 - (25 * (val - 31)) / 2;
> >>
> >> May be you should revert old code.
> >>
> >> My CPU is AMD BE-2350 stepping 01. IT87 sensor: IT8716F chip at 0x228,
> >> revision 0.

The hwmon-vid code looks correct, and I think you are the first person
complaining since the code was changed (while we did have success
reports.) It could be that VID5 pin is not properly wired on your
system. Or a bug in the it87 driver.

Please provide a dump of your IT8716F chip:

isadump 0x22d 0x22e

As well as a dump of the Super-I/O config space:

isadump -k 0x87,0x01,0x55,0x55 0x2e 0x2f 4

Also, if you use the powernow-k8 driver, it should print the available
VIDs when the driver is loaded, please report what the driver says.

-- 
Jean Delvare

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

  parent reply	other threads:[~2009-06-05 15:12 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-14 19:07 [lm-sensors] hwmon-vid driver from linux 2.6.29 Rudolf Marek
2009-05-14 19:14 ` Hleb Valoshka
2009-06-05 15:12 ` Jean Delvare [this message]
2009-06-06 14:31 ` Hleb Valoshka
2009-06-08 12:11 ` Jean Delvare
2009-06-08 14:05 ` Frank Myhr
2009-06-08 14:59 ` Jean Delvare
2009-06-08 15:28 ` Frank Myhr
2009-06-08 15:42 ` Jean Delvare
2009-06-08 18:03 ` Hleb Valoshka
2009-06-08 18:19 ` Jean Delvare
2009-06-16 14:58 ` Hleb Valoshka
2009-06-24 17:47 ` Hleb Valoshka
2009-06-25  8:06 ` Jean Delvare
2009-06-25 13:50 ` Hleb Valoshka

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=20090605171229.5e557efb@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.