From owner-freebsd-acpi@freebsd.org Tue Dec 15 22:58:10 2015 Return-Path: Delivered-To: freebsd-acpi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4904BA48A4B for ; Tue, 15 Dec 2015 22:58:10 +0000 (UTC) (envelope-from bengta@sics.se) Received: from mail-lb0-x235.google.com (mail-lb0-x235.google.com [IPv6:2a00:1450:4010:c04::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C17081616 for ; Tue, 15 Dec 2015 22:58:09 +0000 (UTC) (envelope-from bengta@sics.se) Received: by mail-lb0-x235.google.com with SMTP id cs9so15218882lbb.1 for ; Tue, 15 Dec 2015 14:58:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sics-se.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=yavaacjP3nqH9TfYzn/XwQeEFO6udHGfyBPJl97qXqg=; b=Tgx4Y54ZFjFBtNsRJWSXv0RrPchSrEgBpn0yHyUgxQaXYt2SJvC4dUsrYiLFWS6Cgw lGbgpX/kEgn0OHvl39eHUJ0D9hng2zXew+tBcAQBVO0Iu67XbTaPnuSnaMyWxHgSSRDp vv4mhb+OxpGkDhBCkD1xANTm4j0pCenp+6cKP53FEavgRSgmq84kSGwJonyx//8olfCj avYnIRjzFGnFLwSiq/qgLnzaEUAvajcl1VtV6fVUgh7siCv5bokbA3c+csfRj3XhnxTb Phv3UDwL42GiIulFZFzoD6oPn+Ozhak2iGgcSwzvdXcAOI/4R3YayXYupCkeSvK2azON 2fgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-type; bh=yavaacjP3nqH9TfYzn/XwQeEFO6udHGfyBPJl97qXqg=; b=HcOpxjCWBPOIqFIlxObrkLCil1ZqJaJ1uxx7FoIhXkK+BD+eYsMSyqO6XWHL9Qfg3E kbz/R01VC7BkJKFMQEbMCzPZzw1oaRyYQMAq8qdeuqBRJDNo04zGv1UySWMM4sZOINKh I01hqm05kyHNruCz8QKOQPKUGQtecVzSTWU5ypEJqZtILrC6rUkcbCsjp521T73XWvoV 2K4nbUzELU9rxjS57neZq/QLA5Y33EcfHGXIAFwJr4TLkUUDe377GSDSusQDIcYznsUP hU+L1yDnH0Sn/EMAi/d7QTXPRj5XybftqcCT6Bmsu3c/CGDBEd3/CW2UU7Eobyu6MMDf Zi2w== X-Gm-Message-State: ALoCoQmK8c4D9Sz8nDPRJM6lm4zN0F4TSAlyi/+sxxm1iEgQT8vXiXl8XhXyPUcBoz4gRJNgFxtl9pQKFDN7xm0DqCTMYjcljQ== X-Received: by 10.112.170.7 with SMTP id ai7mr17271704lbc.102.1450220287856; Tue, 15 Dec 2015 14:58:07 -0800 (PST) Received: from P142s.sics.se (h139n3-u-d1.ias.bredband.telia.com. [90.228.197.139]) by smtp.gmail.com with ESMTPSA id d130sm528289lfe.18.2015.12.15.14.58.06 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 15 Dec 2015 14:58:07 -0800 (PST) Received: from P142s.sics.se (localhost [127.0.0.1]) by P142s.sics.se (8.15.2/8.15.2) with ESMTP id tBFMvUSZ002353; Tue, 15 Dec 2015 23:57:30 +0100 (CET) (envelope-from bengta@P142s.sics.se) Received: (from bengta@localhost) by P142s.sics.se (8.15.2/8.15.2/Submit) id tBFMvSZg002352; Tue, 15 Dec 2015 23:57:28 +0100 (CET) (envelope-from bengta@P142s.sics.se) From: Bengt Ahlgren To: Ian Smith Cc: Johannes Dieterich , freebsd-acpi@freebsd.org Subject: Re: AMD A12-8800B ACPI questions (turbo mode, temp zones) In-Reply-To: <20151216005408.B61100@sola.nimnet.asn.au> (Ian Smith's message of "Wed, 16 Dec 2015 01:15:48 +1100 (EST)") References: <20151216005408.B61100@sola.nimnet.asn.au> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (berkeley-unix) Date: Tue, 15 Dec 2015 23:57:28 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Dec 2015 22:58:10 -0000 Ian Smith writes: > On Sun, 13 Dec 2015 19:53:52 -0500, Johannes Dieterich wrote: > > Dear list, > > > > I am running CURRENT on an HP elitebook 745 G3 which comes with a AMD > > A12-8800B CPU. All in all, it runs very well with just a few nits to > > pick. Two of them are ACPI related. > > > > 1) there are 5 thermal zones defined out of which only two provide > > reasonable numbers it seems: > > > > hw.acpi.thermal.tz4.temperature: 34.1C > > hw.acpi.thermal.tz3.temperature: 0.1C > > hw.acpi.thermal.tz2.temperature: 0.1C > > hw.acpi.thermal.tz1.temperature: 0.1C > > hw.acpi.thermal.tz0.temperature: 56.1C > > > > my gut feeling is that tz0-tz3 may be the CPU cores and tz4 would be > > the GPU (which does not work in BSD ATM, hence consistently lower > > temp). I guess this is not a big deal (everything works) but I still > > wonder how to fix it. > > Not sure if anything needs fixing, but I only have Intel gear these > days and am not up on the AMD side of things. However, please show: > > % sysctl dev.cpu > % sysctl hw.acpi.thermal > > which may provide more clues. Perhaps all 4 cores are in one package, > in which case individual CPU temperatures may not be too meaningful. I > don't know whether there's any equivalent to coretemp(4) for AMD CPUs? Yes, amdtemp(4), which on this system gives one value per processor package: $ sysctl 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: 24.6C dev.amdtemp.1.%desc: AMD CPU On-Die Thermal Sensors dev.amdtemp.1.%driver: amdtemp dev.amdtemp.1.%parent: hostb10 dev.amdtemp.1.sensor_offset: 0 dev.amdtemp.1.core0.sensor0: 25.3C Those values however seem a bit low to be true... > Yours won't use est(4) but perhaps powernow(0) - 0 meaning no manpage :) > but both are in GENERIC kernels. You should be able to glean from dmesg > which driver/s are in use; a verbose dmesg.boot might come in handy. It is called "hwpstate": $ sysctl dev.hwpstate dev.hwpstate.0.%desc: Cool`n'Quiet 2.0 dev.hwpstate.0.%driver: hwpstate dev.hwpstate.0.%parent: cpu0 dev.hwpstate.0.freq_settings: 3100/10920 2700/8600 2200/6200 1800/4500 1400/3105 Bengt > > 2) turbo mode: this is a more major issue. sysctl reports the > > following for all four cores: > > > > dev.cpu.0.cx_lowest: C2 > > dev.cpu.0.cx_supported: C1/1/0 C2/2/400 > > dev.cpu.0.freq_levels: 2100/4717 1800/3450 1400/2320 > > dev.cpu.0.freq: 2100 > > > > >From the intel CPUs w/ turbo mode I had before I know that there > > should be (at least) a 2101 frequency indicating the turbo clock. This > > frequency is absent, I suspect this means turbo mode does not work. > > Or that these CPUs just don't have a turbo mode, as such? I expect the > specs on AMD's site should mention that, either way? > > > How can I debug this? I believe also that this AMD chip has multiple > > frequencies above the base clock of 2100, so how would that show? > > What leads you to believe that? Where is this documented? > > > Loaded modules: > > > > Id Refs Address Size Name > > 1 23 0xffffffff80200000 1e79670 kernel > > 2 1 0xffffffff8207b000 384858 zfs.ko > > 3 2 0xffffffff82400000 ca38 opensolaris.ko > > 4 1 0xffffffff8240d000 22b98 geom_eli.ko > > 5 1 0xffffffff82431000 ac60 aesni.ko > > 6 1 0xffffffff8243d000 1c520 fuse.ko > > 7 1 0xffffffff82621000 358b ums.ko > > 8 1 0xffffffff82625000 223c4 ipfw.ko > > > > I should note that I boot in legacy mode, not EFI. > > > > asl dump available from http://llamapost.net/elitebook.asl > > If it cxomes to that .. > > > Thanks a lot! > > > > Johannes > > Not much help, but I see noone else springing to your aid so far .. > > cheers, Ian > _______________________________________________ > freebsd-acpi@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-acpi > To unsubscribe, send any mail to "freebsd-acpi-unsubscribe@freebsd.org"