Skip to contentSkip to conversation

hwmon-vid driver from linux 2.6.29

lm-sensors Rudolf Marek 4 participants 15 messages May 14, 2009 – Jun 25, 2009

lore
Share & tools
lore
#0 lore 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

Quoted 30 lines · Gnu Belarusian

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;
(quoted diff) +9 -2
@@ -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.

Quoted 1 line

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
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw

eax in eax ebx ecx edx
00000000 00000001 68747541 444d4163 69746e65 00000001 00060fb1 01020800 00002001 178bfbff 80000000 80000018 68747541 444d4163 69746e65 80000001 00060fb1 0000464a 0000011f ebd3fbff 80000002 20444d41 6c687441 74286e6f 5820296d 80000003 75442032 43206c61 2065726f 636f7250 80000004 6f737365 45422072 3533322d 00000030 80000005 ff08ff08 ff20ff20 40020140 40020140 80000006 00000000 42004200 02008140 00000000 80000007 00000000 00000000 00000000 0000007f 80000008 00003028 00000000 00000001 00000000 80000009 00000000 00000000 00000000 00000000 8000000a 00000001 00000040 00000000 00000002 8000000b 00000000 00000000 00000000 00000000 8000000c 00000000 00000000 00000000 00000000 8000000d 00000000 00000000 00000000 00000000 8000000e 00000000 00000000 00000000 00000000 8000000f 00000000 00000000 00000000 00000000 80000010 00000000 00000000 00000000 00000000 80000011 00000000 00000000 00000000 00000000 80000012 00000000 00000000 00000000 00000000 80000013 00000000 00000000 00000000 00000000 80000014 00000000 00000000 00000000 00000000 80000015 00000000 00000000 00000000 00000000 80000016 00000000 00000000 00000000 00000000 80000017 00000000 00000000 00000000 00000000 80000018 00000000 00000000 00000000 00000000

Vendor ID: "AuthenticAMD"; CPUID level 1

AMD-specific functions
Version 00060fb1:
Family: 15 Model: 11 []

Standard feature flags 178bfbff:
Floating Point Unit
Virtual Mode Extensions
Debugging Extensions
Page Size Extensions
Time Stamp Counter (with RDTSC and CR4 disable bit) Model Specific Registers with RDMSR & WRMSR PAE - Page Address Extensions
Machine Check Exception
COMPXCHG8B Instruction
APIC
SYSCALL/SYSRET or SYSENTER/SYSEXIT instructions MTRR - Memory Type Range Registers
Global paging extension
Machine Check Architecture
Conditional Move Instruction
PAT - Page Attribute Table
PSE-36 - Page Size Extensions
19 - reserved
MMX instructions
FXSAVE/FXRSTOR
25 - reserved
26 - reserved
28 - reserved
Generation: 15 Model: 11
Extended feature flags ebd3fbff:
Floating Point Unit
Virtual Mode Extensions
Debugging Extensions
Page Size Extensions
Time Stamp Counter (with RDTSC and CR4 disable bit) Model Specific Registers with RDMSR & WRMSR PAE - Page Address Extensions
Machine Check Exception
COMPXCHG8B Instruction
APIC
SYSCALL/SYSRET or SYSENTER/SYSEXIT instructions MTRR - Memory Type Range Registers
Global paging extension
Machine Check Architecture
Conditional Move Instruction
PAT - Page Attribute Table
PSE-36 - Page Size Extensions
20 - reserved
AMD MMX Instruction Extensions
MMX instructions
FXSAVE/FXRSTOR
25 - reserved
27 - reserved
29 - reserved
3DNow! Instruction Extensions
3DNow instructions

Processor name string: AMD Athlon(tm) X2 Dual Core Processor BE-2350 L1 Cache Information:
2/4-MB Pages:
Data TLB: associativity 255-way #entries 8
Instruction TLB: associativity 255-way #entries 8
4-KB Pages:
Data TLB: associativity 255-way #entries 32 Instruction TLB: associativity 255-way #entries 32
L1 Data cache:
size 64 KB associativity 2-way lines per tag 1 line size 64
L1 Instruction cache:
size 64 KB associativity 2-way lines per tag 1 line size 64

L2 Cache Information:
2/4-MB Pages:
Data TLB: associativity L2 off #entries 0 Instruction TLB: associativity L2 off #entries 0
4-KB Pages:
Data TLB: associativity 2-way #entries 0 Instruction TLB: associativity 2-way #entries 0 size 2 KB associativity L2 off lines per tag 129 line size 64

Advanced Power Management Feature Flags
Has temperature sensing diode
Supports Frequency ID control
Supports Voltage ID control
Maximum linear address: 48; maximum phys address 40

Quoted 56 lines · Rudolf Marek

-----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

Quoted 31 lines · Gnu Belarusian

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;
(quoted diff) +9 -2
@@ -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.

Quoted 2 lines

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

Quoted 5 lines

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

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#2 lore raw
In reply to Rudolf Marek

Hi Hleb,

Quoted 5 lines · Hleb Valoshka

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?

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

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?

Quoted 22 lines
Quoted 22 lines
Quoted 22 lines

Code changed between versions:

int vid_from_reg(int val, u8 vrm)

 {
        int vid;
(quoted diff) +9 -2
@@ -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;
 
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

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.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#3 lore raw
In reply to Rudolf Marek
Quoted 7 lines · Jean Delvare
Quoted 3 lines

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?

@globus-debian:~$ cat /sys/bus/platform/devices/it87.552/vrm
25

yes, with 2.6.26 it was 24

Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

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?

cpu freq | 2.6.26 | 2.6.29
---------------------------------

1 GHz    | 1.1 V  | 0.54 V
2.1 GHz  | 1.25 V | 0,61 V
Quoted 4 lines

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.

Is it wired on motherboard? It's Gigabyte GA-MA69VM-S2 (amd rs690v based)

Quoted 3 lines

Please provide a dump of your IT8716F chip:

isadump 0x22d 0x22e

@globus-debian:~$ sudo isadump 0x22d 0x22e
WARNING! Running this program can cause system crashes, data loss and worse!
I will probe address register 0x22d and data register 0x22e.
Continue? [Y/n] y
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00: 11 10 00 00 ff ff 00 37 ff 87 32 09 07 11 ff 00
10: ff ff ff 31 d7 82 7f c2 02 ff 00 ff ff ff ff ff
20: 44 79 d2 bb c3 ca 46 b8 be 29 20 16 7e 8d 8d 8d
30: ff 00 ff 00 ff 00 ff 00 ff 00 ff 00 ff 00 ff 00
40: 7f 7f 7f 7f 7f 7f 00 0d 2d ff ff ff ff ff ff ff
50: ff 1c 7f 7f 7f 50 eb eb 90 eb 00 12 60 00 00 00
60: ff 14 7f 27 90 03 ff ff 7f 7f 7f 00 00 7f ff ff
70: ff 14 7f 20 90 03 ff ff ff ff ff ff ff ff ff ff
80: 00 00 00 00 ff ff ff ff 00 00 ff c0 02 00 99 99
90: 7f 7f 7f 00 00 7f ff ff 7f 7f 7f 00 00 7f ff ff
a0: 00 00 00 00 00 00 00 ff ff ff ff ff ff ff ff ff
b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Quoted 2 lines

As well as a dump of the Super-I/O config space:
isadump -k 0x87,0x01,0x55,0x55 0x2e 0x2f 4

@globus-debian:~$ sudo isadump -k 0x87,0x01,0x55,0x55 0x2e 0x2f 4
WARNING! Running this program can cause system crashes, data loss and worse!
I will probe address register 0x2e and data register 0x2f.
Probing bank 4 using bank register 0x07.
Continue? [Y/n] y
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00: 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 87 16 00 10 1a 00 00 00 80 00 00 00 1f 00 00 00
30: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 02 28 00 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 02 00 00 04 04 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 80 00 0e 00 88 00 ff 00 00 00 00 00 00 00 00 00
Quoted 2 lines

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.

powernow-k8: Found 1 AMD Athlon(tm) X2 Dual Core Processor BE-2350 processors (2 cpu cores) (version 2.20.00)

powernow-k8:    0 : fid 0xd (2100 MHz), vid 0xc
powernow-k8:    1 : fid 0xc (2000 MHz), vid 0xd
powernow-k8:    2 : fid 0xa (1800 MHz), vid 0xf
powernow-k8:    3 : fid 0x2 (1000 MHz), vid 0x12

(To make test I compiled hwmod-vid from 26 for 29 and everything was ok)

Signature · 6 lines
http://375gnu.wordpress.com

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#4 lore raw
In reply to Rudolf Marek

Hi Hleb,

Quoted 19 lines · Hleb Valoshka
Quoted 7 lines · Jean Delvare
Quoted 3 lines

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?

@globus-debian:~$ cat /sys/bus/platform/devices/it87.552/vrm
25

yes, with 2.6.26 it was 24

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Module hwmon_vid (drivers/hwmon/hwmon-vid.c) from linux-2.6.29(.3) returns

Quoted 8 lines
Quoted 3 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

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?

cpu freq | 2.6.26 | 2.6.29
---------------------------------

1 GHz    | 1.1 V  | 0.54 V
2.1 GHz  | 1.25 V | 0,61 V

1.25 V is definitely correct and 0.61 V definitely not...

Quoted 6 lines
Quoted 4 lines

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.

Is it wired on motherboard? It's Gigabyte GA-MA69VM-S2 (amd rs690v based)

Yes it is (or should be) wired on the motherboard. Basically, the CPU has 6 VID (output) pins which should be routed to 6 input pins of the IT8716F chip. The logical level of these pins is then used by the it87 and hwmon-vid drivers to tell the nominal CPU core voltage.

Quoted 10 lines
Quoted 3 lines

Please provide a dump of your IT8716F chip:

isadump 0x22d 0x22e

@globus-debian:~$ sudo isadump 0x22d 0x22e
WARNING! Running this program can cause system crashes, data loss and worse!
I will probe address register 0x22d and data register 0x22e.
Continue? [Y/n] y
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00: 11 10 00 00 ff ff 00 37 ff 87 32 09 07 11 ff 00

VID value is in register 0x0a. Value 0x32 is 110010 binary (0.54 V.) Kernel 2.6.26 ignored the MSb so it decoded 0x12 -> 1.1 V, which happened to be correct.

Quoted 19 lines

10: ff ff ff 31 d7 82 7f c2 02 ff 00 ff ff ff ff ff 20: 44 79 d2 bb c3 ca 46 b8 be 29 20 16 7e 8d 8d 8d 30: ff 00 ff 00 ff 00 ff 00 ff 00 ff 00 ff 00 ff 00 40: 7f 7f 7f 7f 7f 7f 00 0d 2d ff ff ff ff ff ff ff 50: ff 1c 7f 7f 7f 50 eb eb 90 eb 00 12 60 00 00 00 60: ff 14 7f 27 90 03 ff ff 7f 7f 7f 00 00 7f ff ff 70: ff 14 7f 20 90 03 ff ff ff ff ff ff ff ff ff ff 80: 00 00 00 00 ff ff ff ff 00 00 ff c0 02 00 99 99 90: 7f 7f 7f 00 00 7f ff ff 7f 7f 7f 00 00 7f ff ff
a0: 00 00 00 00 00 00 00 ff ff ff ff ff ff ff ff ff
b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

Quoted 2 lines

As well as a dump of the Super-I/O config space:
isadump -k 0x87,0x01,0x55,0x55 0x2e 0x2f 4

Quoted 9 lines
@globus-debian:~$ sudo isadump -k 0x87,0x01,0x55,0x55 0x2e 0x2f 4
WARNING! Running this program can cause system crashes, data loss and worse!
I will probe address register 0x2e and data register 0x2f.
Probing bank 4 using bank register 0x07.
Continue? [Y/n] y
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00: 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 87 16 00 10 1a 00 00 00 80 00 00 00 1f 00 00 00

VID input configuration looks OK, all 6 pins are configured for VID input.

Quoted 5 lines

30: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60: 02 28 00 00 00 00 00 00 00 00 00 00 00 00 00 00 70: 00 02 00 00 04 04 00 00 00 00 00 00 00 00 00 00

Quoted 8 lines

80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 80 00 0e 00 88 00 ff 00 00 00 00 00 00 00 00 00

For completeness, please also provide the output of:

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

And also tell me which revision is printed when you load the it87 driver.

Quoted 4 lines
Quoted 3 lines

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.

Quoted 8 lines

powernow-k8: Found 1 AMD Athlon(tm) X2 Dual Core Processor BE-2350 processors (2 cpu cores) (version 2.20.00)

powernow-k8:    0 : fid 0xd (2100 MHz), vid 0xc
powernow-k8:    1 : fid 0xc (2000 MHz), vid 0xd
powernow-k8:    2 : fid 0xa (1800 MHz), vid 0xf
powernow-k8:    3 : fid 0x2 (1000 MHz), vid 0x12

(To make test I compiled hwmod-vid from 26 for 29 and everything was ok)

So powernow-k8 agrees that VID5 should always be 0 on your CPU.

To me it looks like wiring of VID5 on your motherboard is incorrect, and it is always set even when the CPU says it should not. In kernel 2.6.26, hwmon-vid was working by accident, and fixing the code made the problem appear in your case.

You could contact the motherboard vendor and tell them about the problem (the question is "Is VID5 properly routed from CPU to IT8716F?") and see what they have to say about this.

I don't really know how to work around this. I suspect that only the late 0Fh family CPUs actually make use of VID5. If I am right then we could tweak the hwmon-vid VRM selection table and use 5-pin VID (VRM code 24) for some of the 0Fh family CPUs. I don't know where to put the limit, and this is fixing the problem where it is not... which is likely to cause even more problems on other systems in the future.

Frank, can you please tell us for which 0Fh family CPU model you did need the 6th VID pin decoding originally?

Maybe we can have a DMI-based workaround either in it87 or hwmon-vid. This is ugly and we avoid it as much as possible, but if there's no other way... Hleb, please provide the output of dmidecode on your system.

In the meantime you can write "24"
to /sys/bus/platform/devices/it87.552/vrm at system boot time, so that the value of VID5 is ignored (actually forced to 0.)

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#5 lore raw
In reply to Rudolf Marek
Quoted 11 lines · Jean Delvare

You could contact the motherboard vendor and tell them about the problem (the question is "Is VID5 properly routed from CPU to IT8716F?") and see what they have to say about this.

I don't really know how to work around this. I suspect that only the late 0Fh family CPUs actually make use of VID5. If I am right then we could tweak the hwmon-vid VRM selection table and use 5-pin VID (VRM code 24) for some of the 0Fh family CPUs. I don't know where to put the limit, and this is fixing the problem where it is not... which is likely to cause even more problems on other systems in the future.

Quoted 2 lines

Frank, can you please tell us for which 0Fh family CPU model you did need the 6th VID pin decoding originally?

Hi Jean and others,

I'm sorry, that system is currently offline and I (not so) cleverly didn't back up log files so I don't have kernel-reported cpu info. But here is hardware spec:

cpu: AMD Athlon X2 64 4850e, ADH4850IAA5DO
mainboard: Gigabyte GA-MA770-DS3, IT8718

-Frank

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#6 lore raw
In reply to Rudolf Marek
Quoted 15 lines · Frank Myhr
Quoted 11 lines · Jean Delvare

You could contact the motherboard vendor and tell them about the problem (the question is "Is VID5 properly routed from CPU to IT8716F?") and see what they have to say about this.

I don't really know how to work around this. I suspect that only the late 0Fh family CPUs actually make use of VID5. If I am right then we could tweak the hwmon-vid VRM selection table and use 5-pin VID (VRM code 24) for some of the 0Fh family CPUs. I don't know where to put the limit, and this is fixing the problem where it is not... which is likely to cause even more problems on other systems in the future.

Quoted 2 lines

Frank, can you please tell us for which 0Fh family CPU model you did need the 6th VID pin decoding originally?

Quoted 8 lines

Hi Jean and others,

I'm sorry, that system is currently offline and I (not so) cleverly didn't back up log files so I don't have kernel-reported cpu info. But here is hardware spec:

cpu: AMD Athlon X2 64 4850e, ADH4850IAA5DO
mainboard: Gigabyte GA-MA770-DS3, IT8718

Mmm, this is strange. This CPU should operate at 1.1 to 1.25 V just like Hleb's. For this range the 5-bit VID codes are sufficient (VRM code 24 in hwmon-vid). Thus it shouldn't have made a difference when you added support for 6-bit VID codes. Do you remember why you wrote that patch in the first place?

Actually I am not aware of _any_ 0Fh family CPU model running at a core voltage below 0.9 V. This makes me wonder if we shouldn't simply map the 0Fh family to 5-bit VID decoding and be done with it. This would avoid potential issues such as the one Hleb is hitting (although I don't disagree this appears to be a mainboard wiring issue in the first place.)

