Support for SMSC 47M15x/192
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
Hi Pavel,
Quoted 9 lines · Pavel Ruzicka
sensors-detect tell me this:
Probing for `SMSC 47M15x/192 Super IO Fan Sensors'
Success... found at address0x0800# no driver for SMSC 47M15x/192 Super IO Fan Sensors yetI have vanilla kernel 2.6.13.4 and sensors 2.9.0 from distribution.
I tried download cvs night build and put file
smsc47m1.ctodrivers/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.
Quoted 3 lines
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).
Quoted 1 line
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
Hi Jean,
Quoted 4 lines
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_sensors2.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?ticket76
Best regards,
Pavel Ruzicka
Hi Pavel,
Quoted 11 lines · Pavel Ruzicka
Thanks for help. Fan measuring works now with
lm_sensors2.9.2.sensors output:
--------------
smsc47m1-isa-0800Adapter: 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.
Quoted 5 lines
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.
Quoted 2 lines
There was some discussion about this chip:
http://www2.lm-sensors.nu/~lm78/readticket.cgi?ticket76
We'll update this ticket to mention the supposed compatibility with the other chips, once you have reported your test results.
Thanks,
--
Jean Delvare
Hi,
Quoted 6 lines
Quoted 1 line
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_minto 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
-------------------
Quoted 4 lines
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.
Quoted 3 lines
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
Hi Pavel,
Quoted 1 line · Pavel Ruzicka
It's a little strange. I can't set
fan1_minlower 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.
Quoted 6 lines
fan2_divit's possible to change to 1, 2, 4, 8, but minimal limits are increased. Example of output:
smsc47m1-isa-0800Adapter: 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.
Quoted 4 lines
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.
Quoted 8 lines
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
-----------------------
Quoted 7 lines
This is part of
/etc/sensors.conf:
-------------------
chip "smsc47m1-*"
setfan2_min640
setfan2_div8
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
Hi Jean,
Quoted 5 lines
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.
Quoted 10 lines
Quoted 4 lines
smsc47m1-isa-0800
Adapter: ISA adapter fan1: 0 RPM (min = 640 RPM, div = 8) ALARM fan2: 1050 RPM (min = 1280 RPM, div = 4) ALARMThis 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
-----
Quoted 5 lines
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)
--------------
Quoted 3 lines
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