Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Feb 2008 23:29:32 +0300
From:      =?koi8-r?b?69XazsXDz9cg4czFy9PBzsTS?= <kuzmich@rostov.ru>
To:        Rui Paulo <rpaulo@FreeBSD.org>, freebsd-amd64@freebsd.org, Thomas Hurst <tom.hurst@clara.net>
Subject:   Re: CFT: k8temp driver
Message-ID:  <200802122329.32905.kuzmich@rostov.ru>

next in thread | raw e-mail | index | archive | help
Thomas Hurst <tom.hurst@clara.net> wrote:
>>Maybe it's revision dependent.  The data sheet is here:
>>http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/32559.pdf

Thanks! 

Here is small patch for my processor:

278c278
<       temp = ((temp >> 16) & 0xff) - K8TEMP_MINTEMP;
---
>       temp = (((temp >> 14) & 0xfff) - K8TEMP_MINTEMP) / 4;

kuzmich# grep 'CPU:' /var/run/dmesg.boot
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ (1004.64-MHz 686-class 
CPU)
kuzmich# sysctl -a | grep k8temp
dev.k8temp.0.%desc: AMD K8 Thermal Sensors
dev.k8temp.0.%driver: k8temp
dev.k8temp.0.%parent: hostb3
dev.k8temp.0.sensor0.core0: 67
dev.k8temp.0.sensor0.core1: 56
dev.k8temp.0.sensor1.core0: 67
dev.k8temp.0.sensor1.core1: 67
kuzmich#

67C seems more correct then 30-35C before patch


Many thanks to Rui Paulo for initial driver!




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802122329.32905.kuzmich>