* swsusp for ppc440
@ 2005-07-17 7:11 Hiroyuki Machida
0 siblings, 0 replies; 3+ messages in thread
From: Hiroyuki Machida @ 2005-07-17 7:11 UTC (permalink / raw)
To: linuxppc-embedded
Today I worked for enabling swsusp for ppc440, at 2.6.12.
I wrote changes for arch/ppc/kernel/swsusp.S, however
kernel is stopped, before hibernation is taken place
with following messages.
# echo disk > state
PM: prepare: Attempting to freeze processes.
Stopping tasks: ===|
Freeing memory... done (0 pages freed)
PM: prepare: OK.
ide-disk 0.0: suspending
serial8250 serial8250: suspending
.. nothing happen
It seems to be stopped at console device.
Do anyone point out where and how to exclude system devices
like console and swap from device suspend procedure as
preparation of swsusp?
Thanks,
Hiroyuki Machida
^ permalink raw reply [flat|nested] 3+ messages in thread
* swsusp for ppc440
@ 2005-07-17 7:16 Hiroyuki Machida
2005-07-20 13:50 ` Takeharu KATO
0 siblings, 1 reply; 3+ messages in thread
From: Hiroyuki Machida @ 2005-07-17 7:16 UTC (permalink / raw)
To: linuxppc-embedded
Today I worked for enabling swsusp for ppc440, again
on kernel 2.6.12.
I wrote some changes for arch/ppc/kernel/swsusp.S, however
kernel was stopped, before hibernation is taken place with
following messages.
# echo disk > state
PM: prepare: Attempting to freeze processes.
Stopping tasks: ===|
Freeing memory... done (0 pages freed)
PM: prepare: OK.
ide-disk 0.0: suspending
serial8250 serial8250: suspending
.. nothing happen
It seems to be stopped at console device.
Do anyone point out where and how to exclude system devices
like console and swap from device suspend procedure as
preparation of swsusp?
Thanks,
Hiroyuki Machida
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: swsusp for ppc440
2005-07-17 7:16 swsusp for ppc440 Hiroyuki Machida
@ 2005-07-20 13:50 ` Takeharu KATO
0 siblings, 0 replies; 3+ messages in thread
From: Takeharu KATO @ 2005-07-20 13:50 UTC (permalink / raw)
To: Hiroyuki Machida; +Cc: linuxppc-embedded
Hi
> It seems to be stopped at console device.
> Do anyone point out where and how to exclude system devices
> like console and swap from device suspend procedure as
> preparation of swsusp?
>
As long as I think, what you want may be realized by changing the condition
to suspend serial device(this is written in serial8250_suspend function
in drivers/serial/8250.c, line: 2334).
Following trivial patch may help you(But I've not tried this patch on PowerPC actually, sorry).
Regards,
diff -Nupr linux-2.6.orig/drivers/serial/8250.c linux-2.6/drivers/serial/8250.c
--- linux-2.6.orig/drivers/serial/8250.c 2005-07-20 05:37:20.000000000 +0900
+++ linux-2.6/drivers/serial/8250.c 2005-07-20 22:07:36.000000000 +0900
@@ -2331,7 +2331,7 @@ static int serial8250_suspend(struct dev
{
int i;
- if (level != SUSPEND_DISABLE)
+ if ( (level != SUSPEND_DISABLE) || (state == PMSG_FREEZE) )
return 0;
for (i = 0; i < UART_NR; i++) {
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-07-20 13:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-17 7:16 swsusp for ppc440 Hiroyuki Machida
2005-07-20 13:50 ` Takeharu KATO
-- strict thread matches above, loose matches on Subject: below --
2005-07-17 7:11 Hiroyuki Machida
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).