From owner-freebsd-current@FreeBSD.ORG Tue Sep 23 06:23:16 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 141E71065676 for ; Tue, 23 Sep 2008 06:23:16 +0000 (UTC) (envelope-from annona2@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.173]) by mx1.freebsd.org (Postfix) with ESMTP id D09C48FC16 for ; Tue, 23 Sep 2008 06:23:10 +0000 (UTC) (envelope-from annona2@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so1991134wfg.7 for ; Mon, 22 Sep 2008 23:23:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:message-id:date:from :to:cc:subject:in-reply-to:references:user-agent:mime-version :content-type; bh=cki9HhOqYisq5bwwk9RQuQNYrLmxJLuJKQZUnyTBgqA=; b=G7FE+ZGLN4l2S9V9z2wVG+pyI7NSH1s6EdfU/lEX/ibnP3hrEJol4eNhNKs5WwISER UO7pd6BOql8KoXJ218S+KFknu+1s+RDB3tswdt/15qXAEKs6DErRbqWu/c8JWFYAmBAk 3F4IaIfIfnodsUdunD+63E3kjwVZhSgFk2eiE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:cc:subject:in-reply-to:references :user-agent:mime-version:content-type; b=b1Y9aNmF8xJNzmd5rVTl+UzkJzBFRxzlwZCqHhXX9umytZO8D2lRkuKSoNLA6CQu/t fCC7taRyWm/LuqVOmBWUbMJrCOpzuvptRdXedqauDATj7jpgHgDqLo96B7Rvrt8BlCT7 cHd2uXI24KJowKQV1kCAK6VIXqV5UnaSalB5o= Received: by 10.142.132.2 with SMTP id f2mr1837957wfd.22.1222150990183; Mon, 22 Sep 2008 23:23:10 -0700 (PDT) Received: from softbank219001162114.bbtec.net ( [219.1.162.114]) by mx.google.com with ESMTPS id 20sm9404634wfi.11.2008.09.22.23.23.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 22 Sep 2008 23:23:09 -0700 (PDT) Received: from softbank219001162114.bbtec.net (localhost [127.0.0.1]) by softbank219001162114.bbtec.net (8.14.3/8.14.3) with ESMTP id m8N6N5rV002035; Tue, 23 Sep 2008 15:23:05 +0900 (JST) (envelope-from annona2@gmail.com) Message-Id: <200809230623.m8N6N5rV002035@softbank219001162114.bbtec.net> Date: Tue, 23 Sep 2008 15:23:05 +0900 From: "G .Otsuji" To: "fluffles.net" In-Reply-To: <48D85FC0.5050807@fluffles.net> References: <200809070036.m870a3NC001532@softbank219001162114.bbtec.net> <48D72F0E.7040501@fluffles.net> <200809222333.m8MNXiuS064364@softbank219001162114.bbtec.net> <48D85FC0.5050807@fluffles.net> User-Agent: Wanderlust/2.15.5 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/22.2 (i386-portbld-freebsd7.1) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: "G.Otsuji" , FreeBSD Current Subject: Re: AMD Family 10h cpufreq driver X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Sep 2008 06:23:16 -0000 Hi Veronica, I 've tested in amd64 environment. But ... Here's a temprorary patch, --- pstate.c.before 2008-09-23 14:56:57.000000000 +0900 +++ pstate.c 2008-09-23 15:19:39.000000000 +0900 @@ -362,11 +362,16 @@ *p++ = (char)((reg >> 24) & 0xff); } } + if (sc->mof_id == 0) { + device_printf(dev, "msr is = %x\n",msr); + } if (strstr(cpu_model, "Phenom")) { if (strstr(cpu_model, "9600")) { sc->mof_id = 23; /* 2.3 GHz */ } else if (strstr(cpu_model, "9850")) { sc->mof_id = 25; /* 2.5 GHz */ + } else if (strstr(cpu_model, "9350e")) { + sc->mof_id = 20; /* 2.0 GHz */ } else if (strstr(cpu_model, "9950")) { sc->mof_id = 26; /* 2.6 GHz */ } Is this cpu is black edition or not? I think more verbose debugging message is needed . so msr is = %x is added. send me the result please. I had an idea that it will be cool that message says Cool`n'quiet 2.0 and it is not any further deep thought. :-) And I have little knowledge about C1E state. :-< Thank you for testing. and be careful that ,before down clock, mount -u -o ro as much as possible,or sync sync. Cheers, G. Otsuji