Bug 24110 - Fix incorrect power/idle state for offlined CPUs for SRF/CWF for 5.10
Summary: Fix incorrect power/idle state for offlined CPUs for SRF/CWF for 5.10
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Guanjun
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-21 10:39 UTC by rzhang
Modified: 2025-08-21 10:39 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rzhang intel_group 2025-08-21 10:39:42 UTC
Linux puts the offlined CPUs to lowest power/idle state.

The mwait hint used for the offlined CPUs are decoded from CPUID.5. (If the number of sub-states for a given major C-state is nonzero, those sub-states are always represented by consecutive numbers starting from 0)

This no longer works for SRF/GRR/CWF because they support 1 or 2 C6 substates, while the proper mwait hint for them are 0x22/0x23, instead of 0x20/0x21.

As a result, current code set the offlined CPUs to incorrect power/idle state.

Fix the code and use intel_idle driver to provide proper play_dead callback.