[PATCH v7 061/120] x86/acpi/cstate: Clarify unsupported MWAIT hint warning

From: Ahmed S. Darwish

Date: Thu May 28 2026 - 11:59:55 EST


The MWAIT hint warning calls the ACPI FFH address an "ACPI MWAIT C-state"
which is misleading. It is the firmware-provided MWAIT hint, where the
C-state type is decoded separately from that hint.

Clarify the warning message.

Also remove the printed CPUID(0x5).EDX part value. The value printed is
the shifted remainder used to extract the sub-state count, not the 4-bit
sub-state field itself.

Signed-off-by: Ahmed S. Darwish <darwi@xxxxxxxxxxxxx>
---
arch/x86/kernel/acpi/cstate.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/acpi/cstate.c b/arch/x86/kernel/acpi/cstate.c
index f6bd7214fec4..dbdacfbf53bd 100644
--- a/arch/x86/kernel/acpi/cstate.c
+++ b/arch/x86/kernel/acpi/cstate.c
@@ -139,8 +139,8 @@ static long acpi_processor_ffh_cstate_probe_cpu(void *_cx)

/* If the HW does not support any sub-states in this C-state */
if (num_cstate_subtype == 0) {
- pr_warn(FW_BUG "ACPI MWAIT C-state 0x%x not supported by HW (0x%x)\n",
- cx->address, edx_part);
+ pr_warn(FW_BUG "ACPI MWAIT hint 0x%x for MWAIT C-state type %u not supported by HW\n",
+ cx->address, cstate_type);
return -1;
}

--
2.54.0