From owner-freebsd-amd64@FreeBSD.ORG Sun Feb 10 17:48:50 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 8393F16A420 for ; Sun, 10 Feb 2008 17:48:50 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id 291A413C44B for ; Sun, 10 Feb 2008 17:48:49 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so3734808fgg.35 for ; Sun, 10 Feb 2008 09:48:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=ah7EPyaFljbe0bCGs1+4vpoG36u00SHQJlDzj0UVIAs=; b=IH6H81fwGaGfMoUiQB5JcQJlM1UaBo86riylV7MLvokUwvOtn02I6C0c6E1hjUW4jZjTANsNAXVM+CWkwyxLXIKbmsKz/mk8wB92v4NaWSB+1BazkFC+eQEKZY+1kJTl/KJFDoDt6iE0fARWzSs8jziakfTPRDe4wdGxlYz9/og= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bvqs1nWyhpca8cBNg2pspvLergpMSOm0rTCi6/hqwBcrwIvPBFOJ+RSUzzDdlXS9Uiddc6zT45zyNky3XXMAVyXYG3s6nOsQpPwPNJBF3BDnhoiPs1F+F8dIFOxgsl3yrQdxAjCSospPI3K9PODCW6/1iHiMoca7LXPxmogoREc= Received: by 10.86.28.5 with SMTP id b5mr14149381fgb.76.1202663999437; Sun, 10 Feb 2008 09:19:59 -0800 (PST) Received: by 10.86.99.17 with HTTP; Sun, 10 Feb 2008 09:19:59 -0800 (PST) Message-ID: <790a9fff0802100919wa1018f2t3ec0e71efb62aa00@mail.gmail.com> Date: Sun, 10 Feb 2008 11:19:59 -0600 From: "Scot Hetzel" To: "Rui Paulo" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-amd64@freebsd.org 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: Sun, 10 Feb 2008 17:48:50 -0000 On 2/10/08, Rui Paulo wrote: > Hi, > Some AMD systems have two thermal sensors on both cores. I wrote a > simple driver to access these temperatures, but I don't have a system > to test. If anyone has a AMD K8 system, I would love if you could test > the k8temp driver that I wrote based on the Linux one. > > Get it at: > http://people.freebsd.org/~rpaulo/k8temp.tgz > > Compile/test with: > $ tar xzvf k8temp.tgz && cd k8temp > $ make SYSDIR=/path/to/src/sys > # kldload ./k8temp.ko > > This is still pre-alpha quality, so please don't use it on a > production system. > > Thanks in advance. I have been using sysutils/k8temp from ports to get the temperature for my system: # k8temp -d CPUID: Vendor: AuthenticAMD, Id=0x20f42 Model=4 Family=15 Stepping=2 Advanced Power Management=0x3f Temperature sensor: Yes Frequency ID control: Yes Voltage ID control: Yes THERMTRIP support: Yes HW Thermal control: Yes SW Thermal control: Yes 100MHz multipliers: No HW P-State control: No TSC Invariant: No Thermtrip=0x00000b24 (CurTmp=0x00 (-49c) TjOffset=0x00 DiodeOffset=0x0b (0c)) Thermtrip=0x006d0b20 (CurTmp=0x6d (60c) TjOffset=0x00 DiodeOffset=0x0b (0c)) CPU 0 Core 1 Sensor 0: 60c After compiling and loading the module, I am seeing these temperatures in the sysctl tree: # sysctl dev.k8temp dev.k8temp.0.%desc: AMD K8 Thermal Sensors dev.k8temp.0.%driver: k8temp dev.k8temp.0.%parent: hostb4 dev.k8temp.0.sensor0.core0: 59 dev.k8temp.0.sensor0.core1: -49 dev.k8temp.0.sensor1.core0: 59 dev.k8temp.0.sensor1.core1: 59 Thanks for creating the k8temp module. Scot