Skip to contentSkip to conversation

Alix 2D2

lm-sensors Jean-Denis Girard 2 participants 6 messages Aug 16, 2011 – Aug 17, 2011

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,

I have a small system built around an Alix 2D2 motherboard. lm_sensors used to work fine using the scx200_axb and lm90 modules, I was able to get this:

[admin@localhost ~]$ sensors
lm86-i2c-0-4c
Adapter: CS5536 ACB0
temp1: +40.0°C (low = +0.0°C, high = +70.0°C)

                      (crit = +85.0°C, hyst = +75.0°C)
temp2:       +45.9°C  (low  =  +0.0°C, high = +70.0°C)
                      (crit = +85.0°C, hyst = +75.0°C)

But for some time now, it no longer works. I load the same modules, but it seems like the lm90 is no longer seen, though the module loads fine. All I get in the logs is:
scx200_acb: NatSemi SCx200 ACCESS.bus Driver
i2c /dev entries driver

I'm using lm_sensors-3.3.0, and kernel-3.0.1 (config attached).

sensors-detect output:

Do you want to probe the I2C/SMBus adapters now? (YES/no):
Using driver `scx200_acb' for device 0000:00:0f.0: CS5536 [Geode companion] ISA
Module scx200_acb loaded successfully.
Module i2c-dev loaded successfully.

Sorry, no sensors were detected.

What am I missing ?

Thanks,
- --
Jean-Denis Girard

SysNux Systèmes Linux en Polynésie française
http://www.sysnux.pf/ Tél: +689 50 10 40 / GSM: +689 79 75 27

-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAk5Km+4ACgkQuu7Rv+oOo/gZQQCfaYHgEWkSZcxsPkBIcs1C4wrs +8wAnRJ3ZBJ3YwTPHG4DMEpjIE8kD4f7
=G4E8
-----END PGP SIGNATURE-----

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw
Quoted 33 lines · Jean-Denis Girard

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,

I have a small system built around an Alix 2D2 motherboard. lm_sensors used to work fine using the scx200_axb and lm90 modules, I was able to get this:

[admin@localhost ~]$ sensors
lm86-i2c-0-4c
Adapter: CS5536 ACB0
temp1: +40.0°C (low = +0.0°C, high = +70.0°C)

                      (crit = +85.0°C, hyst = +75.0°C)
temp2:       +45.9°C  (low  =  +0.0°C, high = +70.0°C)
                      (crit = +85.0°C, hyst = +75.0°C)

But for some time now, it no longer works. I load the same modules, but it seems like the lm90 is no longer seen, though the module loads fine. All I get in the logs is:
scx200_acb: NatSemi SCx200 ACCESS.bus Driver
i2c /dev entries driver

I'm using lm_sensors-3.3.0, and kernel-3.0.1 (config attached).

sensors-detect output:

Do you want to probe the I2C/SMBus adapters now? (YES/no):
Using driver `scx200_acb' for device 0000:00:0f.0: CS5536 [Geode companion] ISA
Module scx200_acb loaded successfully.
Module i2c-dev loaded successfully.

Quoted 4 lines

Sorry, no sensors were detected.

What am I missing ?

Hi,

First question is what you mean with "for some time now". days ? weeks ? months ? years ? since 3.0 ? 2.6.39 ? 2.4.16 ?

Would be great if you can point to the most recent working kernel.

Second, please provide output of "i2cdetect 0" (i2c-dev needs to be loaded for this to work). That should show us if the sensor is still detected on the i2c bus.

If it is, please also provide output of "i2cdump 0 0x4c".

For the lm90 module, please make sure that it is really loaded. You can verify this with the "lsmod" command.

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#2 lore raw
In reply to Jean-Denis Girard

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Quoted 2 lines · Guenter Roeck

First question is what you mean with "for some time now". days ? weeks ? months ? years ? since 3.0 ? 2.6.39 ? 2.4.16 ?

Unfortunately I don't know, but it is more than one year. It did work in 2.6.32.2, I'm sure it didn't work in 2.6.38, 2.6.39.

Quoted 1 line

Would be great if you can point to the most recent working kernel.

Sorry, I didn't notice when it stopped to work.

Quoted 4 lines

Second, please provide output of "i2cdetect 0" (i2c-dev needs to be loaded for this to work). That should show us if the sensor is still detected on the i2c bus.

