From owner-freebsd-mobile@freebsd.org Tue Oct 17 22:23:17 2017 Return-Path: Delivered-To: freebsd-mobile@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 C82E0E49233 for ; Tue, 17 Oct 2017 22:23:17 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) Received: from sonic308-3.consmr.mail.bf2.yahoo.com (sonic308-3.consmr.mail.bf2.yahoo.com [74.6.130.42]) (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 8B5EC147E for ; Tue, 17 Oct 2017 22:23:17 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) X-YMail-OSG: yrbReKIVM1mG3dHXMdFj_DB5E2pz8m95_u59mq7aozExSDnQCKIyW1.f0cnSt72 HHWyzjq2sdi5vmrTCS1bUs516mAHlbYjE88DngGYniXcKUt1c0GVxIGHdi3h2kCo9eu0S71d64Vu YicXvs0G2uuZHM56LEa2_HFtSNhY0iEtxDYbzWJA6BhFn_WJ5gLrjQzMO4OKGX3FilugOpEmHeP6 GivBb5Ed8sktNdjtoLtJXcr7gWMXUvQM7.ff6a1TfggzYWHMB_ENusxem.B.zw6e1ngjLz1XeL9J M60Q3AyO_DXHskfiQ003T4iK..4B9xGOcKpkKn21qklK1tnJG65pstm0g8lQDLjfD9GpL7IjPg.n Hy7esfkdVJHIjWfaKaT7HYMpYuFtq5ZZ6iUrvKipKlFMakU89wSrppSrVSe08SK_ZsLpXBbg0GfP mqLrqmOFoSemoW5C7hPbt41zovO2B4_O1_eyAHaBrdNsgaZCZxENA5GC8lF7PL23rBaCEjFU- Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.bf2.yahoo.com with HTTP; Tue, 17 Oct 2017 22:23:10 +0000 Received: from [127.0.0.1] by smtp230.mail.bf1.yahoo.com with NNFMP; 17 Oct 2017 22:23:08 -0000 X-Yahoo-Newman-Id: 426197.40812.bm@smtp230.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: yrbReKIVM1mG3dHXMdFj_DB5E2pz8m95_u59mq7aozExSDn QCKIyW1.f0cnSt72HHWyzjq2sdi5vmrTCS1bUs516mAHlbYjE88DngGYniXc KUt1c0GVxIGHdi3h2kCo9eu0S71d64VuYicXvs0G2uuZHM56LEa2_HFtSNhY 0iEtxDYbzWJA6BhFn_WJ5gLrjQzMO4OKGX3FilugOpEmHeP6GivBb5Ed8skt NdjtoLtJXcr7gWMXUvQM7.ff6a1TfggzYWHMB_ENusxem.B.zw6e1ngjLz1X eL9JM60Q3AyO_DXHskfiQ003T4iK..4B9xGOcKpkKn21qklK1tnJG65pstm0 g8lQDLjfD9GpL7IjPg.nHy7esfkdVJHIjWfaKaT7HYMpYuFtq5ZZ6iUrvKip KlFMakU89wSrppSrVSe08SK_ZsLpXBbg0GfPmqLrqmOFoSemoW5C7hPbt41z ovO2B4_O1_eyAHaBrdNsgaZCZxENA5GC8lF7PL23rBaCEjFU- X-Yahoo-SMTP: 9sPoSQ2swBBlERuQ.0vs8XLc_MeClW0- Subject: Re: problems getting AMD C-70 APU working with powerd/cpufreq To: freebsd-hardware@freebsd.org, freebsd-mobile@freebsd.org, tech-lists References: <20171013123721.GA27736@acer.zyxst.net> <20171014215317.K34192@sola.nimnet.asn.au> <20171014212602.GB92751@acer.zyxst.net> <20171016013155.I34192@sola.nimnet.asn.au> <20171016121735.GA73795@acer.zyxst.net> From: Anthony Jenkins Message-ID: Date: Tue, 17 Oct 2017 18:23:06 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20171016121735.GA73795@acer.zyxst.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Oct 2017 22:23:17 -0000 On 10/16/2017 08:17, tech-lists wrote: > Hi, > > On Mon, Oct 16, 2017 at 02:58:10AM +1100, Ian Smith wrote: >> On Sat, 14 Oct 2017 22:26:02 +0100, tech-lists wrote: >> > On Sat, Oct 14, 2017 at 10:36:02PM +1100, Ian Smith wrote: >> > > On Fri, 13 Oct 2017 13:37:21 +0100, tech-lists wrote: > >> However, this is after you've booted, right?  Might you need to add >> cpufreq_load="YES" to /boot/loader.conf, so it's loaded before being >> needed for detection / attachment during boot probing, perhaps? > > ok tried that. I get cpufreq.ko loaded in the kernel via > /boot/loader.conf but still I get > > $ sudo powerd -v > powerd: no cpufreq(4) support -- aborting: No such file or directory > cpufreq(4) does not support AMD processor family 0x14 (20), which I believe your dmesg showed your processor to be. I had added support for controlling the frequency on some later AMD families last year, but the AMD documentation for the 0x14 family is pretty complicated for my tiny brain.  The other families control processor frequency with a single register, but AFACT you use P-states on family 0x14.  You can have up to 8 P-states, each of which specifies a power/frequency configuration.  If someone could point me to a reference for controlling the frequency for this family, I could submit something for review...no idea what Linux does for this family. Anthony