Re: broken suspend [Was: 2.6.24-rc2-mm1]

Alan Stern
2007-11-17T21:59:02Z

On Sat, 17 Nov 2007, Rafael J. Wysocki wrote:

> On Saturday, 17 of November 2007, Jiri Slaby wrote:
> > On 11/16/2007 05:10 PM, Alan Stern wrote:
> > > On Thu, 15 Nov 2007, Greg KH wrote:
> > >
> > >>> The offending -mm patch is
> > >>> gregkh-driver-pm-acquire-device-locks-prior-to-suspending.patch
> > >>>
> > >>> 2.6.24-rc2-mm1 minus it works just fine; PROVE_LOCKING shows nothing new when
> > >>> the patch is applied.
> > >> Thanks for tracking this down. Alan, any thoughts?
> > >
> > > It's a driver problem somewhere. Probably not one of the most common
> > > drivers because I don't see the same problem here (but then I'm not
> > > testing -mm).
> > >
> > > The thing to do is figure out which driver is causing the problem.
> > > Jiri, try enabling CONFIG_DEBUG_DRIVER.
> >
> > Sadly no output.
> >
> > > If there's also a config
> > > option to prevent the console from being suspended, set it as well.
> >
> > no_suspend_console kernel parameter has no effect (why?).
>
> I'm not sure.
>
> Please try to set CONFIG_PM_VERBOSE.

I finally got 2.6.24-rc2-mm1 working. Andrew, how come those two
recent patches from Greg and Kay (the ones changing alloc_disk_node()
and system_bus_init()) aren't in your hot-fixes directory?

There's still a problem. During bootup I get this:

floppy0: Floppy io-port 0x03f2 in use

That's not supposed to happen; the floppy disk should be working
perfectly. Is this a known problem?

Back to the main topic... My system hibernates and resumes with no
apparent problem. Jiri, it looks like you'll have to do some debug
tracing of the routines in drivers/base/power/main.c.

Alan Stern