lm_sensors && Asus ASB100

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 1 Sep 2003, Mark M. Hoffman wrote:

> Oops, I am about 85% done with an independent driver for asb100.  But,
> your effort is not in vain - separating as99127f from w83781d is good
> work all by itself.  Do you have an as99127f to test on?  Or do both
> of your boards have asb100?

I have an as99127f too, and i've found a little pb with the temp,
on the as99127f i have the hyst and limit temp need an extra scale by
two
so i have scaled every one (in the following patch) and you need a
compute
line to restore the correct temp for the temp itself.

I've some weird pb with the in0, in1 in5 and in6 min and max value, too
but the old w83781d driver gives the same results (ie 0.00)

On one board i've a wrong vid too (1.80 for
the Athlon XP which should be 1.85 it seems). For the other (an old
Athlon Socket A) a vrm of 8.4 seem to do the trick

And worst of all the CPU temp of the Athlon 700 is beeping it is awfull
i had to unplug the buzzer ... but i don't know why, since it gave
this result:
CPU Temp:  +32.4?C  (limit = +120?C, hysteresis = +100?C)        (beep)
btw this beep are launched even with using  the old w83781d driver, and
i don't know how to stop it except by rebooting the computer which is 
not a very good options since it is my gateway.

>
> > I also added the adjusting fan_div algorithm from mbmon in
init_client
> > but he still fail sometimes.
> > I started the support of Mozart-2 chip but it seems to need some
> > special fixup in the smb bus and i don't have any chip of this kind
so i
> > can't test.
> >
> > So there it is, in 3 files
> > patch-as99127f.diff.gz is to be applied to the lm_sensors2 cvs
> > patch-as99127f-i2c.diff.gz to the i2c cvs, and
> > as99127f.c.gz to be extracted in the directory kernel/chips from
> > lm_sensors2.
>
> Thanks!  I'll look at these within the next couple days... I'm sorry I
> really can't do it tonight.
no pb it was very interesting. I've had some difficulties comparing the
adjusting formula of both lm-sensors2 and mbmon but i do understand
pretty much more many pb i've had with lm_sensors in the past :)

Regards,

-- 
Benoit Plessis					+33 6 77 42 78 32
<benoit.plessis at univ-lemans.fr>
1024D/B4D74B76 B9A7 3697 661D 25FB A609  E69E 92CA FFAB B4D7 4B76
-------------- next part --------------
--- kernel/chips/as99127f.c~	2003-09-01 23:00:54.000000000 +0200
+++ kernel/chips/as99127f.c	2003-09-02 00:15:40.000000000 +0200
@@ -151,8 +151,14 @@
                                                  ((val)+5)/10),0,255))
 #define TEMP_FROM_REG(val) (((val)>0x80?(val)-0x100:(val))*10)
 
-#define TEMP_ADD_TO_REG(val) (SENSORS_LIMIT((((val)*5) << 7),0,0xffff))
-#define TEMP_ADD_FROM_REG(val) (((val) >> 7)*5)
+/* this is valid only for the hyst and limit,
+   on the as99127f and asb100 at least you need to scale the 
+   corresponding tempX by two
+ */
+#define TEMP_ADD_TO_REG(val) (SENSORS_LIMIT((((((val) + 2)*4)/10) \
+        	                                       << 7),0,0xffff))
+#define TEMP_ADD_FROM_REG(val) ((((val) >> 7) * 10) / 4)
+
 /* The ASB100 cpu temp give the temp in byte with 1degree precision 
    so we scale it the format used by LM75 temp sensors ie 256 * the 
    real temps;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20030902/3110f444/attachment.bin 


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux