MWAIT C-state hints

2014-02-05 Thread Sepherosa Ziehau
Hi all,

I have pushed some changes to enable idle wait's mwait C-state hint
auto tuning.  It will allow you enter much deeper C-state, even when
ACPI does not map its deepest C-state to the deepest cpu specific
C-state (mwait hint).  e.g. on my laptop, w/o power cable, ACPI C3 is
mapped to cpu specific C4 sub-state 0, while the deepest supported cpu
specific C-state is C4 sub-state 1; w/ power cable, there is no ACPI
C3 at all and ACPI C2 is mapped to cpu specific C3 sub-state 0.

You could set following tunable to enable the auto tuning:
sysctl machdep.mwait.cpu_idle_hlt=1
sysctl machdep.mwait.CX.idle=AUTODEEP

You could check how much time cpu specific C-states are entered by:
sysctl machdep.mwait.C[0-7].entered

Best Regards,
sephe

-- 
Tomorrow Will Never Die


Re: crash of unknown cause

2014-02-05 Thread Pierre Abbat
On Wednesday, February 05, 2014 22:47:21 Sepherosa Ziehau wrote:
 Hi,
 
 Have you enabled RED or RIO in the altq configuration?  I saw a
 problem in the related code.

If that's a kernel config, no. I'm using the generic configuration. I do, 
though, have this line in pf.conf:
altq on $int_if cbq bandwidth 984Kb queue { voip,dnsq,rest }

Pierre
-- 
Don't buy a French car in Holland. It may be a citroen.



Re: HEADSUP: New ACPI in master

2014-02-05 Thread Matthew Dillon

:Hi everybody,
:
:I've upgraded ACPI in master on Monday.
:
:If you are seeing ACPI related error messages on the console or notice any  
:other weird issues that might be related, please make sure that your box  
:has the latest BIOS. It could be that a BIOS upgrade fixes the problems.
:
:Of course, feel free to ask here, too. :)
:
:Regards,
:Sascha

Haven't checked the BIOS yet but on the Acer c720 chromebook
the new kernel's ACPI is complaining about the temperature every
few seconds to the console:

[ACPI Debug]  String [0x14] CRITICAL TEMPERATURE
[ACPI Debug]  integer 0x000A02D0

It wasn't doing this before.

-Matt
Matthew Dillon 
dil...@backplane.com