Harald's C7 temp driver

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

 



I've been messing (clumsily, since I am learning C while doing this... please 
be patient with me :) with Harald's via_cputemp.ko driver and have noticed 
that while I do not get readings using his driver as is, some printk's added 
into his code show that there is a reading being obtained.

Here is some sample output:
acpitz-virtual-0
Adapter: Virtual device
temp1:       +57.0?C  (crit = +105.0?C)

c7temp-isa-0000
Adapter: ISA adapter
in0:         +0.84 V
temp1:        +0.0?C

via_cputemp-isa-0000
Adapter: ISA adapter
Core 0:       +0.1?C

root at justin-mininote:/lib/modules/2.6.31-rc6justin/kernel/drivers/hwmon# dmesg 
| tail
[28068.954298] TEMP: 53
[28075.767438] show_temp: 3
[28075.767451] CPU:        0, MSR:     1169, eax:       35, edx:        0, 
err:        3
[28075.767459] TEMP: 53
[28096.575734] show_temp: 3
[28096.575746] CPU:        0, MSR:     1169, eax:       37, edx:        0, 
err:        3
[28096.575753] TEMP: 55
[28156.787908] show_temp: 3
[28156.787920] CPU:        0, MSR:     1169, eax:       38, edx:        0, 
err:        3
[28156.787928] TEMP: 56

As you can see, the dmesg log shows a CPU temp that tracks with but does not 
exactly duplicate the ACPI temp. To me, this means that I am probably getting 
good data.

The function in question is show_temp on lines 69-86 in the attached code. If 
someone can help me understand how the string buffer 'buf' with the temperature 
reading is supposed to be passed on to userland code, I'd appreciate it.

Once again, please be patient as I am NOT a programmer, just a guy with a C7 
cpu who want to get lm-sensors working.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20090822/7a428c73/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: via_cputemp.c
Type: text/x-csrc
Size: 10169 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20090822/7a428c73/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