Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Apr 2012 17:44:56 +0400
From:      N V <VaNs9@yandex.ru>
To:        freebsd-hardware@freebsd.org
Subject:   AMD FX 4100, hwpstate0, powerd
Message-ID:  <729541334929496@web7f.yandex.ru>

next in thread | raw e-mail | index | archive | help
Hi.

I've got AMD FX-4100, ASUS M5A97, FreeBSD amd 9.0-RELEASE.
I've set
  hint.acpi_throttle.0.disabled="1"
  debug.hwpstate_verbose="1"

in /boot/loader.conf to eliminate acpi_throttle issues and to home more verbose output.

Also, I have
performance_cx_lowest="LOW"
economy_cx_lowest="LOW"
in /etc/rc.conf

If I try to enable powerd (via rc.conf) I get (parts of dmesg here):

Copyright (c) 1992-2012 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 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012
    root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
CPU: AMD FX(tm)-4100 Quad-Core Processor             (3612.16-MHz K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0x600f12  Family = 15  Model = 1  Stepping = 2
  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=0x1698220b<SSE3,PCLMULQDQ,MON,SSSE3,CX16,SSE4.1,SSE4.2,POPCNT,AESNI,XSAVE,AVX>
  AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
  AMD Features2=0x1c9bfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,XOP,SKINIT,WDT,LWP,FMA4,NodeId,Topology,<b23>,<b24>>
  TSC: P-state invariant, performance statistics
real memory  = 8589934592 (8192 MB)
avail memory = 8158220288 (7780 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <ALASKA A M I>
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 4 core(s)
 cpu0 (BSP): APIC ID: 16
 cpu1 (AP): APIC ID: 17
 cpu2 (AP): APIC ID: 18
 cpu3 (AP): APIC ID: 19
ACPI Warning: Optional field Pm2ControlBlock has zero address or length: 0x0000000000000000/0x1 (20110527/tbfadt-586)
ioapic0 <Version 2.1> irqs 0-23 on motherboard
ioapic1 <Version 2.1> irqs 24-55 on motherboard
kbd1 at kbdmux0
cryptosoft0: <software crypto> on motherboard
aesni0: <AES-CBC,AES-XTS> on motherboard
acpi0: <ALASKA A M I> on motherboard
ACPI Error: [RAMB] Namespace lookup failure, AE_NOT_FOUND (20110527/psargs-392)
ACPI Exception: AE_NOT_FOUND, Could not execute arguments for [RAMW] (Region) (20110527/nsinit-380)
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on acpi0
acpi_ec0: <Embedded Controller: GPE 0xa> port 0x62,0x66 on acpi0
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Event timer "HPET" frequency 14318180 Hz quality 450
Event timer "HPET1" frequency 14318180 Hz quality 450
Event timer "HPET2" frequency 14318180 Hz quality 450
..
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ppc0: cannot reserve I/O port range
hwpstate0: going to fetch info from acpi_perf
hwpstate0: <Cool`n'Quiet 2.0> on cpu0
Timecounters tick every 1.000 msec
..
Configuring syscons: keymap blanktime.
Starting cron.
Starting inetd.

..
hwpstate0: setting P1-state on cpu0
hwpstate0: result  P0-state on cpu0
hwpstate0: error: loop is not enough.
hwpstate0: setting P1-state on cpu1
hwpstate0: result  P1-state on cpu1
hwpstate0: setting P1-state on cpu2
hwpstate0: result  P1-state on cpu2
hwpstate0: setting P1-state on cpu3
hwpstate0: result  P1-state on cpu3
hwpstate0: set freq failed, err 6
hwpstate0: setting P1-state on cpu0
hwpstate0: result  P1-state on cpu0
hwpstate0: setting P1-state on cpu1
hwpstate0: result  P1-state on cpu1
hwpstate0: setting P1-state on cpu2
hwpstate0: result  P1-state on cpu2
hwpstate0: setting P1-state on cpu3
hwpstate0: result  P1-state on cpu3
hwpstate0: setting P2-state on cpu0
hwpstate0: result  P1-state on cpu0
hwpstate0: error: loop is not enough.
hwpstate0: setting P2-state on cpu1
hwpstate0: result  P2-state on cpu1
hwpstate0: setting P2-state on cpu2
hwpstate0: result  P2-state on cpu2
hwpstate0: setting P2-state on cpu3
hwpstate0: result  P2-state on cpu3
hwpstate0: set freq failed, err 6
hwpstate0: setting P2-state on cpu0
hwpstate0: result  P2-state on cpu0
hwpstate0: setting P2-state on cpu1
hwpstate0: result  P2-state on cpu1
hwpstate0: setting P2-state on cpu2
hwpstate0: result  P2-state on cpu2
hwpstate0: setting P2-state on cpu3
hwpstate0: result  P2-state on cpu3
hwpstate0: setting P0-state on cpu0
hwpstate0: result  P0-state on cpu0
hwpstate0: setting P0-state on cpu1
hwpstate0: result  P0-state on cpu1
hwpstate0: setting P0-state on cpu2
hwpstate0: result  P0-state on cpu2
hwpstate0: setting P0-state on cpu3
hwpstate0: result  P0-state on cpu3

Or if I manually launch powerd:
# powerd -v -n hadp
powerd: unable to determine AC line status
load  76%, current freq 3600 MHz ( 0), wanted freq 7200 MHz
load  32%, current freq 3600 MHz ( 0), wanted freq 7200 MHz
load  43%, current freq 3600 MHz ( 0), wanted freq 7200 MHz
load  38%, current freq 3600 MHz ( 0), wanted freq 7200 MHz
load  39%, current freq 3600 MHz ( 0), wanted freq 7200 MHz
load  39%, current freq 3600 MHz ( 0), wanted freq 7200 MHz
load  37%, current freq 3600 MHz ( 0), wanted freq 7200 MHz
load  20%, current freq 3600 MHz ( 0), wanted freq 6975 MHz
load  63%, current freq 3600 MHz ( 0), wanted freq 7200 MHz
^Ctotal joules used: 47.205


Is it something with BIOS and I can switch on/off something there, or is it something in FreeBSD and I can tune it, or is it something else?

Regards,
Vans.



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