[admin@ix100 ~]$ sudo i2cdetect 0
Error: Could not open file `/dev/i2c-0': No such device

Quoted 5 lines

If it is, please also provide output of "i2cdump 0 0x4c".

For the lm90 module, please make sure that it is really loaded. You can verify this with the "lsmod" command.

lsmod gives:

Module                  Size  Used by
lm90                    7852  0
i2c_dev                 3324  0
scx200_acb              3388  0

...

This is what I see in my logs
i2c /dev entries driver
i2c-core: driver [lm90] registered

Thanks,
- --
Jean-Denis Girard

SysNux Systèmes Linux en Polynésie française
http://www.sysnux.pf/ Tél: +689 50 10 40 / GSM: +689 79 75 27
-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAk5LUOIACgkQuu7Rv+oOo/g54gCgojlaqS9wDdgG5ZSud1vIe2hS So0AnibVSCsLuJVQf8F7/jCBIaSpL0aL
=0qG7
-----END PGP SIGNATURE-----

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#3 lore raw
In reply to Jean-Denis Girard
Quoted 32 lines · Jean-Denis Girard

Hi,

Quoted 2 lines · Guenter Roeck

First question is what you mean with "for some time now". days ? weeks ? months ? years ? since 3.0 ? 2.6.39 ? 2.4.16 ?

Unfortunately I don't know, but it is more than one year. It did work in 2.6.32.2, I'm sure it didn't work in 2.6.38, 2.6.39.

Quoted 1 line

Would be great if you can point to the most recent working kernel.

Sorry, I didn't notice when it stopped to work.

Quoted 4 lines

Second, please provide output of "i2cdetect 0" (i2c-dev needs to be loaded for this to work). That should show us if the sensor is still detected on the i2c bus.

[admin@ix100 ~]$ sudo i2cdetect 0
Error: Could not open file `/dev/i2c-0': No such device

Quoted 5 lines

If it is, please also provide output of "i2cdump 0 0x4c".

For the lm90 module, please make sure that it is really loaded. You can verify this with the "lsmod" command.

lsmod gives:

Module                  Size  Used by
lm90                    7852  0
i2c_dev                 3324  0
scx200_acb              3388  0
Quoted 6 lines

...

This is what I see in my logs
i2c /dev entries driver
i2c-core: driver [lm90] registered

Looks like the i2c adapter is not recognized. Do you see anything in /sys/class/i2c-adapter ?

Looking into the i2c bus driver code, it was recently converted into a platform driver. The supporting mfd driver would be cs5535-mfd. That might be one possible reason for your problem, though it happened less than a year ago.

There have been other changes over time; since you don't know when the problem started, it will be quite difficult if not impossible to track down the problem. You may have to do some trials with different kernel versions to identify when the problem was introduced, and then do some development work and use bisect to track down the actual commit.

Anyway, this is quite obviously a i2c bus driver problem, meaning you are on the wrong mailing list. i2c issues should be discussed on [email protected].

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#4 lore raw
In reply to Jean-Denis Girard

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 3 lines · Guenter Roeck

Looking into the i2c bus driver code, it was recently converted into a platform driver. The supporting mfd driver would be cs5535-mfd. That might be one possible reason for your problem, though it happened less than a year ago.

Thanks Guenter, that was my problem (cs5535_mfd missing); now it is working again:
[admin@ix100 ~]$ sensors
lm86-i2c-0-4c
Adapter: CS5535 ACB0
temp1: +43.0°C (low = +0.0°C, high = +70.0°C)

                       (crit = +85.0°C, hyst = +75.0°C)
temp2:        +49.8°C  (low  =  +0.0°C, high = +70.0°C)
                       (crit = +85.0°C, hyst = +75.0°C)

Shouldn't scx200_acb depend on cs5535_mfd in the kernel configuration options ?

Thanks,
- --
Jean-Denis Girard

SysNux Systèmes Linux en Polynésie française
http://www.sysnux.pf/ Tél: +689 50 10 40 / GSM: +689 79 75 27
-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAk5LdO4ACgkQuu7Rv+oOo/hcEwCgi4JMDKMbWTHEgqasEVMJTM4p 4EUAn0U1hNskUxTnBcoUJ7OH/amwx70u
=/tZA
-----END PGP SIGNATURE-----

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#5 lore raw
In reply to Jean-Denis Girard
Quoted 11 lines · Jean-Denis Girard
Quoted 3 lines · Guenter Roeck

Looking into the i2c bus driver code, it was recently converted into a platform driver. The supporting mfd driver would be cs5535-mfd. That might be one possible reason for your problem, though it happened less than a year ago.

Thanks Guenter, that was my problem (cs5535_mfd missing); now it is working again:
[admin@ix100 ~]$ sensors
lm86-i2c-0-4c
Adapter: CS5535 ACB0
temp1: +43.0°C (low = +0.0°C, high = +70.0°C)

Quoted 4 lines
                       (crit = +85.0°C, hyst = +75.0°C)
temp2:        +49.8°C  (low  =  +0.0°C, high = +70.0°C)
                       (crit = +85.0°C, hyst = +75.0°C)

Good.

Quoted 3 lines

Shouldn't scx200_acb depend on cs5535_mfd in the kernel configuration options ?

I don't know. Again, you might want to ask that kind of question on the i2c mailing list.

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors