From owner-freebsd-stable@FreeBSD.ORG Fri Mar 15 19:31:49 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E0603DC1 for ; Fri, 15 Mar 2013 19:31:49 +0000 (UTC) (envelope-from ike@blackskyresearch.net) Received: from rs149.luxsci.com (rs149.luxsci.com [64.49.224.181]) by mx1.freebsd.org (Postfix) with ESMTP id AC8CCAF0 for ; Fri, 15 Mar 2013 19:31:49 +0000 (UTC) Received: from rs149.luxsci.com (localhost.localdomain [127.0.0.1]) by rs149.luxsci.com (8.14.4/8.13.8) with ESMTP id r2FJVgIC023202; Fri, 15 Mar 2013 15:31:43 -0400 Received: (from root@localhost) by rs149.luxsci.com (8.14.4/8.13.8/Submit) id r2FJV2Gr022330; Fri, 15 Mar 2013 19:31:02 GMT Received: (from sender 74627) (rs149.luxsci.com [127.0.0.1]) by LuxSci SP; Fri, 15 Mar 2013 19:31:02 +0000 Subject: Re: amdtemp does not find my CPU. Content-Type: text/plain; charset=us-ascii From: "Isaac (.ike) Levy" In-Reply-To: <51437383.2080705@ohlste.in> Date: Fri, 15 Mar 2013 15:30:55 -0400 Content-Transfer-Encoding: quoted-printable References: <20130315161508.GA963@mycenae.sbb.rs> <51437383.2080705@ohlste.in> To: Jim Ohlstein X-Lux-Comment: Message r2FJUuYT022091 sent by user #74627 Message-Id: <1363375862-896318.757651988.fr2FJUuYT022091@rs149.luxsci.com> X-Comment: LuxSci SP Message ID - 1363375862-896318.757651988 Cc: freebsd-stable@freebsd.org, Zoran Kolic X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Mar 2013 19:31:49 -0000 On Mar 15, 2013, at 3:16 PM, Jim Ohlstein wrote: > On 3/15/13 12:15 PM, Zoran Kolic wrote: >> After I installed 9.1 amd64 on node with amd 8120, >> I was not able to read temperatures out of the box. >> I fetched source for head module and compiled. And >> loaded module. Still nothing. I assume my cpu is >> a bit different. >> Best regards >=20 > The module from head "works" for me with an 8120 on 9.1 stable = (r247893) > though the results are inconsistent. I am not certain of how useful = they > are. >=20 > # sysctl hw.model > hw.model: AMD FX(tm)-8120 Eight-Core Processor >=20 > # kldstat | grep amd > 5 1 0xffffffff8183e000 1043 amdtemp.ko >=20 > # sysctl -a | grep dev.amdtemp > dev.amdtemp.0.%desc: AMD CPU On-Die Thermal Sensors > dev.amdtemp.0.%driver: amdtemp > dev.amdtemp.0.%parent: hostb4 > dev.amdtemp.0.sensor_offset: 0 > dev.amdtemp.0.core0.sensor0: 47.7C >=20 >=20 > Here are results taken at 0.1 second intervals using a shell script: >=20 > dev.amdtemp.0.core0.sensor0: 42.1C > dev.amdtemp.0.core0.sensor0: 42.2C > dev.amdtemp.0.core0.sensor0: 42.0C > dev.amdtemp.0.core0.sensor0: 42.1C > dev.amdtemp.0.core0.sensor0: 41.8C > dev.amdtemp.0.core0.sensor0: 41.7C > dev.amdtemp.0.core0.sensor0: 51.1C > dev.amdtemp.0.core0.sensor0: 51.0C > dev.amdtemp.0.core0.sensor0: 50.7C > dev.amdtemp.0.core0.sensor0: 50.5C > dev.amdtemp.0.core0.sensor0: 50.1C > dev.amdtemp.0.core0.sensor0: 49.8C > dev.amdtemp.0.core0.sensor0: 49.5C > dev.amdtemp.0.core0.sensor0: 49.2C > dev.amdtemp.0.core0.sensor0: 49.2C >=20 >=20 > and again: >=20 > dev.amdtemp.0.core0.sensor0: 41.5C > dev.amdtemp.0.core0.sensor0: 41.2C > dev.amdtemp.0.core0.sensor0: 40.8C > dev.amdtemp.0.core0.sensor0: 40.8C > dev.amdtemp.0.core0.sensor0: 41.0C > dev.amdtemp.0.core0.sensor0: 41.3C > dev.amdtemp.0.core0.sensor0: 41.6C > dev.amdtemp.0.core0.sensor0: 41.3C > dev.amdtemp.0.core0.sensor0: 54.0C > dev.amdtemp.0.core0.sensor0: 53.7C > dev.amdtemp.0.core0.sensor0: 53.3C > dev.amdtemp.0.core0.sensor0: 53.1C > dev.amdtemp.0.core0.sensor0: 52.7C > dev.amdtemp.0.core0.sensor0: 52.3C > dev.amdtemp.0.core0.sensor0: 52.1C > dev.amdtemp.0.core0.sensor0: 51.7C > dev.amdtemp.0.core0.sensor0: 51.5C >=20 > You can see during each series there are sudden increases of over 9C = and > almost 13C respectively. >=20 > The same effect is seen if I track any of the individual cores with > "dev.cpu.[0-7].temperature". Here's an example with a 9C jump in 0.1 = second. >=20 > dev.cpu.3.temperature: 41.5C > dev.cpu.3.temperature: 41.5C > dev.cpu.3.temperature: 41.7C > dev.cpu.3.temperature: 41.7C > dev.cpu.3.temperature: 41.3C > dev.cpu.3.temperature: 41.0C > dev.cpu.3.temperature: 40.7C > dev.cpu.3.temperature: 49.8C > dev.cpu.3.temperature: 49.5C > dev.cpu.3.temperature: 49.2C > dev.cpu.3.temperature: 48.8C > dev.cpu.3.temperature: 48.6C > dev.cpu.3.temperature: 48.2C > dev.cpu.3.temperature: 48.0C >=20 > I don't have hands on access to this box as it's in a datacenter 1000 > miles from me, but the techs there had a look and all "seems to be = OK". I get the same problem as Zoran's original post. My issue, after enabling the kernel module in loader.conf and rebooting, = I don't see the temperature sysctl values. Fresh 9.1-REL, amd64 (ISO Image, not yet updated from 9.1-REL head) AMD A8-5500 CPU, full dmesg can be found here: http://www.nycbug.org/?action=3Ddmesgd&dmesgid=3D2450 I was thinking of compiling-in "device amdtemp" this weekend- anyone = know of anything else I can do to help provide a clear and easily = reproducible test case? Best, .ike