From owner-freebsd-stable@freebsd.org Mon Feb 29 04:29:11 2016 Return-Path: Delivered-To: freebsd-stable@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 339E3AB7D0F for ; Mon, 29 Feb 2016 04:29:11 +0000 (UTC) (envelope-from dewaynegeraghty@gmail.com) Received: from mail-lb0-x229.google.com (mail-lb0-x229.google.com [IPv6:2a00:1450:4010:c04::229]) (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 AB0A799E for ; Mon, 29 Feb 2016 04:29:10 +0000 (UTC) (envelope-from dewaynegeraghty@gmail.com) Received: by mail-lb0-x229.google.com with SMTP id bc4so73155095lbc.2 for ; Sun, 28 Feb 2016 20:29:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=YmIZ4HmeXO6mrMYAdvoiTmIYXG/w02JIHNQIDOrjzyg=; b=bDqPwlAD4OhHsBj+JsgT8d+rkzt6/2O5r70tT0eJ7IMe//DiIhFyKnVc0U0z+g7U0I bt8oG3Bd5O/hlKfxRwXbZ0tfHv3eSKw1yNemGOCVrWpUEjEAxjEy7Afnr/hNttWko1sa DO09lgEa1HupvPkvli3XA3RBwexoa1aQjuttmjD/IZd3ZWsjryAM4KI3rkfi5FfhZpdL 55fhxZZ297zHiImOwo3zOKyAes24gQKCWCLquoYBRmArtUvIIp6VmiCz1maHL63kxNJp DXnqhcdMmvHclmHTtC2xug0250bN/uuqmAr3kzRRqlmbD9bblMyOwOenO8cjZuOXcX9K LPdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=YmIZ4HmeXO6mrMYAdvoiTmIYXG/w02JIHNQIDOrjzyg=; b=Az2j2cXwXY00VOqqbfQ5zLxKDcSeHceJgf+Q5tc/kpk1KrMgEIGakyPFWxqLNvdKEe WHR6mghOmmYyCHdL0X4zJj1p9fDV/DqgSnARVpHEtDnde/ete4DEhIgEwiWLmUbz6UxN dzQ28Z/5mb9tMLzVgoF7IClYLVemx3yOmxQAjjiCBKhliN/xhM4CkCYVq1/ifMkD/p5d sMdx5UClCAlLwKghOHiWHYWyHGFwIiiFmQGLk99/EHwCoAw+xw5C71Wcpdi8TeQ5iGJN GNdUi792qunafVrJMcSCiKWmLAMiucSwiKDI6oWuHPyP647yPGkJBMw1H0ZAfFLIbc8r 2lsA== X-Gm-Message-State: AD7BkJIw2LkRQWJgk9/jX9x3fhLNUxsUT2olxRGoBVFSCTIIt+9hewJk4Lb/VanLs5T5FgGk9hy23rTQI0168A== X-Received: by 10.112.199.7 with SMTP id jg7mr3591601lbc.109.1456720147446; Sun, 28 Feb 2016 20:29:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.142.83 with HTTP; Sun, 28 Feb 2016 20:28:37 -0800 (PST) In-Reply-To: <20160229013612.GA2085@potato.growveg.org> References: <20160228151843.GA69185@potato.growveg.org> <20160229013612.GA2085@potato.growveg.org> From: Dewayne Geraghty Date: Mon, 29 Feb 2016 15:28:37 +1100 Message-ID: Subject: Re: problems with powerd and cpufreq on AMD Quad-Core A8-4555M To: freebsd-stable stable Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Feb 2016 04:29:11 -0000 Bottom posted On 29 February 2016 at 12:36, John wrote: > On Mon, Feb 29, 2016 at 08:29:14AM +1100, Dewayne Geraghty wrote: > > Thanks John, I have cpufreq added via the boot/loader.conf which always >> works. However, over the weekend, I was testing some boot changes and >> tried >> to add cpufreq AFTER the kernel - unsuccessfully. This was amd64 >> 10.3Beta1 >> and 10.3Beta3. >> >> A workaround (for you) might be to remove it from the kernel and load >> cpufreq via loader.conf? >> >> I have some other problems (with usb nic's axge,axe) but I'll pursue if I >> get time for enough info for a PR >> > > Hi Dewayne, > > Thanks for looking at this. I modified loader.conf: > > $ cat /boot/loader.conf > cpufreq_load="YES" > > then recompiled the kernel and rebooted: > > 10.3-BETA3 #1 r296151 > > root@onion:~ # kldstat > Id Refs Address Size Name > 1 13 0xffffffff80200000 d45380 kernel > 2 1 0xffffffff80f46000 f0c8 cpufreq.ko > 3 1 0xffffffff8113d000 1604 fdescfs.ko > 4 1 0xffffffff8113f000 946 pflog.ko > 5 1 0xffffffff81140000 2d0ef pf.ko > ...but still no-go: > > root@onion:~ # powerd -v > powerd: no cpufreq(4) support -- aborting: No such file or directory > > Also commented out the powerd entries from /etc/rc.conf, rebooted > again, no difference. > > many thanks, > > -- > John > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > That's a nuisance! As I said, IF I load the module before the kernel, I'm good as follows. However if I load after booting, then I don't have any frequencies to choose from. I'm afraid the only "help" I can provide is of my working situation :( The order might be relevant. This is the early part of my /boot/loader.conf kern.hz="250" kern.coredump="0" loader_logo="none" beastie_disable="YES" autoboot_delay="1" kern.geom.label.ext2fs.enable="0" kern.geom.label.reiserfs.enable="0" cpufreq_load="YES" coretemp_load="YES" mac_ifoff_load="YES" ----- kldstat 1 20 0xffffffff80200000 aef9a8 kernel 2 1 0xffffffff80cf0000 2cc0 coretemp.ko 3 1 0xffffffff80cf3000 ef38 cpufreq.ko 4 1 0xffffffff80d02000 2b60 mac_ifoff.ko # sysctl -e dev.cpu.0.freq_levels dev.cpu.0.freq_levels=1801/25000 1800/25000 1700/23232 1600/21501 1500/20046 1400/18382 1300/16988 1200/15393 1100/14060 1000/12527 900/11252 800/9783 # /etc/rc.d/powerd onestart Starting powerd. # ps -axww|grep power 32365 - Ss 0:00.00 /usr/sbin/powerd 32382 5 S+ 0:00.00 grep power Then I /usr/sbin/powerd -vv load 0%, current freq 1801 MHz ( 0), wanted freq 1744 MHz changing clock speed from 1801 MHz to 1800 MHz load 0%, current freq 1800 MHz ( 1), wanted freq 1689 MHz changing clock speed from 1800 MHz to 1700 MHz load 0%, current freq 1700 MHz ( 2), wanted freq 1636 MHz load 0%, current freq 1700 MHz ( 2), wanted freq 1584 MHz So its working as expected. (I used to make extensive use of powerd, but my customers' wanted top performance during the day, so I adjust the CPU frequencies instead, based on time.) As I might have mentioned, if I load after the kernel, then kldload will show cpufreq.ko but there will be no frequencies to choose from. Might be relevant?? Kind regards, Dewayne