]> xenbits.xensource.com Git - xen.git/commit
x86: correct ordering of operations during S3 resume
authorJan Beulich <jbeulich@suse.com>
Fri, 18 May 2018 11:20:10 +0000 (13:20 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 18 May 2018 11:20:10 +0000 (13:20 +0200)
commit2bc2e1fb275a69a373cf67f49589c5e451163aea
tree1f07cf6104394d4d137fe899509e9134773c9311
parent11fd624138425c32f1c7951a6900b6f388cb47a5
x86: correct ordering of operations during S3 resume

Microcode loading needs to happen before re-enabling interrupts, in case
only updated microcode allows the use of e.g. the SPEC_{CTRL,CMD} MSRs.
Otoh it doesn't need to happen at all when we didn't suspend in the
first place. It needs to happen before spin_debug_enable() though, as it
acquires a lock and hence would otherwise make
common/spinlock.c:check_lock() unhappy. As micrcode loading can be
pretty verbose, also make sure it only runs after console_end_sync().

cpufreq_add_cpu() doesn't need calling on the only "goto enable_cpu"
path, which sits ahead of cpufreq_del_cpu().

Reported-by: Simon Gaiser <simon@invisiblethingslab.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: cb2a4a449dfd50af309a333aa805835015fbc8c8
master date: 2018-04-16 14:08:30 +0200
xen/arch/x86/acpi/power.c