DragonFly kernel List (threaded) for 2009-06
DragonFly BSD
DragonFly kernel List (threaded) for 2009-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: DragonFly- master sys/platform/pc32/acpica5 acpi_pstate_machdep.c sys/platform/pc32/conf files sys/platform/pc32/i386 cpufreq_machdep.c sys/platform/pc32/include cpufreq.h

From: Sepherosa Ziehau <sepherosa@xxxxxxxxx>
Date: Sat, 6 Jun 2009 16:06:07 +0800

On Sat, Jun 6, 2009 at 3:35 PM, Sepherosa
Ziehau<sephe@crater.dragonflybsd.org> wrote:
> commit fb16beda6e46d85e067310454f33ee9ee3645c62
> Author: Sepherosa Ziehau <sephe@dragonflybsd.org>
> Date:   Sat Jun 6 14:47:48 2009 +0800
>    ACPI P-State support step 2/2: Add CPU driver for AMD 0fh family processors

After this commit, two widely available AMD processor families P-State
is supported:
sysctl hw.acpi.cpu
will list the frequency domains and the current CPUs' frequency

e.g. On Phenom (family 10h)
hw.acpi.cpu.px_dom3.available: 2200 1100
hw.acpi.cpu.px_dom3.members: cpu3(2200)
hw.acpi.cpu.px_dom3.select: 2200
hw.acpi.cpu.px_dom2.available: 2200 1100
hw.acpi.cpu.px_dom2.members: cpu2(2200)
hw.acpi.cpu.px_dom2.select: 2200
hw.acpi.cpu.px_dom1.available: 2200 1100
hw.acpi.cpu.px_dom1.members: cpu1(2200)
hw.acpi.cpu.px_dom1.select: 2200
hw.acpi.cpu.px_dom0.available: 2200 1100
hw.acpi.cpu.px_dom0.members: cpu0(2200)
hw.acpi.cpu.px_dom0.select: 2200
hw.acpi.cpu.px_global: 2200

e.g. On Turion (family 0fh)
hw.acpi.cpu.px_dom0.available: 1900 1800 1600 800
hw.acpi.cpu.px_dom0.members: cpu1(1900) cpu0(1900)
hw.acpi.cpu.px_dom0.select: 1900
hw.acpi.cpu.px_global: 1900

Each frequncy domain's freq could be changed independently via the
"select" node.  px_global is a convenient sysctl node which allows all
frequency domain's freq to be changed in one shot.

Developers who have Intel CPUs (I don't have any) and interested to
work on CPU drivers, please be my guest :)

_PPC re-polling is not implemented yet.

AMD 11h family is not supported yet, should be easy to do, since it is
quite similar to 10h (need some hardware bug workaround :P)

My next plan is to implement generic frequency domain support which
could allow multiple frequency domain enumerators (e.g. ACPI, and
powernow PSB) to coexist (register based) and bring in the powernow
PSB patch.

Best Regards,

Live Free or Die

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]