* [BUG] MIPS: Hibernation in the latest linux-mips:master branch not work
@ 2009-06-30 14:41 Wu Zhangjin
2009-06-30 14:45 ` Ralf Baechle
2009-07-01 0:19 ` yanhua
0 siblings, 2 replies; 11+ messages in thread
From: Wu Zhangjin @ 2009-06-30 14:41 UTC (permalink / raw)
To: LKML, linux-mips; +Cc: Pavel Machek, Ralf Baechle
Hi,
I just updated my git repository to the master branch of the latest
linux-mips git repository, and tested the STD/Hibernation support on
fuloong2e and yeeloong2f, it failed:
when using the no_console_suspend kernel command line to debug, it
stopped on:
PM: Shringking memory... done (1000 pages freed)
PM: Freed 160000 kbytes in 1.68 seconds (95.23 MB/s)
PM: Creating hibernation image:
PM: Need to copy 5053 pages
PM: Hibernation image created (4195 pages copied)
and then, the number indicator light of keyboard works well, but can not
type anything.
anybody have tested it on another platform? does it work?
Regards,
Wu Zhangjin
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [BUG] MIPS: Hibernation in the latest linux-mips:master branch not work
2009-06-30 14:41 [BUG] MIPS: Hibernation in the latest linux-mips:master branch not work Wu Zhangjin
@ 2009-06-30 14:45 ` Ralf Baechle
2009-06-30 15:11 ` Wu Zhangjin
2009-07-01 7:16 ` Wu Zhangjin
2009-07-01 0:19 ` yanhua
1 sibling, 2 replies; 11+ messages in thread
From: Ralf Baechle @ 2009-06-30 14:45 UTC (permalink / raw)
To: Wu Zhangjin; +Cc: LKML, linux-mips, Pavel Machek
On Tue, Jun 30, 2009 at 10:41:08PM +0800, Wu Zhangjin wrote:
> I just updated my git repository to the master branch of the latest
> linux-mips git repository, and tested the STD/Hibernation support on
> fuloong2e and yeeloong2f, it failed:
>
> when using the no_console_suspend kernel command line to debug, it
> stopped on:
>
> PM: Shringking memory... done (1000 pages freed)
> PM: Freed 160000 kbytes in 1.68 seconds (95.23 MB/s)
> PM: Creating hibernation image:
> PM: Need to copy 5053 pages
> PM: Hibernation image created (4195 pages copied)
>
> and then, the number indicator light of keyboard works well, but can not
> type anything.
>
> anybody have tested it on another platform? does it work?
At the time of the merge I tested it on Malta and found it to be working.
Ralf
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [BUG] MIPS: Hibernation in the latest linux-mips:master branch not work
2009-06-30 14:45 ` Ralf Baechle
@ 2009-06-30 15:11 ` Wu Zhangjin
2009-07-01 18:07 ` Ralf Baechle
2009-07-01 7:16 ` Wu Zhangjin
1 sibling, 1 reply; 11+ messages in thread
From: Wu Zhangjin @ 2009-06-30 15:11 UTC (permalink / raw)
To: Ralf Baechle; +Cc: LKML, linux-mips, Pavel Machek
On Tue, 2009-06-30 at 15:45 +0100, Ralf Baechle wrote:
> On Tue, Jun 30, 2009 at 10:41:08PM +0800, Wu Zhangjin wrote:
>
> > I just updated my git repository to the master branch of the latest
> > linux-mips git repository, and tested the STD/Hibernation support on
> > fuloong2e and yeeloong2f, it failed:
> >
> > when using the no_console_suspend kernel command line to debug, it
> > stopped on:
> >
> > PM: Shringking memory... done (1000 pages freed)
> > PM: Freed 160000 kbytes in 1.68 seconds (95.23 MB/s)
> > PM: Creating hibernation image:
> > PM: Need to copy 5053 pages
> > PM: Hibernation image created (4195 pages copied)
> >
> > and then, the number indicator light of keyboard works well, but can not
> > type anything.
> >
> > anybody have tested it on another platform? does it work?
>
> At the time of the merge I tested it on Malta and found it to be working.
thanks! I will test it again and analyze why.
hi, ralf, in the latest master branch of linux-mips git repo, seems
there is a need to select the SYS_SUPPORTS_HOTPLUG_CPU option in every
uni-processor board, otherwise, the suspend/hibernation can not be used,
because you have set:
config ARCH_HIBERNATION_POSSIBLE
def_bool y
depends on SYS_SUPPORTS_HOTPLUG_CPU
config ARCH_SUSPEND_POSSIBLE
def_bool y
depends on SYS_SUPPORTS_HOTPLUG_CPU
so, the board-specific patch must be pushed by the maintainers of
boards. and if the board support SMP, they must implement the
mips-specific hotplug support, is this right? I have selected
SYS_SUPPORTS_HOTPLUG_CPU in LEMOTE_FULONG and will push a relative patch
later.
Regards,
Wu Zhangjin
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [BUG] MIPS: Hibernation in the latest linux-mips:master branch not work
2009-06-30 14:41 [BUG] MIPS: Hibernation in the latest linux-mips:master branch not work Wu Zhangjin
2009-06-30 14:45 ` Ralf Baechle
@ 2009-07-01 0:19 ` yanhua
2009-07-01 0:37 ` Wu Zhangjin
1 sibling, 1 reply; 11+ messages in thread
From: yanhua @ 2009-07-01 0:19 UTC (permalink / raw)
To: wuzhangjin; +Cc: LKML, linux-mips, Pavel Machek, Ralf Baechle
Wu Zhangjin 写道:
> Hi,
>
> I just updated my git repository to the master branch of the latest
> linux-mips git repository, and tested the STD/Hibernation support on
> fuloong2e and yeeloong2f, it failed:
>
> when using the no_console_suspend kernel command line to debug, it
> stopped on:
>
> PM: Shringking memory... done (1000 pages freed)
> PM: Freed 160000 kbytes in 1.68 seconds (95.23 MB/s)
> PM: Creating hibernation image:
> PM: Need to copy 5053 pages
> PM: Hibernation image created (4195 pages copied)
>
> and then, the number indicator light of keyboard works well, but can not
> type anything.
>
>
Are there any other information about it? such as: it just freezes
there, or IDE irq lost messages after some time?
Is it duplicable every time?
> anybody have tested it on another platform? does it work?
>
> Regards,
> Wu Zhangjin
>
>
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [BUG] MIPS: Hibernation in the latest linux-mips:master branch not work
2009-07-01 0:19 ` yanhua
@ 2009-07-01 0:37 ` Wu Zhangjin
0 siblings, 0 replies; 11+ messages in thread
From: Wu Zhangjin @ 2009-07-01 0:37 UTC (permalink / raw)
To: yanhua; +Cc: LKML, linux-mips, Pavel Machek, Ralf Baechle
On Wed, 2009-07-01 at 08:19 +0800, yanhua wrote:
> Wu Zhangjin 写道:
> > Hi,
> >
> > I just updated my git repository to the master branch of the latest
> > linux-mips git repository, and tested the STD/Hibernation support on
> > fuloong2e and yeeloong2f, it failed:
> >
> > when using the no_console_suspend kernel command line to debug, it
> > stopped on:
> >
> > PM: Shringking memory... done (1000 pages freed)
> > PM: Freed 160000 kbytes in 1.68 seconds (95.23 MB/s)
> > PM: Creating hibernation image:
> > PM: Need to copy 5053 pages
> > PM: Hibernation image created (4195 pages copied)
> >
> > and then, the number indicator light of keyboard works well, but can not
> > type anything.
> >
> >
> Are there any other information about it? such as: it just freezes
> there, or IDE irq lost messages after some time?
>
> Is it duplicable every time?
Yes, it is reproductive, I'm tracing it!
Thanks!
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [BUG] MIPS: Hibernation in the latest linux-mips:master branch not work
2009-06-30 14:45 ` Ralf Baechle
2009-06-30 15:11 ` Wu Zhangjin
@ 2009-07-01 7:16 ` Wu Zhangjin
2009-07-01 14:55 ` Wu Zhangjin
1 sibling, 1 reply; 11+ messages in thread
From: Wu Zhangjin @ 2009-07-01 7:16 UTC (permalink / raw)
To: Ralf Baechle, linux-ide; +Cc: LKML, linux-mips, Pavel Machek
On Tue, 2009-06-30 at 15:45 +0100, Ralf Baechle wrote:
> On Tue, Jun 30, 2009 at 10:41:08PM +0800, Wu Zhangjin wrote:
>
> > I just updated my git repository to the master branch of the latest
> > linux-mips git repository, and tested the STD/Hibernation support on
> > fuloong2e and yeeloong2f, it failed:
> >
> > when using the no_console_suspend kernel command line to debug, it
> > stopped on:
> >
> > PM: Shringking memory... done (1000 pages freed)
> > PM: Freed 160000 kbytes in 1.68 seconds (95.23 MB/s)
> > PM: Creating hibernation image:
> > PM: Need to copy 5053 pages
> > PM: Hibernation image created (4195 pages copied)
> >
> > and then, the number indicator light of keyboard works well, but can not
> > type anything.
> >
> > anybody have tested it on another platform? does it work?
>
> At the time of the merge I tested it on Malta and found it to be working.
>
Just traced it, the executing path is something like this:
hibernate(kernel/power/hibernate.c)
--> hibernation_snapshot
--> dpm_resume_end
--> dpm_resume
--> device_resume
--> dev->bus->resume(generic_ide_resume), dev_name(dev) = 0.0
--> blk_execute_rq
{
DECLARE_COMPLETION_ONSTACK(wait);
...
wait_for_completion(&wait); // stop here
...
}
I guess there is a possible bug in the latest ide patches, I'm trying to
find which one is 'bad'.
the ide driver i used is VIA82CXXX chipset support.
Regards,
Wu Zhangjin
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [BUG] MIPS: Hibernation in the latest linux-mips:master branch not work
2009-07-01 7:16 ` Wu Zhangjin
@ 2009-07-01 14:55 ` Wu Zhangjin
0 siblings, 0 replies; 11+ messages in thread
From: Wu Zhangjin @ 2009-07-01 14:55 UTC (permalink / raw)
To: Ralf Baechle
Cc: linux-ide, LKML, linux-mips, Pavel Machek,
Bartlomiej Zolnierkiewicz, David S. Miller
On Wed, 2009-07-01 at 15:16 +0800, Wu Zhangjin wrote:
> On Tue, 2009-06-30 at 15:45 +0100, Ralf Baechle wrote:
> > On Tue, Jun 30, 2009 at 10:41:08PM +0800, Wu Zhangjin wrote:
> >
> > > I just updated my git repository to the master branch of the latest
> > > linux-mips git repository, and tested the STD/Hibernation support on
> > > fuloong2e and yeeloong2f, it failed:
> > >
> > > when using the no_console_suspend kernel command line to debug, it
> > > stopped on:
> > >
> > > PM: Shringking memory... done (1000 pages freed)
> > > PM: Freed 160000 kbytes in 1.68 seconds (95.23 MB/s)
> > > PM: Creating hibernation image:
> > > PM: Need to copy 5053 pages
> > > PM: Hibernation image created (4195 pages copied)
> > >
> > > and then, the number indicator light of keyboard works well, but can not
> > > type anything.
> > >
> > > anybody have tested it on another platform? does it work?
> >
> > At the time of the merge I tested it on Malta and found it to be working.
> >
>
> Just traced it, the executing path is something like this:
>
> hibernate(kernel/power/hibernate.c)
> --> hibernation_snapshot
> --> dpm_resume_end
> --> dpm_resume
> --> device_resume
> --> dev->bus->resume(generic_ide_resume), dev_name(dev) = 0.0
> --> blk_execute_rq
> {
> DECLARE_COMPLETION_ONSTACK(wait);
> ...
> wait_for_completion(&wait); // stop here
> ...
> }
>
> I guess there is a possible bug in the latest ide patches, I'm trying to
> find which one is 'bad'.
>
There is really a bug in one of ide patches, here it is:
commit a1317f714af7aed60ddc182d0122477cbe36ee9b
Author: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Date: Tue Jun 23 23:52:17 2009 -0700
ide: improve handling of Power Management requests
Make hwif->rq point to PM request during PM sequence and do not
allow
any other types of requests to slip in (the old comment was never
correct
as there should be no such requests generated during PM sequence).
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
I have reverted this part of the above patch, seems works, need more
tests:
-
- WARN_ON_ONCE(hwif->rq);
repeat:
prev_port = hwif->host->cur_port;
+
+ if (drive->dev_flags & IDE_DFLAG_BLOCKED)
+ rq = hwif->rq;
+ else
+ WARN_ON_ONCE(hwif->rq);
+
please get more information from this bug report:
[Bug #13663] suspend to ram regression (IDE related)
http://lkml.org/lkml/2009/6/29/341
Regards!
Wu Zhangjin
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [BUG] MIPS: Hibernation in the latest linux-mips:master branch not work
2009-06-30 15:11 ` Wu Zhangjin
@ 2009-07-01 18:07 ` Ralf Baechle
2009-07-02 1:04 ` Wu Zhangjin
2009-07-02 6:46 ` Pavel Machek
0 siblings, 2 replies; 11+ messages in thread
From: Ralf Baechle @ 2009-07-01 18:07 UTC (permalink / raw)
To: Wu Zhangjin; +Cc: LKML, linux-mips, Pavel Machek
On Tue, Jun 30, 2009 at 11:11:27PM +0800, Wu Zhangjin wrote:
> hi, ralf, in the latest master branch of linux-mips git repo, seems
> there is a need to select the SYS_SUPPORTS_HOTPLUG_CPU option in every
> uni-processor board, otherwise, the suspend/hibernation can not be used,
> because you have set:
>
> config ARCH_HIBERNATION_POSSIBLE
> def_bool y
> depends on SYS_SUPPORTS_HOTPLUG_CPU
>
> config ARCH_SUSPEND_POSSIBLE
> def_bool y
> depends on SYS_SUPPORTS_HOTPLUG_CPU
>
> so, the board-specific patch must be pushed by the maintainers of
> boards. and if the board support SMP, they must implement the
> mips-specific hotplug support, is this right? I have selected
> SYS_SUPPORTS_HOTPLUG_CPU in LEMOTE_FULONG and will push a relative patch
> later.
I think below patch should take care of this problem. It simply assumes
that all uniprocessor systems support suspend and hibernate. That's an
assumption that I'm not to unhappy with though it may force us to fix a
few systems.
Ralf
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Kconfig | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index df1a92a..3ca0fe1 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -2168,11 +2168,11 @@ menu "Power management options"
config ARCH_HIBERNATION_POSSIBLE
def_bool y
- depends on SYS_SUPPORTS_HOTPLUG_CPU
+ depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
config ARCH_SUSPEND_POSSIBLE
def_bool y
- depends on SYS_SUPPORTS_HOTPLUG_CPU
+ depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
source "kernel/power/Kconfig"
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [BUG] MIPS: Hibernation in the latest linux-mips:master branch not work
2009-07-01 18:07 ` Ralf Baechle
@ 2009-07-02 1:04 ` Wu Zhangjin
2009-07-02 10:50 ` Ralf Baechle
2009-07-02 6:46 ` Pavel Machek
1 sibling, 1 reply; 11+ messages in thread
From: Wu Zhangjin @ 2009-07-02 1:04 UTC (permalink / raw)
To: Ralf Baechle; +Cc: LKML, linux-mips, Pavel Machek
On Wed, 2009-07-01 at 19:07 +0100, Ralf Baechle wrote:
> On Tue, Jun 30, 2009 at 11:11:27PM +0800, Wu Zhangjin wrote:
>
> > hi, ralf, in the latest master branch of linux-mips git repo, seems
> > there is a need to select the SYS_SUPPORTS_HOTPLUG_CPU option in every
> > uni-processor board, otherwise, the suspend/hibernation can not be used,
> > because you have set:
> >
> > config ARCH_HIBERNATION_POSSIBLE
> > def_bool y
> > depends on SYS_SUPPORTS_HOTPLUG_CPU
> >
> > config ARCH_SUSPEND_POSSIBLE
> > def_bool y
> > depends on SYS_SUPPORTS_HOTPLUG_CPU
> >
> > so, the board-specific patch must be pushed by the maintainers of
> > boards. and if the board support SMP, they must implement the
> > mips-specific hotplug support, is this right? I have selected
> > SYS_SUPPORTS_HOTPLUG_CPU in LEMOTE_FULONG and will push a relative patch
> > later.
>
> I think below patch should take care of this problem. It simply assumes
> that all uniprocessor systems support suspend and hibernate. That's an
> assumption that I'm not to unhappy with though it may force us to fix a
> few systems.
>
This patch is better.
Thanks!
Wu Zhangjin
> Ralf
>
> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
>
> arch/mips/Kconfig | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
> index df1a92a..3ca0fe1 100644
> --- a/arch/mips/Kconfig
> +++ b/arch/mips/Kconfig
> @@ -2168,11 +2168,11 @@ menu "Power management options"
>
> config ARCH_HIBERNATION_POSSIBLE
> def_bool y
> - depends on SYS_SUPPORTS_HOTPLUG_CPU
> + depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
>
> config ARCH_SUSPEND_POSSIBLE
> def_bool y
> - depends on SYS_SUPPORTS_HOTPLUG_CPU
> + depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
>
> source "kernel/power/Kconfig"
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [BUG] MIPS: Hibernation in the latest linux-mips:master branch not work
2009-07-01 18:07 ` Ralf Baechle
2009-07-02 1:04 ` Wu Zhangjin
@ 2009-07-02 6:46 ` Pavel Machek
1 sibling, 0 replies; 11+ messages in thread
From: Pavel Machek @ 2009-07-02 6:46 UTC (permalink / raw)
To: Ralf Baechle; +Cc: Wu Zhangjin, LKML, linux-mips
On Wed 2009-07-01 19:07:15, Ralf Baechle wrote:
> On Tue, Jun 30, 2009 at 11:11:27PM +0800, Wu Zhangjin wrote:
>
> > hi, ralf, in the latest master branch of linux-mips git repo, seems
> > there is a need to select the SYS_SUPPORTS_HOTPLUG_CPU option in every
> > uni-processor board, otherwise, the suspend/hibernation can not be used,
> > because you have set:
> >
> > config ARCH_HIBERNATION_POSSIBLE
> > def_bool y
> > depends on SYS_SUPPORTS_HOTPLUG_CPU
> >
> > config ARCH_SUSPEND_POSSIBLE
> > def_bool y
> > depends on SYS_SUPPORTS_HOTPLUG_CPU
> >
> > so, the board-specific patch must be pushed by the maintainers of
> > boards. and if the board support SMP, they must implement the
> > mips-specific hotplug support, is this right? I have selected
> > SYS_SUPPORTS_HOTPLUG_CPU in LEMOTE_FULONG and will push a relative patch
> > later.
>
> I think below patch should take care of this problem. It simply assumes
> that all uniprocessor systems support suspend and hibernate. That's an
> assumption that I'm not to unhappy with though it may force us to fix a
> few systems.
>
> Ralf
>
> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [BUG] MIPS: Hibernation in the latest linux-mips:master branch not work
2009-07-02 1:04 ` Wu Zhangjin
@ 2009-07-02 10:50 ` Ralf Baechle
0 siblings, 0 replies; 11+ messages in thread
From: Ralf Baechle @ 2009-07-02 10:50 UTC (permalink / raw)
To: Wu Zhangjin; +Cc: LKML, linux-mips, Pavel Machek
On Thu, Jul 02, 2009 at 09:04:07AM +0800, Wu Zhangjin wrote:
> > > hi, ralf, in the latest master branch of linux-mips git repo, seems
> > > there is a need to select the SYS_SUPPORTS_HOTPLUG_CPU option in every
> > > uni-processor board, otherwise, the suspend/hibernation can not be used,
> > > because you have set:
> > >
> > > config ARCH_HIBERNATION_POSSIBLE
> > > def_bool y
> > > depends on SYS_SUPPORTS_HOTPLUG_CPU
> > >
> > > config ARCH_SUSPEND_POSSIBLE
> > > def_bool y
> > > depends on SYS_SUPPORTS_HOTPLUG_CPU
> > >
> > > so, the board-specific patch must be pushed by the maintainers of
> > > boards. and if the board support SMP, they must implement the
> > > mips-specific hotplug support, is this right? I have selected
> > > SYS_SUPPORTS_HOTPLUG_CPU in LEMOTE_FULONG and will push a relative patch
> > > later.
> >
> > I think below patch should take care of this problem. It simply assumes
> > that all uniprocessor systems support suspend and hibernate. That's an
> > assumption that I'm not to unhappy with though it may force us to fix a
> > few systems.
> >
>
> This patch is better.
>
> Thanks!
> Wu Zhangjin
Thanks, patch applied.
You're welcome!
Ralf
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2009-07-02 10:56 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-30 14:41 [BUG] MIPS: Hibernation in the latest linux-mips:master branch not work Wu Zhangjin
2009-06-30 14:45 ` Ralf Baechle
2009-06-30 15:11 ` Wu Zhangjin
2009-07-01 18:07 ` Ralf Baechle
2009-07-02 1:04 ` Wu Zhangjin
2009-07-02 10:50 ` Ralf Baechle
2009-07-02 6:46 ` Pavel Machek
2009-07-01 7:16 ` Wu Zhangjin
2009-07-01 14:55 ` Wu Zhangjin
2009-07-01 0:19 ` yanhua
2009-07-01 0:37 ` Wu Zhangjin
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).