All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] Alix 2D2
@ 2011-08-16 16:33 Jean-Denis Girard
  2011-08-16 16:47 ` Guenter Roeck
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Jean-Denis Girard @ 2011-08-16 16:33 UTC (permalink / raw)
  To: lm-sensors

[-- Attachment #1: Type: text/plain, Size: 1487 bytes --]

-----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-----

[-- Attachment #2: config-3.0.1-sysnux-ix100-test.bz2 --]
[-- Type: application/x-bzip2, Size: 11685 bytes --]

[-- Attachment #3: Type: text/plain, Size: 153 bytes --]

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [lm-sensors] Alix 2D2
  2011-08-16 16:33 [lm-sensors] Alix 2D2 Jean-Denis Girard
@ 2011-08-16 16:47 ` Guenter Roeck
  2011-08-17  5:25 ` Jean-Denis Girard
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Guenter Roeck @ 2011-08-16 16:47 UTC (permalink / raw)
  To: lm-sensors

On Tue, 2011-08-16 at 12:33 -0400, Jean-Denis Girard wrote:
> -----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 ?
> 
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
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [lm-sensors] Alix 2D2
  2011-08-16 16:33 [lm-sensors] Alix 2D2 Jean-Denis Girard
  2011-08-16 16:47 ` Guenter Roeck
@ 2011-08-17  5:25 ` Jean-Denis Girard
  2011-08-17  6:24 ` Guenter Roeck
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Jean-Denis Girard @ 2011-08-17  5:25 UTC (permalink / raw)
  To: lm-sensors

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

Hi,

Le 16/08/2011 06:47, Guenter Roeck a écrit :
> 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.

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

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

> 
> 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

> 
> 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
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [lm-sensors] Alix 2D2
  2011-08-16 16:33 [lm-sensors] Alix 2D2 Jean-Denis Girard
  2011-08-16 16:47 ` Guenter Roeck
  2011-08-17  5:25 ` Jean-Denis Girard
@ 2011-08-17  6:24 ` Guenter Roeck
  2011-08-17  7:59 ` Jean-Denis Girard
  2011-08-17 13:39 ` Guenter Roeck
  4 siblings, 0 replies; 6+ messages in thread
From: Guenter Roeck @ 2011-08-17  6:24 UTC (permalink / raw)
  To: lm-sensors

On Wed, Aug 17, 2011 at 01:25:55AM -0400, Jean-Denis Girard wrote:
> Hi,
> 
> Le 16/08/2011 06:47, Guenter Roeck a écrit :
> > 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.
> 
> > Would be great if you can point to the most recent working kernel.
> 
> Sorry, I didn't notice when it stopped to work.
> 
> > 
> > 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
> 
> > 
> > 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
> 

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 linux-i2c@vger.kernel.org.

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [lm-sensors] Alix 2D2
  2011-08-16 16:33 [lm-sensors] Alix 2D2 Jean-Denis Girard
                   ` (2 preceding siblings ...)
  2011-08-17  6:24 ` Guenter Roeck
@ 2011-08-17  7:59 ` Jean-Denis Girard
  2011-08-17 13:39 ` Guenter Roeck
  4 siblings, 0 replies; 6+ messages in thread
From: Jean-Denis Girard @ 2011-08-17  7:59 UTC (permalink / raw)
  To: lm-sensors

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

Le 16/08/2011 20:24, Guenter Roeck a écrit :
> 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
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [lm-sensors] Alix 2D2
  2011-08-16 16:33 [lm-sensors] Alix 2D2 Jean-Denis Girard
                   ` (3 preceding siblings ...)
  2011-08-17  7:59 ` Jean-Denis Girard
@ 2011-08-17 13:39 ` Guenter Roeck
  4 siblings, 0 replies; 6+ messages in thread
From: Guenter Roeck @ 2011-08-17 13:39 UTC (permalink / raw)
  To: lm-sensors

On Wed, Aug 17, 2011 at 03:59:42AM -0400, Jean-Denis Girard wrote:
> Le 16/08/2011 20:24, Guenter Roeck a écrit :
> > 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)
> 
Good.

> 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
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-08-17 13:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-16 16:33 [lm-sensors] Alix 2D2 Jean-Denis Girard
2011-08-16 16:47 ` Guenter Roeck
2011-08-17  5:25 ` Jean-Denis Girard
2011-08-17  6:24 ` Guenter Roeck
2011-08-17  7:59 ` Jean-Denis Girard
2011-08-17 13:39 ` Guenter Roeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.