* Re: Suspend/Resume/Hibernation - bisecting or bug-logs?
2007-11-17 0:14 Suspend/Resume/Hibernation - bisecting or bug-logs? Kristoffer Ericson
@ 2007-11-16 18:00 ` Andrey Borzenkov
2007-11-16 21:38 ` Rafael J. Wysocki
2007-11-16 21:51 ` Rafael J. Wysocki
2007-11-21 17:26 ` Pavel Machek
2 siblings, 1 reply; 5+ messages in thread
From: Andrey Borzenkov @ 2007-11-16 18:00 UTC (permalink / raw)
To: Kristoffer Ericson, linux-kernel
Kristoffer Ericson wrote:
> Greetings,
>
> Ive been following your discussion and documentation efforts concerning pm
> in the kernel. This has in the past been a gray area which was hard to
> find information about so kudos.
>
> I maintain 2 handheld platforms that would benefit greatly from
> implementing proper pm (mainly suspend) but Im having problems bugtracking
> it. Currently the system tries to suspend but fails somewhere and then
> tries to resume (which fails). The end result however is that Im unable to
> see anything (bugmessages...) since the video driver gets deactivated by
> pm.
>
> My question is this: Is bisecting (turning off device support in kernel
> until it works) the best approach when bugtracking pm suspend? Or is there
> any other logging system that I can use?
>
Good question. I could use advice too :)
Bisecting is good only if you have known good and known bad versions. From
your description it sounds like it has never worked - so bisecting won't
help. Also sometimes bisecting hits way too large commit (this happened to
me when ACPI replaced mutex with spinlock).
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Suspend/Resume/Hibernation - bisecting or bug-logs?
2007-11-16 18:00 ` Andrey Borzenkov
@ 2007-11-16 21:38 ` Rafael J. Wysocki
0 siblings, 0 replies; 5+ messages in thread
From: Rafael J. Wysocki @ 2007-11-16 21:38 UTC (permalink / raw)
To: Andrey Borzenkov; +Cc: Kristoffer Ericson, linux-kernel
On Friday, 16 of November 2007, Andrey Borzenkov wrote:
> Kristoffer Ericson wrote:
>
> > Greetings,
> >
> > Ive been following your discussion and documentation efforts concerning pm
> > in the kernel. This has in the past been a gray area which was hard to
> > find information about so kudos.
> >
> > I maintain 2 handheld platforms that would benefit greatly from
> > implementing proper pm (mainly suspend) but Im having problems bugtracking
> > it. Currently the system tries to suspend but fails somewhere and then
> > tries to resume (which fails). The end result however is that Im unable to
> > see anything (bugmessages...) since the video driver gets deactivated by
> > pm.
> >
> > My question is this: Is bisecting (turning off device support in kernel
> > until it works) the best approach when bugtracking pm suspend? Or is there
> > any other logging system that I can use?
> >
>
> Good question. I could use advice too :)
>
> Bisecting is good only if you have known good and known bad versions. From
> your description it sounds like it has never worked - so bisecting won't
> help. Also sometimes bisecting hits way too large commit (this happened to
> me when ACPI replaced mutex with spinlock).
If I understand the original post correctly, Kristoffer didn't mean searching
for a bad patch using bisection. :-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Suspend/Resume/Hibernation - bisecting or bug-logs?
2007-11-17 0:14 Suspend/Resume/Hibernation - bisecting or bug-logs? Kristoffer Ericson
2007-11-16 18:00 ` Andrey Borzenkov
@ 2007-11-16 21:51 ` Rafael J. Wysocki
2007-11-21 17:26 ` Pavel Machek
2 siblings, 0 replies; 5+ messages in thread
From: Rafael J. Wysocki @ 2007-11-16 21:51 UTC (permalink / raw)
To: Kristoffer Ericson; +Cc: linux-main
On Saturday, 17 of November 2007, Kristoffer Ericson wrote:
> Greetings,
>
> Ive been following your discussion and documentation efforts concerning pm
> in the kernel. This has in the past been a gray area which was hard to find
> information about so kudos.
Thanks!
> I maintain 2 handheld platforms that would benefit greatly from implementing
> proper pm (mainly suspend) but Im having problems bugtracking it. Currently
> the system tries to suspend but fails somewhere and then tries to resume
> (which fails). The end result however is that Im unable to see anything
> (bugmessages...) since the video driver gets deactivated by pm.
That's bad.
> My question is this: Is bisecting (turning off device support in kernel until
> it works) the best approach when bugtracking pm suspend? Or is there any
> other logging system that I can use?
Well, various approaches are possible.
First, you can build as many drivers as possible as modules and boot with
init=/bin/bash . Then, try to suspend and resume and if that fails, the
problem is somewhere deeper. If that goes well, one of the drivers is failing
and you'll need to find it (eg. by bisection).
Second, on x86 we have PM_TRACE which uses the RTC to store some debugging
information that can be used later to identify the point of failure. This
might be portable to your platforms.
Next, you can use my recent patches (available at
http://www.sisk.pl/kernel/hibernation_and_suspend/2.6.24-rc2/patches/) to
check how deep the problem is located.
Greetings,
Rafael
^ permalink raw reply [flat|nested] 5+ messages in thread
* Suspend/Resume/Hibernation - bisecting or bug-logs?
@ 2007-11-17 0:14 Kristoffer Ericson
2007-11-16 18:00 ` Andrey Borzenkov
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Kristoffer Ericson @ 2007-11-17 0:14 UTC (permalink / raw)
To: rjw; +Cc: linux-main
Greetings,
Ive been following your discussion and documentation efforts concerning pm in the kernel. This has in the past been a gray area which was hard to find information about so kudos.
I maintain 2 handheld platforms that would benefit greatly from implementing proper pm (mainly suspend) but Im having problems bugtracking it. Currently the system tries to suspend but fails somewhere and then tries to resume (which fails). The end result however is that Im unable to see anything (bugmessages...) since the video driver gets deactivated by pm.
My question is this: Is bisecting (turning off device support in kernel until it works) the best approach when bugtracking pm suspend? Or is there any other logging system that I can use?
--
Kristoffer Ericson <Kristoffer.Ericson@Gmail.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Suspend/Resume/Hibernation - bisecting or bug-logs?
2007-11-17 0:14 Suspend/Resume/Hibernation - bisecting or bug-logs? Kristoffer Ericson
2007-11-16 18:00 ` Andrey Borzenkov
2007-11-16 21:51 ` Rafael J. Wysocki
@ 2007-11-21 17:26 ` Pavel Machek
2 siblings, 0 replies; 5+ messages in thread
From: Pavel Machek @ 2007-11-21 17:26 UTC (permalink / raw)
To: Kristoffer Ericson; +Cc: rjw, linux-main
On Fri 2007-11-16 16:14:20, Kristoffer Ericson wrote:
> Greetings,
>
> Ive been following your discussion and documentation efforts concerning pm in the kernel. This has in the past been a gray area which was hard to find information about so kudos.
>
> I maintain 2 handheld platforms that would benefit greatly from implementing proper pm (mainly suspend) but Im having problems bugtracking it. Currently the system tries to suspend but fails somewhere and then tries to resume (which fails). The end result however is that Im unable to see anything (bugmessages...) since the video driver gets deactivated by pm.
>
> My question is this: Is bisecting (turning off device support in kernel until it works) the best approach when bugtracking pm suspend? Or is there any other logging system that I can use?
Bisecting is not bad. Or you can port store-progress-into-rtc hacks
from pc...
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-11-25 17:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-17 0:14 Suspend/Resume/Hibernation - bisecting or bug-logs? Kristoffer Ericson
2007-11-16 18:00 ` Andrey Borzenkov
2007-11-16 21:38 ` Rafael J. Wysocki
2007-11-16 21:51 ` Rafael J. Wysocki
2007-11-21 17:26 ` Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®