Re: [PATCH] x86/cache: Restore AP cache state while bringing CPUs online on resume

From: Dave Hansen

Date: Tue Dec 01 2026 - 18:48:53 EST


On 11/11/26 04:37, Andre Eikmeyer wrote:
> Some platform firmware, including that of Intel Macs, leaves the APs
> with an invalid MTRR state after resume. x86 delays the AP cache
> initialization until all APs are online, so an affected AP runs
> uncached through its bring-up. On a Core i9 MacBook Pro a resume can
> take up to a minute.
>
> Drop the x86 thaw hooks so that cache_ap_online() restores the MTRR and
> PAT state of each AP as it comes online, as on CPU hotplug. The APs then
> come online right away. Boot keeps the delayed initialization.

This changelog is insufficient to apply the patch. It does not
demonstrate an understanding of the existing code. It just bulldozes the
existing hooks and claims victory for the hardware in the submitter's hands.