From owner-freebsd-hackers@freebsd.org Sun Jul 12 18:18:55 2015 Return-Path: Delivered-To: freebsd-hackers@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 B5089999576 for ; Sun, 12 Jul 2015 18:18:55 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-qk0-x22c.google.com (mail-qk0-x22c.google.com [IPv6:2607:f8b0:400d:c09::22c]) (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 72D88192D for ; Sun, 12 Jul 2015 18:18:55 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by qkbp125 with SMTP id p125so241214081qkb.2 for ; Sun, 12 Jul 2015 11:18:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-type:content-transfer-encoding; bh=K5ng5x+DA45feloHtNSouwuy3m/J1t+pqiATla6a39I=; b=ReTEmmOZP1n5o95xNfAFDJqZ+mrC6OFa6631T3xuN00u9Zg7gmrwNvJiRZgw+ACmYo 2krFw7ZxRwh3+s39oxHUcCiovAHIecL1Rw2dJjS2fzeHafK1+7lEr+lz7BafGl42WXov sMZRLUYZQShL1YRWgDJPavcQ9/OsifXVYb914= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-type :content-transfer-encoding; bh=K5ng5x+DA45feloHtNSouwuy3m/J1t+pqiATla6a39I=; b=C0QdHCzf4QNmstY1SsXB+nMMFnEwuNTcz68N2F6bn+eRujM+wrBY8QfgZ4uxxrzx5f X/My+alO/+SP4xa10SxsGuRyfzjZ+0GMplAdU9KxIE/aed6BG32g1ImUc3ldMBk3TKfw cMuP0wOsLx9YGvtX1TcvpNfiQ5ASdElw2vLtt8vBit7HYXftXWQNtJ83EwdXARb5cziv mS9HUYEb/gmb5Eyvh4gApk6Xwam1Xucw2eBj6ecD+wMR63Zu8JgDRvqCKGlZKmN5KN+P utBOwaGZktmuMzEKT8Kx+fk8w9AKhP7gyafVusWdAm2C8HOiJECQL93jcKmyU+8kGJgN WeKA== X-Gm-Message-State: ALoCoQk8uBNUJpg81pDIuqAeIcWn456vminwOVzoXFs/TBQfS+bzTrMAPrCbFU2semG77c24n1CS X-Received: by 10.140.238.22 with SMTP id j22mr49895524qhc.98.1436725134374; Sun, 12 Jul 2015 11:18:54 -0700 (PDT) Received: from Papi ([186.212.119.146]) by smtp.gmail.com with ESMTPSA id f207sm9500691qhc.41.2015.07.12.11.18.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Jul 2015 11:18:54 -0700 (PDT) Date: Sun, 12 Jul 2015 15:23:21 -0300 From: Mario Lobo To: "Herbert J. Skuhra" Cc: freebsd-hackers@freebsd.org Subject: Re: Gigabyte 970A-UD3P and hwpstate problem Message-ID: <20150712152321.51b8407c@Papi> In-Reply-To: <20150711135006.GB41680@oslo.ath.cx> References: <20150710213752.473cb831@Papi> <20150711135006.GB41680@oslo.ath.cx> Organization: BSD X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; amd64-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jul 2015 18:18:55 -0000 On Sat, 11 Jul 2015 15:50:06 +0200 "Herbert J. Skuhra" wrote: > On Fri, Jul 10, 2015 at 09:37:52PM -0300, Mario Lobo wrote: > > Hi; > >=20 > > I just installed a Gigabyte 970A-UD3P mobo and updated BIOS to the > > latest version but the problem also showed with the previous > > version. > >=20 > > Here is my amd64 10-STABLE setup: > >=20 > > FreeBSD 10.2-PRERELEASE #0 r285207M: Tue Jul 7 00:11:01 BRT 2015 > > amd64 > >=20 > > CPU: AMD FX-8320E Eight-Core Processor (3214.93-MHz K8-class CPU) > > Origin=3D"AuthenticAMD" Id=3D0x600f20 Family=3D0x15 Model=3D0x2 > > Stepping=3D0 > > Features=3D0x178bfbff > > Features2=3D0x3e98320b > > AMD Features=3D0x2e500800 AMD > > Features2=3D0x1ebbfff > > Structured Extended Features=3D0x8 > > SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=3D65536 > > TSC: P-state invariant, performance statistics > > real memory =3D 17179869184 (16384 MB) > > [snip] > > ACPI BIOS Warning (bug): Optional FADT field Pm2ControlBlock has > > zero address or length: 0x0000000000000000/0x1 (20150515/tbfadt-673) > > [snip] > > hpet0: iomem 0xfed00000-0xfed003ff on > > acpi0 > >=20 > > The problem: > >=20 > > powerd: no cpufreq(4) support -- aborting: No such file or directory > > /etc/rc: WARNING: failed to start powerd >=20 > Could this be your problem: >=20 > r276986 | nwhitehorn | 2015-01-11 18:10:07 +0100 (s=F8n, 11 jan 2015) | > 8 lines >=20 > MFC r265329: > Disable ACPI and P4TCC throttling by default, following discussion on > freebsd-current. These CPU speed control techniques are usually > unhelpful at best. For now, continue building the relevant code into > GENERIC so that it can trivially be re-enabled at runtime if anyone > wants it. >=20 > Relnotes: yes >=20 > % svnlite diff -c 276986 sys/amd64/conf/GENERIC.hints=20 > Index: sys/amd64/conf/GENERIC.hints > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- sys/amd64/conf/GENERIC.hints (revision 276985) > +++ sys/amd64/conf/GENERIC.hints (revision 276986) > @@ -31,3 +31,5 @@ > hint.attimer.0.port=3D"0x40" > hint.attimer.0.irq=3D"0" > hint.wbwd.0.at=3D"isa" > +hint.acpi_throttle.0.disabled=3D"1" > +hint.p4tcc.0.disabled=3D"1" >=20 > Does it work if your unset or remove those lines > from /boot/device.hints? >=20 YEEESSS ! Thanks for pointing that out! I have these commented on my loader.conf but I didn't know they were active somewhere else. As far as cpufreq/powerd goes, it's working now and frequencies are being throttled but still no cool'n'quiet/hwpstate0 showing on dmesg. acpi_throttle attaches to cpu0 but not to the others. acpi_throttle0: on cpu0 acpi_throttle1: on cpu1 acpi_throttle1: failed to attach P_CNT device_attach: acpi_throttle1 attach returned 6 acpi_throttle2: on cpu2 acpi_throttle2: failed to attach P_CNT device_attach: acpi_throttle2 attach returned 6 acpi_throttle3: on cpu3 acpi_throttle3: failed to attach P_CNT device_attach: acpi_throttle3 attach returned 6 acpi_throttle4: on cpu4 acpi_throttle4: failed to attach P_CNT device_attach: acpi_throttle4 attach returned 6 acpi_throttle5: on cpu5 acpi_throttle5: failed to attach P_CNT device_attach: acpi_throttle5 attach returned 6 acpi_throttle6: on cpu6 acpi_throttle6: failed to attach P_CNT device_attach: acpi_throttle6 attach returned 6 acpi_throttle7: on cpu7 acpi_throttle7: failed to attach P_CNT device_attach: acpi_throttle7 attach returned 6 sysctl -a | grep freq dev.cpufreq.0.%parent: cpu0 dev.cpufreq.0.%pnpinfo:=20 dev.cpufreq.0.%location:=20 dev.cpufreq.0.%driver: cpufreq dev.cpufreq.0.%desc:=20 dev.cpufreq.%parent:=20 dev.acpi_throttle.0.freq_settings: 10000/-1 8750/-1 7500/-1 6250/-1 5000/-1 3750/-1 2500/-1 1250/-1 dev.cpu.0.freq_levels: 3214/-1 2812/-1 2410/-1 2008/-1 1607/-1 1205/-1 803/-1=20 dev.cpu.0.freq: 803 Thanks again! --=20 Mario Lobo http://www.mallavoodoo.com.br FreeBSD since 2.2.8 [not Pro-Audio.... YET!!] (99% winblows FREE) =20 "UNIX was not designed to stop you from doing stupid things,=20 because that would also stop you from doing clever things."