[linux-pm] Problems with PM_FREEZE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > 	If the image doesn't contain USB drivers, the device state
> > 	doesn't matter.
> > 
> > 	If the image does contain USB drivers and the boot kernel
> > 	did not meddle with the device states, then the devices
> > 	will be suspended even though the image thinks they are
> > 	frozen.
>
> So a power off or reboot doesn't reset the USB devices?

Those would reset them, yes ... or more to the point, disconnect
them.  All the checkpoint/resume style PM scenarios should trigger
disconnection for every USB device.  (And in fact they do, with
the USB PM fixes upcoming for 2.6.15 ... that seems to have been
broken in the past few releases.)


> > 	If the image does contain USB drivers and the boot kernel
> > 	did meddle with the device states, then the devices probably
> > 	will not be resumable by the image kernel.  They will have
> > 	to be rediscovered.
>
> Even if frozen? They should end up in the same state.

No ... the fact that there **WAS** a boot kernel implies a reset,
hence disconnect.  The BIOS may have re-enumerated things and
changed device state.  (And of course the USER may have switched
cables around too...)


> > Better than (A) would be to tell the boot kernel that it _is_ only a boot 
> > kernel, so that its drivers will know not to mess up the state of any 
> > devices.  This would have the side effect of making it impossible to 
> > reload an image from a USB drive, but that's pretty much unavoidable 
> > anyway.

Actually, reloading an image from a USB drive should be easy;
I don't understand the difficulty.  These comments seem to be
circling around the fact that such "resume from swsusp" cases
are not real PM resumes.


> I would like to be able to get suspend to and resuming from usb going at
> some stage. No chance?

Have a look at the USB PM patches now in Greg's tree; I'll
be posting a note to this list about them soonish.

Briefly, status for me is that while I see resume from swsusp
snapshots working, there seems to be difficulty (a) getting
remote wakeup signals through ACPI after they wake the system
up, (b) often resuming from S1 or S3 in general.  None of those
issues appear to be from USB code.

- Dave


[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux