Skip to contentSkip to conversation

#1787 Wrong temps on dual 533FSB Xeon with i7505 chipset

DISCUSSION Richard Gregory 2 participants 10 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Below is the output of the CVS version of sensors-detect, as requested.

Some other points:
The winbound sensor chip is the only one present on the board, there are 6 fan headers but the manual states only 3 have an RPM sensor. The exact part number is WinBond 83627HF

init=0 did not help, the temps were even more wrong.

The xeontemp docs say xeontemp only works for 400FSB xeons, as the 533FSB xeons do not have an on chip sensor. As a result of this and the fact that the xeontemp driver is missing from my install, I did not try it.

Forcing other modules did not help, none ever detected the given hardware.

Can access the same not-quite-right sensor output over a different bus, I2C or SMBus ocmes back with the same data.

Richard

....
We can start with probing for (PCI) I2C or SMBus adapters. You do not need any special privileges for this. Do you want to probe now? (YES/no): YES
Probing for PCI bus adapters...
Use driver `i2c-i801' for device 00:1f.3: Intel 82801DB ICH4 Probe succesfully concluded.

We will now try to load each adapter module in turn. Load `i2c-i801' (say NO if built into your kernel)? (YES/no): YES Module loaded succesfully.
If you have undetectable or unsupported adapters, you can have them scanned by manually loading the modules before running this script.

To continue, we need module `i2c-dev' to be loaded. If it is built-in into your kernel, you can safely skip this. i2c-dev is not loaded. Do you want to load it now? (YES/no): YES Module loaded succesfully.

We are now going to do the adapter probings. Some adapters may hang
halfway through; we can't really help that. Also, some chips will be double detected; we choose the one with the highest confidence value in that case. If you found that the adapter hung after probing a certain address, you can specify that address to remain unprobed. That often
includes address 0x69 (clock chip).
Error: First argument not a number!
Syntax: i2cdetect I2CBUS
I2CBUS is an integer
Installed I2C busses:
i2c-0 smbus SMBus I801 adapter at 18a0
Non-I2C SMBus adapter

Some chips are also accessible through the ISA bus. ISA probes are typically a bit more dangerous, as we have to write to I/O ports to do this. This is usually safe though.

Do you want to scan the ISA bus? (YES/no): YES Probing for `National Semiconductor LM78'
Trying address 0x0290... Failed!
Probing for `National Semiconductor LM78-J'
Trying address 0x0290... Failed!
Probing for `National Semiconductor LM79'
Trying address 0x0290... Failed!
Probing for `Winbond W83781D'
Trying address 0x0290... Failed!
Probing for `Winbond W83782D'
Trying address 0x0290... Failed!
Probing for `Winbond W83627HF'
Trying address 0x0290... Failed!
Probing for `Winbond W83697HF'
Trying address 0x0290... Failed!
Probing for `Silicon Integrated Systems SIS5595'
Trying general detect... Failed!
Probing for `VIA Technologies VT82C686 Integrated Sensors'
Trying general detect... Failed!
Probing for `VIA Technologies VT8231 Integrated Sensors'
Trying general detect... Failed!
Probing for `ITE IT8705F / IT8712F / SiS 950'
Trying address 0x0290... Failed!
Probing for `IPMI BMC KCS'
Trying address 0x0ca0... Failed!
Probing for `IPMI BMC SMIC'
Trying address 0x0ca8... Failed!

Some Super I/O chips may also contain sensors. Super I/O probes are typically a bit more dangerous, as we have to write to I/O ports to do this. This is usually safe though.

Do you want to scan for Super I/O sensors? (YES/no): YES Probing for `ITE 8702F Super IO Sensors'
Failed! (skipping family)
Probing for `Nat. Semi. PC87351 Super IO Fan Sensors'
Failed! (skipping family)
Probing for `SMSC 47B27x Super IO Fan Sensors'
Failed! (skipping family)
Probing for `VT1211 Super IO Sensors'
Failed! (0x52)
Probing for `Winbond W83627HF Super IO Sensors'
Success... found at address 0x0c00
Probing for `Winbond W83627THF Super IO Sensors'
Failed! (0x52)
Probing for `Winbond W83637HF Super IO Sensors'
Failed! (0x52)
Probing for `Winbond W83697HF Super IO Sensors'
Failed! (0x52)
Probing for `Winbond W83697SF/UF Super IO PWM'
Failed! (0x52)
Probing for `Winbond W83L517D Super IO'
Failed! (0x52)

Do you want to scan for secondary Super I/O sensors? (YES/no): YES Probing for `ITE 8702F Super IO Sensors'
Failed! (skipping family)
Probing for `Nat. Semi. PC87351 Super IO Fan Sensors'
Failed! (skipping family)
Probing for `SMSC 47B27x Super IO Fan Sensors'
Failed! (skipping family)
Probing for `VT1211 Super IO Sensors'
Failed! (skipping family)

Now follows a summary of the probes I have just done. Just press ENTER to continue:

Driver `w83627hf' (should be inserted):
Detects correctly:
* ISA bus address 0x0c00 (Busdriver i2c-isa') Chip Winbond W83627HF Super IO Sensors' (confidence: 9)

I will now generate the commands needed to load the I2C modules. Sometimes, a chip is available both through the ISA bus and an I2C bus. ISA bus access is faster, but you need to load an additional driver
module for it. If you have the choice, do you want to use the ISA bus or the I2C/SMBus (ISA/smbus)? ISA
Error: First argument not a number!
Syntax: i2cdetect I2CBUS
I2CBUS is an integer
Installed I2C busses:
i2c-0 smbus SMBus I801 adapter at 18a0
Non-I2C SMBus adapter

To make the sensors modules behave correctly, add these lines to /etc/modules.conf:

#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----

To load everything that is needed, add this to some /etc/rc* file:

#----cut here----
# I2C adapter drivers
modprobe i2c-isa
# I2C chip drivers
modprobe w83627hf

# sleep 2 # optional
/usr/local/bin/sensors -s # recommended
#----cut here----

WARNING! If you have some things built into your kernel, the list above will contain too many modules. Skip the appropriate ones! You really should try these commands right now to make sure everything is working properly. Monitoring programs won't work until it's done.

#1 lore raw

Richard,

Quoted 3 lines

thanks for the quick response. Now have a consistent 2.8.8 installed, the output of sensors-detect is now:
(...)

This at least confirms that you have a single monitoring chip on your board, a Winbond W83627HF (as advertised by Tyan).

Quoted 10 lines

Driver `w83781d' (should be inserted):

   Detects correctly:
   * Bus `SMBus I801 adapter at 1460' (Non-I2C SMBus adapter)
     Busdriver `i2c-i801', I2C address 0x2d (and 0x48 0x49)
     Chip `Winbond W83627HF' (confidence: 8)

Driver `w83627hf' (should be inserted):
Detects correctly:
* ISA bus address 0x0c00 (Busdriver i2c-isa') Chip Winbond W83627HF Super IO Sensors' (confidence: 9)

Sensors-detect is broken here, it should NOT tell you to load the w83781d driver. I'm not sure how we can fix that though. Both drivers support your chip, but only one should be loaded at any given time. The w83627hf driver is prefered in your case.

Quoted 9 lines

To load everything that is needed, add this to some /etc/rc* file:

#----cut here----
# I2C adapter drivers
modprobe i2c-i801
modprobe i2c-isa
# I2C chip drivers
modprobe w83781d
modprobe w83627hf

Quoted 3 lines
# sleep 2 # optional
/usr/local/bin/sensors -s # recommended
#----cut here----

Remove i2c-i801 and w83781d from that list.

Quoted 3 lines

This gives two entries in /proc, w83627hf-i2c-0-2d which reads 0 in all cases, and w83627hf-isa-0c00, which has broken cpu temps as before.

Of course, because the latter prevents accesses from the former.

Please edit your init files as required so as to only load the w83627hf and i2c-isa drivers, then cold reboot your system. Not certain it'll help for the temperatures but at least we will have a sane base to work on.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#2 lore raw
In reply to Richard Gregory

Following a cold reboot with the modules in the right order, the situation is the same as before: fan RPM and pwm work as before, and the cpu temps are wrong by a significant factor.

Looking closer, sensor{1,2,3} are now set to 2. Setting back to 1 makes the cpu temps closer to what they should be but are still wrong by a factor of 1.7 for temp2 and 0.45 for temp3 - temp1 might always be meaningless as only two temps show in the bios monitor.

Any more advice?

Richard

Quoted 60 lines · Jean Delvare

Richard,

Quoted 3 lines

thanks for the quick response. Now have a consistent 2.8.8 installed, the output of sensors-detect is now:
(...)

This at least confirms that you have a single monitoring chip on your board, a Winbond W83627HF (as advertised by Tyan).

Quoted 10 lines

Driver `w83781d' (should be inserted):
Detects correctly:
* Bus `SMBus I801 adapter at 1460' (Non-I2C SMBus adapter)

    Busdriver `i2c-i801', I2C address 0x2d (and 0x48 0x49)
    Chip `Winbond W83627HF' (confidence: 8)

Driver `w83627hf' (should be inserted):
Detects correctly:
* ISA bus address 0x0c00 (Busdriver i2c-isa') Chip Winbond W83627HF Super IO Sensors' (confidence: 9)

Sensors-detect is broken here, it should NOT tell you to load the w83781d driver. I'm not sure how we can fix that though. Both drivers support your chip, but only one should be loaded at any given time. The w83627hf driver is prefered in your case.

Quoted 9 lines

To load everything that is needed, add this to some /etc/rc* file:

#----cut here----
# I2C adapter drivers
modprobe i2c-i801
modprobe i2c-isa
# I2C chip drivers
modprobe w83781d
modprobe w83627hf

Quoted 3 lines
# sleep 2 # optional
/usr/local/bin/sensors -s # recommended
#----cut here----

Remove i2c-i801 and w83781d from that list.

Quoted 3 lines

This gives two entries in /proc, w83627hf-i2c-0-2d which reads 0 in all cases, and w83627hf-isa-0c00, which has broken cpu temps as before.

Of course, because the latter prevents accesses from the former.

Please edit your init files as required so as to only load the w83627hf and i2c-isa drivers, then cold reboot your system. Not certain it'll help for the temperatures but at least we will have a sane base to work on.

#3 lore raw
In reply to Richard Gregory

Hi Richard,

Quoted 10 lines

Following a cold reboot with the modules in the right order, the situation is the same as before: fan RPM and pwm work as before, and the cpu temps are wrong by a significant factor.

Looking closer, sensor{1,2,3} are now set to 2. Setting back to 1 makes the cpu temps closer to what they should be but are still wrong by a factor of 1.7 for temp2 and 0.45 for temp3 - temp1 might always be meaningless as only two temps show in the bios monitor.

Any more advice?

Make sure that you use w83627hf module version 2.8.8 (see kernel logs in /val/log and/or dmesg).

Try loading the module with init=0. Make sure you cold reboot before, since I suspect that loading the module is what breaks the temperature readings.

If it still doesn't work, you may still try to comment out one init step that isn't disabled by init=0 (I think it should, BTW). Edit kernel/chips/w83627hf.c, search for function w83627hf_init_client. Comment out the following block:

w83627hf_write_value(client, W83781D_REG_I2C_SUBADDR, 0x89); w83627hf_write_value(client, W83781D_REG_I2C_ADDR, force_i2c);

Again, cold reboot before testing (and still use init=0).

If it still doesn't work, I don't have much more ideas. You could provide a dump of the chip ("isadump 0xC05 0xC06" *before* loading the driver) and I'd take a look just in case I see something interesting.

Good luck,
Jean

#4 lore raw
In reply to Richard Gregory

Hi Richard,

Quoted 7 lines

Below is the output of the CVS version of sensors-detect, as requested.
Error: First argument not a number!
Syntax: i2cdetect I2CBUS
I2CBUS is an integer
Installed I2C busses:
i2c-0 smbus SMBus I801 adapter at 18a0
Non-I2C SMBus adapter

Your lm_sensors installation is incomplete or broken. The sensors-detect script needs the i2cdetect binary and appears to find an outdated version of it. Please review your installation and make sure that no sensors, i2cdetect or other binaries from lm_sensors nor libsensors files are in the way. A common error is to have older files under /usr/bin and /usr/lib, and newer files in /usr/local/bin and /usr/local/lib (or the other way around). This could explain a number of problems you have. If you remove old libraries, don't forget to run ldconfig afterwards. You may also need to clear your shell's binary history using "hash -r" or "rehash".

Once you have fixed the problem, please run sensors-detect again. It should be able to scan your SMBus adapter.

Thanks,
Jean Delvare

#5 lore raw
In reply to Richard Gregory
Quoted 9 lines

Hi Jean,

Am willing to keep trying something. This machine is one of 16 identical machines in a cluster, so it is worth that little more effort.

Output before loading i2c driver:
isadump 0xC05 0xC06 1
(...)

Nothing especially relevant here.

I found a report for the same Tyan board you are using here:
http://www2.lm-sensors.nu/~lm78/readticket.cgi?ticket11
The guy obviously has the same problem as you have. Read my comments at the very bottom for hints about the voltage inputs.

I am out of ideas as far as investigation is concerned. Our only hope is with Tyan. Since you own a significant number of these boards, I think that they owe you some support, don't you think? Please contact them, expose your problem, and ask them for a sample lm_sensors configuration file for this board. Since they were able to produce a sample output, they must have had a configuration file back then.

Sorry that I cannot do much more myself.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#6 lore raw
In reply to Richard Gregory
Quoted 6 lines

I am out of ideas as far as investigation is concerned. Our only hope is with Tyan. Since you own a significant number of these boards, I think that they owe you some support, don't you think? Please contact them, expose your problem, and ask them for a sample lm_sensors configuration file for this board. Since they were able to produce a sample output, they must have had a configuration file back then.

Thanks to Rudolf Marek, we now know what the BIOS is doing. It simply adds 22 to temp2 and temp3 before it displays them. I guess this is to compensate for a different thermal diode model.

So all you need to do is:
compute temp2 @+22, @-22
compute temp3 @+22, @-22

And you should optain the same results as in the BIOS setup screen.

The fact that you were finding different formulas isn't really surprising. Since CPU activity is very different between BIOS and Linux, temperatures have no reason to be similar.

I'll update and close the ticket.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#7 lore raw
In reply to Richard Gregory

Hi Jean, continuing the thread...

Can confirm this is 2.8.8 for both i2c and lm_sensors. init=0 does not help, changes sensors{1,2,3} to 2, which gives even more wrong temps. Changed the code (those lines don't appear to be skipped with init=0) and that had exactly the same effect. This was cold rebooting every time.

Without driver, from a cold reboot. the output of isadump 0xC05 0xC06 is:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
20: 5a a4 69 ba a1 ad a3 19 1a 19 ff 61 47 61 47 ed
30: b0 43 10 13 00 06 51 07 00 10 21 00 94 00 00 00
40: 01 de 1f ff 3f 00 00 0e 2d 02 01 00 18 95 80 5c
50: ff ff 00 ff ff ff 00 80 21 00 ff ff 11 ef ff 05
60: 5a a4 69 ba a1 ad a3 19 1a 19 ff 61 47 61 47 ed
70: b0 43 10 13 00 06 51 07 00 10 21 00 94 00 00 00
80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
a0: 5a a4 69 ba a1 ad a3 19 1a 19 ff 61 47 61 47 ed
b0: b0 43 10 13 00 06 51 07 00 10 21 00 94 00 00 00
c0: 01 00 00 ff 3f 00 00 0e 2d 02 01 00 18 95 80 5c
d0: ff ff 00 ff ff ff 00 80 21 00 ff ff 11 ef ff 05
e0: 5a a4 69 ba a1 ad a3 19 1a 19 ff 61 47 61 47 ed
f0: b0 43 10 13 00 06 51 07 00 10 21 00 94 00 00 00
and then loading the isa driver the output changes to:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
20: 5b a4 69 ba a1 ad a4 18 1a 19 ff 61 47 61 47 ed
30: b0 43 10 13 00 06 51 07 00 90 21 00 94 00 00 00
40: 01 de 1f ff 3f 00 00 0e 2d 02 01 00 18 95 80 5c
50: ff ff 00 ff ff ff 00 80 21 00 ff ff 11 ef ff 05
60: 5b a4 69 ba a1 ad a4 18 1a 19 ff 61 47 61 47 ed
70: b0 43 10 13 00 06 51 07 00 90 21 00 94 00 00 00
80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
a0: 5b a4 69 ba a1 ad a4 18 1a 19 ff 61 47 61 47 ed
b0: b0 43 10 13 00 06 51 07 00 90 21 00 94 00 00 00
c0: 01 00 00 ff 3f 00 00 0e 2d 02 01 00 18 95 80 5c
d0: ff ff 00 ff ff ff 00 80 21 00 ff ff 11 ef ff 05
e0: 5b a4 69 ba a1 ad a4 18 1a 19 ff 61 47 61 47 ed
f0: b0 43 10 13 00 06 51 07 00 90 21 00 94 00 00 00

Richard

Quoted 39 lines · Jean Delvare

Hi Richard,

Quoted 10 lines

Following a cold reboot with the modules in the right order, the situation is the same as before: fan RPM and pwm work as before, and the cpu temps are wrong by a significant factor.

Looking closer, sensor{1,2,3} are now set to 2. Setting back to 1 makes the cpu temps closer to what they should be but are still wrong by a factor of 1.7 for temp2 and 0.45 for temp3 - temp1 might always be meaningless as only two temps show in the bios monitor.

Any more advice?

Make sure that you use w83627hf module version 2.8.8 (see kernel logs in /val/log and/or dmesg).

Try loading the module with init=0. Make sure you cold reboot before, since I suspect that loading the module is what breaks the temperature readings.

If it still doesn't work, you may still try to comment out one init step that isn't disabled by init=0 (I think it should, BTW). Edit kernel/chips/w83627hf.c, search for function w83627hf_init_client. Comment out the following block:

w83627hf_write_value(client, W83781D_REG_I2C_SUBADDR, 0x89); w83627hf_write_value(client, W83781D_REG_I2C_ADDR, force_i2c);

Again, cold reboot before testing (and still use init=0).

If it still doesn't work, I don't have much more ideas. You could provide a dump of the chip ("isadump 0xC05 0xC06" *before* loading the driver) and I'd take a look just in case I see something interesting.

Good luck,
Jean

#8 lore raw
In reply to Richard Gregory

Hi Jean,

Am willing to keep trying something. This machine is one of 16 identical machines in a cluster, so it is worth that little more effort.

Output before loading i2c driver:
isadump 0xC05 0xC06 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 20: 5b a4 69 ba a1 ac a3 22 1a 19 ff 61 47 61 47 ed 30: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00 40: 01 d6 1f ff 3f 00 00 0e 2d 02 01 00 18 95 01 a3 50: fa 00 00 4b 00 50 00 ff ff ff ff ff ff ff ff ff 60: 5b a4 69 ba a1 ac a3 22 1a 19 ff 61 47 61 47 ed 70: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00 80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
a0: 5b a4 69 ba a1 ac a3 22 1a 19 ff 61 47 61 47 ed
b0: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00
c0: 01 00 00 ff 3f 00 00 0e 2d 02 01 00 18 95 01 a3
d0: fa 00 00 4b 00 50 00 ff ff ff ff ff ff ff ff ff
e0: 5b a4 69 ba a1 ac a3 22 1a 19 ff 61 47 61 47 ed
f0: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00

isadump 0xC05 0xC06 2
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 20: 5b a4 69 ba a1 ac a3 22 19 19 ff 61 47 61 47 ed 30: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00 40: 01 00 10 ff 3f 00 00 0e 2d 02 01 00 18 95 02 a3 50: fa 00 00 4b 00 50 00 ff ff ff ff ff ff ff ff ff 60: 5b a4 69 ba a1 ac a3 22 19 19 ff 61 47 61 47 ed 70: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00 80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
a0: 5b a4 69 ba a1 ac a3 22 19 19 ff 61 47 61 47 ed
b0: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00
c0: 01 00 00 ff 3f 00 00 0e 2d 02 01 00 18 95 02 a3
d0: fa 00 00 4b 00 50 00 ff ff ff ff ff ff ff ff ff
e0: 5b a4 69 ba a1 ac a3 22 19 19 ff 61 47 61 47 ed
f0: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00

Output after loading i2c driver:
isadump 0xC05 0xC06 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 20: 5b a4 69 ba a1 ac a3 22 19 19 ff 61 47 61 47 ed 30: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00 40: 01 00 10 ff 3f 00 00 0e 2d 02 01 00 18 95 01 a3 50: fa 00 00 4b 00 50 00 ff ff ff ff ff ff ff ff ff 60: 5b a4 69 ba a1 ac a3 22 19 19 ff 61 47 61 47 ed 70: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00 80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
a0: 5b a4 69 ba a1 ac a3 22 19 19 ff 61 47 61 47 ed
b0: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00
c0: 01 00 00 ff 3f 00 00 0e 2d 02 01 00 18 95 01 a3
d0: fa 00 00 4b 00 50 00 ff ff ff ff ff ff ff ff ff
e0: 5b a4 69 ba a1 ac a3 22 19 19 ff 61 47 61 47 ed
f0: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00 isadump 0xC05 0xC06 2
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 20: 5a a4 69 ba a1 ad a3 22 1a 19 ff 61 47 61 47 ed 30: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00 40: 01 00 10 ff 3f 00 00 0e 2d 02 01 00 18 95 02 a3 50: fa 00 00 4b 00 50 00 ff ff ff ff ff ff ff ff ff 60: 5a a4 69 ba a1 ad a3 22 1a 19 ff 61 47 61 47 ed 70: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00 80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
a0: 5a a4 69 ba a1 ad a3 22 1a 19 ff 61 47 61 47 ed
b0: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00
c0: 01 00 00 ff 3f 00 00 0e 2d 02 01 00 18 95 02 a3
d0: f9 00 00 4b 00 50 00 ff ff ff ff ff ff ff ff ff
e0: 5a a4 69 ba a1 ad a3 22 1a 19 ff 61 47 61 47 ed
f0: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00

Output after loading w83627hf with init=0 isadump 0xC05 0xC06 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 20: 5b a4 69 ba a1 ac a3 22 19 19 ff 61 47 61 47 ed 30: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00 40: 01 00 10 ff 3f 00 00 0e 2d 02 01 00 18 95 01 a3 50: fa 00 00 4b 00 50 00 ff ff ff ff ff ff ff ff ff 60: 5b a4 69 ba a1 ac a3 22 19 19 ff 61 47 61 47 ed 70: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00 80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
a0: 5b a4 69 ba a1 ac a3 22 19 19 ff 61 47 61 47 ed
b0: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00
c0: 01 00 00 ff 3f 00 00 0e 2d 02 01 00 18 95 01 a3
d0: fa 00 00 4b 00 50 00 ff ff ff ff ff ff ff ff ff
e0: 5b a4 69 ba a1 ac a3 22 19 19 ff 61 47 61 47 ed
f0: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00 isadump 0xC05 0xC06 2
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 20: 5b a4 69 bb a1 ac a3 22 19 19 ff 61 47 61 47 ed 30: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00 40: 01 00 10 ff 3f 00 00 0e 2d 02 01 00 18 95 02 a3 50: f9 00 00 4b 00 50 00 ff ff ff ff ff ff ff ff ff 60: 5b a4 69 bb a1 ac a3 22 19 19 ff 61 47 61 47 ed 70: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00 80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
a0: 5b a4 69 bb a1 ac a3 22 19 19 ff 61 47 61 47 ed
b0: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00
c0: 01 00 00 ff 3f 00 00 0e 2d 02 01 00 18 95 02 a3
d0: f9 00 00 4b 00 50 00 ff ff ff ff ff ff ff ff ff
e0: 5b a4 69 bb a1 ac a3 22 19 19 ff 61 47 61 47 ed
f0: b0 c3 90 33 00 06 51 07 00 10 21 00 94 80 00 00

Quoted 73 lines · Jean Delvare

Hi Richard,

Quoted 4 lines

Can confirm this is 2.8.8 for both i2c and lm_sensors. init=0 does not help, changes sensors{1,2,3} to 2, which gives even more wrong temps. Changed the code (those lines don't appear to be skipped with init=0) and that had exactly the same effect. This was cold rebooting every time.

OK... Not much hope is left then. We can continue digging up if you want, but know that this will probably not lead us anywhere.

Quoted 28 lines

Without driver, from a cold reboot. the output of isadump 0xC05 0xC06 is:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
20: 5a a4 69 ba a1 ad a3 19 1a 19 ff 61 47 61 47 ed
30: b0 43 10 13 00 06 51 07 00 10 21 00 94 00 00 00
40: 01 de 1f ff 3f 00 00 0e 2d 02 01 00 18 95 80 5c
50: ff ff 00 ff ff ff 00 80 21 00 ff ff 11 ef ff 05
60: 5a a4 69 ba a1 ad a3 19 1a 19 ff 61 47 61 47 ed
70: b0 43 10 13 00 06 51 07 00 10 21 00 94 00 00 00
80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
a0: 5a a4 69 ba a1 ad a3 19 1a 19 ff 61 47 61 47 ed
b0: b0 43 10 13 00 06 51 07 00 10 21 00 94 00 00 00
c0: 01 00 00 ff 3f 00 00 0e 2d 02 01 00 18 95 80 5c
d0: ff ff 00 ff ff ff 00 80 21 00 ff ff 11 ef ff 05
e0: 5a a4 69 ba a1 ad a3 19 1a 19 ff 61 47 61 47 ed
f0: b0 43 10 13 00 06 51 07 00 10 21 00 94 00 00 00
and then loading the isa driver the output changes to:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
20: 5b a4 69 ba a1 ad a4 18 1a 19 ff 61 47 61 47 ed
30: b0 43 10 13 00 06 51 07 00 90 21 00 94 00 00 00
40: 01 de 1f ff 3f 00 00 0e 2d 02 01 00 18 95 80 5c
50: ff ff 00 ff ff ff 00 80 21 00 ff ff 11 ef ff 05
60: 5b a4 69 ba a1 ad a4 18 1a 19 ff 61 47 61 47 ed
70: b0 43 10 13 00 06 51 07 00 90 21 00 94 00 00 00

Quoted 8 lines

80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
a0: 5b a4 69 ba a1 ad a4 18 1a 19 ff 61 47 61 47 ed
b0: b0 43 10 13 00 06 51 07 00 90 21 00 94 00 00 00
c0: 01 00 00 ff 3f 00 00 0e 2d 02 01 00 18 95 80 5c
d0: ff ff 00 ff ff ff 00 80 21 00 ff ff 11 ef ff 05
e0: 5b a4 69 ba a1 ad a4 18 1a 19 ff 61 47 61 47 ed
f0: b0 43 10 13 00 06 51 07 00 90 21 00 94 00 00 00

Differences in row 0x20 are not significant, these are the registers holding the measurements so slight changes are expected. The only register changing is 0x39, which, according to the driver code, represents the high limit for temp1. Strangely, the original value is 16 degrees, which is odd, and the new one is -112 degrees if I'm not mistaking, which is even stranger. Did you only load the driver, or did you additionally run "sensors -s"? I'd guess the former, then it's strange that this limit changed.

The Winbond chips are a bit more complex than the others, and have some registers located in different "banks" which isadump will not show by default. Please redo the same test (dump before load, dump after load) with the following commands:
isadump 0xC05 0xC06 1
isadump 0xC05 0xC06 2
(you can do both in a row)

This will show the information for temp2 and temp3, respectively. I wonder if we will observe a similar change we saw for temp1.

Jean

#9 lore raw
In reply to Richard Gregory

Hi Richard,

Quoted 4 lines

Can confirm this is 2.8.8 for both i2c and lm_sensors. init=0 does not help, changes sensors{1,2,3} to 2, which gives even more wrong temps. Changed the code (those lines don't appear to be skipped with init=0) and that had exactly the same effect. This was cold rebooting every time.

OK... Not much hope is left then. We can continue digging up if you want, but know that this will probably not lead us anywhere.

Quoted 28 lines

Without driver, from a cold reboot. the output of isadump 0xC05 0xC06 is:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
20: 5a a4 69 ba a1 ad a3 19 1a 19 ff 61 47 61 47 ed
30: b0 43 10 13 00 06 51 07 00 10 21 00 94 00 00 00
40: 01 de 1f ff 3f 00 00 0e 2d 02 01 00 18 95 80 5c
50: ff ff 00 ff ff ff 00 80 21 00 ff ff 11 ef ff 05
60: 5a a4 69 ba a1 ad a3 19 1a 19 ff 61 47 61 47 ed
70: b0 43 10 13 00 06 51 07 00 10 21 00 94 00 00 00
80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
a0: 5a a4 69 ba a1 ad a3 19 1a 19 ff 61 47 61 47 ed
b0: b0 43 10 13 00 06 51 07 00 10 21 00 94 00 00 00
c0: 01 00 00 ff 3f 00 00 0e 2d 02 01 00 18 95 80 5c
d0: ff ff 00 ff ff ff 00 80 21 00 ff ff 11 ef ff 05
e0: 5a a4 69 ba a1 ad a3 19 1a 19 ff 61 47 61 47 ed
f0: b0 43 10 13 00 06 51 07 00 10 21 00 94 00 00 00
and then loading the isa driver the output changes to:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
20: 5b a4 69 ba a1 ad a4 18 1a 19 ff 61 47 61 47 ed
30: b0 43 10 13 00 06 51 07 00 90 21 00 94 00 00 00
40: 01 de 1f ff 3f 00 00 0e 2d 02 01 00 18 95 80 5c
50: ff ff 00 ff ff ff 00 80 21 00 ff ff 11 ef ff 05
60: 5b a4 69 ba a1 ad a4 18 1a 19 ff 61 47 61 47 ed
70: b0 43 10 13 00 06 51 07 00 90 21 00 94 00 00 00

Quoted 8 lines

80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
a0: 5b a4 69 ba a1 ad a4 18 1a 19 ff 61 47 61 47 ed
b0: b0 43 10 13 00 06 51 07 00 90 21 00 94 00 00 00
c0: 01 00 00 ff 3f 00 00 0e 2d 02 01 00 18 95 80 5c
d0: ff ff 00 ff ff ff 00 80 21 00 ff ff 11 ef ff 05
e0: 5b a4 69 ba a1 ad a4 18 1a 19 ff 61 47 61 47 ed
f0: b0 43 10 13 00 06 51 07 00 90 21 00 94 00 00 00

Differences in row 0x20 are not significant, these are the registers holding the measurements so slight changes are expected. The only register changing is 0x39, which, according to the driver code, represents the high limit for temp1. Strangely, the original value is 16 degrees, which is odd, and the new one is -112 degrees if I'm not mistaking, which is even stranger. Did you only load the driver, or did you additionally run "sensors -s"? I'd guess the former, then it's strange that this limit changed.

The Winbond chips are a bit more complex than the others, and have some registers located in different "banks" which isadump will not show by default. Please redo the same test (dump before load, dump after load) with the following commands:
isadump 0xC05 0xC06 1
isadump 0xC05 0xC06 2
(you can do both in a row)

This will show the information for temp2 and temp3, respectively. I wonder if we will observe a similar change we saw for temp1.

Jean