Message ID | 20250525181025.1071-1-khaliidcaliy@gmail.com |
---|---|
State | Superseded |
Headers | show |
Series | [RESEND] x86/ACPI: invalidate all cache lines on ACPI C-state transitions | expand |
diff --git a/arch/x86/kernel/acpi/cstate.c b/arch/x86/kernel/acpi/cstate.c index d5ac34186555..eb3d435e08ad 100644 --- a/arch/x86/kernel/acpi/cstate.c +++ b/arch/x86/kernel/acpi/cstate.c @@ -222,6 +222,9 @@ void __cpuidle acpi_processor_ffh_cstate_enter(struct acpi_processor_cx *cx) struct cstate_entry *percpu_entry; percpu_entry = per_cpu_ptr(cpu_cstate_entry, cpu); + /* flush and invalidate all modified cache line on C3 and C2 state entry*/ + if (cx->type == ACPI_STATE_C3 || cx->type == ACPI_STATE_C2) + wbinvd(); mwait_idle_with_hints(percpu_entry->states[cx->index].eax, percpu_entry->states[cx->index].ecx); }