Skip to contentSkip to conversation

sensors -s & adm1027

DISCUSSION Mikhail Kuzminsky 2 participants 7 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

1) We have: i2c - 2.8.0, lm_sensors - 2.8.0 (RPM's from SuSE Linux 9.0
for Opteron);
kernel: 2.4.21-102-smp (x86_64)
Motherboard: Tyan S2880; /etc/sensors.conf from Tyan
Website

i2c-amd756 module was wrong in both binary and source RPM's; modprobe for it says "init_module: no such device".

All other components, including w83781d module w/w83627hf chip works normally and gives the corresponding sensors results. We want to use lm_sensors for fan's speeds and temperatures only.

2) I added the string w/pci_device_id to i2c-amd756.c according ticket# 1481 (and patch final strings starting on line 400 according Daniel Rune Jensen letter form 11 Dec 2003). Now all the modules was loaded successfully:
i2c-core
i2c-dev
i2c-proc
i2c-isa
i2c-amd8111
i2c-amd756
lm85
lm75
w83781d
eeprom

sensors-detect works normally. But sensors -s says "adm1027-i2c-1-2d can't read or write". It looks something like Ticket#1682 (partially).

But issuing of sensors command gives me reasonable results, in particular for adm1027 chip (attached below).
Sorry, how I may correct the situation w/sensors -s ?
(I prefer not to going to more recent i2c/lm_sensors releases because it's necessary to patch 64-bit SuSE kernel :-().

Yours
Mikhail Kuzminsky
Zelinsky Institute of Organic Chemistry
Moscow

results of sensors run are:

adm1027-i2c-1-2d

Adapter: SMBus AMD75x adapter at 50e0
Algorithm: Non-I2C SMBus adapter
VDD 2.5V:  +2.484 V  (min =  +0.00 V, max =  +3.32 V)
DDR VTT:   +1.251 V  (min =  +0.00 V, max =  +2.99 V)
3VSB:      +3.227 V  (min =  +0.00 V, max =  +4.38 V)
+5 V:     +5.150 V  (min =  +0.00 V, max =  +6.64 V)
+12V:     +12.234 V  (min =  +0.00 V, max = +15.94 V)
chs1 fan:     0 RPM  (min =    0 RPM)
chs2 fan:     0 RPM  (min =    0 RPM)
chs3 fan:     0 RPM  (min =    0 RPM)

CPU2 Temp:+45.25?C (min = -128?C, max = +127?C)
CPU1 Temp:+44.75?C (min = -127?C, max = +127?C)

lm75-i2c-1-49
Adapter: SMBus AMD75x adapter at 50e0
Algorithm: Non-I2C SMBus adapter
temp: +27.5?C (limit = +52.0?C, hysteresis = +47.0?C)

lm75-i2c-1-4a
Adapter: SMBus AMD75x adapter at 50e0
Algorithm: Non-I2C SMBus adapter
temp: +29.5?C (limit = +52.0?C, hysteresis = +47.0?C)

eeprom-i2c-1-52
Adapter: SMBus AMD75x adapter at 50e0
Algorithm: Non-I2C SMBus adapter
Machine name:
Serial number:

eeprom-i2c-1-53

Adapter: SMBus AMD75x adapter at 50e0
Algorithm: Non-I2C SMBus adapter
Memory type:            DDR SDRAM DIMM SPD
Memory size (MB):       512

eeprom-i2c-1-54

Adapter: SMBus AMD75x adapter at 50e0
Algorithm: Non-I2C SMBus adapter
Memory type:            DDR SDRAM DIMM SPD
Memory size (MB):       512

eeprom-i2c-1-55

Adapter: SMBus AMD75x adapter at 50e0
Algorithm: Non-I2C SMBus adapter
Memory type:            DDR SDRAM DIMM SPD
Memory size (MB):       512

w83627hf-isa-0290

Adapter: ISA adapter
Algorithm: ISA algorithm
VCore 2:   +1.52 V  (min =  +1.42 V, max =  +1.56 V)
VCore 1:   +1.55 V  (min =  +1.42 V, max =  +1.56 V)       ALARM
+3.3V:     +3.36 V  (min =  +3.13 V, max =  +3.45 V)
DDR term:  +1.21 V  (min =  +1.08 V, max =  +1.32 V)
+2.5V:     +2.46 V  (min =  +2.75 V, max =  +2.25 V)
CPU H.T.:  +1.20 V  (min =  +1.26 V, max =  +1.13 V)
CPU2 Fan: 3276 RPM  (min = 3000 RPM, div = 2)
CPU1 Fan: 3260 RPM  (min = 3000 RPM, div = 2)
chs4 Fan:    0 RPM  (min = 3000 RPM, div = 2)
VRM1 temp:   +31?C  (limit =  +40?C, hysteresis =  +37?C) sensor = 

3904 transistor
VRM2 temp: +29.5?C (limit = +52?C, hysteresis = +47?C) sensor = 3904 transistor
VRM3 temp: +32.0?C (limit = +52?C, hysteresis = +47?C) sensor = 3904 transistor
alarms: Chassis intrusion detection ALARM
beep_enable:
Sound alarm disabled

#1 lore raw
Quoted 3 lines

sensors-detect works normally. But sensors -s says "adm1027-i2c-1-2d can't read or write". It looks something like Ticket#1682 (partially).

Please provide the output of "strace sensors -s".

Thanks.

Signature · 2 lines
Jean "Khali" Delvare
http://khali.linux-fr.org/
#2 lore raw
In reply to Mikhail Kuzminsky

In message from Jean Delvare <[email protected]> (Wed, 4 Aug 2004 20:46:43 +0200):

Quoted 5 lines
Quoted 3 lines

sensors-detect works normally. But sensors -s says "adm1027-i2c-1-2d can't read or write". It looks something like Ticket#1682 (partially).

Please provide the output of "strace sensors -s".

Thanks for your reply !
Output from sensors -s follows. libsensors libraries are placed under /usr/lib64

Yours
Mikhail

execve("/usr/bin/sensors", ["sensors", "-s"], [/* 66 vars */]) = 0 uname({sys="Linux", node="c5ws1", ...}) = 0
brk(0) = 0x519f48
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2a9556b000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory) open("/opt/globus/lib/tls/x86_64/libsensors.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat("/opt/globus/lib/tls/x86_64", 0x7fbfffe860) = -1 ENOENT (No such file or directory) open("/opt/globus/lib/tls/libsensors.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/opt/globus/lib/tls", 0x7fbfffe860) = -1 ENOENT (No such file or directory)
open("/opt/globus/lib/x86_64/libsensors.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/opt/globus/lib/x86_64", 0x7fbfffe860) = -1 ENOENT (No such file or directory)
open("/opt/globus/lib/libsensors.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/opt/globus/lib", {st_mode=S_IFDIR|0755, st_size�92, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size1115, ...}) = 0 mmap(NULL, 111115, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a9556c000
close(3) = 0
open("/usr/lib64/libsensors.so.2", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\306\0\0"...,
640) = 640
fstat(3, {st_mode=S_IFREG|0755, st_size5011, ...}) = 0 mmap(NULL, 1269416, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x2a9566d000
mprotect(0x2a95681000, 1187496, PROT_NONE) = 0 mmap(0x2a9576d000, 151552, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2a9576d000 mmap(0x2a95792000, 69288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2a95792000
close(3) = 0
open("/opt/globus/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib64/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\335\1"...,
640) = 640
fstat(3, {st_mode=S_IFREG|0755, st_size34814, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2a95588000
mmap(NULL, 2365888, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x2a957a3000
mprotect(0x2a958c7000, 1169856, PROT_NONE) = 0 mmap(0x2a959a3000, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x100000) = 0x2a959a3000 mmap(0x2a959e1000, 14784, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2a959e1000
close(3) = 0
open("/opt/globus/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib64/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@A\0\0\0"...,
640) = 640
fstat(3, {st_mode=S_IFREG|0755, st_sizeD1693, ...}) = 0 mmap(NULL, 1416488, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x2a959e5000
mprotect(0x2a95a3b000, 1064232, PROT_NONE) = 0 mmap(0x2a95ae5000, 368640, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2a95ae5000

close(3)                                = 0
munmap(0x2a9556c000, 111115)            = 0
brk(0)                                  = 0x519f48
brk(0x53af48)                           = 0x53af48
brk(0)                                  = 0x53af48
brk(0x53b000)                           = 0x53b000
open("/etc/sensors.conf", O_RDONLY)     = 3

_sysctl({{CTL_DEV, 2, 1}, 3, 0x2a95791d40, 320, (nil), 0}) = 0
open("/proc/bus/i2c", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2a9556c000
read(4, "i2c-0\tsmbus \tSMBus2 AMD8111 a"..., 4096) = 247

read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x2a9556c000, 4096)              = 0

ioctl(3, SNDCTL_TMR_TIMEBASE, 0x7fbfffd9d0) = -1 ENOTTY (Inappropriate ioctl for device)
fstat(3, {st_mode=S_IFREG|0644, st_size$40, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2a9556c000
read(3, "#########\n# Sensors configurati"..., 8192) = 2440
read(3, "", 4096) = 0
read(3, "", 8192) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE, 0x7fbfffd9b0) = -1 ENOTTY (Inappropriate ioctl for device)
write(2, "adm1027-i2c-1-2d: Can\'t read or "..., 38adm1027-i2c-1-2d:
Can't read or write
) = 38
_sysctl({{CTL_DEV, 2, 107, 3e8}, 4, 0x2a95791d40, 24, (nil), 0}) = 0 _sysctl({{CTL_DEV, 2, 107, 3e8}, 4, (nil), 4294967295, 0x2a95791d40, 8}) = 0
_sysctl({{CTL_DEV, 2, 107, 3e8}, 4, 0x2a95791d40, 24, (nil), 0}) = 0 _sysctl({{CTL_DEV, 2, 107, 3e8}, 4, (nil), 4294967295, 0x2a95791d40, 16}) = 0
_sysctl({{CTL_DEV, 2, 107, 3e9}, 4, 0x2a95791d40, 24, (nil), 0}) = 0 _sysctl({{CTL_DEV, 2, 107, 3e9}, 4, (nil), 4294967295, 0x2a95791d40, 8}) = 0
_sysctl({{CTL_DEV, 2, 107, 3e9}, 4, 0x2a95791d40, 24, (nil), 0}) = 0 _sysctl({{CTL_DEV, 2, 107, 3e9}, 4, (nil), 4294967295, 0x2a95791d40, 16}) = 0
_sysctl({{CTL_DEV, 2, 107, 3ea}, 4, 0x2a95791d40, 24, (nil), 0}) = 0 _sysctl({{CTL_DEV, 2, 107, 3ea}, 4, (nil), 4294967295, 0x2a95791d40, 8}) = 0
_sysctl({{CTL_DEV, 2, 107, 3ea}, 4, 0x2a95791d40, 24, (nil), 0}) = 0 _sysctl({{CTL_DEV, 2, 107, 3ea}, 4, (nil), 4294967295, 0x2a95791d40, 16}) = 0
_sysctl({{CTL_DEV, 2, 107, 3ec}, 4, 0x2a95791d40, 24, (nil), 0}) = 0 _sysctl({{CTL_DEV, 2, 107, 3ec}, 4, (nil), 4294967295, 0x2a95791d40, 8}) = 0
_sysctl({{CTL_DEV, 2, 107, 3ec}, 4, 0x2a95791d40, 24, (nil), 0}) = 0 _sysctl({{CTL_DEV, 2, 107, 3ec}, 4, (nil), 4294967295, 0x2a95791d40, 16}) = 0
_sysctl({{CTL_DEV, 2, 107, 3ed}, 4, 0x2a95791d40, 24, (nil), 0}) = 0 _sysctl({{CTL_DEV, 2, 107, 3ed}, 4, (nil), 4294967295, 0x2a95791d40, 16}) = 0
_sysctl({{CTL_DEV, 2, 107, 3ed}, 4, 0x2a95791d40, 24, (nil), 0}) = 0 _sysctl({{CTL_DEV, 2, 107, 3ed}, 4, (nil), 4294967295, 0x2a95791d40, 8}) = 0
_sysctl({{CTL_DEV, 2, 107, 3ee}, 4, 0x2a95791d40, 24, (nil), 0}) = 0 _sysctl({{CTL_DEV, 2, 107, 3ee}, 4, (nil), 4294967295, 0x2a95791d40, 16}) = 0
_sysctl({{CTL_DEV, 2, 107, 3ee}, 4, 0x2a95791d40, 24, (nil), 0}) = 0 _sysctl({{CTL_DEV, 2, 107, 3ee}, 4, (nil), 4294967295, 0x2a95791d40, 8}) = 0
_sysctl({{CTL_DEV, 2, 107, 5dd}, 4, 0x2a95791d40, 8, (nil), 0}) = 0 _sysctl({{CTL_DEV, 2, 107, 5dd}, 4, (nil), 4294967295, 0x2a95791d40, 8}) = 0
_sysctl({{CTL_DEV, 2, 107, 5de}, 4, 0x2a95791d40, 8, (nil), 0}) = 0 _sysctl({{CTL_DEV, 2, 107, 5de}, 4, (nil), 4294967295, 0x2a95791d40, 8}) = 0
_sysctl({{CTL_DEV, 2, 107, 5df}, 4, 0x2a95791d40, 8, (nil), 0}) = 0 _sysctl({{CTL_DEV, 2, 107, 5df}, 4, (nil), 4294967295, 0x2a95791d40, 8}) = 0
_sysctl({{CTL_DEV, 2, 107, 4b0}, 4, 0x2a95791d40, 24, (nil), 0}) = 0 _sysctl({{CTL_DEV, 2, 107, 4b0}, 4, (nil), 4294967295, 0x2a95791d40, 8}) = 0
_sysctl({{CTL_DEV, 2, 107, 4b0}, 4, 0x2a95791d40, 24, (nil), 0}) = 0 _sysctl({{CTL_DEV, 2, 107, 4b0}, 4, (nil), 4294967295, 0x2a95791d40, 16}) = 0
_sysctl({{CTL_DEV, 2, 107, 4b1}, 4, 0x2a95791d40, 24, (nil), 0}) = 0 _sysctl({{CTL_DEV, 2, 107, 4b1}, 4, (nil), 4294967295, 0x2a95791d40, 8}) = 0
_sysctl({{CTL_DEV, 2, 107, 4b1}, 4, 0x2a95791d40, 24, (nil), 0}) = 0 _sysctl({{CTL_DEV, 2, 107, 4b1}, 4, (nil), 4294967295, 0x2a95791d40, 16}) = 0
_sysctl({{CTL_DEV, 2, 107, 4b2}, 4, 0x2a95791d40, 24, (nil), 0}) = 0 _sysctl({{CTL_DEV, 2, 107, 4b2}, 4, (nil), 4294967295, 0x2a95791d40, 8}) = 0
_sysctl({{CTL_DEV, 2, 107, 4b2}, 4, 0x2a95791d40, 24, (nil), 0}) = 0 _sysctl({{CTL_DEV, 2, 107, 4b2}, 4, (nil), 4294967295, 0x2a95791d40, 16}) = 0
exit_group(0) = ?

#3 lore raw
In reply to Mikhail Kuzminsky
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

sensors-detect works normally. But sensors -s says "adm1027-i2c-1-2d can't read or write". It looks something like Ticket#1682 (partially).

OK, I think you simply have a bogus line in /etc/sensors.conf. You're most likely trying to "set" a read-only feature like "vid" or any measured value. That was the case for ticket #1682 (which I updated).

If you can't find out the faulty line, just post the adm1027 section here and we'll try to help.

Hint: according to the strace output, I'd say that the first "set" line of the adm1027 section is the faulty one.

Signature · 2 lines
Jean "Khali" Delvare
http://khali.linux-fr.org/
#4 lore raw
In reply to Mikhail Kuzminsky
Quoted 19 lines

Sorry, you overestimated me :-) Is the last line in this part of conf-file (follows) wrong ?

Yours
Mikhail

chip "adm1027-*"
ignore fan4
ignore pwm1
ignore pwm2
ignore pwm3
ignore temp2
ignore vid
label in0 "VDD 2.5V"
label in1 "DDR VTT"
label in2 "3VSB"
label in3 "+5 V"
label in4 "+12V"
label fan1 "chs1 fan"

Quoted 8 lines

label fan2 "chs2 fan"
label fan3 "chs3 fan"
label pwm1 "pwm1 fan"
label pwm2 "pwm2 fan"
label pwm3 "pwm3 fan"
label temp3 "CPU1 Temp"
label temp1 "CPU2 Temp"
set vid 2.4

Yes it is. As I said in ticket #1682. You cannot set the vid value by yourself. Instead, you can select how VID pins are converted to a voltage by changing the VRM version.

Anyway, you don't seem to display nor use the vid value anyway, so you can simply delete the line from your configuration file and everything should be fine.

Signature · 2 lines
Jean "Khali" Delvare
http://khali.linux-fr.org/
#5 lore raw
In reply to Mikhail Kuzminsky

In message from Jean Delvare <[email protected]> (Fri, 13 Aug 2004 20:04:11 +0200):

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

sensors-detect works normally. But sensors -s says "adm1027-i2c-1-2d can't read or write". It looks something like Ticket#1682 (partially).

OK, I think you simply have a bogus line in /etc/sensors.conf. You're most likely trying to "set" a read-only feature like "vid" or any measured value. That was the case for ticket #1682 (which I updated).

Quoted 6 lines

If you can't find out the faulty line, just post the adm1027 section here and we'll try to help.

Hint: according to the strace output, I'd say that the first "set" line
of the adm1027 section is the faulty one.

Sorry, you overestimated me :-) Is the last line in this part of conf-file (follows) wrong ?

Yours
Mikhail

chip "adm1027-*"
ignore fan4
ignore pwm1
ignore pwm2
ignore pwm3
ignore temp2
ignore vid
label in0 "VDD 2.5V"
label in1 "DDR VTT"
label in2 "3VSB"
label in3 "+5 V"
label in4 "+12V"
label fan1 "chs1 fan"
label fan2 "chs2 fan"
label fan3 "chs3 fan"
label pwm1 "pwm1 fan"
label pwm2 "pwm2 fan"
label pwm3 "pwm3 fan"
label temp3 "CPU1 Temp"
label temp1 "CPU2 Temp"
set vid 2.4

#6 lore raw
In reply to Mikhail Kuzminsky

In message from Jean Delvare <[email protected]> (Fri, 13 Aug 2004 20:57:50 +0200):

Quoted 32 lines
Quoted 19 lines

Sorry, you overestimated me :-) Is the last line in this part of conf-file (follows) wrong ?

Yours
Mikhail

chip "adm1027-*"
ignore fan4
ignore pwm1
ignore pwm2
ignore pwm3
ignore temp2
ignore vid
label in0 "VDD 2.5V"
label in1 "DDR VTT"
label in2 "3VSB"
label in3 "+5 V"
label in4 "+12V"
label fan1 "chs1 fan"

Quoted 8 lines

label fan2 "chs2 fan"
label fan3 "chs3 fan"
label pwm1 "pwm1 fan"
label pwm2 "pwm2 fan"
label pwm3 "pwm3 fan"
label temp3 "CPU1 Temp"
label temp1 "CPU2 Temp"
set vid 2.4

Yes it is. As I said in ticket #1682. You cannot set the vid value by yourself. Instead, you can select how VID pins are converted to a voltage by changing the VRM version.

Quoted 9 lines

Anyway, you don't seem to display nor use the vid value anyway, so you
can simply delete the line from your configuration file and everything
should be fine.

Signature · 2 lines
Jean "Khali" Delvare
http://khali.linux-fr.org/

Thanks: now it works !

Yours
Mikhail