From owner-freebsd-bugs@FreeBSD.ORG Tue Apr 17 10:10:02 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 509BA1065672 for ; Tue, 17 Apr 2012 10:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E05F38FC0C for ; Tue, 17 Apr 2012 10:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q3HAA1PF068833 for ; Tue, 17 Apr 2012 10:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q3HAA1To068832; Tue, 17 Apr 2012 10:10:01 GMT (envelope-from gnats) Resent-Date: Tue, 17 Apr 2012 10:10:01 GMT Resent-Message-Id: <201204171010.q3HAA1To068832@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jens Link Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7024106566B for ; Tue, 17 Apr 2012 10:03:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 7914D8FC08 for ; Tue, 17 Apr 2012 10:03:52 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q3HA3qIb098348 for ; Tue, 17 Apr 2012 10:03:52 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q3HA3qW6098331; Tue, 17 Apr 2012 10:03:52 GMT (envelope-from nobody) Message-Id: <201204171003.q3HA3qW6098331@red.freebsd.org> Date: Tue, 17 Apr 2012 10:03:52 GMT From: Jens Link To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/167018: hwpstate0: set freq failed with AMD FX(tm)-8120 Eight-Core Processor X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2012 10:10:02 -0000 >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@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: on cpu0 hwpmc: TSC/1/64/0x20 K8/4/48/0x1ff 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: