kern/167018: hwpstate0: set freq failed with AMD FX(tm)-8120
Eight-Core Processor
Jens Link
jens.link at gmx.de
Tue Apr 17 10:10:02 UTC 2012
>Number: 167018
>Category: kern
>Synopsis: hwpstate0: set freq failed with AMD FX(tm)-8120 Eight-Core Processor
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Apr 17 10:10:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Jens Link
>Release: FreeBSD 9.0-STABLE
>Organization:
privat
>Environment:
FreeBSD honk.mylink-net.de 9.0-STABLE FreeBSD 9.0-STABLE #6: Thu Apr 12 19:03:51 CEST 2012 root at honk.mylink-net.de:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
When I start the powerd daemon I get a lot of kernel messages:
hwpstate0: set freq failed, err 6
The cpufreq works as I can seen in kernel messages with hwpmc.ko loaded:
hwpstate0: going to fetch info from acpi_perf
hwpstate0: <Cool`n'Quiet 2.0> on cpu0
hwpmc: TSC/1/64/0x20<REA> K8/4/48/0x1ff<INT,USR,SYS,EDG,THR,REA,WRI,INV,QUA>
and I get the sysctl variables:
dev.cpu.0.freq: 1400
dev.cpu.0.freq_levels: 3100/14210 2800/12250 2450/10718 2300/8677 2012/7592 1900/5431 1662/4752 1425/4073 1400/3558 1225/3113 1050/2668 875/2223 700/1779 525/1334 350/889 175/444
I also test to set "hint.acpi_throttle.0.disabled=1" in boot/loader.conf, but this only reduce the frequency
dev.cpu.0.freq_levels: 3100/14210 2800/12250 2300/8677 1900/5431 1400/3558
that's exactly the same what
dev.hwpstate.0.freq_settings: 3100/14210 2800/12250 2300/8677 1900/5431 1400/3558
have. But the error is still there. So I try "debug.hwpstate_verbose=1" and get now
hwpstate0: setting P1-state on cpu0
hwpstate0: result P0-state on cpu0
hwpstate0: error: loop is not enough.
hwpstate0: setting P1-state on cpu1
hwpstate0: result P1-state on cpu1
hwpstate0: setting P1-state on cpu2
hwpstate0: result P0-state on cpu2
hwpstate0: error: loop is not enough.
hwpstate0: setting P1-state on cpu3
hwpstate0: result P1-state on cpu3
hwpstate0: setting P1-state on cpu4
hwpstate0: result P0-state on cpu4
hwpstate0: error: loop is not enough.
hwpstate0: setting P1-state on cpu5
hwpstate0: result P1-state on cpu5
hwpstate0: setting P1-state on cpu6
hwpstate0: result P0-state on cpu6
hwpstate0: error: loop is not enough.
hwpstate0: setting P1-state on cpu7
hwpstate0: result P1-state on cpu7
hwpstate0: set freq failed, err 6
and so on. Then I try to increase the loop in "src/sys/x86/cpufreq/hwpstate.c" without success. I don't have any Idee now to fix. May something is missing in the hwpmc code for the CPU or is this only a result from a buggy bios with incomplete acpi cpu code? Can anybody confirm that the powerd is working correctly with this CPU on an other Mainboard than the MSI 870A-G54 (FX)?
>How-To-Repeat:
Start powerd with an AMD 8 Core FX 8120 CPU
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list