intel_idle: Add a new flag to initialize the AMX state
authorChang S. Bae <chang.seok.bae@intel.com>
Mon, 18 Jul 2022 18:56:11 +0000 (11:56 -0700)
committerBorislav Petkov <bp@suse.de>
Tue, 19 Jul 2022 17:17:28 +0000 (19:17 +0200)
commit9f01129382774d98ec21526f13da26a0630ee3d8
treeeb115f50dc16ab7371c6b792181a261b6da0658f
parentf17b168734c0fe47343a7502d012266a051f9942
intel_idle: Add a new flag to initialize the AMX state

The non-initialized AMX state can be the cause of C-state demotion from C6
to C1E. This low-power idle state may improve power savings and thus result
in a higher available turbo frequency budget.

This behavior is implementation-specific. Initialize the state for the C6
entrance of Sapphire Rapids as needed.

Suggested-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Zhang Rui <rui.zhang@intel.com>
Link: https://lkml.kernel.org/r/20220614164116.5196-1-chang.seok.bae@intel.com
drivers/idle/intel_idle.c