HomeFreeBSD

MFC r333321,r333707: x86 cpususpend_handler: call wbinvd after setting suspend…

Description

MFC r333321,r333707: x86 cpususpend_handler: call wbinvd after setting suspend state bits

Without a subsequent wbinvd the changes to suspended_cpus (and
resuming_cpus) can be lost at least on AMD systems that use MOESI cache
coherency protocol. That can happen because one of APs ends up as an
Owner of the corresponding cache line(s) and the changes may never reach
the main memory before the AP is reset.

This change fixed suspend to RAM a previously broken AMD-based system.

Details

Provenance
avgAuthored on
Parents
rS335554: MFC r332918, r333222: go deeper for ACPI suspend bounce test
Branches
Unknown
Tags
Unknown