All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [lm-sensors] hwmon-vid driver from linux 2.6.29
@ 2009-05-14 19:07 Rudolf Marek
  2009-05-14 19:14 ` Hleb Valoshka
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: Rudolf Marek @ 2009-05-14 19:07 UTC (permalink / raw)
  To: lm-sensors

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,



I'm posting this to mailing list. I did no changes a long time. I need to check
that. In the meanwhile can you give me an output of "cpuid" utility.

Thanks,
Rudolf





Gnu Belarusian wrote:
> Hallo!
> 
> 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.
> 
> 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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoMa/QACgkQ3J9wPJqZRNWzWwCfco9A7j9dMJhVoeFaHcgS6QSp
vmkAn2l+5gDcPnsSbsa7/AKCpbLCtM/I
=pf/j
-----END PGP SIGNATURE-----

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2009-06-25 13:50 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.