Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Aug 2015 08:39:11 -0700
From:      John Baldwin <jhb@freebsd.org>
To:        Mario Lobo <lobo@bsd.com.br>
Cc:        freebsd-hackers@freebsd.org, "Herbert J. Skuhra" <herbert@oslo.ath.cx>
Subject:   Re: Gigabyte 970A-UD3P and hwpstate problem
Message-ID:  <2167403.C3gzAhEsMN@ralph.baldwin.cx>
In-Reply-To: <20150805100401.265ca50f@Papi>
References:  <20150710213752.473cb831@Papi> <1678045.UlXctAKXAD@ralph.baldwin.cx> <20150805100401.265ca50f@Papi>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, August 05, 2015 10:04:01 AM Mario Lobo wrote:
> On Tue, 04 Aug 2015 13:18:21 -0700
> John Baldwin <jhb@freebsd.org> wrote:
> 
> > On Sunday, July 12, 2015 03:23:21 PM Mario Lobo wrote:
> > > On Sat, 11 Jul 2015 15:50:06 +0200
> > > "Herbert J. Skuhra" <herbert@oslo.ath.cx> wrote:
> > > 
> > > > On Fri, Jul 10, 2015 at 09:37:52PM -0300, Mario Lobo wrote:
> > > > > Hi;
> > > > > 
> > > > > I just installed a Gigabyte 970A-UD3P mobo and updated BIOS to
> > > > > the latest version but the problem also showed with the previous
> > > > > version.
> > > > > 
> > > > > Here is my amd64 10-STABLE setup:
> > > > > 
> > > > > FreeBSD 10.2-PRERELEASE #0 r285207M: Tue Jul  7 00:11:01 BRT
> > > > > 2015 amd64
> > > > > 
> > > > > CPU: AMD FX-8320E Eight-Core Processor (3214.93-MHz K8-class
> > > > > CPU) Origin="AuthenticAMD"  Id=0x600f20  Family=0x15  Model=0x2
> > > > > Stepping=0
> > Can you run 'kgdb' as root and get the output of 'p amd_pminfo'?
> 
> (kgdb) p amd_pminfo
> $1 = 2009

Ok, AMDPM_HW_PSTATE is set.

> > Hmm, do you have an acpi_perf0 device?  If not, then your CPU isn't
> > supported without BIOS help.
> 
> No acpi_perf0 device present

Ok, in that case the hwpstate driver doesn't know how to handle your CPU.
It only has a manual fall back for older CPUs:

static int
hwpstate_get_info_from_msr(device_t dev)
{
	...
                switch(family) {
                case 0x11:
                        /* fid/did to frequency */
                        hwpstate_set[i].freq = 100 * (fid + 0x08) / (1 << did);
                        break;
                case 0x10:
                        /* fid/did to frequency */
                        hwpstate_set[i].freq = 100 * (fid + 0x10) / (1 << did);
                        break;
                default:
                        HWPSTATE_DEBUG(dev, "get_info_from_msr: AMD family %d CPU's are not implemented yet. sorry.\n", family);
                        return (ENXIO);
                        break;
                }
	...
}

(Your CPU is family 0x15 as you can see from dmesg.)

> > First check to see if there are any BIOS
> > options to control CPU throttling that are currently disabled.
> 
> The only BIOS option that deals with throttling is Cool'n'Quiet, which
> is enabled.

You might try checking if C1E is enabled.  Also, if you have done any
overclocking you might try disabling that.

It might also be that your BIOS is not telling us about Cool N Quiet
for some other reason.  Can you get an ACPI dump?

> I get this though:
> 
> [~]>dmesg -a | grep acpi_    
> acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
> acpi_button0: <Power Button> on acpi0
> acpi_throttle0: <ACPI CPU Throttling> on cpu0

As I mentioned previously, acpi_throttle is useless for you.  Yes, it does
slow your CPU down, but it doesn't save you very much power (if any).

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2167403.C3gzAhEsMN>