Opinions?

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#7 lore raw
In reply to Rudolf Marek
Quoted 21 lines · Jean Delvare
Quoted 20 lines · Frank Myhr
Quoted 11 lines · Jean Delvare

You could contact the motherboard vendor and tell them about the problem (the question is "Is VID5 properly routed from CPU to IT8716F?") and see what they have to say about this.

I don't really know how to work around this. I suspect that only the late 0Fh family CPUs actually make use of VID5. If I am right then we could tweak the hwmon-vid VRM selection table and use 5-pin VID (VRM code 24) for some of the 0Fh family CPUs. I don't know where to put the limit, and this is fixing the problem where it is not... which is likely to cause even more problems on other systems in the future.

Quoted 2 lines

Frank, can you please tell us for which 0Fh family CPU model you did need the 6th VID pin decoding originally?

Hi Jean and others,

I'm sorry, that system is currently offline and I (not so) cleverly didn't back up log files so I don't have kernel-reported cpu info. But here is hardware spec:

Quoted 8 lines
Quoted 2 lines

cpu: AMD Athlon X2 64 4850e, ADH4850IAA5DO
mainboard: Gigabyte GA-MA770-DS3, IT8718

Mmm, this is strange. This CPU should operate at 1.1 to 1.25 V just like Hleb's. For this range the 5-bit VID codes are sufficient (VRM code 24 in hwmon-vid). Thus it shouldn't have made a difference when you added support for 6-bit VID codes. Do you remember why you wrote that patch in the first place?

