RE: [PATCH] x86/ACPI/cstate: Allow ACPI C1 FFH MWAIT use on AMD systems
From: Ghannam, Yazen
Date: Mon May 22 2017 - 16:21:04 EST
> -----Original Message-----
> From: Borislav Petkov [mailto:bp@xxxxxxxxx]
> Sent: Monday, May 22, 2017 12:22 PM
>
...
> What about x86_idle?
>
> That whole select_idle_routine() jumping through hoops. That's still doing
> default_idle() on Zen, AFAICT.
>
> Or am I missing something?
>
> Because that still asks prefer_mwait_c1_over_halt() and that needs a family
> check or whatever...
>
I think we leave HALT as the default idle mechanism and allow BIOS to select
other mechanisms through ACPI.
On AMD, HALT allows the hardware to automatically manage its Cstates. This
is useful if the OS doesn't define multiple states like when we use
default_idle_call().
On the other hand, MWAIT on AMD limits the hardware to using only certain,
shallower Cstates. This is okay if we define individual states and use MWAIT
for some of them. But it would consume more power if used always.
Thanks,
Yazen