Skip to content

x86/fpu: Make AMX state ready for CPU idle

Chang S. Bae linux-pm lkml 5 versions – Applied

Status from this message: The following commit has been merged into the x86/fpu branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 4 repliesApplied
  2. v42 patches 3 repliesSuperseded
  3. v33 patches 6 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches9 repliesSuperseded
v14 patches4 repliesSuperseded

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/2x86/fpu: Add a helper to prepare AMX state for low-power CPU idlearch/x86/include/asm/fpu/api.h arch/x86/include/asm/special_insns.h arch/x86/kernel/fpu/core.c+25 -00 replies
2/2intel_idle: Add a new flag to initialize the AMX statedrivers/idle/intel_idle.c+16 -26 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchZhang RuiRafael J. Wysocki
1/2
2/2T-b T-b T-b A-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/2] x86/fpu: Make AMX state ready for CPU idle

Here is the fifth version of this series.

I've addressed Dave's comment [2] assuming that the change makes sense to folks:
* Check the AMX_TILE feature bit instead of XGETBV1.
* Massage the changelog accordingly.

While many people had their eyeballs on this, Rafael's ACK was given so far. Hopefully this can attracts more acknowledgment or endorsement if it looks fine.

=== Cover Letter ===

AMX state is a large state (at least 8KB or more). Entering CPU idle with this non-initialized large state may result in shallow states while a deeper low-power state is available.

We can confirm this behavior is implementation-specific. Section 3.3 in [3] will be updated to clarify this.

This patch set ensures the AMX state is initialized before entering the CPU idle state.

The patch set is based on 5.19-rc1. It is also available here:
git://github.com/intel/amx-linux.git tilerelease

[1]: V4 https://lore.kernel.org/lkml/[email protected]/
[2]: https://lore.kernel.org/lkml/[email protected]/
[3]: Intel Architecture Instruction Set Extension Programming Reference
May 2021, https://software.intel.com/content/dam/develop/external/us/en/documents-tps/architecture-instruction-set-extensions-programming-reference.pdf

Chang S. Bae (2):
x86/fpu: Add a helper to prepare AMX state for low-power CPU idle
intel_idle: Add a new flag to initialize the AMX state

 arch/x86/include/asm/fpu/api.h       |  2 ++
 arch/x86/include/asm/special_insns.h |  9 +++++++++
 arch/x86/kernel/fpu/core.c           | 14 ++++++++++++++
 drivers/idle/intel_idle.c            | 18 ++++++++++++++++--
 4 files changed, 41 insertions(+), 2 deletions(-)

base-commit: f2906aa863381afb0015a9eb7fefad885d4e5a56

Signature · 1 line
2.17.1