Skip to content
Commit 5ff560fd authored by H. Peter Anvin's avatar H. Peter Anvin
Browse files

x86, suspend: Handle CPUs which fail to #GP on RDMSR



There are CPUs which have errata causing RDMSR of a nonexistent MSR to
not fault.  We would then try to WRMSR to restore the value of that
MSR, causing a crash.  Specifically, some Pentium M variants would
have this problem trying to save and restore the non-existent EFER,
causing a crash on resume.

Work around this by making sure we can write back the result at
suspend time.

Huge thanks to Christian Sünkenberg for finding the offending erratum
that finally deciphered the mystery.

Reported-and-tested-by: default avatarJohan Heinrich <onny@project-insanity.org>
Debugged-by: default avatarChristian Sünkenberg <christian.suenkenberg@student.kit.edu>
Acked-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
Link: http://lkml.kernel.org/r/51DDC972.3010005@student.kit.edu
Cc: <stable@vger.kernel.org> # v3.7+
parent ff559981
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment