Skip to contentSkip to conversation

2.6.5 Sensors & USB problems

DISCUSSION Jean Delvare 3 participants 7 messages Apr 7, 2004 – May 6, 2004

lore
Share & tools
lore
#0 lore raw

Hi Ben,

Quoted 1 line

2.6.5-rc1 -> sensors broke (ERROR: Can't get <sensor> data!)

Your sensors problem will be resolved as soon as you switch to the just released lm_sensors 2.8.6.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#1 lore raw
Quoted 6 lines · Jean Delvare

Hi Ben,

Quoted 1 line

2.6.5-rc1 -> sensors broke (ERROR: Can't get <sensor> data!)

Your sensors problem will be resolved as soon as you switch to the just released lm_sensors 2.8.6.

I use the same w83781d and i2c_i801 drivers on my Asus P4PE box, and they too went belly up with 2.6.5. However, I HAVE tried lm_sensors 2.8.6 and that made no difference. They're just user-space tools that don't touch the kernel any more in 2.6.x (right?).

The problem I am seeing now in 2.6.5 is that after loading the w83781d module, nothing shows up in /sys or /proc, as though the module had not loaded but lsmod says it is loaded.

In 2.6.4, my sensors showed up hare:
/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/* (w83781d) /sys/devices/pci0000:00/0000:00:1f.3/i2c-1/1-0050/* (eeprom)

Now in 2.6.5, with both eeprom and w83781d modules loaded, I only get the eeprom, and the w83781d is nowhere to be found:
/sys/devices/pci0000:00/0000:00:1f.3/i2c-1/1-0050/* (eeprom)

# find /sys/bus/i2c/drivers/
/sys/bus/i2c/drivers/
/sys/bus/i2c/drivers/w83781d
/sys/bus/i2c/drivers/eeprom
/sys/bus/i2c/drivers/eeprom/1-0050
/sys/bus/i2c/drivers/dev_driver
/sys/bus/i2c/drivers/i2c_adapter

This certainly shows that the driver is loaded, but has not found/registered any devices?

Regards,
Ian Morgan

Signature · 5 lines
-------------------------------------------------------------------
 Ian E. Morgan          Vice President & C.O.O.       Webcon, Inc.
 imorgan at webcon dot ca        PGP: #2DA40D07      www.webcon.ca
    *  Customized Linux network solutions for your business  *
-------------------------------------------------------------------
#2 lore raw

Yeah, bad form to reply to one's self, but someone may appreciate this info:

Seems that the w83781d driver no longer detects whatever the sensor chip on the P4PE is, but I see there is now a new driver called asb100 which does work. An old conflicting lm_sensors install was breaking the sensors-detect script, but once resolved it nicely detected the asb100.

Can anyone explain, however, why my i2c bus showed up as number 0 under linux <= 2.6.4, and now always as number 1 under linux 2.6.5? The is no number 0 any more.

Regards,
Ian Morgan

Signature · 5 lines
-------------------------------------------------------------------
 Ian E. Morgan          Vice President & C.O.O.       Webcon, Inc.
 imorgan at webcon dot ca        PGP: #2DA40D07      www.webcon.ca
    *  Customized Linux network solutions for your business  *
-------------------------------------------------------------------
Quoted 34 lines · Ian Morgan
Quoted 6 lines · Jean Delvare

Hi Ben,

Quoted 1 line

2.6.5-rc1 -> sensors broke (ERROR: Can't get <sensor> data!)

Your sensors problem will be resolved as soon as you switch to the just released lm_sensors 2.8.6.

I use the same w83781d and i2c_i801 drivers on my Asus P4PE box, and they too went belly up with 2.6.5. However, I HAVE tried lm_sensors 2.8.6 and that made no difference. They're just user-space tools that don't touch the kernel any more in 2.6.x (right?).

The problem I am seeing now in 2.6.5 is that after loading the w83781d module, nothing shows up in /sys or /proc, as though the module had not loaded but lsmod says it is loaded.

In 2.6.4, my sensors showed up hare:
/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/* (w83781d) /sys/devices/pci0000:00/0000:00:1f.3/i2c-0/1-0050/* (eeprom)

Now in 2.6.5, with both eeprom and w83781d modules loaded, I only get the eeprom, and the w83781d is nowhere to be found:
/sys/devices/pci0000:00/0000:00:1f.3/i2c-1/1-0050/* (eeprom)

# find /sys/bus/i2c/drivers/
/sys/bus/i2c/drivers/
/sys/bus/i2c/drivers/w83781d
/sys/bus/i2c/drivers/eeprom
/sys/bus/i2c/drivers/eeprom/1-0050
/sys/bus/i2c/drivers/dev_driver
/sys/bus/i2c/drivers/i2c_adapter
Quoted 19 lines

This certainly shows that the driver is loaded, but has not found/registered any devices?

Regards,
Ian Morgan

Signature · 10 lines
-------------------------------------------------------------------
 Ian E. Morgan          Vice President & C.O.O.       Webcon, Inc.
 imorgan at webcon dot ca        PGP: #2DA40D07      www.webcon.ca
    *  Customized Linux network solutions for your business  *
-------------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Regards,
Ian Morgan

Signature · 5 lines
-------------------------------------------------------------------
 Ian E. Morgan          Vice President & C.O.O.       Webcon, Inc.
 imorgan at webcon dot ca        PGP: #2DA40D07      www.webcon.ca
    *  Customized Linux network solutions for your business  *
-------------------------------------------------------------------
#3 lore raw
Quoted 5 lines

Seems that the w83781d driver no longer detects whatever the sensor chip on the P4PE is, but I see there is now a new driver called asb100 which does work. An old conflicting lm_sensors install was breaking the sensors-detect script, but once resolved it nicely detected the asb100.

The hardware monitoring chip on the P4PE is an Asus ASB100 "Bach". It used to be somewhat supported by the w83781d driver (see as an "as99127f" kind) but then a new, dedicated driver was developed by Mark M. Hoffman, which works better. For this reason, support was dropped from the w83781d, which explains why it suddenly stopped working.

I agree that this should have been advertised a little more, and I am adding information about this on our 2.6 kernel dedicated page at the moment.

Quoted 3 lines

Can anyone explain, however, why my i2c bus showed up as number 0 under linux <= 2.6.4, and now always as number 1 under linux 2.6.5? The is no number 0 any more.

The bus number allocation scheme is such that once a number has been used once (since the machine last booted) it will not be used again. This is admittedly not ideal and should be fixed. I suspect that the fix isn't trivial because the current structures would make the new scheme have a poor algorithmic complexity (O(2) maybe), but I haven't checked yet. Greg, can you confirm?

This isn't critical (unless you cycle your i2c adapter drivers a great number of times, but nodoby does this) which is why no attempt has been made to fix it yet. Anyone with a nice fix is welcome however ;)

Thanks.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#4 lore raw
Quoted 10 lines · Jean Delvare
Quoted 3 lines

Can anyone explain, however, why my i2c bus showed up as number 0 under linux <= 2.6.4, and now always as number 1 under linux 2.6.5? The is no number 0 any more.

The bus number allocation scheme is such that once a number has been used once (since the machine last booted) it will not be used again. This is admittedly not ideal and should be fixed. I suspect that the fix isn't trivial because the current structures would make the new scheme have a poor algorithmic complexity (O(2) maybe), but I haven't checked yet. Greg, can you confirm?

It's not due to the complexity, it's just due to the fact that I haven't gotten around to doing it yet :)

Patches to fix this are gladly welcome if the current situation really bothers people. No userspace tools should have a problem with the way things are right now. If they do have problems, please let me know.

thanks,

greg k-h

#5 lore raw
Quoted 2 lines

It's not due to the complexity, it's just due to the fact that I haven't gotten around to doing it yet :)

OK, I should have stopped guessing and have taken a look to the code instead.

Quoted 3 lines

Patches to fix this are gladly welcome if the current situation really bothers people. No userspace tools should have a problem with the way things are right now. If they do have problems, please let me know.

You're right, there is no problem, at least no in "production" environments. The only place where it is somewhat confusing (for newcomers at least) is when probing the busses in the first time, or for developers testing bus drivers (but those know what is happening).

At any rate, it is definitely better now than when device and corresponding adapter could have different numbers. Of course it would be better if device numbers were reused, but I'm not annoyed enough to take a look right now either ;)

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#6 lore raw
In reply to Ian Morgan
Quoted 14 lines
Quoted 4 lines
Quoted 1 line

2.6.5-rc1 -> sensors broke (ERROR: Can't get <sensor> data!)

Your sensors problem will be resolved as soon as you switch to the just released lm_sensors 2.8.6.

I use the same w83781d and i2c_i801 drivers on my Asus P4PE box, and they too went belly up with 2.6.5. However, I HAVE tried lm_sensors 2.8.6 and that made no difference. They're just user-space tools that don't touch the kernel any more in 2.6.x (right?).

The problem I am seeing now in 2.6.5 is that after loading the w83781d module, nothing shows up in /sys or /proc, as though the module had not loaded but lsmod says it is loaded.

Quoted 7 lines

In 2.6.4, my sensors showed up hare:
/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/* (w83781d) /sys/devices/pci0000:00/0000:00:1f.3/i2c-1/1-0050/* (eeprom)

Now in 2.6.5, with both eeprom and w83781d modules loaded, I only get the eeprom, and the w83781d is nowhere to be found:
/sys/devices/pci0000:00/0000:00:1f.3/i2c-1/1-0050/* (eeprom)

This is a different problem, and I agree that upgrading user-space tools couldn't help in you case. Ben had his chip correctly detected but the interface exported by the kernel was not known to the (not up-to-date) user-space tools. In you case this is the kernel driver not supporting your hardware anymore, that's different.

See my answer to your second post for details about your case.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/