From: Rudolf Marek <r.marek@assembler.cz>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] hwmon-vid driver from linux 2.6.29
Date: Thu, 14 May 2009 19:07:35 +0000 [thread overview]
Message-ID: <4A0C6BF7.9010107@assembler.cz> (raw)
-----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
next reply other threads:[~2009-05-14 19:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-14 19:07 Rudolf Marek [this message]
2009-05-14 19:14 ` [lm-sensors] hwmon-vid driver from linux 2.6.29 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
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=4A0C6BF7.9010107@assembler.cz \
--to=r.marek@assembler.cz \
--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.