I dimly recall that it87 was reporting my cpu voltage incorrectly. In the course of investigating that I saw AMD 32559 Table 71 and decided to update hwmon-vid to match it.

I think I continued to have sporadic problems with incorrect VID being reported after making the change. And in any case, I wasn't using voltages in the range that would have required 6-bit VID decoding (see below).

Quoted 8 lines

Actually I am not aware of _any_ 0Fh family CPU model running at a core voltage below 0.9 V. This makes me wonder if we shouldn't simply map the 0Fh family to 5-bit VID decoding and be done with it. This would avoid potential issues such as the one Hleb is hitting (although I don't disagree this appears to be a mainboard wiring issue in the first place.)

Opinions?

I was undervolting the cpu, but still limited to 0.8V or above by BIOS. No objection here to go back to 5-bit VID decoding.

Sorry for the problems my patch apparently created :-(

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#8 lore raw
In reply to Rudolf Marek
Quoted 1 line · Frank Myhr

Sorry for the problems my patch apparently created :-(

Don't be, it was technically correct. It's just the real world around which isn't ;)

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#9 lore raw
In reply to Rudolf Marek
Quoted 2 lines · Jean Delvare

For completeness, please also provide the output of:
isadump -k 0x87,0x01,0x55,0x55 0x2e 0x2f 7

su@globus-debian:~$ sudo isadump -k 0x87,0x01,0x55,0x55 0x2e 0x2f 7
[sudo] password for globus:
WARNING! Running this program can cause system crashes, data loss and worse!
I will probe address register 0x2e and data register 0x2f.
Probing bank 7 using bank register 0x07.
Continue? [Y/n] y
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00: 00 00 00 00 00 00 00 07 00 00 00 00 00 00 00 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 87 16 00 10 1a 00 00 00 80 00 00 00 1f 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 00 00 02 20 02 38 00 00 00 00 00 00 00 00 00 00
70: 00 01 00 38 00 04 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 27 00 00 00 00 00 32 00 00 00
Quoted 2 lines

And also tell me which revision is printed when you load the it87 driver.

it87: Found IT8716F chip at 0x228, revision 0
it87: in3 is VCC (+5V)
it87: in7 is VCCH (+5V Stand-By)

Quoted 3 lines

You could contact the motherboard vendor and tell them about the problem (the question is "Is VID5 properly routed from CPU to IT8716F?") and see what they have to say about this.

The question is sent.

Quoted 6 lines

I don't really know how to work around this. I suspect that only the late 0Fh family CPUs actually make use of VID5. If I am right then we could tweak the hwmon-vid VRM selection table and use 5-pin VID (VRM code 24) for some of the 0Fh family CPUs. I don't know where to put the limit, and this is fixing the problem where it is not... which is likely to cause even more problems on other systems in the future.

AFAIR my CPU is based on early revisions of Brisban core.

Quoted 4 lines

Maybe we can have a DMI-based workaround either in it87 or hwmon-vid. This is ugly and we avoid it as much as possible, but if there's no other way... Hleb, please provide the output of dmidecode on your system.

It's in attachment

Signature · 1 line
http://375gnu.wordpress.com

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#10 lore raw
In reply to Rudolf Marek
Quoted 19 lines · Hleb Valoshka
Quoted 2 lines · Jean Delvare

For completeness, please also provide the output of:
isadump -k 0x87,0x01,0x55,0x55 0x2e 0x2f 7

su@globus-debian:~$ sudo isadump -k 0x87,0x01,0x55,0x55 0x2e 0x2f 7
[sudo] password for globus:
WARNING! Running this program can cause system crashes, data loss and worse!
I will probe address register 0x2e and data register 0x2f.
Probing bank 7 using bank register 0x07.
Continue? [Y/n] y
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00: 00 00 00 00 00 00 00 07 00 00 00 00 00 00 00 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 87 16 00 10 1a 00 00 00 80 00 00 00 1f 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 00 00 02 20 02 38 00 00 00 00 00 00 00 00 00 00
70: 00 01 00 38 00 04 00 00 00 00 00 00 00 00 00 00
Quoted 8 lines
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 27 00 00 00 00 00 32 00 00 00

VID input value is alternatively available at 0xfc, but as you can see the value is the same: 0x32, which we know is not correct.

Quoted 4 lines
Quoted 2 lines

And also tell me which revision is printed when you load the it87 driver.

it87: Found IT8716F chip at 0x228, revision 0

A revision C chip... for what it's worth.

Quoted 2 lines

it87: in3 is VCC (+5V)
it87: in7 is VCCH (+5V Stand-By)

You can use this information to tweak your configuration file. Ideally the driver would export the labels...

Quoted 5 lines
Quoted 3 lines

You could contact the motherboard vendor and tell them about the problem (the question is "Is VID5 properly routed from CPU to IT8716F?") and see what they have to say about this.

The question is sent.

OK, thanks. Please let us know if you manage to get something useful.

Quoted 8 lines
Quoted 6 lines

I don't really know how to work around this. I suspect that only the late 0Fh family CPUs actually make use of VID5. If I am right then we could tweak the hwmon-vid VRM selection table and use 5-pin VID (VRM code 24) for some of the 0Fh family CPUs. I don't know where to put the limit, and this is fixing the problem where it is not... which is likely to cause even more problems on other systems in the future.

AFAIR my CPU is based on early revisions of Brisban core.

Correct.

Quoted 6 lines
Quoted 4 lines

Maybe we can have a DMI-based workaround either in it87 or hwmon-vid. This is ugly and we avoid it as much as possible, but if there's no other way... Hleb, please provide the output of dmidecode on your system.

It's in attachment

OK, thanks. The DMI data is good so at least we know we can use it for a mainboard-specific quirk if needed.

Signature · 7 lines
Jean Delvare
http://khali.linux-fr.org/wishlist.html

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#11 lore raw
In reply to Rudolf Marek

On 6/8/09, Jean Delvare <[email protected]> wrote:

1-st: sorry guys, but I'm stupid asshole. I did not wrote that only `vid' is incorrect. Every in[0-8] returns correct value.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

You could contact the motherboard vendor and tell them about the problem (the question is "Is VID5 properly routed from CPU to IT8716F?") and see what they have to say about this.

The question is sent.

OK, thanks. Please let us know if you manage to get something useful.

Hah. They replyed. "Try using Easy Tune S/W for monitoring voltages." Stupid windoze-addicts.

Signature · 6 lines
http://375gnu.wordpress.com

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#12 lore raw
In reply to Rudolf Marek
Quoted 5 lines · Jean Delvare
Quoted 4 lines
Quoted 3 lines

You could contact the motherboard vendor and tell them about the problem (the question is "Is VID5 properly routed from CPU to IT8716F?") and see what they have to say about this.

The question is sent.

OK, thanks. Please let us know if you manage to get something useful.

They have replied.

=All voltages and monitoring is properly routed in our m/b's. If you use old s/w with Phenom CPU, it will not be monitored properly in some points by 3rd party s/w. We recommend you to use s/w for Windows, because we don't have s/w for your OS.
=

Signature · 6 lines
http://375gnu.wordpress.com

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#13 lore raw
In reply to Rudolf Marek

Hi Hleb,

Quoted 7 lines · Hleb Valoshka
Quoted 5 lines · Jean Delvare
Quoted 4 lines
Quoted 3 lines

You could contact the motherboard vendor and tell them about the problem (the question is "Is VID5 properly routed from CPU to IT8716F?") and see what they have to say about this.

The question is sent.

OK, thanks. Please let us know if you manage to get something useful.

Quoted 7 lines

They have replied.

=> All voltages and monitoring is properly routed in our m/b's. If you use old s/w with Phenom CPU, it will not be monitored properly in some points by 3rd party s/w. We recommend you to use s/w for Windows, because we don't have s/w for your OS.
=

Thanks for transmitting the information. Their vague warning about the Phenom doesn't apply to your case as you have a 0Fh family, not 10h family CPU. Not that it would be terribly useful anyway, as they do not say _why_ 3rd party software could get it wrong. And they did not specifically answered to the question we asked about VID5.

Our testing was pretty clear that the value of VID5 was not correct. If they can't explain that then I fear they won't be of any help to us :(

As you may have seen, I have posted a patch meanwhile, which should work around the problem on your board and possibly others. Did you have the opportunity to test it?

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#14 lore raw
In reply to Rudolf Marek
Quoted 3 lines · Jean Delvare

As you may have seen, I have posted a patch meanwhile, which should work around the problem on your board and possibly others. Did you have the opportunity to test it?

Yes, it works good.

Signature · 6 lines
http://375gnu.wordpress.com

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors