lkml.org 
[lkml]   [2011]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 0/3] Freezer, CPU hotplug, x86 Microcode: Fix task freezing failures
Hello, Alan.

On Mon, Oct 10, 2011 at 11:23:13AM -0400, Alan Stern wrote:
> Furthermore, if the entire problem is lack of CPU microcode, hasn't
> that been fixed already? There recently was a patch to avoid releasing
> microcode after it was first loaded -- the idea being that there would
> then be no need to get the microcode from userspace again at awkward
> times while the system is resuming.

It's a deadlock problem. Currently, the code allows actual CPU
hotplug (which naturally requires loading microcode using userland
helper) and system suspend to race. CPU hotplug won't be able to make
progress as microcode can't be loaded due to on-going freezing and
system suspend will eventually time out waiting for CPU hotplug to
finish. The two operations need to be serialized.

Or are you arguing that initiating CPU hotplug operation while system
suspend is in progress is user error and we don't need to worry about
this? Maybe that isn't such a bad idea either.

Thanks.

--
tejun


\
 
 \ /
  Last update: 2011-10-10 19:01    [W:0.117 / U:7.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site