* Re: Suspend to disk with PCMCIA card plugged in with kernel 2.6.16.28
@ 2006-10-03 5:50 rasmit.ranjan
2006-10-03 22:02 ` Pavel Machek
2006-10-19 21:10 ` [linux-pm] " David Brownell
0 siblings, 2 replies; 3+ messages in thread
From: rasmit.ranjan @ 2006-10-03 5:50 UTC (permalink / raw)
To: pavel; +Cc: deepti.chotai, linux-pm, linux-usb-devel
> -----Original Message-----
> From: Pavel Machek [mailto:pavel@ucw.cz]
> Sent: Sunday, October 01, 2006 10:35 PM
> To: Rasmit Ranjan (WT01 - Semiconductors & Consumer Electronics)
> Cc: linux-pm@lists.osdl.org; Deepti Chotai (WT01 -
> Semiconductors & Consumer Electronics)
> Subject: Re: [linux-pm] Suspend to disk with PCMCIA card
> plugged in with kernel 2.6.16.28
>
> Hi!
>
> > I have a PCMCIA card hosting a USB port. I am facing
> some problems
> > while trying to suspend my laptop to disk . Given below are
> some of my
> > observations:
> >
> > 1. With kernel 2.6.15.4, my system does not get suspended
> to disk with
> > the PCMCIA card plugged in. I went through the mailing list
> and found
> > a mail thread desribing the same.
> >
> http://lists.infradead.org/pipermail/linux-pcmcia/2006-January/003123.
> > ht
> > ml
> >
> > This seems to be the breakage in resume path and not fixed
> in 2.6.15.4.
> > So the final thing is, I have to remove my PCMCIA card
> before trying
> > to suspend my system to disk.
> >
> > 2. With the kernel 2.6.16.28, the above breakage seems to
> be fixed. So
> > I tried suspending my system to disk with my PCMCIA card plugged in
> > but without any device connected to the USB port of the
> PCMCIA card.
> > This works fine. My system responds fine, suspends to disk properly
> > and resumes back as well.
> >
> > 3. Now I try a step ahead and tried suspending the system
> to disk with
> > the PCMCIA card plugged in as well as a USB speaker/webcam
> connected
> > to the USB port of PCMCIA card. This also works fine. My system is
> > suspended and resumed properly.
> >
> > 4. Now again going a step ahead. I plugged in my PCMCIA
> card, then I
> > connected a USB speaker to the USB port of the card and started
> > playing a song. Now I suspended the system to disk while
> the transfer
> > was in progress( song was being played). But this time my system
> > hangs. This happens with other isochronous devices like webcam and
> > bulk device like USB key as well. So suspend to disk fails
> if any USB
> > transfer is in progress ( through the USB port of my PCMCIA card).
> >
> > I tried debugging the problem and used kdb to find out the
> reason. For
> > all the devices I found out the following thing :
> >
> > The system hangs in following path: usb_disconnect -->
> > usb_disable_device --> put_device.
> > After put_device the system hangs. As I was in kdb mode I could not
> > save the stack trace.
> >
> > Is it a known kernel problem with 2.6.16.28 ? Please suggest.
>
> Reproduce it with 2.6.18, then it is bugzilla time, or post
> to linux-usb mailing list.
Thanks Pavel. I tried with kernel 2.6.18. It worked fine with bulk
device ( USB key). But does not work with isochronous device and system
hangs. This time I did not have kdb so could not figure out where did it
hang.
Is it that for 2.6.16.28, this path is still broken for some cases like
suspend to disk when transfer is in progress??
> Pavel
> --
> (english) http://www.livejournal.com/~pavelmachek
> (cesky, pictures)
> http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Suspend to disk with PCMCIA card plugged in with kernel 2.6.16.28
2006-10-03 5:50 Suspend to disk with PCMCIA card plugged in with kernel 2.6.16.28 rasmit.ranjan
@ 2006-10-03 22:02 ` Pavel Machek
2006-10-19 21:10 ` [linux-pm] " David Brownell
1 sibling, 0 replies; 3+ messages in thread
From: Pavel Machek @ 2006-10-03 22:02 UTC (permalink / raw)
To: rasmit.ranjan; +Cc: deepti.chotai, linux-pm, linux-usb-devel
Hi!
> > Reproduce it with 2.6.18, then it is bugzilla time, or post
> > to linux-usb mailing list.
>
> Thanks Pavel. I tried with kernel 2.6.18. It worked fine with bulk
> device ( USB key). But does not work with isochronous device and system
> hangs. This time I did not have kdb so could not figure out where did it
> hang.
> Is it that for 2.6.16.28, this path is still broken for some cases like
> suspend to disk when transfer is in progress??
No idea, ask on the usb lists. And update to 2.6.18, if you can.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-pm] Suspend to disk with PCMCIA card plugged in with kernel 2.6.16.28
2006-10-03 5:50 Suspend to disk with PCMCIA card plugged in with kernel 2.6.16.28 rasmit.ranjan
2006-10-03 22:02 ` Pavel Machek
@ 2006-10-19 21:10 ` David Brownell
1 sibling, 0 replies; 3+ messages in thread
From: David Brownell @ 2006-10-19 21:10 UTC (permalink / raw)
To: linux-usb-devel; +Cc: deepti.chotai, rasmit.ranjan, linux-pm, pavel
On Monday 02 October 2006 10:50 pm, rasmit.ranjan@wipro.com wrote:
>
> > > 4. Now again going a step ahead. I plugged in my PCMCIA
> > > card, then I
> > > connected a USB speaker to the USB port of the card and started
> > > playing a song. Now I suspended the system to disk while
> > > the transfer
> > > was in progress( song was being played). But this time my system
> > > hangs. This happens with other isochronous devices like webcam and
> > > bulk device like USB key as well. So suspend to disk fails
> > > if any USB
> > > transfer is in progress ( through the USB port of my PCMCIA card).
Sounds like those drivers need to learn how to handle USB suspend
operations ... there are quite a few drivers which don't even have
basic suspend() and resume() calls.
ISTR a while back the kernel would refuse to suspend when faced with
such devices, which meant users would be forced to Do The Right Thing
and disconnect them before suspending ... but that behavior was then
changed, producing this dangerous behavior (hanging).
Me, I prefer nice clean failures like "can't suspend, you have to
unplug the devices with broken drivers" rather than nasty ones like
the hang you referenced.
I'd suggest that you look at providing patches for those drivers
which don't provide suspend() and resume() methods ...
> > > I tried debugging the problem and used kdb to find out the
> > reason. For
> > > all the devices I found out the following thing :
> > >
> > > The system hangs in following path: usb_disconnect -->
> > > usb_disable_device --> put_device.
> > > After put_device the system hangs. As I was in kdb mode I could not
> > > save the stack trace.
You need to learn about "serial consoles" then. ;)
> > > Is it a known kernel problem with 2.6.16.28 ? Please suggest.
> >
> > Reproduce it with 2.6.18, then it is bugzilla time, or post
> > to linux-usb mailing list.
>
> Thanks Pavel. I tried with kernel 2.6.18. It worked fine with bulk
> device ( USB key). But does not work with isochronous device and system
> hangs. This time I did not have kdb so could not figure out where did it
> hang.
> Is it that for 2.6.16.28, this path is still broken for some cases like
> suspend to disk when transfer is in progress??
If any driver does not stop its I/O when suspend-to-disk starts, that's
a bug in that driver.
- Dave
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-10-19 21:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-03 5:50 Suspend to disk with PCMCIA card plugged in with kernel 2.6.16.28 rasmit.ranjan
2006-10-03 22:02 ` Pavel Machek
2006-10-19 21:10 ` [linux-pm] " David Brownell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox