[lkml]   [2007]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC][PATCH -mm 3/3] PM: Disable _request_firmware before hibernation/suspend
    On Sunday, 27 May 2007 22:49, Matthew Garrett wrote:
    > On Sun, May 27, 2007 at 10:31:53PM +0200, Rafael J. Wysocki wrote:
    > > From: Rafael J. Wysocki <>
    > >
    > > Use a hibernation and suspend notifier to disable the firmware requesting
    > > mechanism before a hibernation/suspend and enable it after the operation.
    > This avoids the problem of .resume methods calling userspace while
    > userspace is frozen and a resulting hang, but does it actually result in
    > the drivers beginning to work again?

    Well, this was acutally invented before you've decided to remove the freezing
    of tasks from the suspend code path (which I think is a mistake, but that's
    only my personal opinion, so it doesn't matter very much ;-)) and I regard it
    as a workaround.

    > If we remove process freezing in STR, this should just work[1] without the
    > need to complicate things.

    Under the (optimistic, IMO) assumption that the relevant user space task won't
    block on I/O with a suspended device involved or something like this.

    BTW, I know of two subsystems that want their kernel threads to be frozen for
    synchronization purposes. Please see these messages:

    (plus follow up)


    Your patch breaks them and I suspect there are more cases like these.

    Besides, there's the hibernation that needs to freeze tasks for another reason,
    so it needs some way to ensure that drivers won't request firmware while
    the user land is frozen.

    > On the other hand, if we don't want to support these functions in the
    > suspend and resume methods we could just audit the kernel and remove
    > them all.

    Yes, I think we should do this.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-05-27 23:43    [W:0.022 / U:2.928 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site