powerd on Sempron 3400+
yurtesen at ispro.net
Sat Apr 14 06:59:20 UTC 2007
Scot Hetzel wrote:
> On 4/7/07, Evren Yurtesen <yurtesen at ispro.net> wrote:
>> Scot Hetzel wrote:
>> > On 4/7/07, Evren Yurtesen <yurtesen at ispro.net> wrote:
>> >> >> Any suggestions on debugging it?
>> >> >>
>> >> > Try adding the following to /boot/loader.conf:
>> >> >
>> >> > hint.acpi_throttle.0.disabled="1"
>> >> >
>> >> > Scot
>> >> Scot, as long as I dont run powerd, things do work fine. What does
>> >> setting do exactly?
>> > It disables ACPI CPU throttling driver, which is the cause of the lock
>> > ups when running powerd.
>> I will try it first thing tomorrow. I also see:
>> dev.cpu.0.freq_levels: 1002/-1 939/-1 876/-1 814/-1 751/-1 688/-1
>> 626/-1 563/-1 501/-1 438/-1 375/-1 313/-1 250/-1 187/-1 125/-1 62/-1
>> Shouldnt it show ~1800 as a level? This is the processor
>> CPU: AMD Sempron(tm) Processor 3200+ (1800.01-MHz 686-class CPU)
>> Origin = "AuthenticAMD" Id = 0x40ff2 Stepping = 2
>> AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow+,3DNow>
>> AMD Features2=0x19<LAHF,<b3>,CR8>
>> Bios DSDT seems to be reporting only 1800mhz and 800mhz (from PSS_
>> This is all very confusing, why do powerd try to set other values than
>> the ones given by bios?
> Because the ACPI CPU throttling driver is adding those extra
> frequencies to the available frequencies.
> Bruno Ducrot is aware of the problem and was going to take a look at
> fixing the problem when he had some spare time.
It is quite nice that it is adding slower frequencies but it seems to be
constantly removing faster frequencies. Here is some output from an AMD64
CPU: AMD Athlon(tm) 64 Processor 2800+ (1802.31-MHz 686-class CPU)
Origin = "AuthenticAMD" Id = 0xf48 Stepping = 8
Now with acpi_ppc (there is a port for this buy why not in ports?) http://www.spa.is.uec.ac.jp/~nfukuda/software/
hw.acpi.cpu.px_supported: 1800 800
hw.acpi.cpu.px_usage: 3.57% 96.42%
As you can see, this time acpi cpu frequency control stuff in FreeBSD is doing it wrong again. I just dont
understand how can it be adding frequencies if it is using the values in ACPI DSDT. The acpi_ppc
is working great, I have been using it for years and it is correctly getting the speed/voltage
values from the bios. (I am sure because I have been using it on my laptop with modified DSDT and
lowered voltage values to increase battery life. It really makes noticable difference).
This should really be fixed. The only reason I didnt use the cpu frequency control which comes with
FreeBSD is because it doesnt read my modified DSDT even. This was the same years ago, and now
it seems like same still.
More information about the freebsd-amd64