From owner-freebsd-acpi@freebsd.org Tue Aug 16 09:20:29 2016 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 743B9BBB074 for ; Tue, 16 Aug 2016 09:20:29 +0000 (UTC) (envelope-from pribyl@lowlevel.cz) Received: from mx.sandbox.cz (sandbox.cz [87.236.197.188]) by mx1.freebsd.org (Postfix) with ESMTP id 3C8661A2E for ; Tue, 16 Aug 2016 09:20:27 +0000 (UTC) (envelope-from pribyl@lowlevel.cz) Received: by sandbox.cz (Postfix, from userid 1007) id 6E7E86017E4; Tue, 16 Aug 2016 11:14:37 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by sandbox.cz (Postfix) with ESMTP id 60A066017E3 for ; Tue, 16 Aug 2016 11:14:37 +0200 (CEST) Date: Tue, 16 Aug 2016 11:14:37 +0200 (CEST) From: Adam Pribyl X-X-Sender: covex@sandbox.cz To: freebsd-acpi@freebsd.org Subject: ACPI resume code Message-ID: User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2016 09:20:29 -0000 I am trying to make suspend/resume working on Zotac ZBOX Nano AQ2 with 10.3: https://forums.freebsd.org/threads/57253/ The acpiconf -s 3 suspends OK but it does not resume. Setting sysctl debug.acpi.resume_beep=1 produces a long beep, then it probaly restarts, shortly beeps as during normal POST and boots up (no resume). What is this "resume code" that should take care of wakeup? ASL? It looks like the system reboots during its execution. How can one debug this? Thanks Adam Pribyl From owner-freebsd-acpi@freebsd.org Tue Aug 16 09:58:15 2016 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 479EDBBC049 for ; Tue, 16 Aug 2016 09:58:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 374EC1468 for ; Tue, 16 Aug 2016 09:58:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u7G9wFdg066958 for ; Tue, 16 Aug 2016 09:58:15 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-acpi@FreeBSD.org Subject: [Bug 202551] ACPI, Exception, AE_ERROR, Could not acquire mutex Date: Tue, 16 Aug 2016 09:58:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: afiskon@devzen.ru X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-acpi@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2016 09:58:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D202551 Aleksander Alekseev changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |afiskon@devzen.ru --- Comment #1 from Aleksander Alekseev --- Could be related to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211= 895 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-acpi@freebsd.org Thu Aug 18 02:50:20 2016 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 4EA21BBEB8E for ; Thu, 18 Aug 2016 02:50:20 +0000 (UTC) (envelope-from am_dxer@fastmail.fm) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 294C1186D for ; Thu, 18 Aug 2016 02:50:19 +0000 (UTC) (envelope-from am_dxer@fastmail.fm) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4275E20824 for ; Wed, 17 Aug 2016 22:50:13 -0400 (EDT) Received: from web2 ([10.202.2.212]) by compute6.internal (MEProxy); Wed, 17 Aug 2016 22:50:13 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=rM6 4i6PQBcJrRQ0Y/beofpNVyGQ=; b=jpCq/TCb8c3AlFrszn9iJ50PXzHYbTw7DLV cyF0VmUf3G62Lv1Kot7kbDesLB0uiHMIdsZwn9sqOfpHMWoVP0iZge14eX8+SMA2 iW8cjDtuaJcfjfqFHUr6Qb03wINcsFbPAkQIlTihIASvyYkoC6oovfLjSMC8R0ap tBncSvTk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=rM64i6PQBcJrRQ0Y/beofpNVyGQ=; b=rUlLd xKUKtcKYpc3fB6wRx52T1cbe7edjNDqbTMP77TyUIqe4OMutPgNamkeLMZHcTsHd HQK9kBRAlE6e38wKk0v3CO/bf7LAxZ9HvyDxbhwFFupSvNpCpiEzoF6C9X8/00cq jaANSZXotaoX/sFelL/oWDmpV6rTuapy0x1Z4I= Received: by mailuser.nyi.internal (Postfix, from userid 99) id 0DE0DD0229; Wed, 17 Aug 2016 22:50:13 -0400 (EDT) Message-Id: <1471488612.2196853.698646081.0844D23B@webmail.messagingengine.com> X-Sasl-Enc: aVRu6oHr4VOoqCDKYOC6poMvR0F7hovmGv2vDUxU2Amr 1471488612 From: am_dxer@fastmail.fm To: freebsd-acpi@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - html Subject: Problems with CPU throttling on HP 15-n066us laptop Date: Wed, 17 Aug 2016 22:50:12 -0400 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Aug 2016 02:50:20 -0000 Hello, I purchased a new laptop for FreeBSD and am having some problems with CPU throttling. This laptop has an aMD a10-5745m processor. I cannot start powerd and the frequency levels in dev.cpu are absent. I tried with 11 and when that didn't work, I upgraded to Current. The laptop is running very hot and the fans are often running at a high speed so I think the cpu is running near full speed. This is the only issue I am having in general use of the laptop. I will include the url for my asl below as well as the output of dmesg after boot -v and sysctl hw.acpi. I noticed messages like "acpi_ec0: EcCommand: no response to 0x84" near the bottom of the dmesg but honestly don't know enough about acpi to say whether this could be causing the problem. I tried Googling the error and found people who seemed to be having trouble with temperature readings and battery status. For me, the battery status is working fine when I check it via acpiconf although I did notice some unusual temperature readings in the dmesg output. There are some other temperature readings that appear in sysctl but I would have to study them more during a work session to see if they remain reasonable. Thanks in advance for any help. asl url: http://pasted.co/5770b687 boot-v output: http://pasted.co/c8e9fb89 hw.acpi output: http://pasted.co/cc611266 From owner-freebsd-acpi@freebsd.org Thu Aug 18 05:47:43 2016 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 4CCFFBBE7D8 for ; Thu, 18 Aug 2016 05:47:43 +0000 (UTC) (envelope-from pribyl@lowlevel.cz) Received: from mx.sandbox.cz (sandbox.cz [87.236.197.188]) by mx1.freebsd.org (Postfix) with ESMTP id 181EC1ECA for ; Thu, 18 Aug 2016 05:47:41 +0000 (UTC) (envelope-from pribyl@lowlevel.cz) Received: by sandbox.cz (Postfix, from userid 1007) id ECF0D6017E4; Thu, 18 Aug 2016 07:47:33 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by sandbox.cz (Postfix) with ESMTP id E53496017E3 for ; Thu, 18 Aug 2016 07:47:33 +0200 (CEST) Date: Thu, 18 Aug 2016 07:47:33 +0200 (CEST) From: Adam Pribyl X-X-Sender: covex@sandbox.cz cc: freebsd-acpi@freebsd.org Subject: Re: Problems with CPU throttling on HP 15-n066us laptop In-Reply-To: <1471488612.2196853.698646081.0844D23B@webmail.messagingengine.com> Message-ID: References: <1471488612.2196853.698646081.0844D23B@webmail.messagingengine.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Aug 2016 05:47:43 -0000 FreeBSD 10 has throttling disabled. I can confirm the throttling is saving almost nothing, it is much better to use Cstates: https://wiki.freebsd.org/TuningPowerConsumption On Wed, 17 Aug 2016, am_dxer@fastmail.fm wrote: > Hello, > I purchased a new laptop for FreeBSD and am having some problems with > CPU throttling. This laptop has an aMD a10-5745m processor. I cannot > start powerd and the frequency levels in dev.cpu are absent. I tried > with 11 and when that didn't work, I upgraded to Current. The laptop is > running very hot and the fans are often running at a high speed so I > think the cpu is running near full speed. This is the only issue I am > having in general use of the laptop. I will include the url for my asl > below as well as the output of dmesg after boot -v and sysctl hw.acpi. I > noticed messages like "acpi_ec0: EcCommand: no response to 0x84" near > the bottom of the dmesg but honestly don't know enough about acpi to say > whether this could be causing the problem. I tried Googling the error > and found people who seemed to be having trouble with temperature > readings and battery status. For me, the battery status is working fine > when I check it via acpiconf although I did notice some unusual > temperature readings in the dmesg output. There are some other > temperature readings that appear in sysctl but I would have to study > them more during a work session to see if they remain reasonable. Thanks > in advance for any help. > > > asl url: http://pasted.co/5770b687 > > boot-v output: http://pasted.co/c8e9fb89 > > hw.acpi output: http://pasted.co/cc611266 From owner-freebsd-acpi@freebsd.org Thu Aug 18 07:46:20 2016 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 CF5DBBBE575 for ; Thu, 18 Aug 2016 07:46:20 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4E93D13C2 for ; Thu, 18 Aug 2016 07:46:20 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id u7I7kAYu062625 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 18 Aug 2016 10:46:10 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua u7I7kAYu062625 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id u7I7k9xh062611; Thu, 18 Aug 2016 10:46:09 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 18 Aug 2016 10:46:09 +0300 From: Konstantin Belousov To: am_dxer@fastmail.fm Cc: freebsd-acpi@freebsd.org Subject: Re: Problems with CPU throttling on HP 15-n066us laptop Message-ID: <20160818074609.GV83214@kib.kiev.ua> References: <1471488612.2196853.698646081.0844D23B@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1471488612.2196853.698646081.0844D23B@webmail.messagingengine.com> User-Agent: Mutt/1.6.1 (2016-04-27) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Aug 2016 07:46:20 -0000 On Wed, Aug 17, 2016 at 10:50:12PM -0400, am_dxer@fastmail.fm wrote: > Hello, > I purchased a new laptop for FreeBSD and am having some problems with > CPU throttling. This laptop has an aMD a10-5745m processor. I cannot > start powerd and the frequency levels in dev.cpu are absent. I tried > with 11 and when that didn't work, I upgraded to Current. The laptop is > running very hot and the fans are often running at a high speed so I > think the cpu is running near full speed. This is the only issue I am > having in general use of the laptop. I will include the url for my asl > below as well as the output of dmesg after boot -v and sysctl hw.acpi. I > noticed messages like "acpi_ec0: EcCommand: no response to 0x84" near > the bottom of the dmesg but honestly don't know enough about acpi to say > whether this could be causing the problem. I tried Googling the error > and found people who seemed to be having trouble with temperature > readings and battery status. For me, the battery status is working fine > when I check it via acpiconf although I did notice some unusual > temperature readings in the dmesg output. There are some other > temperature readings that appear in sysctl but I would have to study > them more during a work session to see if they remain reasonable. Thanks > in advance for any help. > > > asl url: http://pasted.co/5770b687 > > boot-v output: http://pasted.co/c8e9fb89 > > hw.acpi output: http://pasted.co/cc611266 It is more useful to show sysctl dev.cpu. I suspect your bios reports C-states in a way which we do not parse properly. I am not aware of AMD-specific analog for the Intel' document 'Processor Vendor-Specific ACPI Interface Specification'. If somebody has a pointer to AMD version and wants to test, I am willing to code that. From owner-freebsd-acpi@freebsd.org Thu Aug 18 10:07:48 2016 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 7CAB5BBE0ED for ; Thu, 18 Aug 2016 10:07:48 +0000 (UTC) (envelope-from am_dxer@fastmail.fm) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 542C1158F for ; Thu, 18 Aug 2016 10:07:47 +0000 (UTC) (envelope-from am_dxer@fastmail.fm) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 5074B204A3 for ; Thu, 18 Aug 2016 06:07:45 -0400 (EDT) Received: from web3 ([10.202.2.213]) by compute6.internal (MEProxy); Thu, 18 Aug 2016 06:07:45 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=8QmPwUg8Uwmw9djW1R9UL3krFH4=; b=iHz6um JhAkpgqwO+xahIkWU733mc8GQF1tuv9peYzRi2WaEcfgMfT7cQz1c1CwRwUfTttK 9bVZInaw2twNnSxz/l22crhuKgCFygIDHx3fL6UtnuO7d748SnaX8zgcDnc9/rr0 sVnefSeKvq2ZyrPVIBDiO5L+sVY2Mc83P48fI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=8QmPwUg8Uwmw9dj W1R9UL3krFH4=; b=jNRS6T4d2g4/iv52SgP3W5Uc9Eggx9gB1UwvDcH/wOyWeoB Q4YWBksx2E2LArGNfX+xLBtQpN4KAmfx2aKV5JuDCIZhUgKV5JBEjEXVw9eq3vkj tdWXcMIW3PJeLkulKR9rRvWaZK3z6JRtuJy9SO/G+O049ZFP4FsGtRaulfyM= Received: by mailuser.nyi.internal (Postfix, from userid 99) id 1DEB6168AE; Thu, 18 Aug 2016 06:07:45 -0400 (EDT) Message-Id: <1471514865.2276129.698913209.3B7A5306@webmail.messagingengine.com> X-Sasl-Enc: fvilCEmTSEl4QyQo4AOJQOMEOO1+uXq8dyepOam3+Hxd 1471514865 From: am_dxer@fastmail.fm To: freebsd-acpi@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - html Subject: Re: Problems with CPU throttling on HP 15-n066us laptop Date: Thu, 18 Aug 2016 06:07:45 -0400 In-Reply-To: <20160818074609.GV83214@kib.kiev.ua> References: <1471488612.2196853.698646081.0844D23B@webmail.messagingengine.com> <20160818074609.GV83214@kib.kiev.ua> X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Aug 2016 10:07:48 -0000 On Thu, Aug 18, 2016, at 03:46 AM, Konstantin Belousov wrote: > On Wed, Aug 17, 2016 at 10:50:12PM -0400, am_dxer@fastmail.fm wrote: > > Hello, > > I purchased a new laptop for FreeBSD and am having some problems with > > CPU throttling. This laptop has an aMD a10-5745m processor. I cannot > > start powerd and the frequency levels in dev.cpu are absent. I tried > > with 11 and when that didn't work, I upgraded to Current. The laptop is > > running very hot and the fans are often running at a high speed so I > > think the cpu is running near full speed. This is the only issue I am > > having in general use of the laptop. I will include the url for my asl > > below as well as the output of dmesg after boot -v and sysctl hw.acpi. I > > noticed messages like "acpi_ec0: EcCommand: no response to 0x84" near > > the bottom of the dmesg but honestly don't know enough about acpi to say > > whether this could be causing the problem. I tried Googling the error > > and found people who seemed to be having trouble with temperature > > readings and battery status. For me, the battery status is working fine > > when I check it via acpiconf although I did notice some unusual > > temperature readings in the dmesg output. There are some other > > temperature readings that appear in sysctl but I would have to study > > them more during a work session to see if they remain reasonable. Thanks > > in advance for any help. > > > > > > asl url: http://pasted.co/5770b687 > > > > boot-v output: http://pasted.co/c8e9fb89 > > > > hw.acpi output: http://pasted.co/cc611266 > > It is more useful to show sysctl dev.cpu. I suspect your bios > reports C-states in a way which we do not parse properly. > > I am not aware of AMD-specific analog for the Intel' document 'Processor > Vendor-Specific ACPI Interface Specification'. If somebody has a pointer > to AMD version and wants to test, I am willing to code that. I will include the output of dev.cpu below. One observation that I made is that it seems that the Cool'n'Quiet driver is not attaching. I used FreeBSD on a laptop with a newer apu once which was the amd a4-5000 from the Kabini generation and the Cool'n'Quiet 2.0 driver attached on that machine. I would be willing to perform any testing that you would find helpful. output from dev.cpu: dev.cpu.3.cx_method: C1/hlt C2/i dev.cpu.3.cx_usage_counters: 2260 5108 dev.cpu.3.cx_usage: 30.67% 69.32% last 2992us dev.cpu.3.cx_lowest: C8 dev.cpu.3.cx_supported: C1/1/0 C2/2/100 dev.cpu.3.%parent: acpi0 dev.cpu.3.%pnpinfo: _HID=none _UID=0 dev.cpu.3.%location: handle=\_PR_.C003 dev.cpu.3.%driver: cpu dev.cpu.3.%desc: ACPI CPU dev.cpu.2.cx_method: C1/hlt C2/io dev.cpu.2.cx_usage_counters: 2301 5183 dev.cpu.2.cx_usage: 30.74% 69.25% last 1038us dev.cpu.2.cx_lowest: C8 dev.cpu.2.cx_supported: C1/1/0 C2/2/100 dev.cpu.2.%parent: acpi0 dev.cpu.2.%pnpinfo: _HID=none _UID=0 dev.cpu.2.%location: handle=\_PR_.C002 dev.cpu.2.%driver: cpu dev.cpu.2.%desc: ACPI CPU dev.cpu.1.cx_method: C1/hlt C2/io dev.cpu.1.cx_usage_counters: 2001 6785 dev.cpu.1.cx_usage: 22.77% 77.22% last 568us dev.cpu.1.cx_lowest: C8 dev.cpu.1.cx_supported: C1/1/0 C2/2/100 dev.cpu.1.%parent: acpi0 dev.cpu.1.%pnpinfo: _HID=none _UID=0 dev.cpu.1.%location: handle=\_PR_.C001 dev.cpu.1.%driver: cpu dev.cpu.1.%desc: ACPI CPU dev.cpu.0.cx_method: C1/hlt C2/io dev.cpu.0.cx_usage_counters: 1541 5804 dev.cpu.0.cx_usage: 20.98% 79.01% last 2975us dev.cpu.0.cx_lowest: C8 dev.cpu.0.cx_supported: C1/1/0 C2/2/100 dev.cpu.0.%parent: acpi0 dev.cpu.0.%pnpinfo: _HID=none _UID=0 dev.cpu.0.%location: handle=\_PR_.C000 dev.cpu.0.%driver: cpu dev.cpu.0.%desc: ACPI CPU dev.cpu.%parent: From owner-freebsd-acpi@freebsd.org Thu Aug 18 12:12:36 2016 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 3E802BBC74C for ; Thu, 18 Aug 2016 12:12:36 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 827C814CF for ; Thu, 18 Aug 2016 12:12:35 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id u7ICCFam089665; Thu, 18 Aug 2016 22:12:16 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Thu, 18 Aug 2016 22:12:15 +1000 (EST) From: Ian Smith To: am_dxer@fastmail.fm cc: Konstantin Belousov , Adam Pribyl , freebsd-acpi@freebsd.org Subject: Re: Problems with CPU throttling on HP 15-n066us laptop In-Reply-To: <1471514865.2276129.698913209.3B7A5306@webmail.messagingengine.com> Message-ID: <20160818211938.R79687@sola.nimnet.asn.au> References: <1471488612.2196853.698646081.0844D23B@webmail.messagingengine.com> <20160818074609.GV83214@kib.kiev.ua> <1471514865.2276129.698913209.3B7A5306@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Aug 2016 12:12:36 -0000 On Thu, 18 Aug 2016 06:07:45 -0400, am_dxer@fastmail.fm wrote: > On Thu, Aug 18, 2016, at 03:46 AM, Konstantin Belousov wrote: > > On Wed, Aug 17, 2016 at 10:50:12PM -0400, am_dxer@fastmail.fm wrote: > > > Hello, > > > I purchased a new laptop for FreeBSD and am having some problems with > > > CPU throttling. This laptop has an aMD a10-5745m processor. I cannot > > > start powerd and the frequency levels in dev.cpu are absent. I tried Just to clear up any confusion: Adam Pribyl noted that "throttling" is disabled in 10(+) but that refers only to "relative" cpufreq drivers, p4tcc and acpi_throttle, whereas your main problem appears to be that cpufreq(4) isn't attaching at all, so there's no a) control over and b) no ability to read, let alone set, cpu.0.freq. I don't know much about recent AMDs, but you mention Cool'n'Quiet, otherwise refered to in acpi(4) as: [ note: reading stable/9 manpage] powernow AMD PowerNow! and Cool'n'Quiet for K7 and K8 but again, these are subsidiary drivers to cpufreq(4). > > > with 11 and when that didn't work, I upgraded to Current. The laptop is > > > running very hot and the fans are often running at a high speed so I > > > think the cpu is running near full speed. This is the only issue I am > > > having in general use of the laptop. I will include the url for my asl > > > below as well as the output of dmesg after boot -v and sysctl hw.acpi. I > > > noticed messages like "acpi_ec0: EcCommand: no response to 0x84" near Yes, that stuck out. I don't know whether it might be related to this. > > > the bottom of the dmesg but honestly don't know enough about acpi to say > > > whether this could be causing the problem. I tried Googling the error > > > and found people who seemed to be having trouble with temperature > > > readings and battery status. For me, the battery status is working fine > > > when I check it via acpiconf although I did notice some unusual > > > temperature readings in the dmesg output. There are some other The only mentions are 3 of 'acpi_tz0: _CRT value is absurd, ignored (255.1C) I don't know where the '.1' comes from, but hw.scpi.thermal shows: hw.acpi.thermal.tz0._CRT: -1 hw.acpi.thermal.tz0._HOT: 100.1C hw.acpi.thermal.tz0._PSV: 96.1C hw.acpi.thermal.tz0.thermal_flags: 0 hw.acpi.thermal.tz0.passive_cooling: 1 hw.acpi.thermal.tz0.active: -1 hw.acpi.thermal.tz0.temperature: 46.1C -1 = 255, which is surely not a useful critical shutdown temperature, indeed your laptop would be a pool of molten plsstic, probably with a nasty Li-ion battery fire/explosion as a topping, long before then. FreeBSD doesn't actually use _HOT as far as I know, unsure about 11|12 !sysctl -d hw.acpi.thermal.tz0._HOT hw.acpi.thermal.tz0._HOT: too hot temp setpoint (suspend now) But I don't believe it works. Other(?) texts indiccte that should cause S4 (suspend to disk aka hibernation) but we don't support S4 at all, so if it does get too hot, you'll be relying on passive cooling cutting in at 96.1C (again, what's with this '.1'?) and I'm not sure if that can even happen without first using cpufreq? > > > temperature readings that appear in sysctl but I would have to study > > > them more during a work session to see if they remain reasonable. Thanks > > > in advance for any help. > > > > > > > > > asl url: http://pasted.co/5770b687 > > > > > > boot-v output: http://pasted.co/c8e9fb89 > > > > > > hw.acpi output: http://pasted.co/cc611266 > > > > It is more useful to show sysctl dev.cpu. I suspect your bios > > reports C-states in a way which we do not parse properly. Well it looks like C2 is being used 70-80% of the halt time, so I'm not sure that's so much of an issue, compared to cpufreq not attaching? I don't know if it would provide more info on a verbose boot, but you might try setting, in /boot/loader.conf: hw.acpi.verbose=1 debug.cpufreq.verbose=1 debug.hwpstate_verbose=1 # also an AMD thing i think? > > I am not aware of AMD-specific analog for the Intel' document 'Processor > > Vendor-Specific ACPI Interface Specification'. If somebody has a pointer > > to AMD version and wants to test, I am willing to code that. > I will include the output of dev.cpu below. One observation that I made > is that it seems that the Cool'n'Quiet driver is not attaching. I used > FreeBSD on a laptop with a newer apu once which was the amd a4-5000 from > the Kabini generation and the Cool'n'Quiet 2.0 driver attached on that > machine. I would be willing to perform any testing that you would find > helpful. Most likely cpufreq(4) also attached on that one too, and first? > output from dev.cpu: > dev.cpu.3.cx_method: C1/hlt C2/i > dev.cpu.3.cx_usage_counters: 2260 5108 > dev.cpu.3.cx_usage: 30.67% 69.32% last 2992us > dev.cpu.3.cx_lowest: C8 > dev.cpu.3.cx_supported: C1/1/0 C2/2/100 [..] > dev.cpu.2.cx_usage: 30.74% 69.25% last 1038us [..] > dev.cpu.1.cx_usage: 22.77% 77.22% last 568us [..] > dev.cpu.0.cx_method: C1/hlt C2/io > dev.cpu.0.cx_usage_counters: 1541 5804 > dev.cpu.0.cx_usage: 20.98% 79.01% last 2975us > dev.cpu.0.cx_lowest: C8 > dev.cpu.0.cx_supported: C1/1/0 C2/2/100 Just checking .. was the above taken when running on AC, or on battery? Just that your hw.acpi shows: hw.acpi.cpu.cx_lowest: C2 which is nowadays the (conservative?) default setting while on AC power: smithi@x200:/usr/head/src % grep cx etc/defaults/rc.conf performance_cx_lowest="C2" # Online CPU idle state economy_cx_lowest="Cmax" # Offline CPU idle state which sets hw.acpi.cpu.cx_lowest, which then controls the setting of the individual dev.cpu.X.cx_lowest, which above are shown as C8, ie Cmax ? Just a few thoughts .. cheers, Ian From owner-freebsd-acpi@freebsd.org Thu Aug 18 13:16:32 2016 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 389D8BBDC9E for ; Thu, 18 Aug 2016 13:16:32 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) Received: from nm22-vm1.bullet.mail.bf1.yahoo.com (nm22-vm1.bullet.mail.bf1.yahoo.com [98.139.212.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E5E0E1711 for ; Thu, 18 Aug 2016 13:16:31 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1471526061; bh=IgVy3w0d+Gmk+tuV48Z9A7LqbJdpZ6AT3NdhFjYVn28=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From:Subject; b=FS/3nkwzEKF1insvYSHbRLXiqT7gkNqCzgRIeuzOwnA0mNPtDmsf3iQzq4Dcco2oQOmsQUn06gGiXONlSbYi6l/zW1FYalW5UPKhg63Lk+Lvz/mjNNFk0p3zQdugHERupHHCHMUaqV/GOpjQO/O17P3mv/qRvy/yDEryT4Bj3mCQQt6NO5Uxy2H7bktiweVZATm6Up89RKFeJLnslpbbxyrTe3Hm/7XyfrTIG37Wgx0gfjztD964LCZ/S7ZyNI91E66IK4mtYXpZGZmDy+Js0Av/3xvr3FJcR8roLJ4q/DN9aBC8dhATyCEhATXuM4P/knO0qaWVo7Va4jhwmJi/jQ== Received: from [98.139.170.178] by nm22.bullet.mail.bf1.yahoo.com with NNFMP; 18 Aug 2016 13:14:21 -0000 Received: from [68.142.230.70] by tm21.bullet.mail.bf1.yahoo.com with NNFMP; 18 Aug 2016 13:14:21 -0000 Received: from [127.0.0.1] by smtp227.mail.bf1.yahoo.com with NNFMP; 18 Aug 2016 13:14:21 -0000 X-Yahoo-Newman-Id: 211567.9739.bm@smtp227.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: bmXyO7wVM1kLalxcPzupfQQKD23KgQw6MEfvIGmGPComIlC WGvElTWQdyGV5xgtXGiBbC3nG.JP7bDzMFlPBtUhYY5.sOzJzc6rgQ6N3wI. yuAzNj5rQpYbCSHkA6h7iKio6q2J5Ec8IrYGKPgavrk_xy2JB7pyT5X8erch Dc.iuVwqJbXKtu6.YtjYU_cdSXxKO68Gm3MCnjC9KW8AX0nORxeQ7H96r4Ir 8JmJWBaogz6z1j6lYPgySCWpn8k0xZelwU6ULlcGlK7CHVFYIwqimU1jHt3b ERMvGJ.z1dn594NAUIhmnEcyOA3ExqWFmsTfgYB6yOmBFVHFdPyzI2xE0cyf TtXfAAAuS0lSkDQA7xg6u1qNtWvJqYLSUS3_7pbextmgs2cGSu.HpB75vA6C kxFutHBVcQVPbMGFNptwP9_khZ8E_R_6RxLqlRh3Fp1Ov0Sm6mo10kIYN_94 EAdMk7RZogJt9AdQSdiooC9d_tsJSj2OqRo7FE64MhyaxeJ.j2b7ThKcAXtO D1_Nntcm3BZ5mMxKRlwrhELBAMpyoa6cy1t4FvrBImthERHk- X-Yahoo-SMTP: 9sPoSQ2swBBlERuQ.0vs8XLc_MeClW0- Subject: Re: Problems with CPU throttling on HP 15-n066us laptop To: Ian Smith , am_dxer@fastmail.fm References: <1471488612.2196853.698646081.0844D23B@webmail.messagingengine.com> <20160818074609.GV83214@kib.kiev.ua> <1471514865.2276129.698913209.3B7A5306@webmail.messagingengine.com> <20160818211938.R79687@sola.nimnet.asn.au> Cc: freebsd-acpi@freebsd.org From: Anthony Jenkins Message-ID: <557a599e-a81b-c2bf-9b62-3a3f6cd9bb2e@yahoo.com> Date: Thu, 18 Aug 2016 09:14:20 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160818211938.R79687@sola.nimnet.asn.au> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Aug 2016 13:16:32 -0000 Try this patch, that's what I'm running. diff --git a/sys/x86/cpufreq/hwpstate.c b/sys/x86/cpufreq/hwpstate.c index d4c70b7..326d967 100644 --- a/sys/x86/cpufreq/hwpstate.c +++ b/sys/x86/cpufreq/hwpstate.c @@ -408,25 +408,27 @@ hwpstate_get_info_from_msr(device_t dev) hwpstate_set = sc->hwpstate_settings; for (i = 0; i < sc->cfnum; i++) { msr = rdmsr(MSR_AMD_10H_11H_CONFIG + i); - if ((msr & ((uint64_t)1 << 63)) != ((uint64_t)1 << 63)) { + if ((msr & ((uint64_t)1 << 63)) == 0) { HWPSTATE_DEBUG(dev, "msr is not valid.\n"); return (ENXIO); } did = AMD_10H_11H_CUR_DID(msr); fid = AMD_10H_11H_CUR_FID(msr); + /* fid/did to frequency */ switch(family) { case 0x11: - /* fid/did to frequency */ - hwpstate_set[i].freq = 100 * (fid + 0x08) / (1 << did); + hwpstate_set[i].freq = (100 * (fid + 0x08)) >> did; break; case 0x10: - /* fid/did to frequency */ - hwpstate_set[i].freq = 100 * (fid + 0x10) / (1 << did); + case 0x12: + case 0x14: + case 0x15: + case 0x16: + hwpstate_set[i].freq = (100 * (fid + 0x10)) >> did; break; default: - HWPSTATE_DEBUG(dev, "get_info_from_msr: AMD family %d CPU's are not implemented yet. sorry.\n", family); + HWPSTATE_DEBUG(dev, "get_info_from_msr: AMD family 0x%02x CPU's are not implemented yet. sorry.\n", family); return (ENXIO); - break; } hwpstate_set[i].pstate_id = i; /* There was volts calculation, but deleted it. */ diff --git a/sys/x86/cpufreq/powernow.c b/sys/x86/cpufreq/powernow.c index cc62e87..355bde8 100644 --- a/sys/x86/cpufreq/powernow.c +++ b/sys/x86/cpufreq/powernow.c @@ -866,17 +866,22 @@ static void pn_identify(driver_t *driver, device_t parent) { - if ((amd_pminfo & AMDPM_FID) == 0 || (amd_pminfo & AMDPM_VID) == 0) + if ((amd_pminfo & AMDPM_FID) == 0 || (amd_pminfo & AMDPM_VID) == 0) { + printf("powernow: pn_identify: amd_pminfo=0x%04x .\n", amd_pminfo); return; + } switch (cpu_id & 0xf00) { case 0x600: case 0xf00: break; default: + printf("powernow: pn_identify: cpu_id=0x%04x.\n", cpu_id); return; } - if (device_find_child(parent, "powernow", -1) != NULL) + if (device_find_child(parent, "powernow", -1) != NULL) { + printf("powernow: pn_identify: No \"powernow\"device found.\n"); return; + } if (BUS_ADD_CHILD(parent, 10, "powernow", -1) == NULL) device_printf(parent, "powernow: add child failed\n"); } @@ -895,8 +900,10 @@ pn_probe(device_t dev) status = rdmsr(MSR_AMDK7_FIDVID_STATUS); pc = cpu_get_pcpu(dev); - if (pc == NULL) + if (pc == NULL) { + printf("powernow: cpu_get_pcpu() returned NULL.\n"); return (ENODEV); + } cpu_est_clockrate(pc->pc_cpuid, &rate); @@ -936,6 +943,7 @@ pn_probe(device_t dev) device_set_desc(dev, "Cool`n'Quiet K8"); break; default: + printf("powernow: cpuid 0x%04x & 0xf00 not matched.\n", cpu_id); return (ENODEV); } On 08/18/2016 08:12 AM, Ian Smith wrote: > On Thu, 18 Aug 2016 06:07:45 -0400, am_dxer@fastmail.fm wrote: > > On Thu, Aug 18, 2016, at 03:46 AM, Konstantin Belousov wrote: > > > On Wed, Aug 17, 2016 at 10:50:12PM -0400, am_dxer@fastmail.fm wrote: > > > > Hello, > > > > I purchased a new laptop for FreeBSD and am having some problems with > > > > CPU throttling. This laptop has an aMD a10-5745m processor. I cannot > > > > start powerd and the frequency levels in dev.cpu are absent. I tried > > Just to clear up any confusion: Adam Pribyl noted that "throttling" is > disabled in 10(+) but that refers only to "relative" cpufreq drivers, > p4tcc and acpi_throttle, whereas your main problem appears to be that > cpufreq(4) isn't attaching at all, so there's no a) control over and b) > no ability to read, let alone set, cpu.0.freq. > > I don't know much about recent AMDs, but you mention Cool'n'Quiet, > otherwise refered to in acpi(4) as: [ note: reading stable/9 manpage] > powernow AMD PowerNow! and Cool'n'Quiet for K7 and K8 > but again, these are subsidiary drivers to cpufreq(4). > > > > > with 11 and when that didn't work, I upgraded to Current. The laptop is > > > > running very hot and the fans are often running at a high speed so I > > > > think the cpu is running near full speed. This is the only issue I am > > > > having in general use of the laptop. I will include the url for my asl > > > > below as well as the output of dmesg after boot -v and sysctl hw.acpi. I > > > > noticed messages like "acpi_ec0: EcCommand: no response to 0x84" near > > Yes, that stuck out. I don't know whether it might be related to this. > > > > > the bottom of the dmesg but honestly don't know enough about acpi to say > > > > whether this could be causing the problem. I tried Googling the error > > > > and found people who seemed to be having trouble with temperature > > > > readings and battery status. For me, the battery status is working fine > > > > when I check it via acpiconf although I did notice some unusual > > > > temperature readings in the dmesg output. There are some other > > The only mentions are 3 of 'acpi_tz0: _CRT value is absurd, ignored (255.1C) > > I don't know where the '.1' comes from, but hw.scpi.thermal shows: > > hw.acpi.thermal.tz0._CRT: -1 > hw.acpi.thermal.tz0._HOT: 100.1C > hw.acpi.thermal.tz0._PSV: 96.1C > hw.acpi.thermal.tz0.thermal_flags: 0 > hw.acpi.thermal.tz0.passive_cooling: 1 > hw.acpi.thermal.tz0.active: -1 > hw.acpi.thermal.tz0.temperature: 46.1C > > -1 = 255, which is surely not a useful critical shutdown temperature, > indeed your laptop would be a pool of molten plsstic, probably with a > nasty Li-ion battery fire/explosion as a topping, long before then. > > FreeBSD doesn't actually use _HOT as far as I know, unsure about 11|12 > !sysctl -d hw.acpi.thermal.tz0._HOT > hw.acpi.thermal.tz0._HOT: too hot temp setpoint (suspend now) > > But I don't believe it works. Other(?) texts indiccte that should cause > S4 (suspend to disk aka hibernation) but we don't support S4 at all, so > if it does get too hot, you'll be relying on passive cooling cutting in > at 96.1C (again, what's with this '.1'?) and I'm not sure if that can > even happen without first using cpufreq? > > > > > temperature readings that appear in sysctl but I would have to study > > > > them more during a work session to see if they remain reasonable. Thanks > > > > in advance for any help. > > > > > > > > > > > > asl url: http://pasted.co/5770b687 > > > > > > > > boot-v output: http://pasted.co/c8e9fb89 > > > > > > > > hw.acpi output: http://pasted.co/cc611266 > > > > > > It is more useful to show sysctl dev.cpu. I suspect your bios > > > reports C-states in a way which we do not parse properly. > > Well it looks like C2 is being used 70-80% of the halt time, so I'm not > sure that's so much of an issue, compared to cpufreq not attaching? > > I don't know if it would provide more info on a verbose boot, but you > might try setting, in /boot/loader.conf: > > hw.acpi.verbose=1 > debug.cpufreq.verbose=1 > debug.hwpstate_verbose=1 # also an AMD thing i think? > > > > I am not aware of AMD-specific analog for the Intel' document 'Processor > > > Vendor-Specific ACPI Interface Specification'. If somebody has a pointer > > > to AMD version and wants to test, I am willing to code that. > > > I will include the output of dev.cpu below. One observation that I made > > is that it seems that the Cool'n'Quiet driver is not attaching. I used > > FreeBSD on a laptop with a newer apu once which was the amd a4-5000 from > > the Kabini generation and the Cool'n'Quiet 2.0 driver attached on that > > machine. I would be willing to perform any testing that you would find > > helpful. > > Most likely cpufreq(4) also attached on that one too, and first? > > > output from dev.cpu: > > dev.cpu.3.cx_method: C1/hlt C2/i > > dev.cpu.3.cx_usage_counters: 2260 5108 > > dev.cpu.3.cx_usage: 30.67% 69.32% last 2992us > > dev.cpu.3.cx_lowest: C8 > > dev.cpu.3.cx_supported: C1/1/0 C2/2/100 > [..] > > dev.cpu.2.cx_usage: 30.74% 69.25% last 1038us > [..] > > dev.cpu.1.cx_usage: 22.77% 77.22% last 568us > [..] > > dev.cpu.0.cx_method: C1/hlt C2/io > > dev.cpu.0.cx_usage_counters: 1541 5804 > > dev.cpu.0.cx_usage: 20.98% 79.01% last 2975us > > dev.cpu.0.cx_lowest: C8 > > dev.cpu.0.cx_supported: C1/1/0 C2/2/100 > > Just checking .. was the above taken when running on AC, or on battery? > > Just that your hw.acpi shows: hw.acpi.cpu.cx_lowest: C2 > which is nowadays the (conservative?) default setting while on AC power: > > smithi@x200:/usr/head/src % grep cx etc/defaults/rc.conf > performance_cx_lowest="C2" # Online CPU idle state > economy_cx_lowest="Cmax" # Offline CPU idle state > > which sets hw.acpi.cpu.cx_lowest, which then controls the setting of the > individual dev.cpu.X.cx_lowest, which above are shown as C8, ie Cmax ? > > Just a few thoughts .. > > 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" -- Anthony Jenkins From owner-freebsd-acpi@freebsd.org Fri Aug 19 12:20:21 2016 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 80E84BBFEC3 for ; Fri, 19 Aug 2016 12:20:21 +0000 (UTC) (envelope-from am_dxer@fastmail.fm) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 56FF21607 for ; Fri, 19 Aug 2016 12:20:20 +0000 (UTC) (envelope-from am_dxer@fastmail.fm) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 607A320439; Fri, 19 Aug 2016 08:20:14 -0400 (EDT) Received: from web4 ([10.202.2.214]) by compute6.internal (MEProxy); Fri, 19 Aug 2016 08:20:14 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=6IN0mSz5OIdG7tb/l9+1aQKBF5c=; b=T2+8HS uJ4UW2rVQXNTsEsWLt4jLaJf1uuce804HFszBSy+qd3T+qbKZM7ks2iEDOxE6+s2 wZxzinU8CKtJUsNW/aSdQDwXe7Xkjlm1DrowJGAjTvUYg3Gk5LtNU+iMNPYmTYq9 GVx2LKud9tzDVaR7tRaScPOrgVCZ2PSk4JlUQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=6IN0mSz5OIdG7tb /l9+1aQKBF5c=; b=LATIvaPGbhtBlyuuexLXaE4Gp5uwyOA45HoCtqZkkIJL+9Q yHyi2lToED4yRB3GITv1FIAZxz0OyEfsJOUyv6WalygUZu7NlT5bae6X8wSoxn7v FV1DWDRHFsq3hZONYdt3SAomjZtPPG2pzbF/G8ya7KAqRmUkzx0IElKo/chs= Received: by mailuser.nyi.internal (Postfix, from userid 99) id 2C03BCC790; Fri, 19 Aug 2016 08:20:14 -0400 (EDT) Message-Id: <1471609214.2223081.700076457.45FF2AAB@webmail.messagingengine.com> X-Sasl-Enc: nghQ0qO/H+Cm+84pdjkEXoRwIhf0F7eERY7G3BHMlKu5 1471609214 From: am_dxer@fastmail.fm To: Anthony Jenkins , Ian Smith Cc: freebsd-acpi@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - html In-Reply-To: <557a599e-a81b-c2bf-9b62-3a3f6cd9bb2e@yahoo.com> References: <1471488612.2196853.698646081.0844D23B@webmail.messagingengine.com> <20160818074609.GV83214@kib.kiev.ua> <1471514865.2276129.698913209.3B7A5306@webmail.messagingengine.com> <20160818211938.R79687@sola.nimnet.asn.au> <557a599e-a81b-c2bf-9b62-3a3f6cd9bb2e@yahoo.com> Subject: Re: Problems with CPU throttling on HP 15-n066us laptop Date: Fri, 19 Aug 2016 08:20:14 -0400 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2016 12:20:21 -0000 On Thu, Aug 18, 2016, at 09:14 AM, Anthony Jenkins wrote: > Try this patch, that's what I'm running. Could you put this patch in an online pasting service? My mail client destroyed the formatting of this. I spent a while trying to correct it but couldn't get it to apply. Thanks and sorry for the noise. From owner-freebsd-acpi@freebsd.org Fri Aug 19 13:15:04 2016 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 B1866BBED07 for ; Fri, 19 Aug 2016 13:15:04 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) Received: from nm29-vm1.bullet.mail.bf1.yahoo.com (nm29-vm1.bullet.mail.bf1.yahoo.com [98.139.213.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 684401332 for ; Fri, 19 Aug 2016 13:15:04 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1471612497; bh=ZwharoF2qtDhQ3ViCQcocdPa6iVKhqstoH4480Hy9LM=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From:Subject; b=MZ5akY55VdTgGBHpXDDfqmUKD93Nco73ensrmqHfn0skvjLo9DVYcR6MKEF5PahccdFThGj9JeZfj3KdwNbnwtiZ2YQ2x2dvSYMYewdF15V3DeTh0SRo4D3c/TLhxpFxSbHfkF+QOb82lYzztLxtEHHIsrSaBAZpf4QWpIanp7pQwAgpx0Ad/AeGatHeEu3tdZQwGwBII1sb+Kw4N/8wJOcVPUeqQewUGQeWUVF4ndrowpwEfY1p90ovyDv4zdxAaIm3lhEhmSXClNSI6AU+vdFJTsw7DfI2/jVXnv6VIsmLHQHqc2xcc6WQrKsy80eKk1H7iS3e705uHPseawo8pw== Received: from [98.139.170.180] by nm29.bullet.mail.bf1.yahoo.com with NNFMP; 19 Aug 2016 13:14:57 -0000 Received: from [98.139.211.192] by tm23.bullet.mail.bf1.yahoo.com with NNFMP; 19 Aug 2016 13:14:57 -0000 Received: from [127.0.0.1] by smtp201.mail.bf1.yahoo.com with NNFMP; 19 Aug 2016 13:14:57 -0000 X-Yahoo-Newman-Id: 619155.85786.bm@smtp201.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: oDnPsYUVM1mQnVc9UEuNb44guWVtyd9wKSSavE9MoIl6iZG HIzYpIZHTWVzTCcQ4e2mlRYoUgPaANOurr0TB9kLFm5Hkm6451dDI0wHSLZR PB.Lo8weaYdDUkjdK8KgZhb3riBuUoS7JW_oIjvxynJ7kBDobhjWEllv.c.e 8PYEpfsiXBVRna30eL_zb4JXFtToqt72y4UpsFoq94UADMoQFg1rnOMN0Ie2 3XC8iBtZYbi.L_ruoKAKD08xcq025PTG.Oi2Rx.G_rWpuwmZ.tzHYf0rSYiI HJhW.ss6V25k3T_ToYH3CoYOcCydwRm.sE5a2fGutle7fifnS_CEo4HgEwj4 Dq6krz.V3neVF2EIXJBFEAILqmBprJ0zAYAU12IP6kQvYt5lBsgyLE5TXZXw OjpHwYQEp.zOJhgZLfQEFjwg2G3YR.zCsXnMqwpfpnOxL1ZtklI_ttfVf1vA lAwrH0GGmDYOTt6oWBLCkIjsIhv_1.2ldJJpXFDb7DFIVrIJinOMc75RKL1j mlK75GTSoLiA4syW8jLQw1pZridv9qoUUtG7NwAYXyauEBa4- X-Yahoo-SMTP: 9sPoSQ2swBBlERuQ.0vs8XLc_MeClW0- Subject: Re: Problems with CPU throttling on HP 15-n066us laptop To: am_dxer@fastmail.fm, Ian Smith References: <1471488612.2196853.698646081.0844D23B@webmail.messagingengine.com> <20160818074609.GV83214@kib.kiev.ua> <1471514865.2276129.698913209.3B7A5306@webmail.messagingengine.com> <20160818211938.R79687@sola.nimnet.asn.au> <557a599e-a81b-c2bf-9b62-3a3f6cd9bb2e@yahoo.com> <1471609214.2223081.700076457.45FF2AAB@webmail.messagingengine.com> Cc: freebsd-acpi@freebsd.org From: Anthony Jenkins Message-ID: <315f6480-4acb-7409-687f-0e721bf9554a@yahoo.com> Date: Fri, 19 Aug 2016 09:14:56 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 In-Reply-To: <1471609214.2223081.700076457.45FF2AAB@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2016 13:15:04 -0000 From owner-freebsd-acpi@freebsd.org Fri Aug 19 13:19:01 2016 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 E5B59BBED8B for ; Fri, 19 Aug 2016 13:19:01 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) Received: from nm36-vm8.bullet.mail.bf1.yahoo.com (nm36-vm8.bullet.mail.bf1.yahoo.com [72.30.239.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 98EFC13D4 for ; Fri, 19 Aug 2016 13:19:01 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1471612580; bh=JT9p9uo/25YYfcR95pKf1ivXTetee4wgqHJma1v24uM=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From:Subject; b=klEx8YmVXOA26P4atT1CprpTg4XfOtbBn2ECX7Mu9kpDAHTPQbWp8OJGbWV8ykWcPAdctFUXsjZl+TAZyv/b5t/noiahI84GPZFk7E2lihfFevn9yHVl1TXNqJPgFRftTSHI+B52Zbk7YXA2d2Jx6Tf1tMnSp5v11tSING0mZjEnik+v3LEmd149uRvkb8dbOtjiFr6rNYbUxG0OAIeH1uRjP0wsyPNhD1rU8SayChMrprZQwUiZAWufdIr0+tL+VyqCEkE/rvPRizC2WaTJ3QBb2Vzz0R+ELX9FR+y59GFTxkFAfhJK1haOWuOUF5i666AUjAqGe3dO50oXFC4Yyw== Received: from [98.139.170.181] by nm36.bullet.mail.bf1.yahoo.com with NNFMP; 19 Aug 2016 13:16:20 -0000 Received: from [98.139.213.14] by tm24.bullet.mail.bf1.yahoo.com with NNFMP; 19 Aug 2016 13:16:20 -0000 Received: from [127.0.0.1] by smtp114.mail.bf1.yahoo.com with NNFMP; 19 Aug 2016 13:16:20 -0000 X-Yahoo-Newman-Id: 512598.13148.bm@smtp114.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: U.odVa0VM1lWiXQmLiW_0STKXX7JSP2AuFZtclK_CUYhbuj LqvQFTY5q8k85_mc1K9_J2F3nLVosdWd4QWyLKgRin.o8nrrSIUe1ewZ00ux VYH0hUQR.QJh_LZA20Tp696x8FhHHb2eNvA1PvWR2EiZdIaRIDDbAuVy7tM3 GQqmx9t6g5h6SyrXIZi49jAKF2PKM3JRFkzWyH2TG8WD7iNhk_HEer2.qIDD PyNgePudB2jD1Ib3yNUx9McZOGWSN3IEs5OZ7du3Idwg3cfgRY0X0ldt6hFq 9EmPca9bEt97H1DmtC2c5oEpA9uNwTlS2sicD.1w2bJdf.QzRTBzX3KfDM3e dq44ucGJziwYoXeSz057nnVk6dRP2hceD3KtbPwzQaFo04b._jiB33phvQqb 0VFWXoPDe7m9nTsSZMMh1KPgciVGWnwi2Io7jXdhXFtkOUyPHr4nLf3PEbu_ JTa.lBKUS1ygHkKWr3PfnGM_5L1kLnklGUYG8Ii4CjADT2PX5hcQr7RwSDf_ 4tMseQC0hzu09AKrL3CuZz0E1vIYdXHIgAjE2ovHNt_oW86U- X-Yahoo-SMTP: 9sPoSQ2swBBlERuQ.0vs8XLc_MeClW0- Subject: Re: Problems with CPU throttling on HP 15-n066us laptop To: am_dxer@fastmail.fm, Ian Smith References: <1471488612.2196853.698646081.0844D23B@webmail.messagingengine.com> <20160818074609.GV83214@kib.kiev.ua> <1471514865.2276129.698913209.3B7A5306@webmail.messagingengine.com> <20160818211938.R79687@sola.nimnet.asn.au> <557a599e-a81b-c2bf-9b62-3a3f6cd9bb2e@yahoo.com> <1471609214.2223081.700076457.45FF2AAB@webmail.messagingengine.com> <315f6480-4acb-7409-687f-0e721bf9554a@yahoo.com> Cc: freebsd-acpi@freebsd.org From: Anthony Jenkins Message-ID: <2cbf0082-b318-4e27-9420-a67e6c9e2525@yahoo.com> Date: Fri, 19 Aug 2016 09:16:19 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <315f6480-4acb-7409-687f-0e721bf9554a@yahoo.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2016 13:19:02 -0000 On 08/19/2016 09:14 AM, Anthony Jenkins wrote: > > > On 08/19/2016 08:20 AM, am_dxer@fastmail.fm wrote: >> On Thu, Aug 18, 2016, at 09:14 AM, Anthony Jenkins wrote: >>> Try this patch, that's what I'm running. >> Could you put this patch in an online pasting service? My mail client >> destroyed the formatting of this. I spent a while trying to correct it >> but couldn't get it to apply. Thanks and sorry for the noise. > Ahh sorry about that. It's pushed to my github repo branch 'amd_cpufreq' > > https://github.com/ScoobiFreeBSD/freebsd/tree/amd_cpufreq > > hopefully you can view this URL > > https://github.com/ScoobiFreeBSD/freebsd/commit/a8869f030e5a939a75a6e92f1a83ef0e769006ba > > but I don't see a way to download a diff of this commit, so I'll stick > it on pastebin: > > http://pastebin.com/iKLmYQjw > Gah... sorry again, meant to change delivery format to plaintext before sending... > > -- > Anthony Jenkins -- Anthony Jenkins From owner-freebsd-acpi@freebsd.org Fri Aug 19 17:40:34 2016 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 E0F8CBBF918 for ; Fri, 19 Aug 2016 17:40:34 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) Received: from nm49-vm3.bullet.mail.bf1.yahoo.com (nm49-vm3.bullet.mail.bf1.yahoo.com [216.109.115.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 973E11957 for ; Fri, 19 Aug 2016 17:40:34 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1471628301; bh=w1xsncWPQD/i4qqXHfEcV4l5yxfyenc6mlxgOjhobbU=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From:Subject; b=ZcNT38zV2B9L4XNtbTebXit+S+8HGc771KtYNnpoibtBZI/qetrARJne3vrWTeSnRUY2GQwSrfvveW+BFyn/HZ8OE0p7Z6+kJd2OYJzQ4nx2KuBEaG/PjBrpHl4kUnqQL6fqhWlcUaHXGCZVuRNNgWno+Mmqsd3sVE2iTvvyy30FA8FqyMUWMHh8HjYHh5CRosv4K9sVWS11EwYe8UUlwTV9fXn5W040TBdTqlFJYPIAC6QeIxVPi0RDptxK4mtoLLMRcONRy9VyuHJ4lo9IG0x8sXQefL/dEAqIMOcTFzM1aWk265j8qbJTEQ1aadEuur+ICfgwR3VNrh+XCr9cgQ== Received: from [98.139.170.179] by nm49.bullet.mail.bf1.yahoo.com with NNFMP; 19 Aug 2016 17:38:21 -0000 Received: from [98.139.213.13] by tm22.bullet.mail.bf1.yahoo.com with NNFMP; 19 Aug 2016 17:38:21 -0000 Received: from [127.0.0.1] by smtp113.mail.bf1.yahoo.com with NNFMP; 19 Aug 2016 17:38:21 -0000 X-Yahoo-Newman-Id: 763576.80331.bm@smtp113.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: CocBo8kVM1kotX7I6YykPcZoId_08vtxUfWJ.bgCHjiATzr i2ztGn9cfOr3SYFxeRxKFaNgcZ7wMuP7w2HuEkpdv19Mj530HeW6dSFuuhb_ b5KLRVhJspNyaVKj.EZZUrv0GLdswhMOPuRaD4xqZeq4PXwGWrPhXH2GdEA5 e6scEmXRGRAGErNnQfFEOI4w6bgFCIU2CFdOurDZ.N1c4T7U2O4AfEyZFmin YNKSwmFn7cucskgixedrvO2L8n_dwkkY3wd2pfcbpGwHFFTsFYjoXuRok4lK YrSta8XCZPi6JrAMAI9Nq76kaGut8SFjWxgAAuJwdbJsi4JKuVPbRc0t9Sml LEcAfACfi1EaN3ri_vr7lk5_75kKPBLqecr5R7HOcT_JuNopAkL3qubxXg4l DKp_TvFJyBzashZNfwqADOFqHVroyv0I14R0KJNyRtn9AoAvLgAnNnYWIy6C TOTqzrNRa0VhUIcLS8_mCCBud3RKRoq9.iodVn5Hm_7Ex9DIHPCWHhp08Fnj ugW.z2v3pFnjGUG6MgH7o1wBLEd3Itl.H_Yvnl_QZx9fyH9w- X-Yahoo-SMTP: 9sPoSQ2swBBlERuQ.0vs8XLc_MeClW0- Subject: Re: Problems with CPU throttling on HP 15-n066us laptop To: am_dxer@fastmail.fm, Ian Smith References: <1471488612.2196853.698646081.0844D23B@webmail.messagingengine.com> <20160818074609.GV83214@kib.kiev.ua> <1471514865.2276129.698913209.3B7A5306@webmail.messagingengine.com> <20160818211938.R79687@sola.nimnet.asn.au> <557a599e-a81b-c2bf-9b62-3a3f6cd9bb2e@yahoo.com> <1471609214.2223081.700076457.45FF2AAB@webmail.messagingengine.com> <315f6480-4acb-7409-687f-0e721bf9554a@yahoo.com> <2cbf0082-b318-4e27-9420-a67e6c9e2525@yahoo.com> Cc: freebsd-acpi@freebsd.org From: Anthony Jenkins Message-ID: Date: Fri, 19 Aug 2016 13:38:20 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <2cbf0082-b318-4e27-9420-a67e6c9e2525@yahoo.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2016 17:40:35 -0000 On 08/19/2016 09:16 AM, Anthony Jenkins via freebsd-acpi wrote: > > On 08/19/2016 09:14 AM, Anthony Jenkins wrote: >> >> On 08/19/2016 08:20 AM, am_dxer@fastmail.fm wrote: >>> On Thu, Aug 18, 2016, at 09:14 AM, Anthony Jenkins wrote: >>>> Try this patch, that's what I'm running. >>> Could you put this patch in an online pasting service? My mail client >>> destroyed the formatting of this. I spent a while trying to correct it >>> but couldn't get it to apply. Thanks and sorry for the noise. >> Ahh sorry about that. It's pushed to my github repo branch 'amd_cpufreq' >> >> https://github.com/ScoobiFreeBSD/freebsd/tree/amd_cpufreq >> >> hopefully you can view this URL >> >> https://github.com/ScoobiFreeBSD/freebsd/commit/a8869f030e5a939a75a6e92f1a83ef0e769006ba >> >> but I don't see a way to download a diff of this commit, so I'll stick >> it on pastebin: >> >> http://pastebin.com/iKLmYQjw >> > Gah... sorry again, meant to change delivery format to plaintext before > sending... Figured out how to get a patch from GitHub. https://github.com/ScoobiFreeBSD/freebsd/commit/a8869f030e5a939a75a6e92f1a83ef0e769006ba.patch Reference: http://chem-bla-ics.blogspot.com/2011/01/github-tip-download-commits-as-patches.html >> -- >> Anthony Jenkins -- Anthony Jenkins From owner-freebsd-acpi@freebsd.org Sat Aug 20 13:50:24 2016 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 62838BC0AB0 for ; Sat, 20 Aug 2016 13:50:24 +0000 (UTC) (envelope-from am_dxer@fastmail.fm) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 393E912EC for ; Sat, 20 Aug 2016 13:50:23 +0000 (UTC) (envelope-from am_dxer@fastmail.fm) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id E548920245; Sat, 20 Aug 2016 09:50:22 -0400 (EDT) Received: from web6 ([10.202.2.216]) by compute6.internal (MEProxy); Sat, 20 Aug 2016 09:50:22 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=rLLyLVEu9AvmSN+BiQAur3wS79E=; b=OPt9Z5 9iAIO9zskVhBgteoQfUPeXNuFPTIZ8+uF78azWP2qwCNuS0oZAEyLmuWdsWZ1bD6 n0DEnQ2+eKR1+9SVBuvkfAeXVF7G+/nyGX1FAV1aPB/28nDOYxfzJUlRMCzcoClb Y7NjQ9iZl3MRT1YLjyn+2+SMuyMHLt3G7hHSY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=rLLyLVEu9AvmSN+ BiQAur3wS79E=; b=XR+5+qdteH6gU/d83N8Ds3h67WM/WfYlHqkz3MtgmjXlquE LK/5nyvDmTVZrOM1eGnSth9rM/2n65s+Fq1jlwigART1LCfrrKgLMdmnkC1E4Svs Dl4kwtYjfAXGddPauIc6sgkOjqP7lNeRJelNM1lY8n3OPVS8LY7qYZrZORKg= Received: by mailuser.nyi.internal (Postfix, from userid 99) id B099B1E380; Sat, 20 Aug 2016 09:50:22 -0400 (EDT) Message-Id: <1471701022.2811707.700981553.3CC34FFB@webmail.messagingengine.com> X-Sasl-Enc: Vd3ByrButxQeIJYGHR9sw0q6mras6I3ddpe//9Gb7tgY 1471701022 From: am_dxer@fastmail.fm To: Anthony Jenkins , Ian Smith Cc: freebsd-acpi@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - html Subject: Re: Problems with CPU throttling on HP 15-n066us laptop Date: Sat, 20 Aug 2016 09:50:22 -0400 In-Reply-To: <557a599e-a81b-c2bf-9b62-3a3f6cd9bb2e@yahoo.com> References: <1471488612.2196853.698646081.0844D23B@webmail.messagingengine.com> <20160818074609.GV83214@kib.kiev.ua> <1471514865.2276129.698913209.3B7A5306@webmail.messagingengine.com> <20160818211938.R79687@sola.nimnet.asn.au> <557a599e-a81b-c2bf-9b62-3a3f6cd9bb2e@yahoo.com> X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Aug 2016 13:50:24 -0000 On Thu, Aug 18, 2016, at 09:14 AM, Anthony Jenkins wrote: > Try this patch, that's what I'm running. I applied this patch to the latest 11 source and built my kernel and now I have cpu throttling on the AMD machine. I see the Cool'n'Quiet 2.0 driver attach and have frequencies in dev.cpu. The fans now run at a much lower speed and I am saving upwards of 4 watts when running on battery power. Thank you so much for this patch and to everyone else for the suggestions on this issue. It is such a great feeling to know that now I can use FreeBSD on my new laptop. From owner-freebsd-acpi@freebsd.org Sat Aug 20 14:44:44 2016 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 D93F2BC0A85 for ; Sat, 20 Aug 2016 14:44:44 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 60A5D1E37 for ; Sat, 20 Aug 2016 14:44:43 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id u7KEiX4J091467; Sun, 21 Aug 2016 00:44:33 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sun, 21 Aug 2016 00:44:33 +1000 (EST) From: Ian Smith To: am_dxer@fastmail.fm cc: Anthony Jenkins , freebsd-acpi@freebsd.org Subject: Re: Problems with CPU throttling on HP 15-n066us laptop In-Reply-To: <1471701022.2811707.700981553.3CC34FFB@webmail.messagingengine.com> Message-ID: <20160821003931.L1978@sola.nimnet.asn.au> References: <1471488612.2196853.698646081.0844D23B@webmail.messagingengine.com> <20160818074609.GV83214@kib.kiev.ua> <1471514865.2276129.698913209.3B7A5306@webmail.messagingengine.com> <20160818211938.R79687@sola.nimnet.asn.au> <557a599e-a81b-c2bf-9b62-3a3f6cd9bb2e@yahoo.com> <1471701022.2811707.700981553.3CC34FFB@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Aug 2016 14:44:44 -0000 On Sat, 20 Aug 2016 09:50:22 -0400, am_dxer@fastmail.fm wrote: > On Thu, Aug 18, 2016, at 09:14 AM, Anthony Jenkins wrote: > > Try this patch, that's what I'm running. > I applied this patch to the latest 11 source and built my kernel and now > I have cpu throttling on the AMD machine. I see the Cool'n'Quiet 2.0 > driver attach and have frequencies in dev.cpu. The fans now run at a > much lower speed and I am saving upwards of 4 watts when running on > battery power. Thank you so much for this patch and to everyone else for > the suggestions on this issue. It is such a great feeling to know that > now I can use FreeBSD on my new laptop. That's great news. More good work, Anthony. Is there a PR for this issue/fix? It would be good to see this patch reviewed and headed into the tree, no? cheers, Ian