Subject: Re: Powernow support?
To: Juan RP <juan@xtrarom.org>
From: Mihai CHELARU <mihai.chelaru@girsa.ro>
List: port-amd64
Date: 07/31/2006 10:08:40
Juan RP wrote:

> On Sun, 23 Jul 2006 10:01:59 -0700
> Scott Ellis <scotte@warped.com> wrote:
> 
>> It's been awhile since I've seen this subject broached, so I wanted to
>> check the status.  Are there any pending patches to enable PowerNow
>> support on amd64?  I see that the i386 PowerNow support is in, but
>> nothing in-tree for amd64.  Looking at powernow-k7, it looks pretty
>> similar to the OpenBSD version.  OpenBSD also has powernow-k8 support.
>> 
>> Google (and a search of the list archives) didn't turn up any "work in
>> progress" on Amd64 PowerNow support, so I figured I'd ask here: Is
>> anyone working on this, and in need of some feedback/broader testing?
> 
> Ok, this is just the patch I made today... based in the openbsd
> powernow_k8.c driver for amd64.
> 
> Anyone wants to review the patch or try to fix the code if something is
> wrong?
> 
> http://www.xtrarom.org/~juan/powernow_k8.patch
> 
> A precompiled NetBSD/amd64 kernel based on GENERIC_ACPI plus
> "options POWERNOW_K8" is available at:
> 
> http://www.xtrarom.org/~juan/netbsd_amd64_powernow.gz
> 
> I don't have amd64 hw.... so it's untested.


Hi,

It ain't working here.

kefren64$ uname -v
NetBSD 3.99.23 (Kefren) #2: Mon Jul 31 09:54:40 EEST 2006 
root@kefren64.girsa.ro:/usr/src/sys/arch/amd64/compile/Kefren
kefren64$ grep POWERNOW /usr/src/sys/arch/amd64/conf/Kefren
options         POWERNOW_K8
kefren64$ dmesg | grep available
kefren64$ sysctl machdep
machdep.booted_kernel = netbsd
machdep.diskinfo: 80:234441648(1023/255/63),2 81:117231408(1023/255/63),2
82:312581808(1024/255/63),2 83:390721968(1024/255/63),2  wd0:82 wd1:83
wd2:80 wd3:81
machdep.sleep_state = 0
kefren64$ sysctl machdep.powernow
sysctl: second level name 'powernow' in 'machdep.powernow' is invalid


Full dmesg can be found here: http://kefren.netbsd.ro/files/dmesg

-- 
Cheers,
Mihai