vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, I have been working on getting an AMD laptop to work with powernow and setperf in GENERIC and am running into some trouble. From what I can tell I believe I have a bad BIOS. The powernow code (arch/i386/i386/powernow-k7.c) doesn't pass the check on lines 262 and 263 in the k7pnow_states function: if (cpusig == pst->signature && fid == pst->fid && vid == pst->vid) The result is that my cpu is always running at full speed with the fans on full blast all the time. The following is a dump of the CPUID contents of my CPU: eax in eax ebx ecx edx 00000000 00000001 68747541 444d4163 69746e65 00000001 000006a0 00000000 00000000 0383f9ff 80000000 80000008 68747541 444d4163 69746e65 80000001 000007a0 00000000 00000000 c1cbf9ff 80000002 69626f6d 4120656c 4120444d 6f6c6874 80000003 6d74286e 50582029 30303832 0000002b 80000004 00000000 00000000 00000000 00000000 80000005 0408ff08 ff20ff10 40020140 40020140 80000006 00000000 41004100 02008140 00000000 80000007 00000000 00000000 00000000 00000007 80000008 00002022 00000000 00000000 00000000 The first time k7pnow_states is called, cpusig is 0x06A0, and fid is 26, and vid is 9. The second time it is called cpusig is 0x07A0 (the extended CPU ID signature) and fid is 26, and vid is 9. Every PST has the signature 0x0780 or 0x0781. I have also dumped the contents of my BIOS and have decoded the AMDK7PNOW! tables if it is helpful. Here they are: Signature OK: AMDK7PNOW! Version 0x12 Flags 0x00 Min settle time 0x64 Reserved: 0x00 Number of PSTs: 14 ===================== PST 0 Signature: 0x0780 FSB: 133 FID (Max Freq Code): 12 VID (Max Voltage Code): 11 Number of states: 5 ===================== PST 1 Signature: 0x0780 FSB: 133 FID (Max Freq Code): 14 VID (Max Voltage Code): 11 Number of states: 5 ===================== PST 2 Signature: 0x0780 FSB: 133 FID (Max Freq Code): 15 VID (Max Voltage Code): 9 Number of states: 5 ===================== PST 3 Signature: 0x0780 FSB: 133 FID (Max Freq Code): 0 VID (Max Voltage Code): 9 Number of states: 5 ===================== PST 4 Signature: 0x0780 FSB: 133 FID (Max Freq Code): 1 VID (Max Voltage Code): 9 Number of states: 5 ===================== PST 5 Signature: 0x0780 FSB: 133 FID (Max Freq Code): 2 VID (Max Voltage Code): 10 Number of states: 5 ===================== PST 6 Signature: 0x0780 FSB: 133 FID (Max Freq Code): 3 VID (Max Voltage Code): 10 Number of states: 6 ===================== PST 7 Signature: 0x0781 FSB: 133 FID (Max Freq Code): 15 VID (Max Voltage Code): 11 Number of states: 5 ===================== PST 8 Signature: 0x0781 FSB: 133 FID (Max Freq Code): 0 VID (Max Voltage Code): 11 Number of states: 5 ===================== PST 9 Signature: 0x0781 FSB: 133 FID (Max Freq Code): 1 VID (Max Voltage Code): 11 Number of states: 5 ===================== PST 10 Signature: 0x0781 FSB: 133 FID (Max Freq Code): 2 VID (Max Voltage Code): 11 Number of states: 5 ===================== PST 11 Signature: 0x0781 FSB: 133 FID (Max Freq Code): 3 VID (Max Voltage Code): 11 Number of states: 6 ===================== PST 12 Signature: 0x0781 FSB: 133 FID (Max Freq Code): 21 VID (Max Voltage Code): 11 Number of states: 6 ===================== PST 13 Signature: 0x0781 FSB: 133 FID (Max Freq Code): 22 VID (Max Voltage Code): 11 Number of states: 5 As you can see, even if the signature matching wasn't a requirement, none of the FIDs or VIDs would match anyways. It's as if the PST tables in the BIOS are just completely out of wack. Any suggestions on where I can go from here? Obviously the fans can spin down, as they do so properly in Microsoft Windows 2000. I have the latest BIOS for my laptop. Also here is an attached dmesg under GENERIC. I had to enable all ACPI otherwise this machine just powers off after a few minutes. I am running OpenBSD 4.1 - Current and am willing to try anything to get rid of the evil Windows 2000 OS and use OpenBSD on this laptop. OpenBSD 4.1-current (GENERIC) #10: Wed Jun 6 04:34:39 PDT 2007 root@compaq.devinsmith.net:/usr/src/sys/arch/i386/compile/GENERIC cpu0: mobile AMD Athlon(tm) XP2800+ ("AuthenticAMD" 686-class, 512KB L2 cache) 2.13 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MC A,CMOV,PAT,PSE36,MMX,FXSR,SSE real mem = 468217856 (446MB) avail mem = 443375616 (422MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 04/19/04, BIOS32 rev. 0 @ 0xfd730, SMBIOS rev. 2.3 @ 0xdb010 (44 entries) bios0: Hewlett-Packard Presario 2100 (PF179UA) pcibios0 at bios0: rev 2.1 @ 0xfd730/0x8d0 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf10/208 (11 entries) pcibios0: PCI Interrupt Router at 000:07:0 ("Acer Labs M1533 ISA" rev 0x00) pcibios0: PCI bus #2 is the last bus bios0: ROM list: 0xc0000/0xf000 0xcf000/0x800 0xdb000/0x1000! 0xdc000/0x4000! acpi0 at mainbus0: rev 0 acpi0: tables DSDT FACP BOOT SSDT acpitimer0 at acpi0: 3579545 Hz, 32 bits acpi device at acpi0 from table DSDT not configured acpi device at acpi0 from table FACP not configured acpi device at acpi0 from table BOOT not configured acpi device at acpi0 from table SSDT not configured acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (AGPB) acpiec0 at acpi0: EC0_ acpicpu0 at acpi0 C2, PSS acpitz0 at acpi0, critical temperature: 100 degC acpibtn0 at acpi0: PWRB acpibtn1 at acpi0: LID_ acpiac0 at acpi0: AC unit online acpibat0 at acpi0: BAT1: not present cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 "ATI RS100 AGP" rev 0x13 ppb0 at pci0 dev 1 function 0 "ATI RS100 PCI" rev 0x01 pci1 at ppb0 bus 1 vga1 at pci1 dev 5 function 0 "ATI Radeon IGP 320M" rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) ohci0 at pci0 dev 2 function 0 "Acer Labs M5237 USB" rev 0x03: irq 9, version 1.0, legacy support autri0 at pci0 dev 6 function 0 "Acer Labs M5451 Audio" rev 0x02: irq 5 ac97: codec id 0x43585429 (Conexant CX20468 rev 1) ac97: codec features reserved, headphone, 18 bit DAC, 18 bit ADC, No 3D Stereo audio0 at autri0 midi0 at autri0: <4DWAVE MIDI UART> pcib0 at pci0 dev 7 function 0 "Acer Labs M1533 ISA" rev 0x00 "Acer Labs M5457 Modem" rev 0x00 at pci0 dev 8 function 0 not configured cbb0 at pci0 dev 10 function 0 "TI PCI1410 CardBus" rev 0x02: irq 11 pciide0 at pci0 dev 16 function 0 "Acer Labs M5229 UDMA IDE" rev 0xc4: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: <ST93015A> wd0: 16-sector PIO, LBA48, 28615MB, 58605120 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, RW/DVD GCC-4241N, 0C29> SCSI0 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 alipm0 at pci0 dev 17 function 0 "Acer Labs M7101 Power" rev 0x00: 74KHz clock iic0 at alipm0 sis0 at pci0 dev 18 function 0 "NS DP83815 10/100" rev 0x00, DP83816A: irq 11, address 00:0f:20:1f:04:bf nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1 usb0 at ohci0: USB revision 1.0 uhub0 at usb0 uhub0: Acer Labs OHCI root hub, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered isa0 at pcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pmsi0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pmsi0 mux 0 pcppi0 at isa0 port 0x61 midi1 at pcppi0: <PC speaker> spkr0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 cardslot0 at cbb0 slot 0 flags 0 cardbus0 at cardslot0: bus 2 device 0 cacheline 0x0, lattimer 0x20 pcmcia0 at cardslot0 biomask ef4d netmask ef4d ttymask ffcf pctr: user-level cycle counter enabled mtrr: Pentium Pro MTRR support softraid0 at root dkcsum: wd0 matches BIOS drive 0x80 root on wd0a swap on wd0b dump on wd0b acpibat0: BAT1: inserted Thanks in advance, -- Devin Smith |