Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Apr 2007 09:32:27 +0300
From:      Evren Yurtesen <yurtesen@ispro.net>
To:        Scot Hetzel <swhetzel@gmail.com>
Cc:        freebsd-amd64@freebsd.org
Subject:   Re: powerd on Sempron 3400+
Message-ID:  <4620757B.4000801@ispro.net>
In-Reply-To: <790a9fff0704071422s6cdaf0c5nf60bd1bd253c1944@mail.gmail.com>
References:  <4617BF0C.80506@ispro.net>	 <790a9fff0704071131u73acf008mc3d102d1a619312a@mail.gmail.com>	 <4617E700.5020302@ispro.net>	 <790a9fff0704071200t3122b077s9779e6da86c9fe9f@mail.gmail.com>	 <4617EE46.1030408@ispro.net> <790a9fff0704071422s6cdaf0c5nf60bd1bd253c1944@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Scot Hetzel wrote:

> On 4/7/07, Evren Yurtesen <yurtesen@ispro.net> wrote:
> 
>> Scot Hetzel wrote:
>> > On 4/7/07, Evren Yurtesen <yurtesen@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 
>> this
>> >> 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
>>  Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2> 
>>
>>  Features2=0x2001<SSE3,CX16>
>>  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_ 
>> values)
>>
>> 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
machine...

CPU: AMD Athlon(tm) 64 Processor 2800+ (1802.31-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0xf48  Stepping = 8
  Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
  AMD Features=0xe0500800<SYSCALL,NX,MMX+,LM,3DNow+,3DNow>

dev.cpu.0.freq: 800
dev.cpu.0.freq_levels: 803/-1
dev.cpufreq.0.%driver: cpufreq
dev.cpufreq.0.%parent: cpu0

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.

Evren

Thanks,
Evren

Thanks,
Evren



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