From owner-freebsd-amd64@FreeBSD.ORG Tue Feb 12 20:57:35 2008 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6595016A46D for ; Tue, 12 Feb 2008 20:57:35 +0000 (UTC) (envelope-from kuzmich@rostov.ru) Received: from bufer-post.e-se.ru (bufer-post.e-se.ru [217.174.99.3]) by mx1.freebsd.org (Postfix) with ESMTP id A1CC813C4F6 for ; Tue, 12 Feb 2008 20:57:34 +0000 (UTC) (envelope-from kuzmich@rostov.ru) Received: from [77.66.152.114] ( [77.66.152.114]) by bufer-post.e-se.ru with ESMTP id 2351FC508416742876771; Tue, 12 Feb 2008 23:29:48 +0300 From: =?koi8-r?b?69XazsXDz9cg4czFy9PBzsTS?= To: Rui Paulo , freebsd-amd64@freebsd.org, Thomas Hurst Date: Tue, 12 Feb 2008 23:29:32 +0300 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802122329.32905.kuzmich@rostov.ru> X-Mailman-Approved-At: Wed, 13 Feb 2008 02:26:26 +0000 Cc: Subject: Re: CFT: k8temp driver X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Feb 2008 20:57:35 -0000 Thomas Hurst 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!