Skip to contentSkip to conversation

Sensors broke between 2.6.16.16 and 2.6.16.17

PATCH Jani Aho 2 participants 3 messages Aug 12, 2006 – Aug 13, 2006

lore
Share & tools
lore

Jani Aho

author
#0 lore raw

Hi

The sensors on my motherboard stopped working between 2.6.16.16 and 2.6.16.17. The latest kernel version I have tried is 2.6.17.8 and it still has the same problem.

The motherboard is an ASUS P4PE and it uses the asb100 and i2c-i801 modules to get sensor information.

A diff in /sys between a bad (2.6.17.8) and a good (2.6.16.16) kernel gives:

i2c.good 2006-08-12 18:50:44.000000000 +0200 renamed from i2c.bad 2006-08-12 18:42:57.000000000 +0200 +88 -0
@@ -37,9 +37,15 @@
 /sys/module/i2c_core/sections/.text
 /sys/module/i2c_core/refcnt
 /sys/class/i2c-adapter
+/sys/class/i2c-adapter/i2c-0
+/sys/class/i2c-adapter/i2c-0/device
+/sys/class/i2c-adapter/i2c-0/uevent
 /sys/bus/i2c
 /sys/bus/i2c/drivers
 /sys/bus/i2c/drivers/asb100
+/sys/bus/i2c/drivers/asb100/0-0048
+/sys/bus/i2c/drivers/asb100/0-0049
+/sys/bus/i2c/drivers/asb100/0-002d
 /sys/bus/i2c/drivers/asb100/bind
 /sys/bus/i2c/drivers/asb100/unbind
 /sys/bus/i2c/drivers/asb100/module
@@ -48,3 +54,85 @@
 /sys/bus/i2c/drivers/i2c_adapter/unbind
 /sys/bus/i2c/drivers/i2c_adapter/module
 /sys/bus/i2c/devices
+/sys/bus/i2c/devices/0-0048
+/sys/bus/i2c/devices/0-0049
+/sys/bus/i2c/devices/0-002d
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0048
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0048/name
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0048/bus
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0048/driver
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0048/power
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0048/power/wakeup
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0048/power/state
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0048/uevent
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0049
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0049/name
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0049/bus
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0049/driver
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0049/power
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0049/power/wakeup
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0049/power/state
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0049/uevent
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/pwm1_enable
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/pwm1
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/alarms
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/vrm
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/cpu0_vid
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp4_max_hyst
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp4_max
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp4_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp3_max_hyst
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp3_max
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp3_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp2_max_hyst
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp2_max
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp2_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp1_max_hyst
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp1_max
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp1_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/fan3_div
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/fan3_min
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/fan3_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/fan2_div
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/fan2_min
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/fan2_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/fan1_div
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/fan1_min
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/fan1_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in6_max
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in6_min
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in6_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in5_max
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in5_min
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in5_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in4_max
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in4_min
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in4_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in3_max
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in3_min
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in3_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in2_max
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in2_min
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in2_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in1_max
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in1_min
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in1_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in0_max
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in0_min
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in0_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/hwmon:hwmon0
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/name
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/bus
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/driver
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/power
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/power/wakeup
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/power/state
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/uevent
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/i2c-adapter:i2c-0
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/name
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/power
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/power/wakeup
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/power/state
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/uevent

I run an updated Debian Sid distro.

Thanks,
Jani

#1 lore raw
Quoted 10 lines · Jani Aho

Hi

The sensors on my motherboard stopped working between 2.6.16.16 and 2.6.16.17. The latest kernel version I have tried is 2.6.17.8 and it still has the same problem.

The motherboard is an ASUS P4PE and it uses the asb100 and i2c-i801 modules to get sensor information.

A diff in /sys between a bad (2.6.17.8) and a good (2.6.16.16) kernel gives:

And is there any diff in dmesgs of those 2 kernels?

Quoted 105 lines
i2c.good 2006-08-12 18:50:44.000000000 +0200 renamed from i2c.bad 2006-08-12 18:42:57.000000000 +0200 +88 -0
@@ -37,9 +37,15 @@
 /sys/module/i2c_core/sections/.text
 /sys/module/i2c_core/refcnt
 /sys/class/i2c-adapter
