* [lm-sensors] Support for SMSC 47M15x/192
@ 2005-10-16 23:04 Pavel Ruzicka
2005-10-17 10:20 ` Jean Delvare
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Pavel Ruzicka @ 2005-10-16 23:04 UTC (permalink / raw)
To: lm-sensors
Hello,
sensors-detect tell me this:
Probing for `SMSC 47M15x/192 Super IO Fan Sensors'
Success... found at address 0x0800
# no driver for SMSC 47M15x/192 Super IO Fan Sensors yet
I have vanilla kernel 2.6.13.4 and sensors 2.9.0 from distribution.
I tried download cvs night build and put file smsc47m1.c to drivers/hwmon/
in a kernel tree, but this was not a good idea :-)
In README there are info, that this version is only for 2.4 kernel.
I'am a little confused.
Where can I download actual kernel driver for my chip?
Is this chip now supported?
Additional info:
Board MSI RS480M2 with ATI IXP chipset.
part of lspci output:
00:00.0 Host bridge: ATI Technologies Inc: Unknown device 5950
00:02.0 PCI bridge: ATI Technologies Inc: Unknown device 5a34
00:14.0 SMBus: ATI Technologies Inc ATI SMBus (rev 04)
00:14.3 ISA bridge: ATI Technologies Inc: Unknown device 4377
Best regards,
Pavel Ruzicka
^ permalink raw reply [flat|nested] 7+ messages in thread
* [lm-sensors] Support for SMSC 47M15x/192
2005-10-16 23:04 [lm-sensors] Support for SMSC 47M15x/192 Pavel Ruzicka
@ 2005-10-17 10:20 ` Jean Delvare
2005-10-20 22:21 ` Pavel Ruzicka
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Jean Delvare @ 2005-10-17 10:20 UTC (permalink / raw)
To: lm-sensors
Hi Pavel,
On 2005-10-16, Pavel Ruzicka wrote:
> sensors-detect tell me this:
> Probing for `SMSC 47M15x/192 Super IO Fan Sensors'
> Success... found at address 0x0800
> # no driver for SMSC 47M15x/192 Super IO Fan Sensors yet
>
> I have vanilla kernel 2.6.13.4 and sensors 2.9.0 from distribution.
>
> I tried download cvs night build and put file smsc47m1.c to
> drivers/hwmon/ in a kernel tree, but this was not a good idea :-)
This sure wasn't, as the drivers found in the lm_sensors2 tree are for
2.4 kernels only.
> I'am a little confused.
> Where can I download actual kernel driver for my chip?
> Is this chip now supported?
The smsc47m1 driver from Linux 2.6.13.4 should work just fine. Support
for this chip was added in 2.6.13-rc1. The (minor) problem you have here
is that your version of sensors-detect is a bit old and doesn't know
that (fixed in lm_sensors 2.9.2).
> 00:14.0 SMBus: ATI Technologies Inc ATI SMBus (rev 04)
Not that this one is not supported yet, I don't think we have a
datasheet. This might be a problem if you want hardware monitoring on
this system.
--
Jean Delvare
^ permalink raw reply [flat|nested] 7+ messages in thread
* [lm-sensors] Support for SMSC 47M15x/192
2005-10-16 23:04 [lm-sensors] Support for SMSC 47M15x/192 Pavel Ruzicka
2005-10-17 10:20 ` Jean Delvare
@ 2005-10-20 22:21 ` Pavel Ruzicka
2005-10-21 13:11 ` Jean Delvare
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Pavel Ruzicka @ 2005-10-20 22:21 UTC (permalink / raw)
To: lm-sensors
Hi Jean,
> The smsc47m1 driver from Linux 2.6.13.4 should work just fine. Support
> for this chip was added in 2.6.13-rc1. The (minor) problem you have here
> is that your version of sensors-detect is a bit old and doesn't know
> that (fixed in lm_sensors 2.9.2).
Thanks for help. Fan measuring works now with lm_sensors 2.9.2.
sensors output:
--------------
smsc47m1-isa-0800
Adapter: ISA adapter
fan1: 0 RPM (min = 640 RPM, div = 8) ALARM
fan2: 1059 RPM (min = 640 RPM, div = 8)
--------------
I look at motherboard, and there is exactly LPC47M997-NR SMSC I/O chip.
There are probably hardware monitoring block, which is not supported by
this driver. I look at bios and Winblows program PC Alert, and there are
available System and CPU Temperature. Voltages are not supported.
I searched with Google, but datasheet for this chip is not available.
What can I do next for temperature reporting?
There was some discussion about this chip:
http://www2.lm-sensors.nu/~lm78/readticket.cgi?ticket\x1776
Best regards,
Pavel Ruzicka
^ permalink raw reply [flat|nested] 7+ messages in thread
* [lm-sensors] Support for SMSC 47M15x/192
2005-10-16 23:04 [lm-sensors] Support for SMSC 47M15x/192 Pavel Ruzicka
2005-10-17 10:20 ` Jean Delvare
2005-10-20 22:21 ` Pavel Ruzicka
@ 2005-10-21 13:11 ` Jean Delvare
2005-10-24 1:21 ` Pavel Ruzicka
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Jean Delvare @ 2005-10-21 13:11 UTC (permalink / raw)
To: lm-sensors
Hi Pavel,
On 2005-10-20, Pavel Ruzicka wrote:
> Thanks for help. Fan measuring works now with lm_sensors 2.9.2.
>
> sensors output:
> --------------
> smsc47m1-isa-0800
> Adapter: ISA adapter
> fan1: 0 RPM (min = 640 RPM, div = 8) ALARM
> fan2: 1059 RPM (min = 640 RPM, div = 8)
> --------------
>
> I look at motherboard, and there is exactly LPC47M997-NR SMSC I/O chip.
OK, so this suggests that this chip is compatible with the LPC47M15x and
LPC47M192 chips as far as fan monitoring is concerned. You can set
fan1_min to 0 to get rid of the alarm. That's a slow fan you have here,
BTW.
Could you please try changing limits, clock dividers, and playing with
PWM outputs? This would confirm that this chip is fully compatible. If
it is, we will need to update our documentation (and sensors-detect) to
reflect the fact that our smsc47m1 driver supports that chip.
> There are probably hardware monitoring block, which is not supported by
> this driver. I look at bios and Winblows program PC Alert, and there are
> available System and CPU Temperature. Voltages are not supported.
> I searched with Google, but datasheet for this chip is not available.
> What can I do next for temperature reporting?
The LPC47M15x and LPC47M192 do have a hardware monitoring block, so maybe
your chip does too. However, we can't be certain without a datasheet,
and the SMSC web site still doesn't even mention this chip.
The problem is that your system SMBus uses an ATI chip which we have no
driver for, and I don't even think a datasheet is available. Since the
hardware monitoring block is accessed through the SMBus, you won't be
able to even access it without an ATI SMBus driver. Sorry.
You may try the ACPI "thermal" driver and look in
/proc/acpi/thermal_zone. Maybe it'll at least let you know the CPU
temperature.
> There was some discussion about this chip:
> http://www2.lm-sensors.nu/~lm78/readticket.cgi?ticket\x1776
We'll update this ticket to mention the supposed compatibility with the
other chips, once you have reported your test results.
Thanks,
--
Jean Delvare
^ permalink raw reply [flat|nested] 7+ messages in thread
* [lm-sensors] Support for SMSC 47M15x/192
2005-10-16 23:04 [lm-sensors] Support for SMSC 47M15x/192 Pavel Ruzicka
` (2 preceding siblings ...)
2005-10-21 13:11 ` Jean Delvare
@ 2005-10-24 1:21 ` Pavel Ruzicka
2005-10-24 12:03 ` Jean Delvare
2005-10-25 0:47 ` Pavel Ruzicka
5 siblings, 0 replies; 7+ messages in thread
From: Pavel Ruzicka @ 2005-10-24 1:21 UTC (permalink / raw)
To: lm-sensors
Hi,
> > I look at motherboard, and there is exactly LPC47M997-NR SMSC I/O chip.
>
> OK, so this suggests that this chip is compatible with the LPC47M15x and
> LPC47M192 chips as far as fan monitoring is concerned. You can set
> fan1_min to 0 to get rid of the alarm. That's a slow fan you have here,
> BTW.
It's a little strange. I can't set fan1_min lower than 640.
fan2_div it's possible to change to 1, 2, 4, 8, but minimal limits
are increased. Example of output:
smsc47m1-isa-0800
Adapter: ISA adapter
fan1: 0 RPM (min = 640 RPM, div = 8) ALARM
fan2: 0 RPM (min = 5120 RPM, div = 1) ALARM
smsc47m1-isa-0800
Adapter: ISA adapter
fan1: 0 RPM (min = 640 RPM, div = 8) ALARM
fan2: 1050 RPM (min = 1280 RPM, div = 4) ALARM
Setting of pwm doesn't work for me, but maybe I can do something wrong.
sensors -s tells me:
-----------------------
Error: Line 2047: Unknown feature name
smsc47m1-isa-0800: No such feature known
-----------------------
This is part of /etc/sensors.conf:
-------------------
chip "smsc47m1-*"
set fan2_min 640
set fan2_div 8
set pwm1 1
-------------------
> The problem is that your system SMBus uses an ATI chip which we have no
> driver for, and I don't even think a datasheet is available. Since the
> hardware monitoring block is accessed through the SMBus, you won't be
> able to even access it without an ATI SMBus driver. Sorry.
This is probably on a good way :-)
Rudolf Marek working on it.
> You may try the ACPI "thermal" driver and look in
> /proc/acpi/thermal_zone. Maybe it'll at least let you know the CPU
> temperature.
This doesn't work for me.
Best regards,
Pavel Ruzicka
^ permalink raw reply [flat|nested] 7+ messages in thread
* [lm-sensors] Support for SMSC 47M15x/192
2005-10-16 23:04 [lm-sensors] Support for SMSC 47M15x/192 Pavel Ruzicka
` (3 preceding siblings ...)
2005-10-24 1:21 ` Pavel Ruzicka
@ 2005-10-24 12:03 ` Jean Delvare
2005-10-25 0:47 ` Pavel Ruzicka
5 siblings, 0 replies; 7+ messages in thread
From: Jean Delvare @ 2005-10-24 12:03 UTC (permalink / raw)
To: lm-sensors
Hi Pavel,
On 2005-10-24, Pavel Ruzicka wrote:
> It's a little strange. I can't set fan1_min lower than 640.
It is expected due to the hardware implementation. The lowest speed that
can be monitored (and thus the lowest limit you can set) depends on an
internal clock speed and a clock divider. For a divider of 8, this is
(32768*60)/(2*8*192) = 640. For lower dividers, the value is even
greater.
Most chips let you disable the alarm by writing 0 to the limit but these
SMSC chips use a different logic and it seems you can't disable the
alarm that way.
> fan2_div it's possible to change to 1, 2, 4, 8, but minimal limits
> are increased. Example of output:
> smsc47m1-isa-0800
> Adapter: ISA adapter
> fan1: 0 RPM (min = 640 RPM, div = 8) ALARM
> fan2: 0 RPM (min = 5120 RPM, div = 1) ALARM
See above, this is because the minimum low value is greater with lower
dividers. 5120 RPM is the lowest possible value for divider 1.
> smsc47m1-isa-0800
> Adapter: ISA adapter
> fan1: 0 RPM (min = 640 RPM, div = 8) ALARM
> fan2: 1050 RPM (min = 1280 RPM, div = 4) ALARM
This is more surprising, as the driver should try to preserve the low
limit on divider increment. Unless you actually did it the other way
around (4 then 1)? I took a look at the code and it looks correct to me.
Anyway, you can set the value again by writing it to fan2_min.
> Setting of pwm doesn't work for me, but maybe I can do something wrong.
>
> sensors -s tells me:
> -----------------------
> Error: Line 2047: Unknown feature name
> smsc47m1-isa-0800: No such feature known
> -----------------------
>
> This is part of /etc/sensors.conf:
> -------------------
> chip "smsc47m1-*"
> set fan2_min 640
> set fan2_div 8
> set pwm1 1
> -------------------
That's expected, as libsensors doesn't know about fan speed control
except for a few chips. Typically, PWM operations are done directly
through sysfs. Check in /sys/bus/i2c/devices, you should find a
directory for your chip and pwm files here. Use with caution, of course.
Anyway, the tests above are sufficient to convince me that your chip is
compatible with the LPC47M192 as fan as fan control and monitoring is
concerned. We will have to update our documentation accordingly.
Thanks,
--
Jean Delvare
^ permalink raw reply [flat|nested] 7+ messages in thread
* [lm-sensors] Support for SMSC 47M15x/192
2005-10-16 23:04 [lm-sensors] Support for SMSC 47M15x/192 Pavel Ruzicka
` (4 preceding siblings ...)
2005-10-24 12:03 ` Jean Delvare
@ 2005-10-25 0:47 ` Pavel Ruzicka
5 siblings, 0 replies; 7+ messages in thread
From: Pavel Ruzicka @ 2005-10-25 0:47 UTC (permalink / raw)
To: lm-sensors
Hi Jean,
> It is expected due to the hardware implementation. The lowest speed that
> can be monitored (and thus the lowest limit you can set) depends on an
> internal clock speed and a clock divider. For a divider of 8, this is
> (32768*60)/(2*8*192) = 640. For lower dividers, the value is even
> greater.
Thanks for good explaining.
> > smsc47m1-isa-0800
> > Adapter: ISA adapter
> > fan1: 0 RPM (min = 640 RPM, div = 8) ALARM
> > fan2: 1050 RPM (min = 1280 RPM, div = 4) ALARM
>
> This is more surprising, as the driver should try to preserve the low
> limit on divider increment. Unless you actually did it the other way
> around (4 then 1)? I took a look at the code and it looks correct to me.
>
> Anyway, you can set the value again by writing it to fan2_min.
Other experiment:
-----
[root@home 1-0800]# echo 4 >fan2_div
fan2: 1041 RPM (min = 1280 RPM, div = 4) ALARM
[root@home 1-0800]# echo 1 >fan2_div
fan2: 0 RPM (min = 5120 RPM, div = 1) ALARM
[root@home 1-0800]# echo 4 >fan2_div
fan2: 0 RPM (min = 5120 RPM, div = 4) ALARM
[root@home 1-0800]# echo 8 >fan2_div
fan2: 0 RPM (min = 5120 RPM, div = 8) ALARM
[root@home 1-0800]# echo 640 >fan2_min
fan2: 1059 RPM (min = 640 RPM, div = 8) ALARM
-----
>
> That's expected, as libsensors doesn't know about fan speed control
> except for a few chips. Typically, PWM operations are done directly
> through sysfs. Check in /sys/bus/i2c/devices, you should find a
> directory for your chip and pwm files here. Use with caution, of course.
Yes, it works perfectly!
I can set values 1 to 252 for pwm.
With echo 0 >pwm2_enable my secondary fan totally stops.
There is some experiments:
-------------
[root@home 1-0800]# pwd
/sys/bus/i2c/devices/1-0800
[root@home 1-0800]# cat pwm2
144
[root@home 1-0800]# echo 10 >pwm2
fan2: 3072 RPM (min = 640 RPM, div = 8)
[root@home 1-0800]# cat pwm2
8
[root@home 1-0800]# echo 128 >pwm2
fan2: 1307 RPM (min = 640 RPM, div = 8)
[root@home 1-0800]# cat pwm2_enable
1
[root@home 1-0800]# echo 0 >pwm2_enable
fan2: 0 RPM (min = 640 RPM, div = 8) ALARM
[root@home 1-0800]# echo 1 >pwm2_enable
fan2: 1307 RPM (min = 640 RPM, div = 8)
--------------
> Anyway, the tests above are sufficient to convince me that your chip is
> compatible with the LPC47M192 as fan as fan control and monitoring is
> concerned. We will have to update our documentation accordingly.
Thank you very much.
Best regards,
Pavel Ruzicka
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-10-25 0:47 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-16 23:04 [lm-sensors] Support for SMSC 47M15x/192 Pavel Ruzicka
2005-10-17 10:20 ` Jean Delvare
2005-10-20 22:21 ` Pavel Ruzicka
2005-10-21 13:11 ` Jean Delvare
2005-10-24 1:21 ` Pavel Ruzicka
2005-10-24 12:03 ` Jean Delvare
2005-10-25 0:47 ` Pavel Ruzicka
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.