lkml.org 
[lkml]   [2009]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [Bug #13058] First hibernation attempt fails


On Fri, 17 Apr 2009, Rafael J. Wysocki wrote:
>
> Can you please try to reproduce the problem with the appended debug patch
> applied and send the output of dmesg to me?

Maybe something like this instead (or in addition to).

It does "show_mem()" when memory shrinking fails. It will show a _lot_ of
data.

Untested, but trivial.

Linus
---
kernel/power/swsusp.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/kernel/power/swsusp.c b/kernel/power/swsusp.c
index 78c3504..6e70efd 100644
--- a/kernel/power/swsusp.c
+++ b/kernel/power/swsusp.c
@@ -207,9 +207,16 @@ void swsusp_show_speed(struct timeval *start, struct timeval *stop,
#define SHRINK_BITE 10000
static inline unsigned long __shrink_memory(long tmp)
{
+ unsigned long ret;
+
if (tmp > SHRINK_BITE)
tmp = SHRINK_BITE;
- return shrink_all_memory(tmp);
+ ret = shrink_all_memory(tmp);
+ if (!ret) {
+ printk("shrink_all_memory(%ld) failed\n", tmp);
+ show_mem();
+ }
+ return ret;
}

int swsusp_shrink_memory(void)

\
 
 \ /
  Last update: 2009-04-17 23:19    [W:0.379 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site