LM83 test results
Quoted 5 lines
Some good news.
I have successfully tried thelm_sensorswith the LM83 chip! I used a SBSP014 board that has an LM83 sensor attached to a ServerWorks CSB5 chipset's SMbus, on address 32h/33h.
This is a really great news. You're the messiah I've been waiting for for weeks now ;)
Quoted 1 line
Following is the sensor detect log and sensor output if interesting?
Of course it is. The detection works as intended. Just FMI, are you using 2.8.0 or CVS?
You seem to have many, many chips on your I2C bus, some of which aren't recognized by sensors-detect. I'd be interested in the following command output:
i2cdetect 0
Warning! This command, and others I could tell you I'm interested in, are possibly dangerous, especially if your hardware was made by IBM, or if your memory chips are from IBM. If your system is 3-5 years old, you should be careful too.
So, whenever I say "I'm interested in something" you are free to do it or not. I won't blame you if you don't. These are things I would do on my machines because they are not production servers so I don't really mind breaking them (I never breaked anything actually). But if your system has some real use and you couldn't afford replacing it or part of it, don't do the dangerous parts.
Back to the i2cdetect command above, I think it does approximately the same as sensors-detect does, so it should be OK if your system survived sensors-detect.
Quoted 9 lines
# sensors -s # prog/sensors/sensors lm83-i2c-0-19 Adapter: SMBus PIIX4 adapter at 0580 Algorithm: Non-I2C SMBus adapter temp1: +36?C (limit = +127?C) temp2: +35?C (limit = +127?C) temp3: +35?C (limit = +127?C) temp4: +35?C (limit = +127?C)
Is it a SMP system? Any idea what the four different temperatures are for? (A look at the BIOS setup screen could help.)
I'd be interested in the following command output:
i2cdump 0 0x19
This will dump all the LM83's registers so I can take a deeper look, and confirm or infirm some details that were not clear in the datasheet. This command isn't dangerous IMHO, since the chipset at 0x19 really has to be a LM83 or compatible.
Also, the LM83 driver is not completed. If you plan to use it and help me testing it, I'll finish it for you, and possibly port it to Linux 2.6 too.
Quoted 18 lines
eeprom-i2c-0-50
Adapter: SMBus PIIX4 adapter at 0580 Algorithm: Non-I2C SMBus adapter Memory type: SDRAM DIMM SPD Memory size (MB): 256eeprom-i2c-0-51
Adapter: SMBus PIIX4 adapter at 0580 Algorithm: Non-I2C SMBus adapter Memory type: SDRAM DIMM SPD Memory size (MB): 256eeprom-i2c-0-52
Adapter: SMBus PIIX4 adapter at 0580 Algorithm: Non-I2C SMBus adapter Memory type: SDRAM DIMM SPD Memory size (MB): 256
Quoted 5 lines
eeprom-i2c-0-53
Adapter: SMBus PIIX4 adapter at 0580 Algorithm: Non-I2C SMBus adapter Memory type: SDRAM DIMM SPD Memory size (MB): 256
Are these four entries correct? Do you have 4 SDRAM memory modules of 256MB each?
Quoted 8 lines
eeprom-i2c-0-54
Adapter: SMBus PIIX4 adapter at 0580
Algorithm: Non-I2C SMBus adaptereeprom-i2c-0-55
Adapter: SMBus PIIX4 adapter at 0580
Algorithm: Non-I2C SMBus adapter
Quoted 7 lines
eeprom-i2c-0-56
Adapter: SMBus PIIX4 adapter at 0580
Algorithm: Non-I2C SMBus adaptereeprom-i2c-0-57
Adapter: SMBus PIIX4 adapter at 0580
Algorithm: Non-I2C SMBus adapter
Could that be 4 other empty memory slots?
I'd suggest you do *not* play too much with eeproms on your system. i2c-piix4 + eeprom is the killing combo for IBM Thinkpads, and your system has a strange behavior there (for example your eeproms have invalid checksums, although the eeproms seem to contain correct values, at first sight). Since I'm insanely curious, I'd love to dig into that, but unless you explicitely ask me to do so, we won't.
Thanks a lot for your report!
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 3 lines
Could you download sensors-detect CVS and give it a try? (unload the lm83 driver first)
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/prog/detect/sensors-
detect
Ok output at the end of this mail.
Quoted 11 lines
Quoted 10 lines
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 10: XX XX XX XX XX XX XX XX XX 19 XX XX XX XX XX XX 20: 20 21 22 23 XX XX XX XX XX XX XX XX XX XX XX XX 30: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 40: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 50: 50 51 52 53 54 55 56 57 XX XX XX XX XX XX XX XX 60: XX XX XX XX 64 XX XX XX XX XX XX XX XX XX XX XX 70: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
Quoted 2 lines
There are many devices.
0x50to0x57are eeproms (real or fake, that I can't tell). There is a LM device at0x19. The devices from0x20to
0x23
How can you tell that they are EEPROM:s.?
Quoted 2 lines
are really mysterious. If you are curious, you could run "i2cdump 0
0x20" and see if it returns anything interesting.
# dump/i2cdump 0 0x20 No size specified (using byte-data access) WARNING! This program can confuse your I2C bus, cause data loss and worse! I will probe file /dev/i2c-0, address 0x20, mode byte You have five seconds to reconsider and press CTRL-C!
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
00: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f .???????????????
10: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f ????????????????
20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f !"#$%&'()*+,-./
30: 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f 0123456789:;<=>?
40: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f @ABCDEFGHIJKLMNO
50: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f PQRSTUVWXYZ[\]^_
60: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f `abcdefghijklmno
70: 70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f pqrstuvwxyz{|}~?
80: 80 81 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f ????????????????
90: 90 91 92 93 94 95 96 97 98 99 9a 9b 9c 9d 9e 9f ????????????????
a0: a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af ????????????????
b0: b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc bd be bf ????????????????
c0: c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf ????????????????
d0: d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc dd de df ????????????????
e0: e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef ????????????????
f0: f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc fd fe ff ???????????????.Quoted 6 lines
Quoted 4 lines
I have been told that "Sensor D1 reads the CPU die temperature, the local sensor reads the LM83's own temperature. Sensors D2 and D3 measure nothing."
Who told you that?
I got that from an e-mail originating from the manufacturer.
Quoted 1 line
Am I right guessing you have always seen temp2=temp3=temp4?
No that was just a lucky shot in my original e-mail!
Quoted 7 lines
Quoted 2 lines
# i2cdump 0 0x19I suspect it is a LM82, not a LM83. The LM82 is basically a cut down LM83 with a singe remote temperature instead of 3. Do you have any reason to believe you must have a real LM83, apart from the fact that sensors-detect told you so?
Yes from the manufacturer e-mail and now from the fact that I get different readings.
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
Are these four entries correct? Do you have 4 SDRAM memory modules of 256MB each?
Well most likely. I have 1GB of memory. If there are any empty
slots I
Quoted 4 lines
Quoted 1 line
do not know.
Don't you have the possibility to open the box and check? (You could check what your sensor chip really is BTW.)
No I can't (at least not easily). The machine is in a lab at work to which I dont have (physical) access to.
Quoted 11 lines
Could you try setting limits? Do:
echo 80 >
/proc/sys/dev/sensors/lm83-i2c-0-19/temp1echo 90 >/proc/sys/dev/sensors/lm83-i2c-0-19/temp2echo 100 >/proc/sys/dev/sensors/lm83-i2c-0-19/temp3echo 110 >/proc/sys/dev/sensors/lm83-i2c-0-19/temp4Wait a few seconds, and run "i2cdump 0
0x19b" again. I should be able to conclude.
sensors/sensors -A lm83-i2c-0-19
lm83-i2c-0-19
temp1: +36°C (limit = +80°C)
temp2: +35°C (limit = +90°C)
temp3: +34°C (limit = +100°C)
temp4: +34°C (limit = +110°C)
# sensors/sensors -A lm83-i2c-0-19 lm83-i2c-0-19 temp1: +36°C (limit = +80°C) temp2: +35°C (limit = +90°C) temp3: +41°C (limit = +100°C) temp4: +50°C (limit = +110°C)
# dump/i2cdump 0 0x19 b WARNING! This program can confuse your I2C bus, cause data loss and worse! I will probe file /dev/i2c-0, address 0x19, mode byte You have five seconds to reconsider and press CTRL-C!
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 00: 24 26 00 00 00 50 50 64 64 64 64 64 64 64 64 64 $&...PPddddddddd 10: 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 dddddddddddddddd 20: 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 dddddddddddddddd 30: 21 22 22 22 22 00 00 00 5a 5a 6e 6e 6e 6e 6e 6e !""""...ZZnnnnnn 40: 6e 6e 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f nn?????????????? 50: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f ???????????????? 60: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f ???????????????? 70: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f ???????????????? 80: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f ???????????????? 90: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f ???????????????? a0: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f ???????????????? b0: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f ???????????????? c0: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f ???????????????? d0: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f ???????????????? e0: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f ???????????????? f0: 00 85 18 35 26 26 26 00 38 25 24 24 24 24 01 03 .??5&&&.8%$$$$??
Quoted 4 lines
Quoted 1 line
Are the output from the commands I tried correct? seems strange!
Unless hexadecimal is your natural alphabet and you speak the sensor chip language every day, yes, seems strange. Normally, users don't
have
Quoted 1 line
to deal with this ;)
Ahh! I was looking for 35 not 0x23
Quoted 7 lines
Thanks a lot for reporting!
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
# sensors-detect This program will help you to determine which I2C/SMBus modules you need to load to use lm_sensors most effectively. You need to have done a `make install', issued a `depmod -a' and made sure `/etc/conf.modules' (or `/etc/modules.conf') contains the appropriate module path before you can use some functions of this utility. Read doc/modules for more information. Also, you need to be `root', or at least have access to the /dev/i2c[- /]* files for some things. You can use prog/mkdev/mkdev.sh to create these /dev files if you do not have them already. If you have patched your kernel and have some drivers built-in you can safely answer NO if asked to load some modules. In this case, things may seem a bit confusing, but they will still work.
IF THIS IS AN IBM THINKPAD, PRESS CTRL-C NOW!
IBM Thinkpads have a severely broken i2c/SMBus implementation, just
scanning
the bus will break your Thinkpad forever!
If this is a non-Thinkpad IBM, we still suggest you press CTRL+C. We
have
had users reporting system breakage on other IBM systems as well.
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):
[root@to106io1 detect]# ls -l sens*
-rw-r--r-- 1 root root 126191 Jul 31 20:42 sensors-detect -rwxrwxr-x 1 root root 120672 Jul 31 13:48 sensors-
detect.bak
[root@to106io1 detect]# chmod +x sensors-detect [root@to106io1 detect]# ./sensors-detect
This program will help you to determine which I2C/SMBus modules you
need to
load to use lm_sensors most effectively.
You need to have done a make install', issued a depmod -a' and made
sure
/etc/conf.modules' (or /etc/modules.conf') contains the appropriate module path before you can use some functions of this utility. Read doc/modules for more information.
Also, you need to be `root', or at least have access to the /dev/i2c[-
/]* files
for some things. You can use prog/mkdev/mkdev.sh to create these /dev
files
if you do not have them already.
If you have patched your kernel and have some drivers built-in you can safely answer NO if asked to load some modules. In this case, things
may
seem a bit confusing, but they will still work.
IF THIS IS AN IBM THINKPAD, PRESS CTRL-C NOW!
IBM Thinkpads have a severely broken i2c/SMBus implementation, just
scanning
the bus will break your Thinkpad forever!
If this is a non-Thinkpad IBM, we still suggest you press CTRL+C. We
have
had users reporting system breakage on other IBM systems as well.
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):
Probing for PCI bus adapters...
Use driver `i2c-piix4' for device 00:0f.0: ServerWorks CSB5 South Bridge Probe succesfully concluded.
We will now try to load each adapter module in turn.
Load `i2c-piix4' (say NO if built into your kernel)? (YES/no):
Module loaded succesfully.
Do you now want to be prompted for non-detectable adapters? (yes/NO):
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):
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).
Next adapter: SMBus PIIX4 adapter at 0580 (Non-I2C SMBus adapter) Do you want to scan it? (YES/no/selectively):
Client found at address 0x19
Probing for `Analog Devices ADM1021'... Failed!
Probing for Analog Devices ADM1021A/ADM1023'... Failed! Probing for Maxim MAX1617'... Success!
(confidence 3, driver `adm1021')
Probing for `Maxim MAX1617A'... Failed!
Probing for `TI THMC10'... Failed!
Probing for `National Semiconductor LM84'... Success!
(confidence 6, driver `adm1021')Probing for Genesys Logic GL523SM'... Failed! Probing for Onsemi MC1066'... Failed! Probing for National Semiconductor LM82'... Failed! Probing for National Semiconductor LM83'... Success!
(confidence 7, driver `lm83')
Client found at address 0x20
Probing for National Semiconductor LM78'... Failed! Probing for National Semiconductor LM78-J'... Failed! Probing for National Semiconductor LM79'... Failed! Probing for Winbond W83781D'... Failed! Probing for Winbond W83782D'... Failed! Probing for Winbond W83627HF'... Failed! Probing for ITE IT8705F / IT8712F / SiS 950'... Failed! Probing for Philips Semiconductors PCF8574'... Success!
(confidence 1, driver `pcf8574')
Client found at address 0x21
Probing for National Semiconductor LM78'... Failed! Probing for National Semiconductor LM78-J'... Failed! Probing for National Semiconductor LM79'... Failed! Probing for Winbond W83781D'... Failed! Probing for Winbond W83782D'... Failed! Probing for Winbond W83627HF'... Failed! Probing for ITE IT8705F / IT8712F / SiS 950'... Failed! Probing for Philips Semiconductors PCF8574'... Success!
(confidence 1, driver `pcf8574')
Client found at address 0x22
Probing for National Semiconductor LM78'... Failed! Probing for National Semiconductor LM78-J'... Failed! Probing for National Semiconductor LM79'... Failed! Probing for Winbond W83781D'... Failed! Probing for Winbond W83782D'... Failed! Probing for Winbond W83627HF'... Failed! Probing for ITE IT8705F / IT8712F / SiS 950'... Failed! Probing for Philips Semiconductors PCF8574'... Success!
(confidence 1, driver `pcf8574')
Client found at address 0x23
Probing for National Semiconductor LM78'... Failed! Probing for National Semiconductor LM78-J'... Failed! Probing for National Semiconductor LM79'... Failed! Probing for Winbond W83781D'... Failed! Probing for Winbond W83782D'... Failed! Probing for Winbond W83627HF'... Failed! Probing for ITE IT8705F / IT8712F / SiS 950'... Failed! Probing for Philips Semiconductors PCF8574'... Success!
(confidence 1, driver `pcf8574')
Client found at address 0x50
Probing for `Serial EEPROM'... Success!
(confidence 1, driver `eeprom')
Probing for `DDC monitor'... Failed!
Client found at address 0x51
Probing for `Serial EEPROM'... Success!
(confidence 1, driver `eeprom')
Client found at address 0x52
Probing for `Serial EEPROM'... Success!
(confidence 1, driver `eeprom')
Client found at address 0x53
Probing for `Serial EEPROM'... Success!
(confidence 1, driver `eeprom')
Client found at address 0x54
Probing for `Serial EEPROM'... Success!
(confidence 1, driver `eeprom')
Client found at address 0x55
Probing for `Serial EEPROM'... Success!
(confidence 1, driver `eeprom')
Client found at address 0x56
Probing for `Serial EEPROM'... Success!
(confidence 1, driver `eeprom')
Client found at address 0x57
Probing for `Serial EEPROM'... Success!
(confidence 1, driver `eeprom')
Client found at address 0x64
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. Do you want to scan the ISA bus? (YES/no): no
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. Do you want to scan for Super I/O sensors? (YES/no): no
Now follows a summary of the probes I have just done. Just press ENTER to continue:
Driver `adm1021' (may not be inserted):
Misdetects:
* Bus `SMBus PIIX4 adapter at 0580' (Non-I2C SMBus adapter)
Busdriver `i2c-piix4', I2C address 0x19
Chip `Maxim MAX1617' (confidence: 3) * Bus SMBus PIIX4 adapter at 0580' (Non-I2C SMBus adapter) Busdriver i2c-piix4', I2C address 0x19
Chip `National Semiconductor LM84' (confidence: 6)
Driver `lm83' (should be inserted):
Detects correctly:
* Bus SMBus PIIX4 adapter at 0580' (Non-I2C SMBus adapter) Busdriver i2c-piix4', I2C address 0x19
Chip `National Semiconductor LM83' (confidence: 7)
Driver `pcf8574' (should be inserted):
Detects correctly:
* Bus SMBus PIIX4 adapter at 0580' (Non-I2C SMBus adapter) Busdriver i2c-piix4', I2C address 0x20
Chip `Philips Semiconductors PCF8574' (confidence: 1)
* Bus SMBus PIIX4 adapter at 0580' (Non-I2C SMBus adapter) Busdriver i2c-piix4', I2C address 0x21
Chip `Philips Semiconductors PCF8574' (confidence: 1)
* Bus SMBus PIIX4 adapter at 0580' (Non-I2C SMBus adapter) Busdriver i2c-piix4', I2C address 0x22
Chip `Philips Semiconductors PCF8574' (confidence: 1)
* Bus SMBus PIIX4 adapter at 0580' (Non-I2C SMBus adapter) Busdriver i2c-piix4', I2C address 0x23
Chip `Philips Semiconductors PCF8574' (confidence: 1)
Driver `eeprom' (should be inserted):
Detects correctly:
* Bus SMBus PIIX4 adapter at 0580' (Non-I2C SMBus adapter) Busdriver i2c-piix4', I2C address 0x50
Chip `Serial EEPROM' (confidence: 1)
* Bus SMBus PIIX4 adapter at 0580' (Non-I2C SMBus adapter) Busdriver i2c-piix4', I2C address 0x51
Chip `Serial EEPROM' (confidence: 1)
* Bus SMBus PIIX4 adapter at 0580' (Non-I2C SMBus adapter) Busdriver i2c-piix4', I2C address 0x52
Chip `Serial EEPROM' (confidence: 1)
* Bus SMBus PIIX4 adapter at 0580' (Non-I2C SMBus adapter) Busdriver i2c-piix4', I2C address 0x53
Chip `Serial EEPROM' (confidence: 1)
* Bus SMBus PIIX4 adapter at 0580' (Non-I2C SMBus adapter) Busdriver i2c-piix4', I2C address 0x54
Chip `Serial EEPROM' (confidence: 1)
* Bus SMBus PIIX4 adapter at 0580' (Non-I2C SMBus adapter) Busdriver i2c-piix4', I2C address 0x55
Chip `Serial EEPROM' (confidence: 1)
* Bus SMBus PIIX4 adapter at 0580' (Non-I2C SMBus adapter) Busdriver i2c-piix4', I2C address 0x56
Chip `Serial EEPROM' (confidence: 1)
* Bus SMBus PIIX4 adapter at 0580' (Non-I2C SMBus adapter) Busdriver i2c-piix4', I2C address 0x57
Chip `Serial EEPROM' (confidence: 1)
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)? smbus
To make the sensors modules behave correctly, add these lines to either /etc/modules.conf or /etc/conf.modules:
#----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-piix4
# I2C chip drivers
modprobe lm83
modprobe pcf8574
modprobe eeprom
# 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.
Do you want to generate /etc/sysconfig/lm_sensors? (YES/no): no
Quoted 2 lines
2.8.0 from the web page.
Could you download sensors-detect CVS and give it a try? (unload the lm83 driver first)
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/prog/detect/sensors-detect
Quoted 9 lines
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 10: XX XX XX XX XX XX XX XX XX 19 XX XX XX XX XX XX 20: 20 21 22 23 XX XX XX XX XX XX XX XX XX XX XX XX 30: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 40: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 50: 50 51 52 53 54 55 56 57 XX XX XX XX XX XX XX XX 60: XX XX XX XX 64 XX XX XX XX XX XX XX XX XX XX XX 70: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
There are many devices. 0x50 to 0x57 are eeproms (real or fake, that I can't tell). There is a LM device at 0x19. The devices from 0x20 to 0x23 are really mysterious. If you are curious, you could run "i2cdump 0 0x20" and see if it returns anything interesting. Warning! We don't have the slightest idea on what this device can be, so running this command is potentially dangerous. Do as you want, as I explained in the previous e-mail.
Quoted 3 lines
I have been told that "Sensor D1 reads the CPU die temperature, the local sensor reads the LM83's own temperature. Sensors D2 and D3 measure nothing."
Who told you that? FYI, the matchings are:
temp1 local temp2 D1 temp3 D2 temp4 D3
Temp1 has to be the LMXX own temperature, temp2-4 can be anything remote or nothing at all.
Quoted 2 lines
In my testing I have seen that temp1 is fairly stable 36-37. The other ones vary between 33-45 mostly.
Am I right guessing you have always seen temp2=temp3=temp4?
Quoted 1 line
# i2cdump 0 0x19
I suspect it is a LM82, not a LM83. The LM82 is basically a cut down LM83 with a singe remote temperature instead of 3. Do you have any reason to believe you must have a real LM83, apart from the fact that sensors-detect told you so?
Quoted 4 lines
Quoted 2 lines
Are these four entries correct? Do you have 4 SDRAM memory modules of 256MB each?
Well most likely. I have 1GB of memory. If there are any empty slots I do not know.
Don't you have the possibility to open the box and check? (You could check what your sensor chip really is BTW.)
Quoted 1 line
Any other things to test?
Yes, I'd like to verify my theory that your chip is a LM82.
Could you try setting limits? Do:
echo 80 > /proc/sys/dev/sensors/lm83-i2c-0-19/temp1 echo 90 > /proc/sys/dev/sensors/lm83-i2c-0-19/temp2 echo 100 > /proc/sys/dev/sensors/lm83-i2c-0-19/temp3 echo 110 > /proc/sys/dev/sensors/lm83-i2c-0-19/temp4
Wait a few seconds, and run "i2cdump 0 0x19 b" again. I should be able to conclude.
Quoted 1 line
Are the output from the commands I tried correct? seems strange!
Unless hexadecimal is your natural alphabet and you speak the sensor chip language every day, yes, seems strange. Normally, users don't have to deal with this ;)
Thanks a lot for reporting!
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 6 lines
Quoted 4 lines
There are many devices.
0x50to0x57are eeproms (real or fake, that I can't tell).How can you tell that they are EEPROM:s.?
I can't be sure, but chips found at this address are usually EEPROMs (and that's what sensors-detect think it is). The only other device known to be possibly found at this address are EDID data, but it is only found on video card i2c busses. And the four first ones seem to be real SPD EEPROMs found on your memory modules, although the checksums are bad. You may want to give a try to decode-dimms in prog/eeprom.
I don't know about the four other EEPROMS, and I wouldn't play with them for safety reasons. It's unlikely you'll find anything useful there anyway, so it's not worth the risk.
Quoted 4 lines
Quoted 3 lines
are really mysterious. If you are curious, you could run "i2cdump 0
0x20" and see if it returns anything interesting.# dump/i2cdump 0 0x20
Nothing useful there, it doesn't seem to be a real device. I've never seen such a thing before.
Maybe you could try 0x21, 0x22 and 0x23 too, but they are likely to behave the very same.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
I have been told that "Sensor D1 reads the CPU die temperature, the local sensor reads the LM83's own temperature. Sensors D2 and D3 measure nothing."
Who told you that?
I got that from an e-mail originating from the manufacturer.
You managed to buy a product from a company with a real support? Congratulations ;) Who are they? I couldn't find any reference using Google.
Quoted 3 lines
Quoted 1 line
Am I right guessing you have always seen temp2=temp3=temp4?
No that was just a lucky shot in my original e-mail!
OK.
Quoted 6 lines
Quoted 3 lines
Do you have any
reason to believe you must have a real LM83, apart from the fact that sensors-detect told you so?Yes from the manufacturer e-mail and now from the fact that I get different readings.
You convinced me :)
Quoted 5 lines
Quoted 2 lines
Don't you have the possibility to open the box and check? (You could check what your sensor chip really is BTW.)
No I can't (at least not easily). The machine is in a lab at work to which I dont have (physical) access to.
OK, no problem.
Quoted 6 lines
# sensors/sensors -A lm83-i2c-0-19 lm83-i2c-0-19 temp1: +36?C (limit = +80?C) temp2: +35?C (limit = +90?C) temp3: +41?C (limit = +100?C) temp4: +50?C (limit = +110?C)
OK, it has to be a LM83 then. But I'd say the support guy was wrong, D1 can't be the CPU temp, it has to be D2 or D3. And all channels are used. Maybe D1 and D2 are for the north and south bridges? Just guessing. If you can figure out, let us know.
Quoted 11 lines
# dump/i2cdump 0 0x19 b
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 24 26 00 00 00 50 50 64 64 64 64 64 64 64 64 64
10: 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64
20: 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64
30: 21 22 22 22 22 00 00 00 5a 5a 6e 6e 6e 6e 6e 6e
40: 6e 6e 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
50: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
60: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
70: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f Quoted 8 lines
80: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 90: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f a0: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f b0: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f c0: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f d0: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f e0: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f f0: 00 85 18 35 26 26 26 00 38 25 24 24 24 24 01 03
That's very interesting. See how the limits appear not only in one, but many registers. I had never seen this behavior. Could be used for detection purpose (although we already have a reliable detection mechanism now, thanks to you).
The last byte, 0x03, has to be the device ID for the LM83. I have been asking National Semiconductors for this value, because it is missing from the LM83 datasheet. They were *unable* to tell me. They designed and produced the chip, and couldn't tell the ID. Wonderful, isn't it? And there you come, and you succeed where they failed. My messiah ;)
Quoted 1 line
Ahh! I was looking for 35 not
0x23
And this was an easy one. Sometimes conversions are much more complex than that!
Quoted 2 lines
Probing for `National Semiconductor LM83'... Success!
(confidence 7, driver `lm83')
I'll now be able to raise the confidence level to 8, now that I know the device ID :)
Thanks a lot.
Next steps:
1* I'll update the detection procedure for the LM83.
2* You can checkout lm_sensors CVS and give it a try. I've improved the lm83 driver there (smaller and faster).
3* I'll add the missing functionalities to the driver within a few days. When it's ready, I'll commit it to CVS and ask you to test it.
Thanks a lot for your great help!
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Jean Delvare wrote:
..
Quoted 21 lines
Quoted 11 lines
# dump/i2cdump 0 0x19 b 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: 24 26 00 00 00 50 50 64 64 64 64 64 64 64 64 64 10: 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 20: 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 30: 21 22 22 22 22 00 00 00 5a 5a 6e 6e 6e 6e 6e 6e 40: 6e 6e 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 50: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 60: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 70: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7fQuoted 8 lines
80: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 90: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f a0: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f b0: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f c0: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f d0: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f e0: 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f f0: 00 85 18 35 26 26 26 00 38 25 24 24 24 24 01 03
Quoted 4 lines
That's very interesting. See how the limits appear not only in one, but many registers. I had never seen this behavior. Could be used for detection purpose (although we already have a reliable detection mechanism now, thanks to you).
what you're seeing is a relatively common behavior where, when you read an invalid location, it returns the value from the last valid read.
So it depends on the order you read things.
I would be wary of using this for detection purposes.
Quoted 9 lines
Quoted 4 lines
That's very interesting. See how the limits appear not only in one, but many registers. I had never seen this behavior. Could be used for detection purpose (although we already have a reliable detection mechanism now, thanks to you).
what you're seeing is a relatively common behavior where, when you read an invalid location, it returns the value from the last valid read.
So it depends on the order you read things.
Yes, I came to the same conclusion. And that's logical after all.
Quoted 1 line
I would be wary of using this for detection purposes.
Sure, I wouldn't use that as a primary detection method. If we have a "normal" method (manufacturer and device IDs, unused configuration/status bits) it's far better. But if we even have a chip that has no clean detection method and behaves like that, we still could make use of it in some way. That's not very different from our LM75 or SAA1064 detection methods, for which we rely on the fact that not all (if any) address bits are valid for the chip.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/