From owner-freebsd-current@FreeBSD.ORG Sun Mar 1 15:05:17 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45EDE1065708; Sun, 1 Mar 2009 15:05:17 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from mail-ew0-f166.google.com (mail-ew0-f166.google.com [209.85.219.166]) by mx1.freebsd.org (Postfix) with ESMTP id 729518FC2E; Sun, 1 Mar 2009 15:05:16 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: by ewy10 with SMTP id 10so1635417ewy.43 for ; Sun, 01 Mar 2009 07:05:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-pgp-agent:x-mailer; bh=gE3ofM+WZ6suu3i+d9Yfl2ic2FFBApBNvRtHOh7oafM=; b=hxec9QeS5wf1KONCqa5JuzwOoMKuXGYEGhjZFkQk3sDF8rtXzUNHmR63PPJ8awvz4O 7Fb6fE/hLoaOUea76/8t0nGW3aWrTyoCMdY58HrXFs/4wlokH9ob/fE6ZySYauXb1BBn UtPL8d+oCSm37VJmYogXJOnYQ/sHS0u3NPtQM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-pgp-agent:x-mailer; b=dMgEdZzn7WBLAk16Qdc4Q30yqHEgjpMUXojnViQ0Xq9xf5/BWTID/l2F35JRdao7FW NdXOi/Zs7DrYq3k/UNB5VftfU4YiIfULVHEAqKXNwMEe5jjpKVgV5Mp7Crct+rH7eEyu D+0Jm1qdUKHo8KnJRJVyTNCA25OnvyMlrVeTs= Received: by 10.210.110.5 with SMTP id i5mr2365501ebc.34.1235919914728; Sun, 01 Mar 2009 07:05:14 -0800 (PST) Received: from epsilon.lan (bl6-147-236.dsl.telepac.pt [82.155.147.236]) by mx.google.com with ESMTPS id 7sm3645207eyg.37.2009.03.01.07.05.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 01 Mar 2009 07:05:14 -0800 (PST) Sender: Rui Paulo Message-Id: <69C4F850-1DCC-4E15-84E7-1B0E7C656CE6@FreeBSD.org> From: Rui Paulo To: Norikatsu Shigemura In-Reply-To: <20090301234328.9aa4237c.nork@FreeBSD.org> Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-3--85328728" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Sun, 1 Mar 2009 15:05:08 +0000 References: <20090301181631.d2e3c89e.nork@FreeBSD.org> <554FEBB3-CB69-4502-9728-C4735B29F784@FreeBSD.org> <20090301234328.9aa4237c.nork@FreeBSD.org> X-Pgp-Agent: GPGMail 1.2.0 (v56) X-Mailer: Apple Mail (2.930.3) Cc: freebsd-current@FreeBSD.org Subject: Re: ktemp(8) on Phenom II X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2009 15:05:18 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --Apple-Mail-3--85328728 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On 1 Mar 2009, at 14:43, Norikatsu Shigemura wrote: > Hi Rui! > > On Sun, 1 Mar 2009 13:48:28 +0000 > Rui Paulo wrote: >>> chip=0x12031022 rev=0x00 hdr=0x00 >>> vendor = 'Advanced Micro Devices (AMD)' >>> device = '(Family 10h) Athlon 64/Opteron/Sempron >>> Miscellaneous Control' > >> Try replacing 0x1103 by 0x1203 in k8temp.c. >> Does that work? > > I got following results: > > $ sysctl -a | fgrep -e k8 -e temperature > dev.cpu.0.temperature: 143 > dev.cpu.1.temperature: 143 > dev.k8temp.0.%desc: AMD K8 Thermal Sensors > dev.k8temp.0.%driver: k8temp > dev.k8temp.0.%parent: hostb4 > dev.k8temp.0.sensor0.core0: 143 > dev.k8temp.0.sensor0.core1: 143 > dev.k8temp.0.sensor1.core0: 143 > dev.k8temp.0.sensor1.core1: 143 > > Accordingly BIOS reports CPU temperature is 32-36 celsius > (=89-97 fahrenheit). I don't know what is '143'. I see that AMD has changed the register layout on recent processors. I'll try to cook up something when I have the time. Regards, -- Rui Paulo --Apple-Mail-3--85328728 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iEYEARECAAYFAkmqpCUACgkQfD8M/ASTygK1/wCeIvNx7pk6oVlyNHUg+L8LoEnB ueEAoLDuLX71OMC4G88U++k/nRSfnBYh =6dYK -----END PGP SIGNATURE----- --Apple-Mail-3--85328728--