x86/mwait-idle: mention assumption that WBINVD is not needed
authorAlexander Monakov <amonakov@ispras.ru>
Wed, 19 Jan 2022 12:44:31 +0000 (13:44 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 19 Jan 2022 12:44:31 +0000 (13:44 +0100)
commit07d134e1745b696e63044ffb43d2bb60899e57d6
treef747ef8f317f8c1a27d0e82c3b476e7a5a2dd48d
parent444597436d08ccae6d210a2b1b877fef636796ea
x86/mwait-idle: mention assumption that WBINVD is not needed

Intel SDM does not explicitly say that entering a C-state via MWAIT will
implicitly flush CPU caches as appropriate for that C-state. However,
documentation for individual Intel CPU generations does mention this
behavior.

Since intel_idle binds to any Intel CPU with MWAIT, list this assumption
of MWAIT behavior.

In passing, reword opening comment to make it clear that the driver can
load on any old and future Intel CPU with MWAIT.

Signed-off-by: Alexander Monakov <amonakov@ispras.ru>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
[Linux commit: 8bb2e2a887afdf8a39e68fa0dccf82a168aae655]

Dropped "reword opending comment" part - this doesn't apply to our code:
First thing mwait_idle_probe() does is call x86_match_cpu(); we do not
have a 2nd such call looking for just MWAIT (in order to the use _CST
data directly, which we can't get our hands at _CST at this point yet).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/cpu/mwait-idle.c