+/sys/class/i2c-adapter/i2c-0
+/sys/class/i2c-adapter/i2c-0/device
+/sys/class/i2c-adapter/i2c-0/uevent
 /sys/bus/i2c
 /sys/bus/i2c/drivers
 /sys/bus/i2c/drivers/asb100
+/sys/bus/i2c/drivers/asb100/0-0048
+/sys/bus/i2c/drivers/asb100/0-0049
+/sys/bus/i2c/drivers/asb100/0-002d
 /sys/bus/i2c/drivers/asb100/bind
 /sys/bus/i2c/drivers/asb100/unbind
 /sys/bus/i2c/drivers/asb100/module
@@ -48,3 +54,85 @@
 /sys/bus/i2c/drivers/i2c_adapter/unbind
 /sys/bus/i2c/drivers/i2c_adapter/module
 /sys/bus/i2c/devices
+/sys/bus/i2c/devices/0-0048
+/sys/bus/i2c/devices/0-0049
+/sys/bus/i2c/devices/0-002d
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0048
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0048/name
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0048/bus
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0048/driver
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0048/power
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0048/power/wakeup
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0048/power/state
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0048/uevent
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0049
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0049/name
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0049/bus
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0049/driver
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0049/power
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0049/power/wakeup
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0049/power/state
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-0049/uevent
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/pwm1_enable
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/pwm1
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/alarms
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/vrm
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/cpu0_vid
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp4_max_hyst
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp4_max
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp4_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp3_max_hyst
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp3_max
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp3_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp2_max_hyst
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp2_max
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp2_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp1_max_hyst
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp1_max
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp1_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/fan3_div
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/fan3_min
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/fan3_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/fan2_div
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/fan2_min
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/fan2_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/fan1_div
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/fan1_min
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/fan1_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in6_max
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in6_min
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in6_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in5_max
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in5_min
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in5_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in4_max
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in4_min
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in4_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in3_max
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in3_min
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in3_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in2_max
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in2_min
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in2_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in1_max
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in1_min
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in1_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in0_max
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in0_min
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/in0_input
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/hwmon:hwmon0
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/name
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/bus
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/driver
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/power
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/power/wakeup
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/power/state
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/uevent
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/i2c-adapter:i2c-0
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/name
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/power
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/power/wakeup
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/power/state
+/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/uevent
Quoted 1 line

I run an updated Debian Sid distro.

regards,

Signature · 4 lines
<a href="http://www.fi.muni.cz/~xslaby/">Jiri Slaby</a>
faculty of informatics, masaryk university, brno, cz
e-mail: jirislaby gmail com, gpg pubkey fingerprint:
B674 9967 0407 CE62 ACC8  22A0 32CC 55C3 39D4 7A7E
author
#2 lore raw

Re: Sensors broke between 2.6.16.16 and 2.6.16.17 - SOLVED

Quoted 7 lines · Jiri Slaby
Quoted 6 lines · Jani Aho

Hi

The sensors on my motherboard stopped working between 2.6.16.16 and 2.6.16.17. The latest kernel version I have tried is 2.6.17.8 and it still has the same problem.

Quoted 8 lines
Quoted 5 lines

The motherboard is an ASUS P4PE and it uses the asb100 and i2c-i801 modules to get sensor information.

A diff in /sys between a bad (2.6.17.8) and a good (2.6.16.16) kernel gives:

And is there any diff in dmesgs of those 2 kernels?

Problem solved.

The only related message in the dmesg diff was:

--- dmesg.bad 2006-08-13 08:21:21.000000000 +0200
+++ dmesg.good 2006-08-13 08:17:53.000000000 +0200 +PCI: Enabled i801 SMBus device

Looking at the changelog for 2.6.16.17, I found this patch:

commit a9cacd682ed7c031fa05b1d1367a3b3221813932

Author: Carl-Daniel Hailfinger <[email protected]>
Date:   Mon May 15 09:44:33 2006 -0700

[PATCH] smbus unhiding kills thermal management

Do not enable the SMBus device on Asus boards if suspend is used. We do not reenable the device on resume, leading to all sorts of undesirable effects, the worst being a total fan failure after resume on Samsung P35 laptop.

This fixes bug #6449 at bugzilla.kernel.org.

For some strange reason I had ACPI Sleep States enabled, so I disabled it, recompiled the kernel and hey presto, the sensors are back.

Thanks for taking your time on this none problem

Jani