Re: Mwait usage on AMD processors
From: Borislav Petkov
Date: Thu May 14 2015 - 05:21:50 EST
On Thu, May 14, 2015 at 02:54:52PM +0800, Huang Rui wrote:
> Hi Len, Rafael, and all,
>
> AMD proposed a new instruction named mwaitx. This is an extension of
> mwait with a configurable timer (mwaitx = mwait + timer). And mwaitx
> will act as mwait if timer is disabled. However, mwait/mwaitx cannot
> let cpu core go to C1 state at current AMD processors, but has less
> power consumption even at C0 while core is waiting.
> As you know, mwait/mwaitx would have better performance than halt. So
> could we propose an implementation to use mwaitx at idle call in boot
> phase and cpuidle driver after boot phase.
I'd select it in select_idle_routine()...
> And the mwaitx idle is exposed to user as an optional kernel
> parameter(idle=...), and decided by user.
If MWAITX is better than C1 (and C1E, which we're doing now AFAIR)
then I'd enable it by default on those machines so that it is used
automatically.
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/