Skip to contentSkip to conversation

Answer Epox - EPoX EP1308 sensor-chip

lm-sensors Rudolf Marek 5 participants 17 messages Sep 15, 2006 – Oct 4, 2006

lore
Share & tools
lore
#0 lore raw

Hi all,

Sorry for delay, I'm quite busy with all the stuff and support for lm-sensors is quite time consumptive. I hope I will have more time for lm-sensors during sunday.

Lets move the thread to this one.

I have seen the "datasheet" it should be enough to write a simple driver but we need how to detect the superio in first place.

This should be easy to find out yourself:

you may try:
isadump 0x2e 0x2f

If you see all 0xff then the superio must be unlocked

isadump -k 0x87,0x87 0x2e 0x2f

or try -k 0x55

problem is that if none of standard key is working then best way would to ask them:

1) what is the superio unlocking key
2) what is the CR20 ID and what is CR21 revision. (what bits, what values)
3) what logical device is for hardware monitor, (so you can get the 0x290 base addr from there)
4) is there any ID register in the 0x295/0x296 space?
5) how big is the 0x295 0x296 iospace? just from 0x290 + 8 bytes?
6) The Ultimate Question Of Life, the Universe and Everything

SO please try to "unlock" the superio first. I would bet that the key -k 0x55 will work but check it out yourself ;)

ruik:/tmp# isadump -k 0x87,0x87 0x2e 0x2f 2
WARNING! Running this program can cause system crashes, data loss and worse!
I will probe address register 0x2e and data register 0x2f.
Probing bank 2 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: ff ff ff ff ff ff ff 02 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: 88 63 ff 00 80 00 00 ff 50 04 01 00 f0 21 00 ff
30: 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
60: 03 f8 ff ff ff ff ff ff ff ff ff ff ff ff ff ff
70: 04 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
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: ff ff ff ff ff ff ff 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: 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

This example shows the unlocked superio and with listed bank 2, Which is the serial port. At 0x60 you see the base addres: 3f8
you should see there 0x2 0x90 or 0x2 0x95, so cycle the banks from 0 to 15 This would answer question 3)

question 2) answer is in 0x20 I have there 88 63 part 88 6 is chip ID rest is revision

question 5) answer: isadump -f 0x290

0290: ff ff ff ff ff 47 90 ff ff ff ff ff ff ff ff ff

I have there just two bytes. Addtionaly you may check if the region is not reserved by bios in the cat /proc/ioports

Or you can disassemble the bytecode of DSDT table, which will for sure contain answer to question number 1)

Check the specs here:
http://perso.orange.fr/pierrelib/pnp/PnP_ISA_Spec_v1.0a.pdf

Or any Winbond superio datasheet.

Rudolf

#1 lore raw

Hi,

I got the mobo up and running with FC5.

Tried the following command:
isadump 0x295 0x296

Results:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff 03 00 00 ff ff ff ff ff ff ff ff ff ff ff ff 10: 00 00 00 00 ff ff ff ff ff ff ff ff ff ff ff ff 20: d3 af ab 83 7a 8a 76 d6 c3 ff ff ff ff ff ff ff 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff 03 04 10 19 34 ff 60: 00 00 00 00 ff ff 02 74 00 00 ff 06 40 24 ff 00 70: ff ff 2e ff 1f ff 00 ff ff ff ff ff ff ff ff ff 80: ff ff 65 64 64 55 55 46 ff ff ff ff ff ff a8 ff 90: 00 0c 0c 00 15 ff 57 ff 44 22 ff aa 55 55 ff 0a
a0: 01 d1 00 ff 02 23 3c 32 28 1e ff d9 b2 99 80 01
b0: 02 1b 00 99 02 1b 3c 32 28 1e ff d9 b2 99 80 02
c0: 0f ff 00 80 03 ff 3c 32 28 1e ff d9 b2 99 80 03
d0: 0f ff 00 80 03 ff 3c 32 28 1e ff d9 b2 99 80 03
e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
f0: 00 00 00 00 00 00 37 ff 02 ff ff 02 ff ff ff ff

The results seem to be correct systemp is around the 30C as shown in the results from isadump and checked with the bios.
I do have my doubts about the cpu temp reported in the isadump it says it's around 45C but when checking in the bios it shows almost 60C. Could it be the rebooting that is causing the temp to rise so much?

Is it still necessary to unlock the superio and if so could to explain why?

Regards,
Hans

-----Original Message-----
From: [email protected] [mailto:lm-sensors-bounces at lm-sensors.org] On Behalf Of Rudolf Marek
Sent: 15 September 2006 23:02
To: Age Huisman
Cc: lm-sensors at lm-sensors.org
Subject: Re: [lm-sensors] Answer Epox - EPoX EP1308 sensor-chip

Hi all,

Sorry for delay, I'm quite busy with all the stuff and support for lm-sensors is
quite time consumptive. I hope I will have more time for lm-sensors during sunday.

Lets move the thread to this one.

I have seen the "datasheet" it should be enough to write a simple driver but we
need how to detect the superio in first place.

This should be easy to find out yourself:

you may try:
isadump 0x2e 0x2f

If you see all 0xff then the superio must be unlocked

isadump -k 0x87,0x87 0x2e 0x2f

or try -k 0x55

problem is that if none of standard key is working then best way would to ask them:

1) what is the superio unlocking key
2) what is the CR20 ID and what is CR21 revision. (what bits, what values)
3) what logical device is for hardware monitor, (so you can get the 0x290 base
addr from there)
4) is there any ID register in the 0x295/0x296 space?
5) how big is the 0x295 0x296 iospace? just from 0x290 + 8 bytes?
6) The Ultimate Question Of Life, the Universe and Everything

SO please try to "unlock" the superio first. I would bet that the key -k 0x55
will work but check it out yourself ;)

ruik:/tmp# isadump -k 0x87,0x87 0x2e 0x2f 2
WARNING! Running this program can cause system crashes, data loss and worse!
I will probe address register 0x2e and data register 0x2f.
Probing bank 2 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: ff ff ff ff ff ff ff 02 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: 88 63 ff 00 80 00 00 ff 50 04 01 00 f0 21 00 ff
30: 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
60: 03 f8 ff ff ff ff ff ff ff ff ff ff ff ff ff ff
70: 04 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
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: ff ff ff ff ff ff ff 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: 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

This example shows the unlocked superio and with listed bank 2, Which is the serial port. At 0x60 you see the base addres: 3f8 you should see there 0x2 0x90 or 0x2 0x95, so cycle the banks from 0 to 15 This
would answer question 3)

question 2) answer is in 0x20 I have there 88 63 part 88 6 is chip ID rest is
revision

question 5) answer: isadump -f 0x290

0290: ff ff ff ff ff 47 90 ff ff ff ff ff ff ff ff ff

I have there just two bytes. Addtionaly you may check if the region is not reserved by bios in the cat /proc/ioports

Or you can disassemble the bytecode of DSDT table, which will for sure contain
answer to question number 1)

Check the specs here:
http://perso.orange.fr/pierrelib/pnp/PnP_ISA_Spec_v1.0a.pdf

Or any Winbond superio datasheet.

Rudolf

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

#2 lore raw
In reply to Rudolf Marek
Quoted 26 lines · Hans Edgington

Hi,

I got the mobo up and running with FC5.

Tried the following command:
isadump 0x295 0x296

Results:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff 03 00 00 ff ff ff ff ff ff ff ff ff ff ff ff 10: 00 00 00 00 ff ff ff ff ff ff ff ff ff ff ff ff 20: d3 af ab 83 7a 8a 76 d6 c3 ff ff ff ff ff ff ff 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff 03 04 10 19 34 ff 60: 00 00 00 00 ff ff 02 74 00 00 ff 06 40 24 ff 00 70: ff ff 2e ff 1f ff 00 ff ff ff ff ff ff ff ff ff 80: ff ff 65 64 64 55 55 46 ff ff ff ff ff ff a8 ff 90: 00 0c 0c 00 15 ff 57 ff 44 22 ff aa 55 55 ff 0a
a0: 01 d1 00 ff 02 23 3c 32 28 1e ff d9 b2 99 80 01
b0: 02 1b 00 99 02 1b 3c 32 28 1e ff d9 b2 99 80 02
c0: 0f ff 00 80 03 ff 3c 32 28 1e ff d9 b2 99 80 03
d0: 0f ff 00 80 03 ff 3c 32 28 1e ff d9 b2 99 80 03
e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
f0: 00 00 00 00 00 00 37 ff 02 ff ff 02 ff ff ff ff

Quoted 6 lines

The results seem to be correct systemp is around the 30C as shown in the results from isadump and checked with the bios.
I do have my doubts about the cpu temp reported in the isadump it says it's around 45C but when checking in the bios it shows almost 60C. Could it be the rebooting that is causing the temp to rise so much?

Thats normal with amd cool 'n quiet processors, Linux puts the processors in its low powerstate unless you do something which requires all the horsepower, whereas the BIOS always has the processor in its highest powerstate, try building a kernel with "make -j 4 bzimage" and then do the isadump again when the kernel is building, then it should be around 60 degrees under Linux too.

Quoted 2 lines

Is it still necessary to unlock the superio and if so could to explain why?

It looks like its not nescesarry as it works without it.

Regards,

Hans

#3 lore raw
In reply to Rudolf Marek

Hi,

Best would be to ask the for additional docs but lets check what we can find out on our own:

Quoted 8 lines

Results:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff 03 00 00 ff ff ff ff ff ff ff ff ff ff ff ff 10: 00 00 00 00 ff ff ff ff ff ff ff ff ff ff ff ff 20: d3 af ab 83 7a 8a 76 d6 c3 ff ff ff ff ff ff ff 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff 03 04 10 19 34 ff

Quoted 8 lines

60: 00 00 00 00 ff ff 02 74 00 00 ff 06 40 24 ff 00 70: ff ff 2e ff 1f ff 00 ff ff ff ff ff ff ff ff ff 80: ff ff 65 64 64 55 55 46 ff ff ff ff ff ff a8 ff 90: 00 0c 0c 00 15 ff 57 ff 44 22 ff aa 55 55 ff 0a
a0: 01 d1 00 ff 02 23 3c 32 28 1e ff d9 b2 99 80 01
b0: 02 1b 00 99 02 1b 3c 32 28 1e ff d9 b2 99 80 02
c0: 0f ff 00 80 03 ff 3c 32 28 1e ff d9 b2 99 80 03
d0: 0f ff 00 80 03 ff 3c 32 28 1e ff d9 b2 99 80 03

Perhaps the chip can control the fans too. and set some limits... this would be the undocumented a2-af fields

Quoted 8 lines

e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
f0: 00 00 00 00 00 00 37 ff 02 ff ff 02 ff ff ff ff

The results seem to be correct systemp is around the 30C as shown in the results from isadump and checked with the bios.
I do have my doubts about the cpu temp reported in the isadump it says it's around 45C but when checking in the bios it shows almost 60C. Could it be the rebooting that is causing the temp to rise so much?

Check Hans answer.

Quoted 1 line

Is it still necessary to unlock the superio and if so could to explain why?

Yes it would be good to know for detection.

Quoted 3 lines

isadump 0x2e 0x2f

If you see all 0xff then the superio must be unlocked

Proceed

Quoted 2 lines

isadump -k 0x87,0x87 0x2e 0x2f

Try this

Quoted 1 line

or try -k 0x55

isadump -k 0x55 0x2e 0x2f

Or this ;)

Quoted 18 lines

SO please try to "unlock" the superio first. I would bet that the key -k 0x55
will work but check it out yourself ;)

ruik:/tmp# isadump -k 0x87,0x87 0x2e 0x2f 2
WARNING! Running this program can cause system crashes, data loss and worse!
I will probe address register 0x2e and data register 0x2f.
Probing bank 2 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: ff ff ff ff ff ff ff 02 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: 88 63 ff 00 80 00 00 ff 50 04 01 00 f0 21 00 ff
30: 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
60: 03 f8 ff ff ff ff ff ff ff ff ff ff ff ff ff ff
70: 04 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
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: ff ff ff ff ff ff ff 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: 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

The unlocked suoperIO looks like this. If you manage to see something like this then proceed down to check what logical device the chip resides. Just switch do dumps with

Quoted 1 line
ruik:/tmp# isadump -k 0x87,0x87 0x2e 0x2f 2

and change the last number from 0 1? to 15

and check the bytes at 60: you should see the 02 90 or 02 95

Quoted 1 line

question 5) answer: isadump -f 0x290

Please provide this dump too

Thanks, Rudolf

#4 lore raw
In reply to Rudolf Marek
Quoted 42 lines
Quoted 1 line

isadump -k 0x87,0x87 0x2e 0x2f

Try this

Quoted 1 line

or try -k 0x55

isadump -k 0x55 0x2e 0x2f

Or this ;)

Quoted 18 lines

SO please try to "unlock" the superio first. I would bet that the key -k 0x55
will work but check it out yourself ;)

ruik:/tmp# isadump -k 0x87,0x87 0x2e 0x2f 2
WARNING! Running this program can cause system crashes, data loss and worse!
I will probe address register 0x2e and data register 0x2f.
Probing bank 2 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: ff ff ff ff ff ff ff 02 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: 88 63 ff 00 80 00 00 ff 50 04 01 00 f0 21 00 ff
30: 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
60: 03 f8 ff ff ff ff ff ff ff ff ff ff ff ff ff ff
70: 04 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
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: ff ff ff ff ff ff ff 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: 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

The unlocked suoperIO looks like this. If you manage to see something like this then proceed down to check what logical device the chip resides. Just switch do dumps with

Quoted 5 lines
Quoted 1 line
ruik:/tmp# isadump -k 0x87,0x87 0x2e 0x2f 2

and change the last number from 0 1? to 15

and check the bytes at 60: you should see the 02 90 or 02 95

Or you could simply try the version of sensors-detect which comes with lm_sensors 2.10.1, which would detect automatically which key is needed to unlock the Super-I/O, and which logical device corresponds to hardware monitoring.

I wrote this code for a reason...

Thanks,

Signature · 1 line
Jean Delvare
#5 lore raw
In reply to Rudolf Marek

Oh, BTW...

Quoted 8 lines

Results:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff 03 00 00 ff ff ff ff ff ff ff ff ff ff ff ff 10: 00 00 00 00 ff ff ff ff ff ff ff ff ff ff ff ff 20: d3 af ab 83 7a 8a 76 d6 c3 ff ff ff ff ff ff ff 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff 03 04 10 19 34 ff

                                             ^^^^^

This is the Fintek vendor ID! So this mysterious Epox chip was certainly subcontracted to Fintek.

Quoted 10 lines

60: 00 00 00 00 ff ff 02 74 00 00 ff 06 40 24 ff 00 70: ff ff 2e ff 1f ff 00 ff ff ff ff ff ff ff ff ff 80: ff ff 65 64 64 55 55 46 ff ff ff ff ff ff a8 ff 90: 00 0c 0c 00 15 ff 57 ff 44 22 ff aa 55 55 ff 0a
a0: 01 d1 00 ff 02 23 3c 32 28 1e ff d9 b2 99 80 01
b0: 02 1b 00 99 02 1b 3c 32 28 1e ff d9 b2 99 80 02
c0: 0f ff 00 80 03 ff 3c 32 28 1e ff d9 b2 99 80 03
d0: 0f ff 00 80 03 ff 3c 32 28 1e ff d9 b2 99 80 03
e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
f0: 00 00 00 00 00 00 37 ff 02 ff ff 02 ff ff ff ff

Signature · 1 line
Jean Delvare
#6 lore raw
In reply to Rudolf Marek

Hi,

Quoted 4 lines
Quoted 4 lines

isadump 0x2e 0x2f

If you see all 0xff then the superio must be unlocked

Results are all 0xff

Quoted 1 line
Quoted 1 line

isadump -k 0x87,0x87 0x2e 0x2f

Again only 0xff

Quoted 6 lines

Try this

Quoted 1 line

or try -k 0x55

isadump -k 0x55 0x2e 0x2f

And yet again we see all 0xff

Quoted 2 lines
Quoted 2 lines

question 5) answer: isadump -f 0x290

First time:
0 1 2 3 4 5 6 7 8 9 a b c d e f
0200: 06 00 00 35 86 00 00 c7 77 07 3f ff ff ff ff ff 0210: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 0220: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 0230: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 0240: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 0250: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 0260: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 0270: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 0280: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 0290: ff ff ff ff ff a3 ff ff ff ff ff ff ff ff ff ff 02a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 02b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 02c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 02d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 02e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 02f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

Second time straight after the first:
0 1 2 3 4 5 6 7 8 9 a b c d e f
0200: 06 00 00 35 86 00 00 c7 77 07 3f ff ff ff ff ff 0210: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 0220: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 0230: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 0240: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 0250: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 0260: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 0270: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 0280: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 0290: ff ff ff ff ff a0 01 ff ff ff ff ff ff ff ff ff 02a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 02b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 02c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 02d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 02e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 02f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

Ran on Jean's advice sensors-detect again and it reported when probing for superior the following:

Probing for Super-I/O at 0x4e/0x4f

Trying family `ITE'...                                      No
Trying family `National Semiconductor'...                   No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Fintek'...                       Yes

Found unknown chip with ID 0x0541

Then did an isadump on 0x4e 0x4f and was shown a lot more 0xff :( I looked at the driver code for the Fintek F71805F Super-I/O chip which uses 0x87 to as key to unlock.

Results for isadump -k 0x87 0x4e 0x4f
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff 00 ff ff ff ff 05 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: 05 41 10 19 34 00 00 7e 70 ff 44 a0 07 0a 00 00 30: 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 60: 00 60 ff ff ff ff ff ff ff ff ff ff ff ff ff ff 70: 01 ff 0c ff ff ff ff ff ff ff ff ff ff ff ff ff 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: ff ff ff ff ff ff ff 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

groeten,
Hans

#7 lore raw
In reply to Rudolf Marek
Quoted 3 lines
Quoted 1 line

Is it still necessary to unlock the superio and if so could to explain why?

It looks like its not nescesarry as it works without it.

Well, if we write a driver for this chip, it's always better to get the address from the Super-I/O configuration address space, rather than hardcoding an arbitrary address. This lets us detect much more reliably whether the device is there or not, and also lets us deal with different addresses without user intervention.

Signature · 1 line
Jean Delvare
#8 lore raw
In reply to Rudolf Marek
Quoted 9 lines · Jean Delvare
Quoted 2 lines
Quoted 1 line

Is it still necessary to unlock the superio and if so could to explain why?

It looks like its not nescesarry as it works without it.

Well, if we write a driver for this chip, it's always better to get the address from the Super-I/O configuration address space, rather than hardcoding an arbitrary address. This lets us detect much more reliably whether the device is there or not, and also lets us deal with different addresses without user intervention.

Ok,

I'm kinda new to this superio stuff, so I'm glad you and Rudolf are helping out.

Maybe I should make my relation to Hans Edgington clear. As you may know I'm a university Computer Science teacher and Hans E. is a student of mine. As part of his / her last year every student must work on a project for 1 day / week during 5 months. Normally the project assignments come from real companies, but when we don't have enough assignments the teacher(s) create assignments for these projects. After seeing the mail from Age Huisman on this I thought it would be a fun project for a student to write a driver for this sensors chip.

At first I thought this driver would be much like the uguru driver, but I see now with the superio stuff that it will be somewhat different, what would be a good driver to start with as a skeleton to base this driver on?

Also are there datasheets of similar (fintek) superio chips available somewhere, those could be of great help.

Regards,

Hans

#9 lore raw
In reply to Rudolf Marek

Hi Hans,

Quoted 9 lines

Ran on Jean's advice sensors-detect again and it reported when probing for superior the following:

Probing for Super-I/O at 0x4e/0x4f

Trying family `ITE'...                                      No
Trying family `National Semiconductor'...                   No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Fintek'...                       Yes

Found unknown chip with ID 0x0541

Great, it partly worked. It properly detected the address (0x4e/0x4f) and the family. Contrary to my expectations, it failed to find the logical device number though, I wonder why.

Quoted 3 lines

Then did an isadump on 0x4e 0x4f and was shown a lot more 0xff :( I looked at the driver code for the Fintek F71805F Super-I/O chip which uses 0x87 to as key to unlock.

Actually the key for this family is double 0x87. You are lucky that it worked with only one (below), in most cases it won't.

Quoted 5 lines

Results for isadump -k 0x87 0x4e 0x4f
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff 00 ff ff ff ff 05 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: 05 41 10 19 34 00 00 7e 70 ff 44 a0 07 0a 00 00

               ^^^^^

This confirms my earlier guess that this chip was designed by Fintek, despite the Epox top marking.

Quoted 5 lines

30: 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 60: 00 60 ff ff ff ff ff ff ff ff ff ff ff ff ff ff 70: 01 ff 0c ff ff ff ff ff ff ff ff ff ff ff ff ff

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

Now I'd like to understand why sensors-detect didn't find the logical device number. Please run the following command and provide the output (assuming you use bash as your shell, and as root):

for ldn in seq 0 15 ; do echo "=/ LDN=$ldn /=" ; isadump -y -k 0x87,0x87 0x4e 0x4f $ldn ; done

This will dump the first 16 logical devices (there are rarely more.) We are looking for a logical device with 0x295 at 0x60. sensors-detect would have detected that so I expect some trick though.

Signature · 1 line
Jean Delvare
#10 lore raw
In reply to Rudolf Marek

Hi Hans,

Quoted 8 lines

Maybe I should make my relation to Hans Edgington clear. As you may know I'm a university Computer Science teacher and Hans E. is a student of mine. As part of his / her last year every student must work on a project for 1 day / week during 5 months. Normally the project assignments come from real companies, but when we don't have enough assignments the teacher(s) create assignments for these projects. After seeing the mail from Age Huisman on this I thought it would be a fun project for a student to write a driver for this sensors chip.

Yes, I think this is a good idea, both interesting for the student and useful for the user waiting for this chip to be supported.

Quoted 4 lines

At first I thought this driver would be much like the uguru driver, but I see now with the superio stuff that it will be somewhat different, what would be a good driver to start with as a skeleton to base this driver on?

There's nothing like the uGuru :p

I'd suggest working off the f71805f driver, as it supports a Fintek chip so the Super-I/O code should be very similar.

Quoted 2 lines

Also are there datasheets of similar (fintek) superio chips available somewhere, those could be of great help.

The Fintek datasheets are unfortunately not publicly available as far as I know. But Winbond has good datasheets and the Super-I/O mechanism is pretty standard, so you can start from there (see Documentation/hwmon/w83627hf for URLs). Or you can simply look at the f71805f driver code, I would hope it is clear enough.

BTW the Super-I/O mechanism is essentially based on Intel's LPC specification, which is publicly available here:
http://www.intel.com/design/chipsets/industry/lpc.htm
But it's highly technical and you don't really need to know the details to write a driver.

Hope that helps,

Signature · 1 line
Jean Delvare
#11 lore raw
In reply to Rudolf Marek

Hello Jean,

Quoted 4 lines

Actually the key for this family is double 0x87. You are lucky that it worked with only one (below), in most cases it won't.

With the double 0x87 key I get the following results:

0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff 00 ff ff ff ff 05 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: 05 41 10 19 34 00 00 7e 70 ff 44 a0 07 0a 00 00 30: 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 60: 00 60 ff ff ff ff ff ff ff ff ff ff ff ff ff ff 70: 01 ff 0c ff ff ff ff ff ff ff ff ff ff ff ff ff 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: ff ff ff ff ff ff ff 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: 83 00 f0 ff ff ff ff ff ff ff ff ff ff ff ff ff

Quoted 2 lines

Now I'd like to understand why sensors-detect didn't find the logical device number.

Forgot to copy paste the last line:
(logical device 4 has address 0x295, could be sensors)

Quoted 9 lines

Please run the following command and provide the output (assuming you use bash as your shell, and as root):

for ldn in seq 0 15 ; do echo "=/ LDN=$ldn /=" ; isadump -y -k 0x87,0x87 0x4e 0x4f $ldn ; done

This will dump the first 16 logical devices (there are rarely more.) We are looking for a logical device with 0x295 at 0x60. sensors-detect would have detected that so I expect some trick though.

Ok here is the full dump

=/ LDN=0 /=
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff 00 ff ff ff ff 00 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: 05 41 10 19 34 00 00 7e 70 ff 44 a0 07 0a 00 00 30: 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 60: 03 f0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff 70: 06 ff ff ff 02 ff ff ff ff ff ff ff ff ff ff ff 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: ff ff ff ff ff ff ff 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: 0e ff ff ff 00 ff ff ff ff ff ff ff ff ff ff ff =/ LDN=1 /=
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff 00 ff ff ff ff 01 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: 05 41 10 19 34 00 00 7e 70 ff 44 a0 07 0a 00 00 30: 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 60: 03 f8 ff ff ff ff ff ff ff ff ff ff ff ff ff ff 70: 04 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 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: ff ff ff ff ff ff ff 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: 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff =/ LDN=2 /=
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff 00 ff ff ff ff 02 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: 05 41 10 19 34 00 00 7e 70 ff 44 a0 07 0a 00 00 30: 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 60: 00 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff 70: 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 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: ff ff ff ff ff ff ff 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: 04 5d ff ff ff ff ff ff ff ff ff ff ff ff ff ff =/ LDN=3 /=
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff 00 ff ff ff ff 03 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: 05 41 10 19 34 00 00 7e 70 ff 44 a0 07 0a 00 00 30: 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 60: 03 78 ff ff ff ff ff ff ff ff ff ff ff ff ff ff 70: 07 ff ff ff 04 ff ff ff ff ff ff ff ff ff ff ff 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: ff ff ff ff ff ff ff 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: 38 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff =/ LDN=4 /=
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff 00 ff ff ff ff 04 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: 05 41 10 19 34 00 00 7e 70 ff 44 a0 07 0a 00 00 30: 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 60: 02 95 ff ff ff ff ff ff ff ff ff ff ff ff ff ff 70: 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 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: ff ff ff ff ff ff ff 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 =/ LDN=5 /=
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff 00 ff ff ff ff 05 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: 05 41 10 19 34 00 00 7e 70 ff 44 a0 07 0a 00 00 30: 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 60: 00 60 ff ff ff ff ff ff ff ff ff ff ff ff ff ff 70: 01 ff 0c ff ff ff ff ff ff ff ff ff ff ff ff ff 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: ff ff ff ff ff ff ff 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: 83 00 f0 ff ff ff ff ff ff ff ff ff ff ff ff ff =/ LDN=6 /=
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff 00 ff ff ff ff 06 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: 05 41 10 19 34 00 00 7e 70 ff 44 a0 07 0a 00 00 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 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: 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: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
b0: 00 0f 03 00 ff ff ff ff ff ff ff ff ff ff ff ff
c0: 00 0f 09 00 ff ff ff ff ff ff ff ff ff ff ff ff
d0: 07 02 f2 07 ff ff ff ff ff ff ff ff ff ff ff ff
e0: 00 ff 2a 00 ff ff ff ff ff ff ff ff ff ff ff ff
f0: 80 ff 86 00 ff ff ff ff ff ff ff ff ff ff ff ff =/ LDN=7 /=
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff 00 ff ff ff ff 07 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: 05 41 10 19 34 00 00 7e 70 ff 44 a0 07 0a 00 00 30: 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 60: 02 00 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: 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: ff ff ff ff ff ff ff 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: 06 00 00 35 86 00 00 c7 77 07 3f ff ff ff ff ff =/ LDN=8 /=
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff 00 ff ff ff ff 08 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: 05 41 10 19 34 00 00 7e 70 ff 44 a0 07 0a 00 00 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 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: 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: ff ff ff ff ff ff ff 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: 10 00 01 20 00 00 00 03 00 ff 00 00 00 00 00 00 =/ LDN=9 /=
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff 00 ff ff ff ff 09 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: 05 41 10 19 34 00 00 7e 70 ff 44 a0 07 0a 00 00 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 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: 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: ff ff ff ff ff ff ff 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 =/ LDN /=
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff 00 ff ff ff ff 0a 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: 05 41 10 19 34 00 00 7e 70 ff 44 a0 07 0a 00 00 30: 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 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: 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: ff ff ff ff ff ff ff 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: 00 63 ff ff 16 1c 00 ff ff ff ff ff ff ff ff ff =/ LDN /=
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff 00 ff ff ff ff 0b 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: 05 41 10 19 34 00 00 7e 70 ff 44 a0 07 0a 00 00 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 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: 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: ff ff ff ff ff ff ff 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 =/ LDN /=
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff 00 ff ff ff ff 0c 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: 05 41 10 19 34 00 00 7e 70 ff 44 a0 07 0a 00 00 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 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: 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: ff ff ff ff ff ff ff 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 =/ LDN /=
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff 00 ff ff ff ff 0d 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: 05 41 10 19 34 00 00 7e 70 ff 44 a0 07 0a 00 00 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 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: 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: ff ff ff ff ff ff ff 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 =/ LDN /=
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff 00 ff ff ff ff 0e 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: 05 41 10 19 34 00 00 7e 70 ff 44 a0 07 0a 00 00 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 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: 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: ff ff ff ff ff ff ff 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 =/ LDN /=
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff 00 ff ff ff ff 0f 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: 05 41 10 19 34 00 00 7e 70 ff 44 a0 07 0a 00 00 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 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: 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: ff ff ff ff ff ff ff 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

Hans Edgington

#12 lore raw
In reply to Rudolf Marek

Hans,

Quoted 20 lines

With the double 0x87 key I get the following results:

0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff 00 ff ff ff ff 05 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: 05 41 10 19 34 00 00 7e 70 ff 44 a0 07 0a 00 00 30: 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 60: 00 60 ff ff ff ff ff ff ff ff ff ff ff ff ff ff 70: 01 ff 0c ff ff ff ff ff ff ff ff ff ff ff ff ff 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: ff ff ff ff ff ff ff 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: 83 00 f0 ff ff ff ff ff ff ff ff ff ff ff ff ff

Quoted 5 lines
Quoted 2 lines

Now I'd like to understand why sensors-detect didn't find the logical device number.

Forgot to copy paste the last line:
(logical device 4 has address 0x295, could be sensors)

Ahhhh, so it DID work perfectly! Good news.

Now the next step is to add proper detection to sensors-detect. Can you please provide a patch? It should be as easy as adding an entry into @superio_ids. devid is the value at 0x20 in the dump above, so 0x0541 for this Epox chip. Set the driver to "to-be-written" until the driver has been written.

Thanks,

Signature · 1 line
Jean Delvare
#13 lore raw
In reply to Rudolf Marek

Hi all,

I have been trying to find what some of the other fields mean this is what I have found out so far.

The f8 and f9 seem to contain the temperature at which the system shuts down.
5d-5e are the fintek ID, discovered by Jean.

Tried to find the fields for fan control and found the following:
When setting the fan control, was disabled the field 96 a3-a5 a7-a9 and ab-ae changed. A3 and ab contain the same value, which I set in the bios, and is the percentage of max rpm at which the cpu fan can operate. Seems that the fields a4 and a5 are the max rpm of the fan a4 is the MSB and a5 LSB. The fields get updated when a higher rpm is detected.
Ab is fast fan speed percnatge of max, ac field is the half fan speed, ad and ae are the lowest fanspeed setting which I can't change but are 30% of max.
A6, a7 and a8 are the temperatures at which the fanspeed will increase.

Haven't found out why field 96 changed maybe to say that fan temps and speeds have been set?

Below are two isadumps which I used two discover the changes, first one before setting fan control second is after.

0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff 03 00 00 ff ff ff ff ff ff ff ff ff ff ff ff 10: 00 00 00 00 ff ff ff ff ff ff ff ff ff ff ff ff 20: d3 af ab 83 7a 8a 76 d6 c3 ff ff ff ff ff ff ff 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff 03 04 10 19 34 ff 60: 00 00 00 00 ff ff 02 74 00 00 ff 06 40 24 ff 00 70: ff ff 2e ff 1f ff 00 ff ff ff ff ff ff ff ff ff 80: ff ff 65 64 64 55 55 46 ff ff ff ff ff ff a8 ff 90: 00 0c 0c 00 15 ff 57 ff 44 22 ff aa 55 55 ff 0a
a0: 01 d5 00 ff 02 23 3c 32 28 1e ff d9 b2 99 80 01
b0: 02 31 00 99 02 1b 3c 32 28 1e ff d9 b2 99 80 02
c0: 0f ff 00 80 03 ff 3c 32 28 1e ff d9 b2 99 80 03
d0: 0f ff 00 80 03 ff 3c 32 28 1e ff d9 b2 99 80 03
e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
f0: 00 00 00 00 00 00 37 ff 22 ff ff 02 ff ff ff ff

0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff 03 00 00 ff ff ff ff ff ff ff ff ff ff ff ff 10: 00 00 00 00 ff ff ff ff ff ff ff ff ff ff ff ff 20: d3 af ab 84 7a 8a 76 d6 c7 ff ff ff ff ff ff ff 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff 03 04 10 19 34 ff 60: 00 00 00 00 ff ff 02 74 00 00 ff 06 40 24 ff 00 70: ff ff 30 ff 1e ff 00 ff ff ff ff ff ff ff ff ff 80: ff ff 65 64 64 55 55 46 ff ff ff ff ff ff a8 ff 90: 00 0c 0c 00 15 ff 55 ff 44 22 ff aa 55 55 ff 0a
a0: 02 31 00 cc 01 bf 3c 28 14 0a ff cc 7f 4a 4a 01
b0: 02 1b 00 99 02 1b 3c 32 28 1e ff d9 b2 99 80 02
c0: 0f ff 00 80 03 ff 3c 32 28 1e ff d9 b2 99 80 03
d0: 0f ff 00 80 03 ff 3c 32 28 1e ff d9 b2 99 80 03
e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
f0: 00 00 00 00 00 00 37 ff 02 ff ff 02 ff ff ff ff

Hans Edgington

#14 lore raw
In reply to Rudolf Marek

Hi Hans,

Quoted 51 lines

I have been trying to find what some of the other fields mean this is what I have found out so far.

The f8 and f9 seem to contain the temperature at which the system shuts down.
5d-5e are the fintek ID, discovered by Jean.

Tried to find the fields for fan control and found the following:
When setting the fan control, was disabled the field 96 a3-a5 a7-a9 and ab-ae changed. A3 and ab contain the same value, which I set in the bios, and is the percentage of max rpm at which the cpu fan can operate. Seems that the fields a4 and a5 are the max rpm of the fan a4 is the MSB and a5 LSB. The fields get updated when a higher rpm is detected.
Ab is fast fan speed percnatge of max, ac field is the half fan speed, ad and ae are the lowest fanspeed setting which I can't change but are 30% of max.
A6, a7 and a8 are the temperatures at which the fanspeed will increase.

Haven't found out why field 96 changed maybe to say that fan temps and speeds have been set?

Below are two isadumps which I used two discover the changes, first one before setting fan control second is after.

0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff 03 00 00 ff ff ff ff ff ff ff ff ff ff ff ff 10: 00 00 00 00 ff ff ff ff ff ff ff ff ff ff ff ff 20: d3 af ab 83 7a 8a 76 d6 c3 ff ff ff ff ff ff ff 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff 03 04 10 19 34 ff 60: 00 00 00 00 ff ff 02 74 00 00 ff 06 40 24 ff 00 70: ff ff 2e ff 1f ff 00 ff ff ff ff ff ff ff ff ff 80: ff ff 65 64 64 55 55 46 ff ff ff ff ff ff a8 ff 90: 00 0c 0c 00 15 ff 57 ff 44 22 ff aa 55 55 ff 0a
a0: 01 d5 00 ff 02 23 3c 32 28 1e ff d9 b2 99 80 01
b0: 02 31 00 99 02 1b 3c 32 28 1e ff d9 b2 99 80 02
c0: 0f ff 00 80 03 ff 3c 32 28 1e ff d9 b2 99 80 03
d0: 0f ff 00 80 03 ff 3c 32 28 1e ff d9 b2 99 80 03
e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
f0: 00 00 00 00 00 00 37 ff 22 ff ff 02 ff ff ff ff

0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff 03 00 00 ff ff ff ff ff ff ff ff ff ff ff ff 10: 00 00 00 00 ff ff ff ff ff ff ff ff ff ff ff ff 20: d3 af ab 84 7a 8a 76 d6 c7 ff ff ff ff ff ff ff 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff 03 04 10 19 34 ff 60: 00 00 00 00 ff ff 02 74 00 00 ff 06 40 24 ff 00 70: ff ff 30 ff 1e ff 00 ff ff ff ff ff ff ff ff ff

Quoted 8 lines

80: ff ff 65 64 64 55 55 46 ff ff ff ff ff ff a8 ff 90: 00 0c 0c 00 15 ff 55 ff 44 22 ff aa 55 55 ff 0a
a0: 02 31 00 cc 01 bf 3c 28 14 0a ff cc 7f 4a 4a 01
b0: 02 1b 00 99 02 1b 3c 32 28 1e ff d9 b2 99 80 02
c0: 0f ff 00 80 03 ff 3c 32 28 1e ff d9 b2 99 80 03
d0: 0f ff 00 80 03 ff 3c 32 28 1e ff d9 b2 99 80 03
e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
f0: 00 00 00 00 00 00 37 ff 02 ff ff 02 ff ff ff ff

That kind of reverse-engineering work is interesting (even though in a perfect world we shouldn't have to do it), however I think it is more important to first implement a driver with the basic monitoring functions for which Epox provided the specifications to Age. It will also be easier for you to start with something which is documented, even lightly.

Note that I am unlikely to accept undocumented fan control functions in the mainline kernel anyway. I don't want to put the user's system at risk, and I don't want to encourage manufacturers to keep their documentation secret.

Thanks,

Signature · 1 line
Jean Delvare
#15 lore raw
In reply to Rudolf Marek
Quoted 5 lines · Jean Delvare

Note that I am unlikely to accept undocumented fan control functions in the mainline kernel anyway. I don't want to put the user's system at risk, and I don't want to encourage manufacturers to keep their documentation secret.

Define undocumented, if undocumented means the chip can do it, but the motherboard manufacturer didn't implement this in its drivers for other OS and BIOS, then I agree with you. However here the settings can be controlled through the bios, thus I believe we should allow modifying them from lm-sensors too (to the limits the bios allows and no more). This ofcourse assumes we manage to find out exactly how these work, to the point where we can say this setting in the BIOs matches that and that byte in X increment units. If it stays as vague as this setting influences those bytes, then I fully agree with you.

Regards,

Hans

#16 lore raw
In reply to Rudolf Marek

Hi Hans,

Quoted 6 lines
Quoted 4 lines · Jean Delvare

Note that I am unlikely to accept undocumented fan control functions in the mainline kernel anyway. I don't want to put the user's system at risk, and I don't want to encourage manufacturers to keep their documentation secret.

Quoted 9 lines

Define undocumented, if undocumented means the chip can do it, but the motherboard manufacturer didn't implement this in its drivers for other OS and BIOS, then I agree with you. However here the settings can be controlled through the bios, thus I believe we should allow modifying them from lm-sensors too (to the limits the bios allows and no more). This ofcourse assumes we manage to find out exactly how these work, to the point where we can say this setting in the BIOs matches that and that byte in X increment units. If it stays as vague as this setting influences those bytes, then I fully agree with you.

Hehe, I agree expected some reaction from you ;)

If we can use the BIOS to find out additional chip features, and these are straightforward enough for me to feel safe, why not. However Hans Edgington's investigation didn't really sound as "things are easy to understand" to me. Furthermore, I'm ready to take some (limited) risk with extra monitoring functions, but fan speed control is something different. If you get it wrong you can kill the hardware, so we can't just implement it and wait for users to report. We've seen enough odd things happen even with documented chips to imagine how bad it can get without documentation.

Put in short, I have two objectives:
* Make it safe for the users.
* No increase to my maintenance workload.
If I feel both objectives are fulfilled, I won't object.

Signature · 1 line
Jean Delvare