From owner-freebsd-stable@FreeBSD.ORG Tue May 22 18:10:33 2012 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DACEA1065678; Tue, 22 May 2012 18:10:33 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout1-b.corp.bf1.yahoo.com (mrout1-b.corp.bf1.yahoo.com [98.139.253.104]) by mx1.freebsd.org (Postfix) with ESMTP id 7800F8FC0C; Tue, 22 May 2012 18:10:33 +0000 (UTC) Received: from [IPv6:::1] (rideseveral.corp.yahoo.com [10.73.160.231]) by mrout1-b.corp.bf1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id q4MIAEa5083482; Tue, 22 May 2012 11:10:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1337710215; bh=hY9tcuw/j3DIPV8ECZk2DuyOC2EC9aFQDs/mmFjVn6o=; h=Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date: Message-ID:Mime-Version:Content-Transfer-Encoding; b=Sym5+Z8bqaMXL1j7lNMUspp05AUrZtwU1vh++gvDjYbGg2+aYP0bOosPNR9vXYhi4 PjAgDOVGvOaKs8zMiulgwX1uOxZxjiJ2pr+kc44N8ALS1nsczD95Dvk47a/0X2WD1M KH20RVvEaK8ZSvZjCaZYt6wV29aw9X87g5PiGH4g= From: Sean Bruno To: Jung-uk Kim In-Reply-To: <4FB6765A.2050307@FreeBSD.org> References: <1337319129.2915.4.camel@powernoodle-l7> <4FB6765A.2050307@FreeBSD.org> Content-Type: text/plain; charset="UTF-8" Date: Tue, 22 May 2012 11:10:14 -0700 Message-ID: <1337710214.2916.8.camel@powernoodle-l7.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Milter-Version: master.31+4-gbc07cd5+ X-CLX-ID: 710214004 Cc: "sbruno@FreeBSD.org" , freebsd-stable Subject: Re: [stable 9] broken hwpstate calls X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2012 18:10:33 -0000 On Fri, 2012-05-18 at 09:18 -0700, Jung-uk Kim wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 2012-05-18 01:32:09 -0400, Sean Bruno wrote: > > Looks like my AMD box isn't quite working correctly with regards > > to P-states. I noted this repeating periodically: hwpstate0: set > > freq failed, err 6 > > > > > > I noted these errors when setting the hwpstate verbose systctl on: > > > > May 17 22:28:32 Alice kernel: hwpstate0: set freq failed, err 6 May > > 17 22:28:32 Alice kernel: hwpstate0: setting P1-state on cpu0 May > > 17 22:28:32 Alice kernel: hwpstate0: result P1-state on cpu0 May > > 17 22:28:32 Alice kernel: hwpstate0: setting P1-state on cpu1 May > > 17 22:28:32 Alice kernel: hwpstate0: result P1-state on cpu1 May > > 17 22:28:32 Alice kernel: hwpstate0: setting P1-state on cpu2 May > > 17 22:28:32 Alice kernel: hwpstate0: result P1-state on cpu2 May > > 17 22:28:32 Alice kernel: hwpstate0: setting P1-state on cpu3 May > > 17 22:28:32 Alice kernel: hwpstate0: result P1-state on cpu3 May > > 17 22:28:32 Alice kernel: hwpstate0: setting P1-state on cpu4 May > > 17 22:28:32 Alice kernel: hwpstate0: result P1-state on cpu4 May > > 17 22:28:32 Alice kernel: hwpstate0: setting P1-state on cpu5 May > > 17 22:28:32 Alice kernel: hwpstate0: result P1-state on cpu5 May > > 17 22:28:32 Alice kernel: hwpstate0: setting P1-state on cpu6 May > > 17 22:28:32 Alice kernel: hwpstate0: result P1-state on cpu6 May > > 17 22:28:32 Alice kernel: hwpstate0: setting P1-state on cpu7 May > > 17 22:28:32 Alice kernel: hwpstate0: result P1-state on cpu7 > > > > > > Sean > > > > ref this machine: http://forums.pcbsd.org/showthread.php?t=16733 > > I briefly looked at the dmesg. You have a Family 15h processor > (Bulldozer with Turbo Core) and I believe it isn't supported (yet). > It won't be too hard to implement, though. > > Jung-uk Kim I'm assuming, something like this to start? http://people.freebsd.org/~sbruno/bulldozer.txt I'm reading the AMD spec, and that *seems* to be right? But, chances are I have no idea what I'm doing. :-) Sean