* Suspend on 2.6.7-rc1 with mtd-snapshot-20040718
@ 2004-07-26 14:56 Ben Dooks
2004-07-26 18:11 ` Ben Dooks
0 siblings, 1 reply; 2+ messages in thread
From: Ben Dooks @ 2004-07-26 14:56 UTC (permalink / raw)
To: linux-mtd
I have a 2.6.7-rc2 kernel (PXA255) with a newish mtd
snapshot applied, and I have a problem with suspend-to-ram
with the mtdblockd and ntfld not going to sleep, and causing
the suspend to fail.
The kernel outputs the following:
stopping tasks failed (1 tasks remaining)
Restarting tasks...<6> Strange, mtdblockd not stopped
I guess mtdblockd isn't going to sleep when
requested, and is therefore causing the power
management to abort. Is there a fix in the newer
releases, or do I need to investiage this problem
further?
--
Ben (ben@fluff.org, http://www.fluff.org/)
'a smiley only costs 4 bytes'
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Suspend on 2.6.7-rc1 with mtd-snapshot-20040718
2004-07-26 14:56 Suspend on 2.6.7-rc1 with mtd-snapshot-20040718 Ben Dooks
@ 2004-07-26 18:11 ` Ben Dooks
0 siblings, 0 replies; 2+ messages in thread
From: Ben Dooks @ 2004-07-26 18:11 UTC (permalink / raw)
To: Ben Dooks; +Cc: linux-mtd
[-- Attachment #1: Type: text/plain, Size: 808 bytes --]
On Mon, Jul 26, 2004 at 03:56:39PM +0100, Ben Dooks wrote:
> I have a 2.6.7-rc2 kernel (PXA255) with a newish mtd
> snapshot applied, and I have a problem with suspend-to-ram
> with the mtdblockd and ntfld not going to sleep, and causing
> the suspend to fail.
>
> The kernel outputs the following:
>
> stopping tasks failed (1 tasks remaining)
> Restarting tasks...<6> Strange, mtdblockd not stopped
>
> I guess mtdblockd isn't going to sleep when
> requested, and is therefore causing the power
> management to abort. Is there a fix in the newer
> releases, or do I need to investiage this problem
> further?
I added the attached patch, and at least the system
can now suspend and resume, but is this the right
solution?
--
Ben (ben@fluff.org, http://www.fluff.org/)
'a smiley only costs 4 bytes'
[-- Attachment #2: blkdev.patch --]
[-- Type: text/plain, Size: 837 bytes --]
Index: drivers/mtd/mtd_blkdevs.c
===================================================================
RCS file: /var/lib/cvs/linux-2.6/kernel/drivers/mtd/mtd_blkdevs.c,v
retrieving revision 1.2
diff -u -r1.2 mtd_blkdevs.c
--- drivers/mtd/mtd_blkdevs.c 19 Jul 2004 16:23:59 -0000 1.2
+++ drivers/mtd/mtd_blkdevs.c 26 Jul 2004 18:10:05 -0000
@@ -10,6 +10,7 @@
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/module.h>
+#include <linux/suspend.h>
#include <linux/list.h>
#include <linux/fs.h>
#include <linux/mtd/blktrans.h>
@@ -111,6 +112,12 @@
spin_unlock_irq(rq->queue_lock);
schedule();
+
+ if (current->flags & PF_FREEZE) {
+ printk(KERN_DEBUG "mtdblockd: sleeping\n");
+ refrigerator(0);
+ }
+
remove_wait_queue(&tr->blkcore_priv->thread_wq, &wait);
spin_lock_irq(rq->queue_lock);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-26 18:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-26 14:56 Suspend on 2.6.7-rc1 with mtd-snapshot-20040718 Ben Dooks
2004-07-26 18:11 ` Ben Dooks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox