From: hugang <hugang@soulinfo.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>, linux-kernel@vger.kernel.org
Subject: Re: software suspend in 2.5.70-mm3.
Date: Tue, 3 Jun 2003 22:35:11 +0800 [thread overview]
Message-ID: <20030603223511.155ea2cc.hugang@soulinfo.com> (raw)
In-Reply-To: <1054646566.9234.20.camel@dhcp22.swansea.linux.org.uk>
On 03 Jun 2003 14:22:48 +0100
Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> On Maw, 2003-06-03 at 14:11, hugang wrote:
> > Hi Pavel Machek:
> >
> > I try the 2.5.70-mm3 with software suspend function. When suspend it will oops at ide-disk.c 1526 line
> > BUG_ON (HWGROUP(drive)->handler);
> >
> > I'm disable this check, The software suspend can work, and also can resumed. But this fix is not best way. I found in ide-io.c 1196
> > hwgroup->handler = NULL;
> > is the problem.
>
> The only way to make the suspend work properly is to queue the suspend
> sequence wit the other requests. Ben was doing some playing with this
> but I'm not sure what happened to it.
>
Yes the above patch is not safe, When i'm run updatedb and suspsned, After resume will oops at kjournal.
Here is another test on it, it can works with updatedb.
-
I found a best way to fix it. here is it. With the patch, I'm run updatedb and suspend for 5 counts, every things is ok.
--- ide-disk.c.old Tue Jun 3 22:22:13 2003
+++ ide-disk.c Tue Jun 3 22:16:22 2003
@@ -1523,7 +1523,10 @@
do_idedisk_standby(drive);
drive->blocked = 1;
- BUG_ON (HWGROUP(drive)->handler);
+ /*BUG_ON (HWGROUP(drive)->handler);*/
+ while(HWGROUP(drive)->handler) {
+ schedule();
+ }
return 0;
}
--
Hu Gang / Steve
Email : huagng@soulinfo.com, steve@soulinfo.com
GPG FinePrint: 4099 3F1D AE01 1817 68F7 D499 A6C2 C418 86C8 610E
http://soulinfo.com/~hugang/HuGang.asc
ICQ# : 205800361
Registered Linux User : 204016
next prev parent reply other threads:[~2003-06-03 14:21 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-03 13:11 software suspend in 2.5.70-mm3 hugang
2003-06-03 13:22 ` Alan Cox
2003-06-03 14:35 ` hugang [this message]
2003-06-03 14:08 ` Alan Cox
2003-06-03 17:04 ` Benjamin Herrenschmidt
2003-06-04 13:14 ` IDE Power Management (Was: software suspend in 2.5.70-mm3) Benjamin Herrenschmidt
2003-06-04 13:51 ` Michael Frank
2003-06-04 13:58 ` Benjamin Herrenschmidt
2003-06-04 14:10 ` Michael Frank
2003-06-04 14:29 ` Benjamin Herrenschmidt
2003-06-04 14:35 ` Michael Frank
2003-06-04 19:46 ` Pavel Machek
2003-06-04 20:16 ` Pavel Machek
2003-06-03 18:55 ` software suspend in 2.5.70-mm3 Pavel Machek
2003-06-08 2:26 ` hugang
2003-06-08 18:29 ` Pavel Machek
2003-06-08 2:27 ` hugang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030603223511.155ea2cc.hugang@soulinfo.com \
--to=hugang@soulinfo.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox