Skip to contentSkip to conversation

adm1031 patch for 2.6.6-bk5

DISCUSSION Alexandre d'Alton 2 participants 2 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

All,

Here is the latest patch for adm1031 support on 2.6 kernel.

Jean:
- This patch includes the modifications done in the 2.4 driver concerning
the trusted fan readings.
- I also added a -EINVAL return when we try to set pwm = 0 when auto-mode
is selected.

Just in order to keep the 2.6 version more inline with the 2.4 version.

Signature · 11 lines
-------------------------------------------------
Alexandre d'ALTON
                              [email protected]

-------------- next part --------------
A non-text attachment was scrubbed...
Name: adm1031-linux-2.6.6-bk5.diff
Type: text/x-patch
Size: 38904 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040604/4b30dc32/adm1031-linux-2.6.6-bk5.bin
#1 lore raw

Hi Alexandre,

Quoted 1 line

Here is the latest patch for adm1031 support on 2.6 kernel.

I've tried your even latest patch as downloaded from your website. Works great except one problem:

Lowering fan div doesn't correctly preserve fan min (most likely an 8-bit reg overflow). For exemple:

# echo 2 > fan1_div
# echo 2000 > fan1_min
# echo 1 > fan1_div
fan1_div will now read 8437 (instead of 2678, the lowest value for div 1)

I guess you forgot to port the change from the 2.4 driver.

I've also noticed something strange. That's not a bug, but I'd like to know if you noticed the same.

It looks like temperature comparisons are done on the integer part only. For example, if the high limit set to 45 degrees, and measured temperature is 45.5 degrees, no alarm will raise. I'll trigger at 46.0 degrees. I think this isn't what most chips do. I'll check with the ADM1032, but I'm almost sure...

Maybe we could slightly shift the hardware limit and the user-space visible limit so as to correct that difference?

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/