Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 May 2009 10:44:35 -0700
From:      Bob Frazier <bobf@mrp3.com>
To:        bug-followup@FreeBSD.org, freebsd-amd64@FreeBSD.org
Subject:   Re: amd64/122695: [cpufreq] Lack of cpufreq control using amd64 eith core2 duo or quad
Message-ID:  <4A0C5883.9000804@mrp3.com>

next in thread | raw e-mail | index | archive | help
I appear to be having a similar problem, and would like to provide additional information that (hopefully) will help to resolve it.

1.  when running powerd, whenever the cpu frequency drops below the maximum (2100) value, cpu performance [based on keystroke 
echo and general display slowness] appears to be at the LOWEST possible frequency.  As a result, CPU usage indicates above 100% 
nearly all of the time, and immediately reverts the CPU to its maximum frequency [as it should].

2.  setting the sysctl variable dev.cpu.0.freq manually to any of the frequencies listed in dev.cpu.0.freq_levels causes the 
same thing to happen.

3.  hardware:  HP Pavilion dv7 laptop with amd64 dual core, running FreeBSD 7.2 pre-release from April 28 [this problem was in 
earlier 7.x versions as well].

4.  eliminating the cpufreq driver by adding hint.acpi_throttle.0.disabled="1" to loader.conf only disabled the ability to 
change frequencies [no other driver was available to do the job] so there's no obvious workaround.

5.  'uname -a' output

FreeBSD BSDSilver.SFT.local 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #0: Tue Apr 28 14:42:19 PDT 2009 
bobf@BSDSilver.SFT.local:/usr/obj/usr/src/sys/GENERIC2  amd64

[note:  the 'GENERIC2' config is really the same as 'GENERIC']


6.  dmesg output

Copyright (c) 1992-2009 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.2-PRERELEASE #0: Tue Apr 28 14:42:19 PDT 2009
     bobf@BSDSilver.SFT.local:/usr/obj/usr/src/sys/GENERIC2
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Turion(tm) X2 Dual-Core Mobile RM-72 (2100.08-MHz K8-class CPU)
   Origin = "AuthenticAMD"  Id = 0x200f31  Stepping = 1
   Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
   Features2=0x2001<SSE3,CX16>
   AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!>
   AMD Features2=0x131f<LAHF,CMP,SVM,ExtAPIC,CR8,Prefetch,<b9>,<b12>>
   TSC: P-state invariant
   Cores per package: 2
usable memory = 4011659264 (3825 MB)
avail memory  = 3831726080 (3654 MB)
ACPI APIC Table: <HPQOEM SLIC-MPC>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 4
ioapic0 <Version 2.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <HPQOEM SLIC-MPC> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
acpi_ec0: <Embedded Controller: GPE 0x3> port 0x62,0x66 on acpi0
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
acpi_hpet0: HPET never increments, disabling
device_attach: acpi_hpet0 attach returned 6
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
vgapci0: <VGA-compatible display> port 0x7000-0x70ff mem 0xc0000000-0xcfffffff,0xd2400000-0xd240ffff,0xd2300000-0xd23fffff irq 
18 at device 5.0 on pci1
pci1: <multimedia, HDA> at device 5.1 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 4.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> at device 5.0 on pci0
pci8: <ACPI PCI bus> on pcib3
pci8: <base peripheral> at device 0.0 (no driver attached)
pci8: <base peripheral, SD host controller> at device 0.2 (no driver attached)
pci8: <base peripheral> at device 0.3 (no driver attached)
pci8: <base peripheral> at device 0.4 (no driver attached)
pcib4: <ACPI PCI-PCI bridge> at device 6.0 on pci0
pci9: <ACPI PCI bus> on pcib4
pci9: <network> at device 0.0 (no driver attached)
pcib5: <ACPI PCI-PCI bridge> at device 7.0 on pci0
pci10: <ACPI PCI bus> on pcib5
re0: <RealTek 8101E/8102E/8102EL PCIe 10/100baseTX> port 0x2000-0x20ff mem 0xd1010000-0xd1010fff,0xd1000000-0xd100ffff irq 19 at 
device 0.0 on pci10
re0: Using 1 MSI messages
re0: Chip rev. 0x24800000
re0: MAC rev. 0x00000000
miibus0: <MII bus> on re0
rlphy0: <RTL8201L 10/100 media interface> PHY 1 on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
re0: Ethernet address: 00:1e:ec:fe:df:1a
re0: [FILTER]
atapci0: <ATI AHCI controller> port 0x8038-0x803f,0x804c-0x804f,0x8030-0x8037,0x8048-0x804b,0x8010-0x801f mem 
0xd2508000-0xd25083ff irq 22 at device 17.0 on pci0
atapci0: [ITHREAD]
atapci0: AHCI Version 01.10 controller with 6 ports detected
ata2: <ATA channel 0> on atapci0
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci0
ata3: [ITHREAD]
ata4: <ATA channel 2> on atapci0
ata4: [ITHREAD]
ata5: <ATA channel 3> on atapci0
ata5: [ITHREAD]
ata6: <ATA channel 4> on atapci0
ata6: [ITHREAD]
ata7: <ATA channel 5> on atapci0
ata7: [ITHREAD]
ohci0: <OHCI (generic) USB controller> mem 0xd2507000-0xd2507fff irq 16 at device 18.0 on pci0
ohci0: [GIANT-LOCKED]
ohci0: [ITHREAD]
usb0: OHCI version 1.0, legacy support
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: <ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 3 ports with 3 removable, self powered
ohci1: <OHCI (generic) USB controller> mem 0xd2506000-0xd2506fff irq 16 at device 18.1 on pci0
ohci1: [GIANT-LOCKED]
ohci1: [ITHREAD]
usb1: OHCI version 1.0, legacy support
usb1: <OHCI (generic) USB controller> on ohci1
usb1: USB revision 1.0
uhub1: <ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
uhub1: 3 ports with 3 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xd2508500-0xd25085ff irq 17 at device 18.2 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb2: EHCI version 1.0
usb2: companion controllers, 3 ports each: usb0 usb1
usb2: <EHCI (generic) USB 2.0 controller> on ehci0
usb2: USB revision 2.0
uhub2: <ATI EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb2
uhub2: 6 ports with 6 removable, self powered
ugen0: <Image Processor HP Webcam, class 239/2, rev 2.00/11.16, addr 2> on uhub2
ohci2: <OHCI (generic) USB controller> mem 0xd2505000-0xd2505fff irq 18 at device 19.0 on pci0
ohci2: [GIANT-LOCKED]
ohci2: [ITHREAD]
usb3: OHCI version 1.0, legacy support
usb3: <OHCI (generic) USB controller> on ohci2
usb3: USB revision 1.0
uhub3: <ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb3
uhub3: 3 ports with 3 removable, self powered
ohci3: <OHCI (generic) USB controller> mem 0xd2504000-0xd2504fff irq 18 at device 19.1 on pci0
ohci3: [GIANT-LOCKED]
ohci3: [ITHREAD]
usb4: OHCI version 1.0, legacy support
usb4: <OHCI (generic) USB controller> on ohci3
usb4: USB revision 1.0
uhub4: <ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb4
uhub4: 3 ports with 3 removable, self powered
ehci1: <EHCI (generic) USB 2.0 controller> mem 0xd2508400-0xd25084ff irq 19 at device 19.2 on pci0
ehci1: [GIANT-LOCKED]
ehci1: [ITHREAD]
usb5: EHCI version 1.0
usb5: companion controllers, 3 ports each: usb3 usb4
usb5: <EHCI (generic) USB 2.0 controller> on ehci1
usb5: USB revision 2.0
uhub5: <ATI EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb5
uhub5: 6 ports with 6 removable, self powered
pci0: <serial bus, SMBus> at device 20.0 (no driver attached)
atapci1: <ATI IXP700 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x8000-0x800f irq 16 at device 20.1 on pci0
ata0: <ATA channel 0> on atapci1
ata0: [ITHREAD]
pci0: <multimedia, HDA> at device 20.2 (no driver attached)
isab0: <PCI-ISA bridge> at device 20.3 on pci0
isa0: <ISA bus> on isab0
pcib6: <ACPI PCI-PCI bridge> at device 20.4 on pci0
pci128: <ACPI PCI bus> on pcib6
acpi_acad0: <AC Adapter> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_tz0: _HOT value is absurd, ignored (226.8C)
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model Generic PS/2 mouse, device ID 0
battery0: <ACPI Control Method Battery> on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
cpu1: <ACPI CPU> on acpi0
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 900
ppc0: cannot reserve I/O port range
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250 or not responding
sio0: [FILTER]
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 1.000 msec
ad4: 305245MB <FUJITSU MHZ2320BH G2 8909> at ata2-master SATA300
acd0: DVDR <TSSTcorp CDDVDW TS-L633L/0400> at ata5-master SATA150
SMP: AP CPU #1 Launched!
GEOM_LABEL: Label for provider ad4s1a is ufsid/49695f53d076770c.
GEOM_LABEL: Label for provider ad4s1d is ufsid/49695f5ef847b65e.
GEOM_LABEL: Label for provider ad4s1e is ufsid/49695f53e3199c89.
GEOM_LABEL: Label for provider ad4s1f is ufsid/49695f532bffd410.
Trying to mount root from ufs:/dev/ad4s1a
GEOM_LABEL: Label ufsid/49695f53d076770c removed.
GEOM_LABEL: Label for provider ad4s1a is ufsid/49695f53d076770c.
GEOM_LABEL: Label ufsid/49695f53e3199c89 removed.
GEOM_LABEL: Label for provider ad4s1e is ufsid/49695f53e3199c89.
GEOM_LABEL: Label ufsid/49695f532bffd410 removed.
GEOM_LABEL: Label for provider ad4s1f is ufsid/49695f532bffd410.
GEOM_LABEL: Label ufsid/49695f5ef847b65e removed.
GEOM_LABEL: Label for provider ad4s1d is ufsid/49695f5ef847b65e.
GEOM_LABEL: Label ufsid/49695f53d076770c removed.
GEOM_LABEL: Label ufsid/49695f53e3199c89 removed.
GEOM_LABEL: Label ufsid/49695f532bffd410 removed.
GEOM_LABEL: Label ufsid/49695f5ef847b65e removed.
hdac0: <ATI SB600 High Definition Audio Controller> mem 0xd2500000-0xd2503fff irq 16 at device 20.2 on pci0
hdac0: HDA Driver Revision: 20090329_0131
hdac0: [ITHREAD]
hdac0: HDA Codec #0: IDT 92HD71B7
hdac0: HDA Codec #1: Lucent/Agere Systems (Unknown)
hdac1: <ATI RS780 High Definition Audio Controller> mem 0xd2410000-0xd2413fff irq 19 at device 5.1 on pci1
hdac1: HDA Driver Revision: 20090329_0131
hdac1: [ITHREAD]
hdac1: HDA Codec #0: ATI RS690/780 HDMI
pcm0: <HDA IDT 92HD71B7 PCM #0 Analog> at cad 0 nid 1 on hdac0
pcm1: <HDA IDT 92HD71B7 PCM #1 Analog> at cad 0 nid 1 on hdac0
pcm2: <HDA IDT 92HD71B7 PCM #2 Digital> at cad 0 nid 1 on hdac0
pcm3: <HDA ATI RS690/780 HDMI PCM #0 Digital> at cad 0 nid 1 on hdac1
pcm0:virtual:dsp0.vp0: play interrupt timeout, channel dead


7.  additional sysctl information

dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=\_PR_.CPU0
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.0.freq: 1837
dev.cpu.0.freq_levels: 2100/-1 1837/-1 1575/-1 1312/-1 1050/-1 787/-1 525/-1 262/-1
dev.cpu.0.cx_supported: C1/0
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_usage: 100.00%
dev.cpu.1.%desc: ACPI CPU
dev.cpu.1.%driver: cpu
dev.cpu.1.%location: handle=\_PR_.CPU1
dev.cpu.1.%pnpinfo: _HID=none _UID=0
dev.cpu.1.%parent: acpi0
dev.cpu.1.cx_supported: C1/0
dev.cpu.1.cx_lowest: C1
dev.cpu.1.cx_usage: 100.00%
dev.cpufreq.0.%driver: cpufreq
dev.cpufreq.0.%parent: cpu0





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A0C5883.9000804>