Subject: Re: powernow k8 problem
To: None <tech-kern@netbsd.org>
From: billk01 <billk01@metrumrg.com>
List: tech-kern
Date: 12/11/2006 22:36:46
Thought I would reply to my own post in case somebody wants to read a 
bit more and pass on some help.
I have built and installed (using build.sh) NetBSD4 beta2 for amd64 and 
built a kernel with options POWERNOW_K8 and options POWERNOW_DEBUG.  
Still no luck with powernow.  I tried with and without acpi. I have 
attached my dmesg for the kernel with acpi.  Any help would be appreciated.

Thanks,

Bill

dmesg output:

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 
2005, 2006
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 4.0_BETA2 (Laptop64ACPI) #0: Sat Dec  9 11:50:38 EST 2006
    root@wendy.zonk:/usr/src/sys/arch/amd64/compile/Laptop64ACPI
total memory = 1279 MB
avail memory = 1222 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
mainbus0 (root)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) 64 Processor 3400+, 2194.45 MHz
cpu0: features: e7dbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features: e7dbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,MMXX,MMX>
cpu0: features: e7dbfbff<FXSR,SSE,SSE2,LONG,3DNOW2,3DNOW>
cpu0: I-cache 64 KB 64B/line 2-way, D-cache 64 KB 64B/line 2-way
cpu0: L2 cache 1 MB 64B/line 16-way
cpu0: ITLB 32 4 KB entries fully associative, 8 4 MB entries fully 
associative
cpu0: DTLB 32 4 KB entries fully associative, 8 4 MB entries fully 
associative
cpu0: AMD Power Management features: f<TTP,VID,FID,TS>
k8pnow_states: before the for loop
k8pnow_states: returns 0!
k8_powernow_init: returned 0!
k8_powernow_init: k8pnow_current_state is NULL!
cpu0: calibrating local timer
cpu0: apic clock running at 199 MHz
cpu0: 16 page colors
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, version 11, 24 pins
ioapic0: misconfigured as apic 0
ioapic0: remapped to apic 2
acpi0 at mainbus0: Advanced Configuration and Power Interface
acpi0: using Intel ACPI CA subsystem version 20060217
acpi0: X/RSDT: OemId <PTLTD ,  RSDT  ,06040000>, AslId < LTP,00000000>
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
ACPI-Fast 24-bit timer
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
pnp0c14 at acpi0 not configured
PNP0C0C [ACPI power button device] at acpi0 not configured
PNP0C0D [ACPI lid device] at acpi0 not configured
PNP0A03 [PCI/PCI-X Host Bridge] at acpi0 not configured
ACPI0003 [AC Device] at acpi0 not configured
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not 
configured
PNP0C01 [System Board] at acpi0 not configured
PNP0C09 [ACPI Embedded Controller] at acpi0 not configured
PNP0C0A [ACPI Control Method Battery] at acpi0 not configured
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not 
configured
PNP0000 [AT Interrupt Controller] at acpi0 not configured
PNP0100 [AT Timer] at acpi0 not configured
PNP0200 [AT DMA Controller] at acpi0 not configured
PNP0800 [AT-style speaker sound] at acpi0 not configured
PNP0B00 [AT Real-Time Clock] at acpi0 not configured
PNP0C04 [Math Coprocessor] at acpi0 not configured
PNP0303 [IBM Enhanced (101/102-key, PS/2 mouse support)] at acpi0 not 
configured
PNP0F13 [PS/2 Port for PS/2-style Mice] at acpi0 not configured
PNP0A05 [Generic Container Device] at acpi0 not configured
PNP0700 [PC standard floppy disk controller] at acpi0 not configured
PNP0401 [ECP printer port] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
ACPI Object Type 'Thermal' (0x0d) at acpi0 not configured
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: NVIDIA nForce3 Host-PCI bridge (rev. 0xa4)
pcib0 at pci0 dev 1 function 0
pcib0: NVIDIA nForce3 PCI-ISA bridge (rev. 0xa6)
NVIDIA nForce3 SMBus controller (SMBus serial bus, revision 0xa4) at 
pci0 dev 1 function 1 not configured
ohci0 at pci0 dev 2 function 0: NVIDIA nForce3 USB Host Controller (rev. 
0xa5)
LUS0: Picked IRQ 20 with weight 0
ohci0: interrupting at ioapic0 pin 20 (irq 11)
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: NVIDIA OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 2 function 1: NVIDIA nForce3 USB Host Controller (rev. 
0xa5)
LUS1: Picked IRQ 21 with weight 0
ohci1: interrupting at ioapic0 pin 21 (irq 10)
ohci1: OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: NVIDIA OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ehci0 at pci0 dev 2 function 2: NVIDIA nForce3 USB2 Host Controller 
(rev. 0xa2)
LUS2: Picked IRQ 22 with weight 0
ehci0: interrupting at ioapic0 pin 22 (irq 10)
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 4 ports each: ohci0 ohci1
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: NVIDIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 6 ports with 6 removable, self powered
auich0 at pci0 dev 6 function 0: nForce3 MCP-T AC-97 Audio
LACI: Picked IRQ 20 with weight 1
auich0: interrupting at ioapic0 pin 20 (irq 11)
auich0: ac97: Analog Devices AD1981B codec; headphone, 20 bit DAC, no 3D 
stereo
auich0: ac97: ext id 605<AC97_22,AMAP,SPDIF,VRA>
NVIDIA product 0x00d9 (modem communications, revision 0xa2) at pci0 dev 
6 function 1 not configured
viaide0 at pci0 dev 8 function 0
viaide0: NVIDIA nForce3 IDE Controller (rev. 0xa5)
viaide0: bus-master DMA support present
viaide0: primary channel configured to compatibility mode
viaide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus0 at viaide0 channel 0
viaide0: secondary channel configured to compatibility mode
viaide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
atabus1 at viaide0 channel 1
ppb0 at pci0 dev 10 function 0: NVIDIA nForce3 PCI-PCI bridge (rev. 0xa2)
pci1 at ppb0 bus 2
pci1: i/o space, memory space enabled
fwohci0 at pci1 dev 0 function 0: Texas Instruments TSB43AA21 IEEE 1394 
Host Controller (rev. 0x00)
LNK1: Picked IRQ 16 with weight 0
fwohci0: interrupting at ioapic0 pin 16 (irq 11)
fwohci0: OHCI version 1.10 (ROM=0)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 4b:3f:02:00:4b:3f:02:00
fwohci0: Phy 1394a available S400, 1 ports.
fwohci0: Link S400, max_rec 2048 bytes.
ieee1394if0 at fwohci0: IEEE1394 bus
fwip at ieee1394if0 not configured
fwohci0: Initiate bus reset
rtk0 at pci1 dev 1 function 0: Realtek 8139 10/100BaseTX (rev. 0x10)
LNK2: Picked IRQ 18 with weight 0
rtk0: interrupting at ioapic0 pin 18 (irq 10)
rtk0: Ethernet address 00:0f:b0:44:40:a5
rlphy0 at rtk0 phy 7: Realtek internal PHY
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
Broadcom BCM4306 (miscellaneous network, revision 0x03) at pci1 dev 2 
function 0 not configured
Texas Instruments PCI1620 PCI-CardBus Bridge (CardBus bridge, revision 
0x01) at pci1 dev 4 function 0 not configured
Texas Instruments PCI1620 PCI-CardBus Bridge (CardBus bridge, revision 
0x01) at pci1 dev 4 function 1 not configured
Texas Instruments product 0x8201 (miscellaneous system, revision 0x01) 
at pci1 dev 4 function 2 not configured
ppb1 at pci0 dev 11 function 0: NVIDIA product 0x00d2 (rev. 0xa4)
pci2 at ppb1 bus 1
pci2: i/o space, memory space enabled
vga0 at pci2 dev 0 function 0: NVIDIA product 0x0179 (rev. 0xa3)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
pchb1 at pci0 dev 24 function 0
pchb1: Advanced Micro Devices AMD64 HyperTransport configuration (rev. 0x00)
pchb2 at pci0 dev 24 function 1
pchb2: Advanced Micro Devices AMD64 Address Map configuration (rev. 0x00)
pchb3 at pci0 dev 24 function 2
pchb3: Advanced Micro Devices AMD64 DRAM configuration (rev. 0x00)
pchb4 at pci0 dev 24 function 3
pchb4: Advanced Micro Devices AMD64 Miscellaneous configuration (rev. 0x00)
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
attimer0 at isa0 port 0x40-0x43: AT Timer
pcppi0 at isa0 port 0x61
pcppi0: attached to attimer0
ioapic0: enabling
fwohci0: node_id=0xc000ffc0, gen=1, CYCLEMASTER mode
ieee1394if0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
ieee1394if0: bus manager 0 (me)
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
auich0: measured ac97 link rate at 47996 Hz, will use 48000 Hz
audio0 at auich0: full duplex, mmap, independent
Kernelized RAIDframe activated
uhidev0 at uhub0 port 1 configuration 1 interface 0
uhidev0: Primax Electronics product 0x4d03, rev 1.00/4.41, addr 2, 
iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse1 at ums0 mux 0
wd0 at atabus0 drive 0: <FUJITSU MHT2060AT PL>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 57231 MB, 116280 cyl, 16 head, 63 sec, 512 bytes/sect x 117210240 
sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <SD-R6252, 5497700495, 1A14> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
cd0(viaide0:1:0): using PIO mode 4, DMA mode 2 (using DMA)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)

billk01 wrote:
> I have an HP zv5255us laptop with AMD64 3400+ clawhammer cpu. I have 
> options for POWERNOW_K8 and POWERNOW_DEBUG in kernel. I am using amd64 
> port of NetBSD. The powernow is not recognized upon boot up and the 
> debug message is as follows:
>
> k8pnow_states: before the for loop
> k8pnow_states: returns 0!
> k8_powernow_init: returned 0!
> k8_powernow_init: k8pnow_current_state is NULL!
>
> I am using HEAD revision from 11/19/06 listed on bootup as NetBSD 
> 4.99.4.  I have tried with and without ACPI and both result in same 
> debug message.
>
> Any ideas.
>
> Thanks,
>
> Bill
>
>