* [lm-sensors] AMD K8 digital temperature sensor
@ 2006-07-03 22:03 Rudolf Marek
2006-07-06 0:55 ` Philip Pokorny
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: Rudolf Marek @ 2006-07-03 22:03 UTC (permalink / raw)
To: lm-sensors
Hello all,
After new specs was released. I discovered that even older AMD K8 have digital
temperature sensor.
http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/32559.pdf
(page 177)
I created a device driver for that
http://assembler.cz/download/amd_digital_temp.tar.gz
You need to have AMD K8, up to four different temps can be monitored
two in one core...
The driver will create new hwmon device. No userspace support yet.
If someone with dual core would test it - I'm interested in results.
cat /sys/class/hwmon/hwmon1/device/temp*
ls /sys/class/hwmon/hwmon1/device/temp*
cat /proc/cpuinfo
(replace 1 with correct number please)
"Many thanks" goes to Jean, helping me a lot hunting nasty bugs ;)
Regards
Rudolf
^ permalink raw reply [flat|nested] 8+ messages in thread
* [lm-sensors] AMD K8 digital temperature sensor
2006-07-03 22:03 [lm-sensors] AMD K8 digital temperature sensor Rudolf Marek
@ 2006-07-06 0:55 ` Philip Pokorny
2006-07-06 13:32 ` Rudolf Marek
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Philip Pokorny @ 2006-07-06 0:55 UTC (permalink / raw)
To: lm-sensors
Very cool.
My initial tests on Red Hat failed because they don't have HWMON in the
kernel yet. So I tried a beta of SLES 10 and it compiled and loaded just
fine. I found the temperature files under:
> /sys/class/hwmon/hwmon?/device/temp?_input
This system has single core CPU's but there were two hwmon devices
(hwmon0, hwmon1) each with a temp1_input. (Perhaps that's because I
didn't apply the kernel patch?)
This system also has IPMI (rather than lm_sensors.. :( ) so I plotted
the new readings against the IPMI readings. For one CPU the digital
sensor is higher, for the other it's lower...
http://www.mindspring.com/~ppokorny/temps-k8.png
Do the data sheets mention if these values are on the "Tcontrol" scale
or are they supposed to be accurate measurements? Do they need to be
adjusted by the CPU Tcontrol offsets?
Awesome,
:v)
--
Philip Pokorny, Director of Engineering, RHCE
Tel: 415-370-0835 Fax: 415-954-2899 Toll Free: 888-PENGUIN
PENGUIN COMPUTING, INC.
www.penguincomputing.com
Rudolf Marek wrote:
>Hello all,
>
>After new specs was released. I discovered that even older AMD K8 have digital
>temperature sensor.
>
>http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/32559.pdf
>(page 177)
>
>I created a device driver for that
>http://assembler.cz/download/amd_digital_temp.tar.gz
>
>You need to have AMD K8, up to four different temps can be monitored
>two in one core...
>
>The driver will create new hwmon device. No userspace support yet.
>If someone with dual core would test it - I'm interested in results.
>cat /sys/class/hwmon/hwmon1/device/temp*
>ls /sys/class/hwmon/hwmon1/device/temp*
>cat /proc/cpuinfo
>
>(replace 1 with correct number please)
>
>"Many thanks" goes to Jean, helping me a lot hunting nasty bugs ;)
>
>Regards
>Rudolf
>
>_______________________________________________
>lm-sensors mailing list
>lm-sensors at lm-sensors.org
>http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [lm-sensors] AMD K8 digital temperature sensor
2006-07-03 22:03 [lm-sensors] AMD K8 digital temperature sensor Rudolf Marek
2006-07-06 0:55 ` Philip Pokorny
@ 2006-07-06 13:32 ` Rudolf Marek
2006-07-06 14:08 ` Rudolf Marek
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Rudolf Marek @ 2006-07-06 13:32 UTC (permalink / raw)
To: lm-sensors
Philip Pokorny wrote:
> Very cool.
Yeah I like it too on my opteron 144 ;)
> My initial tests on Red Hat failed because they don't have HWMON in the
> kernel yet. So I tried a beta of SLES 10 and it compiled and loaded just
> fine. I found the temperature files under:
>
>> /sys/class/hwmon/hwmon?/device/temp?_input
>
>
> This system has single core CPU's but there were two hwmon devices
> (hwmon0, hwmon1) each with a temp1_input. (Perhaps that's because I
> didn't apply the kernel patch?)
Hmm that is strange? Maybe you two cpus? (so two PCI devices), one for each CPU.
> This system also has IPMI (rather than lm_sensors.. :( ) so I plotted
> the new readings against the IPMI readings. For one CPU the digital
> sensor is higher, for the other it's lower...
>
> http://www.mindspring.com/~ppokorny/temps-k8.png
Looks good.
> Do the data sheets mention if these values are on the "Tcontrol" scale
> or are they supposed to be accurate measurements? Do they need to be
> adjusted by the CPU Tcontrol offsets?
I belive not. You need adjustments just if you are using external device to
measure the demp (ie some diode input of any chip ;)
Regards
Rudolf
^ permalink raw reply [flat|nested] 8+ messages in thread
* [lm-sensors] AMD K8 digital temperature sensor
2006-07-03 22:03 [lm-sensors] AMD K8 digital temperature sensor Rudolf Marek
2006-07-06 0:55 ` Philip Pokorny
2006-07-06 13:32 ` Rudolf Marek
@ 2006-07-06 14:08 ` Rudolf Marek
2006-07-07 15:59 ` David Hubbard
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Rudolf Marek @ 2006-07-06 14:08 UTC (permalink / raw)
To: lm-sensors
Hi all,
I have updated the archive at http://assembler.cz/download/amd_digital_temp.tar.gz
So it supports the userspace too ;)
There was a little problem with PCI support to libsensors but it seems I solved
it somehow. I'm attaching the patch here too.
It adds new bus of type PCI and does not change the "address" which is scalar.
Instead it "concatenates" the PCI addr together.
0000:00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
Miscellaneous Control
k8temp-pci-0183
Adapter: PCI adapter
Core0Temp: +47?C
Regards
Rudolf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add_pci_and_k8temp.patch
Type: text/x-patch
Size: 8333 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20060706/cec73032/attachment-0001.bin
^ permalink raw reply [flat|nested] 8+ messages in thread
* [lm-sensors] AMD K8 digital temperature sensor
2006-07-03 22:03 [lm-sensors] AMD K8 digital temperature sensor Rudolf Marek
` (2 preceding siblings ...)
2006-07-06 14:08 ` Rudolf Marek
@ 2006-07-07 15:59 ` David Hubbard
2006-07-12 0:26 ` David Hubbard
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: David Hubbard @ 2006-07-07 15:59 UTC (permalink / raw)
To: lm-sensors
Hi Rudolf,
> After new specs was released. I discovered that even older AMD K8 have digital
> temperature sensor.
>
> http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/32559.pdf
> (page 177)
>
> I created a device driver for that
> http://assembler.cz/download/amd_digital_temp.tar.gz
>
> You need to have AMD K8, up to four different temps can be monitored
> two in one core...
>
> The driver will create new hwmon device. No userspace support yet.
> If someone with dual core would test it - I'm interested in results.
> cat /sys/class/hwmon/hwmon1/device/temp*
> ls /sys/class/hwmon/hwmon1/device/temp*
> cat /proc/cpuinfo
I'll attempt to apply this to my kernel tonight. I have an Athlon 64
X2, so I can give you dual-core results. The temperatures reported by
the W83627EHF have puzzled me, because I thought I was getting two
readings from the CPU. Why is that?
>
> (replace 1 with correct number please)
>
> "Many thanks" goes to Jean, helping me a lot hunting nasty bugs ;)
David
^ permalink raw reply [flat|nested] 8+ messages in thread
* [lm-sensors] AMD K8 digital temperature sensor
2006-07-03 22:03 [lm-sensors] AMD K8 digital temperature sensor Rudolf Marek
` (3 preceding siblings ...)
2006-07-07 15:59 ` David Hubbard
@ 2006-07-12 0:26 ` David Hubbard
2006-07-12 6:08 ` Rudolf Marek
2006-07-12 13:43 ` David Hubbard
6 siblings, 0 replies; 8+ messages in thread
From: David Hubbard @ 2006-07-12 0:26 UTC (permalink / raw)
To: lm-sensors
Hi Rudolf,
Attached is a zip file containing the results of the k8temp driver on
my machine. It compiles and installs with no problems. The temperature
readings do not compare to what the w83627ehf reports. In the zip file
is comp_temp.gif which plots the results. It seems the digital
temperature sensors are located nearer the surface of the chip, or
perhaps are isolated thermally somehow, since they respond much faster
to a change in the load average. I did not test whether the
temperatures respond differently to a load applied to just one CPU.
Also, I do not know why the w83627ehf reports two temperatures from
the athlon 64 x2. It may be the processor has two analog temperature
pins. However, the temperatures are always within 1 degree C of each
other.
David
On 7/6/06, Rudolf Marek <r.marek at sh.cvut.cz> wrote:
> Hi all,
>
> I have updated the archive at http://assembler.cz/download/amd_digital_temp.tar.gz
>
> So it supports the userspace too ;)
>
> There was a little problem with PCI support to libsensors but it seems I solved
> it somehow. I'm attaching the patch here too.
>
> It adds new bus of type PCI and does not change the "address" which is scalar.
> Instead it "concatenates" the PCI addr together.
>
> 0000:00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
> Miscellaneous Control
>
> k8temp-pci-0183
> Adapter: PCI adapter
> Core0Temp: +47?C
>
> Regards
> Rudolf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: comp_temp_athlon64_x2.zip
Type: application/zip
Size: 165197 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20060711/bd9325e4/attachment-0001.zip
^ permalink raw reply [flat|nested] 8+ messages in thread
* [lm-sensors] AMD K8 digital temperature sensor
2006-07-03 22:03 [lm-sensors] AMD K8 digital temperature sensor Rudolf Marek
` (4 preceding siblings ...)
2006-07-12 0:26 ` David Hubbard
@ 2006-07-12 6:08 ` Rudolf Marek
2006-07-12 13:43 ` David Hubbard
6 siblings, 0 replies; 8+ messages in thread
From: Rudolf Marek @ 2006-07-12 6:08 UTC (permalink / raw)
To: lm-sensors
David Hubbard wrote:
> Hi Rudolf,
>
> Attached is a zip file containing the results of the k8temp driver on
> my machine. It compiles and installs with no problems. The temperature
> readings do not compare to what the w83627ehf reports. In the zip file
> is comp_temp.gif which plots the results. It seems the digital
> temperature sensors are located nearer the surface of the chip, or
> perhaps are isolated thermally somehow, since they respond much faster
> to a change in the load average.
Yes they should be somewhere in the core imho.
> I did not test whether the
> temperatures respond differently to a load applied to just one CPU.
> Also, I do not know why the w83627ehf reports two temperatures from
> the athlon 64 x2. It may be the processor has two analog temperature
> pins.
Yes it has two analog pins.
> However, the temperatures are always within 1 degree C of each
> other.
I think thats because of the load balancing.
Many thanks for the test. Now we know:
1) it works on single core
2) it works on dualcore
3) it works on 2x CPU
4) it shoud work on 2x dualcore ;)
Just a curios did you test with latest version :) ? (it has dword reads for temps)
Regards
Rudolf
^ permalink raw reply [flat|nested] 8+ messages in thread
* [lm-sensors] AMD K8 digital temperature sensor
2006-07-03 22:03 [lm-sensors] AMD K8 digital temperature sensor Rudolf Marek
` (5 preceding siblings ...)
2006-07-12 6:08 ` Rudolf Marek
@ 2006-07-12 13:43 ` David Hubbard
6 siblings, 0 replies; 8+ messages in thread
From: David Hubbard @ 2006-07-12 13:43 UTC (permalink / raw)
To: lm-sensors
Hi Rudolf,
> > Attached is a zip file containing the results of the k8temp driver on
> > my machine. It compiles and installs with no problems. The temperature
> > readings do not compare to what the w83627ehf reports. In the zip file
> > is comp_temp.gif which plots the results. It seems the digital
> > temperature sensors are located nearer the surface of the chip, or
> > perhaps are isolated thermally somehow, since they respond much faster
> > to a change in the load average.
>
> Yes they should be somewhere in the core imho.
It looks like there are four sensors then?
> > I did not test whether the
> > temperatures respond differently to a load applied to just one CPU.
> > Also, I do not know why the w83627ehf reports two temperatures from
> > the athlon 64 x2. It may be the processor has two analog temperature
> > pins.
>
> Yes it has two analog pins.
>
> > However, the temperatures are always within 1 degree C of each
> > other.
>
> I think thats because of the load balancing.
I could test that, I don't think it's load balancing, but I don't have
any data to back it up.
> Many thanks for the test. Now we know:
>
> 1) it works on single core
> 2) it works on dualcore
> 3) it works on 2x CPU
> 4) it shoud work on 2x dualcore ;)
>
> Just a curios did you test with latest version :) ? (it has dword reads for temps)
I'll double-check, but I downloaded
http://assembler.cz/download/amd_digital_temp.tar.gz on Friday.
David
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-07-12 13:43 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-03 22:03 [lm-sensors] AMD K8 digital temperature sensor Rudolf Marek
2006-07-06 0:55 ` Philip Pokorny
2006-07-06 13:32 ` Rudolf Marek
2006-07-06 14:08 ` Rudolf Marek
2006-07-07 15:59 ` David Hubbard
2006-07-12 0:26 ` David Hubbard
2006-07-12 6:08 ` Rudolf Marek
2006-07-12 13:43 ` David Hubbard
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.