Ticket 1267
Hi again,
Quoted 3 lines
try adding
0x24d3to the supported[] table ini2c-i801.c(2.7.0) or to the pci_device_id[] table (CVS, get most recent) let us know if it works, email us, ref. your ticket number.
Adding the ID to supported[] did the trick with loading the module. At least for version 2.7.0, in CVS the modules loads, but the kernel oopses when running sensors-detect:
Jun 8 00:56:58 mhcln01 kernel: i2c-i801 version 2.8.0-CVS (2003????) Jun 8 00:56:58 mhcln01 kernel: i2c-dev.o: Registered '' as minor 0 Jun 8 00:57:05 mhcln01 kernel: Unable to handle kernel paging request at virtua l address 0004002c Jun 8 00:57:05 mhcln01 kernel: printing eip: Jun 8 00:57:05 mhcln01 kernel: f8889b20 Jun 8 00:57:05 mhcln01 kernel: *pde = 00000000 Jun 8 00:57:05 mhcln01 kernel: Oops: 0000 Jun 8 00:57:05 mhcln01 kernel: CPU: 0 Jun 8 00:57:05 mhcln01 kernel: EIP: 0010:[<f8889b20>] Tainted: P Jun 8 00:57:05 mhcln01 kernel: EFLAGS: 00010286 Jun 8 00:57:05 mhcln01 kernel: eax: 00040004 ebx: 00000006 ecx: fffffffb edx: f888bb3f Jun 8 00:57:05 mhcln01 kernel: esi: f3282000 edi: 00000000 ebp: 00000000 esp: f2833f44 Jun 8 00:57:05 mhcln01 kernel: ds: 0018 es: 0018 ss: 0018 Jun 8 00:57:05 mhcln01 kernel: Process sensors-detect (pid: 7759, stackpageò8 33000) Jun 8 00:57:05 mhcln01 kernel: Stack: 00000000 00000c00 f3282000 00001000 fffff fea 00001000 c040b9b4 c015d54a Jun 8 00:57:05 mhcln01 kernel: f3282000 f2833f98 00000000 00000c00 f2833 f94 00000000 00000000 f58c3200 :Jun 8 00:57:05 mhcln01 kernel: ffffffea 00001000 f7188d80 00000000 00000 000 00000000 c013b047 f58c3200 Jun 8 00:57:05 mhcln01 kernel: Call Trace: [<c015d54a>] [<c013b047>] [<c0108 9d3>] Jun 8 00:57:05 mhcln01 kernel: Jun 8 00:57:05 mhcln01 kernel: Code: 83 78 28 00 74 1a 83 78 24 00 74 0a 83 c4
f8 68 40 bb 88 f8
On 2.7.0 sensors-detect finds several chips: two lm75, one pcf?? and two eeproms. The eeprom driver seems to work, but the two lm75 and the pcf?? don't.
Output of sensors-detect:
Next adapter: SMBus I801 adapter at 0400 (Non-I2C SMBus adapter) Do you want to scan it? (YES/no/selectively):
Client found at address 0x08
Client found at address 0x2f
[...]
Client found at address 0x30
Client found at address 0x44
Client found at address 0x48
Probing for `National Semiconductor LM75'... Success!
(confidence 3, driver `lm75')
Probing for `Dallas Semiconductor DS1621'... Failed!
Probing for `Philips Semiconductors PCF8591'... Success!
(confidence 1, driver `pcf8591')
Client found at address 0x49
Probing for `National Semiconductor LM75'... Success!
(confidence 3, driver `lm75')
Probing for `Dallas Semiconductor DS1621'... Failed!
Probing for `Philips Semiconductors PCF8591'... Success!
(confidence 1, driver `pcf8591')Client found at address 0x50
Probing for `Serial EEPROM'... Success!
(confidence 8, driver `eeprom')
Probing for `DDC monitor'... Failed!
Client found at address 0x52
Probing for `Serial EEPROM'... Success!
(confidence 8, driver `eeprom')
Client found at address 0x61
Probing for `SMBus 2.0 ARP-Capable Device'... Success!
(confidence 1, driver `smbus-arp')
Client found at address 0x69
I have tried forcing the w83781d module:
modprobe w83781d force_w83627hf=0,0x2f
i2cdump 0 0x2f:
[...]
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 00: 00 00 00 00 00 00 00 00 00 80 00 00 01 00 00 ff .........?..?... 10: 00 00 7f 00 00 10 00 00 00 00 00 00 00 00 00 00 ..?..?.......... 20: 08 02 0d bd 02 02 02 7e ff ff ff 00 00 00 00 e3 ???????~.......? 30: ba cc a8 d8 b2 31 15 40 2c 3c 7f e1 e1 e1 ff ff ?????1?@,<????.. 40: 01 10 00 00 00 00 00 5f 2f 11 01 44 41 95 00 a3 ??....._/??DA?.? 50: ff ff ff ff ff ff 00 00 72 70 ff 00 19 01 05 ff ........rp..???. 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 80: 01 ff 01 ff 00 00 00 00 01 01 01 01 3c 3c 0a 0a ?.?.....????<<?? 90: 00 00 00 01 ff 00 00 00 01 01 3c 18 00 00 01 01 ...?....??<?..?? a0: ff ff ff 00 00 00 00 00 19 e7 6f 18 00 ff ff ff ........??o?.... b0: bc f3 02 ff 30 08 00 03 00 08 ff ff 00 04 ff ff ???.0?.?.?...?.. c0: 7e 80 00 32 00 3c 00 ff 7e 80 00 32 00 3c 00 ff ~?.2.<..~?.2.<.. 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 00 ff 00 01 00 ff ff 02 ff 00 00 0d ff 1d .....?...?...?.?
The driver loads and can be accessed via /proc/sys/dev/sensors/w83627hf-i2c-0-2f but the values are all wrong.
Quoted 3 lines
On the 627THF, I?ll see if it is different than the regular HF if I can find a datasheet.
Try modprobing i2c-isa and w83627hf anyway and see what happens.
w83627hf can not be loaded (no such device).
Looks like the ISA bus can not be accessed.
Looks like i'm out of luck huh?
TIA
Signature · 7 lines
Matthias Hentges Cologne / Germany [www.hentges.net] -> PGP welcome, HTML tolerated ICQ: 97 26 97 4 -> No files, no URL's My OS: Debian Woody: Geek by Nature, Linux by Choice
Am Die, 2003-06-10 um 03.53 schrieb Mark D. Studebaker :
Quoted 1 line
thanks for testing the 801 fix.
Nahh, *I* have to thank *you* guys!
Quoted 1 line
We've added the ID to CVS.
Yes, i just noticed, heh. CVS i2c-i801 now loads w/o oops and is detected by sensors-detect.
Quoted 3 lines
On the 627THF, if you are feeling brave you can try investigating what device ID is returned by super IO probing either by hacking sensors-detect or at line 683 or so in the w83627hf driver.
You mean line 631+, line 683 is never reached because w83627hf_find bails out if no matching DEVID is found. I've inserted a printk to get the DEVID, it's 0x82.
Quoted 1 line
Then add code to recognize it and see what happens.
[w83627hf.c, line 636 +/-1, added W627HF_DEVID and defined it with 0x82]
if(val != W627_DEVID && val != W697_DEVID && val != W627THF_DEVID) {
superio_exit();
return -ENODEV;
}[END]
AND
[w83627hf.c, line 689 +/-1, added W627THF_DEVID]
if(val = W627_DEVID) kind = w83627hf; else if(val = W697_DEVID) kind = w83697hf; else if(val = W627THF_DEVID) kind = w83627hf;
[END]
The module now loads and IT WORKS!!
Output from sensors:
w83627hf-isa-0290
Adapter: ISA adapter Algorithm: ISA algorithm VCore 1: +3.00 V (min = +0.00 V, max = +0.00 V) VCore 2: +3.21 V (min = +0.00 V, max = +0.00 V) +3.3V: +3.34 V (min = +2.97 V, max = +3.63 V) +5V: +5.04 V (min = +4.50 V, max = +5.48 V) +12V: +15.50 V (min = +10.79 V, max = +13.11 V) -12V: -14.91 V (min = -13.21 V, max = -10.90 V) -5V: -7.71 V (min = -5.51 V, max = -4.51 V) V5SB: +5.07 V (min = +4.50 V, max = +5.48 V) VBat: +3.29 V (min = +2.70 V, max = +3.29 V) ALARM fan1: 0 RPM (min = 187 RPM, div = 32) fan2: 2721 RPM (min = 3000 RPM, div = 2) fan3: 0 RPM (min = 46 RPM, div = 128) temp1: +41?C (limit = +60?C)
sensor = thermistor
temp2: +33.5?C (limit = +60?C, hysteresis = +50?C)
sensor = PII/Celeron diode
temp3: +208.0?C (limit = +60?C, hysteresis = +50?C)
sensor = thermistor
vid: +0.000 V
alarms:beep_enable:
Sound alarm disabled
As you can see the voltages are a bit off, so the driver needs a little bit tweaking.
But the (in my eyes) more important fan and temperatures do work correctly when compared with the bios.
Thanks a lot for your help. Since i don't speak C i couldn't have done that on my own!
I have included a patch for w83627hf.c (i dunno if your list filters attachments).
Quoted 1 line
There's no THF datasheet on the Winbond web site.
I have written a "request" to winbond for the datasheet, lets see what happens. Maybe it'll help with the voltages.
Thanks alot for your time, i really would have hated it to life w/o sensor readings :)
PS: If you need help fine-tuning the driver let me know.
Signature · 10 lines
Matthias Hentges Cologne / Germany [www.hentges.net] -> PGP welcome, HTML tolerated ICQ: 97 26 97 4 -> No files, no URL's My OS: Debian Woody: Geek by Nature, Linux by Choice -------------- next part -------------- 27a28
Quoted 1 line
w83627thf 9 2 ? 3 0x82 0x5ca3 no yes
117a119
Quoted 1 line
#define
W627THF_DEVID0x82
632c634
< if(val != W627_DEVID && val != W697_DEVID) {
---
Quoted 1 line
if(val != W627_DEVID && val !=W627THF_DEVID && val != W697_DEVID) {687a690,692
Quoted 3 lines
else if(val = W627THF_DEVID) kind = w83627hf;
thanks for testing the 801 fix.
We've added the ID to CVS.
On the 627THF, if you are feeling brave you can try investigating what device ID is returned by super IO probing either by hacking sensors-detect or at line 683 or so in the w83627hf driver.
Then add code to recognize it and see what happens.
There's no THF datasheet on the Winbond web site.
Quoted 120 lines · Matthias Hentges
Hi again,
Quoted 3 lines
try adding
0x24d3to the supported[] table ini2c-i801.c(2.7.0) or to the pci_device_id[] table (CVS, get most recent) let us know if it works, email us, ref. your ticket number.Adding the ID to supported[] did the trick with loading the module. At least for version 2.7.0, in CVS the modules loads, but the kernel oopses when running sensors-detect:
Jun 8 00:56:58 mhcln01 kernel: i2c-i801 version 2.8.0-CVS (2003????) Jun 8 00:56:58 mhcln01 kernel: i2c-dev.o: Registered '' as minor 0 Jun 8 00:57:05 mhcln01 kernel: Unable to handle kernel paging request at virtua l address 0004002c Jun 8 00:57:05 mhcln01 kernel: printing eip: Jun 8 00:57:05 mhcln01 kernel: f8889b20 Jun 8 00:57:05 mhcln01 kernel: *pde = 00000000 Jun 8 00:57:05 mhcln01 kernel: Oops: 0000 Jun 8 00:57:05 mhcln01 kernel: CPU: 0 Jun 8 00:57:05 mhcln01 kernel: EIP: 0010:[<f8889b20>] Tainted: P Jun 8 00:57:05 mhcln01 kernel: EFLAGS: 00010286 Jun 8 00:57:05 mhcln01 kernel: eax: 00040004 ebx: 00000006 ecx: fffffffb edx: f888bb3f Jun 8 00:57:05 mhcln01 kernel: esi: f3282000 edi: 00000000 ebp: 00000000 esp: f2833f44 Jun 8 00:57:05 mhcln01 kernel: ds: 0018 es: 0018 ss: 0018 Jun 8 00:57:05 mhcln01 kernel: Process sensors-detect (pid: 7759, stackpageò8 33000) Jun 8 00:57:05 mhcln01 kernel: Stack: 00000000 00000c00 f3282000 00001000 fffff fea 00001000 c040b9b4 c015d54a Jun 8 00:57:05 mhcln01 kernel: f3282000 f2833f98 00000000 00000c00 f2833 f94 00000000 00000000 f58c3200 :Jun 8 00:57:05 mhcln01 kernel: ffffffea 00001000 f7188d80 00000000 00000 000 00000000 c013b047 f58c3200 Jun 8 00:57:05 mhcln01 kernel: Call Trace: [<c015d54a>] [<c013b047>] [<c0108 9d3>] Jun 8 00:57:05 mhcln01 kernel: Jun 8 00:57:05 mhcln01 kernel: Code: 83 78 28 00 74 1a 83 78 24 00 74 0a 83 c4f8 68 40 bb 88 f8
On 2.7.0 sensors-detect finds several chips: two lm75, one pcf?? and two eeproms. The eeprom driver seems to work, but the two lm75 and the pcf?? don't.
Output of sensors-detect:
Next adapter: SMBus I801 adapter at 0400 (Non-I2C SMBus adapter) Do you want to scan it? (YES/no/selectively):
Client found at address0x08
Client found at address0x2f
[...]
Client found at address0x30
Client found at address0x44
Client found at address0x48
Probing for `National Semiconductor LM75'... Success!(confidence 3, driver `lm75') Probing for `Dallas Semiconductor DS1621'... Failed! Probing for `Philips Semiconductors PCF8591'... Success! (confidence 1, driver `pcf8591') Client found at address 0x49 Probing for `National Semiconductor LM75'... Success! (confidence 3, driver `lm75') Probing for `Dallas Semiconductor DS1621'... Failed! Probing for `Philips Semiconductors PCF8591'... Success! (confidence 1, driver `pcf8591')Client found at address
0x50
Probing for `Serial EEPROM'... Success!
(confidence 8, driver `eeprom')
Probing for `DDC monitor'... Failed!
Client found at address0x52
Probing for `Serial EEPROM'... Success!
(confidence 8, driver `eeprom')
Client found at address0x61
Probing for `SMBus 2.0 ARP-Capable Device'... Success!
(confidence 1, driver `smbus-arp')
Client found at address0x69I have tried forcing the w83781d module:
modprobe w83781d force_w83627hf=0,0x2fi2cdump 0
0x2f:[...]
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 00: 00 00 00 00 00 00 00 00 00 80 00 00 01 00 00 ff .........?..?... 10: 00 00 7f 00 00 10 00 00 00 00 00 00 00 00 00 00 ..?..?.......... 20: 08 02 0d bd 02 02 02 7e ff ff ff 00 00 00 00 e3 ???????~.......? 30: ba cc a8 d8 b2 31 15 40 2c 3c 7f e1 e1 e1 ff ff ?????1?@,<????.. 40: 01 10 00 00 00 00 00 5f 2f 11 01 44 41 95 00 a3 ??....._/??DA?.? 50: ff ff ff ff ff ff 00 00 72 70 ff 00 19 01 05 ff ........rp..???. 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 80: 01 ff 01 ff 00 00 00 00 01 01 01 01 3c 3c 0a 0a ?.?.....????<<?? 90: 00 00 00 01 ff 00 00 00 01 01 3c 18 00 00 01 01 ...?....??<?..?? a0: ff ff ff 00 00 00 00 00 19 e7 6f 18 00 ff ff ff ........??o?.... b0: bc f3 02 ff 30 08 00 03 00 08 ff ff 00 04 ff ff ???.0?.?.?...?.. c0: 7e 80 00 32 00 3c 00 ff 7e 80 00 32 00 3c 00 ff ~?.2.<..~?.2.<.. 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 00 ff 00 01 00 ff ff 02 ff 00 00 0d ff 1d .....?...?...?.?The driver loads and can be accessed via
/proc/sys/dev/sensors/w83627hf-i2c-0-2fbut the values are all wrong.Quoted 3 lines
On the 627THF, I?ll see if it is different than the regular HF if I can find a datasheet.
Try modprobing i2c-isa and w83627hf anyway and see what happens.w83627hf can not be loaded (no such device).
Looks like the ISA bus can not be accessed.
Looks like i'm out of luck huh?
TIA
thanks for the good detective work.
I've checked in your patch, and I added 627thf recognition to sensors-detect. If you have a chance to test sensors-detect that would be great. mds
Quoted 125 lines · Matthias Hentges
Am Die, 2003-06-10 um 03.53 schrieb Mark D. Studebaker :
Quoted 1 line
thanks for testing the 801 fix.
Nahh, *I* have to thank *you* guys!
Quoted 1 line
We've added the ID to CVS.
Yes, i just noticed, heh. CVS i2c-i801 now loads w/o oops and is detected by sensors-detect.
Quoted 3 lines
On the 627THF, if you are feeling brave you can try investigating what device ID is returned by super IO probing either by hacking sensors-detect or at line 683 or so in the w83627hf driver.
You mean line 631+, line 683 is never reached because
w83627hf_findbails out if no matching DEVID is found. I've inserted a printk to get the DEVID, it's0x82.Quoted 1 line
Then add code to recognize it and see what happens.
[
w83627hf.c, line 636 +/-1, addedW627HF_DEVIDand defined it with0x82]if(val != W627_DEVID && val != W697_DEVID && val != W627THF_DEVID) { superio_exit(); return -ENODEV; }[END]
AND
[
w83627hf.c, line 689 +/-1, addedW627THF_DEVID]if(val = W627_DEVID) kind = w83627hf; else if(val = W697_DEVID) kind = w83697hf; else if(val = W627THF_DEVID) kind = w83627hf;[END]
The module now loads and IT WORKS!!
Output from sensors:
w83627hf-isa-0290
Adapter: ISA adapter Algorithm: ISA algorithm VCore 1: +3.00 V (min = +0.00 V, max = +0.00 V) VCore 2: +3.21 V (min = +0.00 V, max = +0.00 V) +3.3V: +3.34 V (min = +2.97 V, max = +3.63 V) +5V: +5.04 V (min = +4.50 V, max = +5.48 V) +12V: +15.50 V (min = +10.79 V, max = +13.11 V) -12V: -14.91 V (min = -13.21 V, max = -10.90 V) -5V: -7.71 V (min = -5.51 V, max = -4.51 V) V5SB: +5.07 V (min = +4.50 V, max = +5.48 V) VBat: +3.29 V (min = +2.70 V, max = +3.29 V) ALARM fan1: 0 RPM (min = 187 RPM, div = 32) fan2: 2721 RPM (min = 3000 RPM, div = 2) fan3: 0 RPM (min = 46 RPM, div = 128) temp1: +41?C (limit = +60?C)sensor = thermistor
temp2: +33.5?C (limit = +60?C, hysteresis = +50?C)
sensor = PII/Celeron diode
temp3: +208.0?C (limit = +60?C, hysteresis = +50?C)
sensor = thermistor
vid: +0.000 V
alarms:beep_enable:
Sound alarm disabledAs you can see the voltages are a bit off, so the driver needs a little bit tweaking.
But the (in my eyes) more important fan and temperatures do work correctly when compared with the bios.Thanks a lot for your help. Since i don't speak C i couldn't have done that on my own!
I have included a patch for
w83627hf.c(i dunno if your list filters attachments).Quoted 1 line
There's no THF datasheet on the Winbond web site.
I have written a "request" to winbond for the datasheet, lets see what happens. Maybe it'll help with the voltages.
Thanks alot for your time, i really would have hated it to life w/o sensor readings :)
PS: If you need help fine-tuning the driver let me know.
------------------------------------------------------------------------
27a28
Quoted 1 line
w83627thf 9 2 ? 3 0x82 0x5ca3 no yes117a119
Quoted 1 line
#define
W627THF_DEVID0x82632c634
<if(val != W627_DEVID && val != W697_DEVID){
---Quoted 1 line
if(val != W627_DEVID && val !=W627THF_DEVID && val != W697_DEVID) {687a690,692
Quoted 3 lines
else if(val = W627THF_DEVID) kind = w83627hf;