All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hugang <hugang@soulinfo.com>
To: Marco Giordani <marco@bononia.it>
Cc: swsusp-devel <swsusp-devel@lists.sourceforge.net>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: swsusp2 on ppc [Re: Software Suspend 2.0]
Date: Tue, 3 Feb 2004 09:37:54 +0800	[thread overview]
Message-ID: <20040203093754.194ecba1@localhost> (raw)
In-Reply-To: <20040202170125.GA5245@cs.unibo.it>

[-- Attachment #1: Type: text/plain, Size: 1324 bytes --]

On Mon, 2 Feb 2004 18:01:25 +0100
Marco Giordani <marco@bononia.it> wrote:

> On Sun, Feb 01, 2004 at 03:08:27PM +0800, Hugang wrote:
> > Here is the ppc swsusp2 update patch for 2.6.1 + rc6 + 2.0, please
> > apply.
> 
> It doesn't work for me. During "write cache" phase, at 75% of the
> progress bar, my powerbook powers off the LCD backlight and it seems
> locked... at this point I can only power off the system...  Any idea?
Show us the detail.

> 
> BTW, I cannot compile your patch with highmem support. It will be very
> useful for me...
Attached file is fix highmem problem, I'm can't sure that not mistake,
can some ppc guys with double check.:) But you can try.

> 
> I've also tried the benh's pmdisk patch and it works fine but it lacks
> highmem support too.

I have some advice:
 1: Be sure before suspend have not unused device to used.
   I'm make all the possible device into module, before suspend rmmod
it as possible, after it reload it.
 2: You can enable swsusp2, that's useful debug.
   before suspend do  
     echo 6 > /proc/swsusp/default_console_level
 3: shared you kernel information.
    dmesg >> /tmp/bug.log
    cat /proc/swsusp/debug_info >> /tmp/bug.log
    send /tmp/bug.log to LKML.
-- 
Hu Gang / Steve
Linux Registered User 204016
GPG Public Key: http://soulinfo.com/~hugang/HuGang.asc

[-- Attachment #2: highmem.h.patch --]
[-- Type: application/octet-stream, Size: 234 bytes --]

--- orig/include/asm-ppc/highmem.h
+++ mod/include/asm-ppc/highmem.h
@@ -30,6 +30,7 @@
 
 /* undef for production */
 #define HIGHMEM_DEBUG 1
+extern unsigned long highstart_pfn;
 
 extern pte_t *kmap_pte;
 extern pgprot_t kmap_prot;

[-- Attachment #3: init.c.patch --]
[-- Type: application/octet-stream, Size: 835 bytes --]

--- orig/arch/ppc/mm/init.c
+++ mod/arch/ppc/mm/init.c
@@ -388,6 +388,10 @@
 	free_area_init(zones_size);
 }
 
+#ifdef CONFIG_HIGHMEM
+unsigned long highstart_pfn;
+#endif
+
 void __init mem_init(void)
 {
 	unsigned long addr;
@@ -395,10 +399,9 @@
 	int datapages = 0;
 	int initpages = 0;
 #ifdef CONFIG_HIGHMEM
-	unsigned long highmem_mapnr;
 
-	highmem_mapnr = total_lowmem >> PAGE_SHIFT;
-	highmem_start_page = mem_map + highmem_mapnr;
+	highstart_pfn = total_lowmem >> PAGE_SHIFT;
+	highmem_start_page = mem_map + highstart_pfn;
 #endif /* CONFIG_HIGHMEM */
 	max_mapnr = total_memory >> PAGE_SHIFT;
 
@@ -451,7 +454,7 @@
 	{
 		unsigned long pfn;
 
-		for (pfn = highmem_mapnr; pfn < max_mapnr; ++pfn) {
+		for (pfn = highstart_pfn; pfn < max_mapnr; ++pfn) {
 			struct page *page = mem_map + pfn;
 
 			ClearPageReserved(page);

  reply	other threads:[~2004-02-03  1:40 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-30  4:24 Software Suspend 2.0 Nigel Cunningham
2004-01-30 10:04 ` Måns Rullgård
2004-01-30 10:22   ` Nigel Cunningham
2004-01-30 10:25   ` Nigel Cunningham
2004-01-31 18:09     ` Micha Feigin
2004-02-05  0:47     ` Software Suspend 2.0 [for 2.6.2 resend] Hugang
2004-01-31  6:22 ` [Swsusp-devel] Software Suspend 2.0 Luke-Jr
2004-01-31  6:37   ` Nigel Cunningham
2004-01-31  6:48     ` Joseph Pingenot
2004-01-31  6:56       ` Nigel Cunningham
2004-01-31  7:16         ` Joseph Pingenot
2004-01-31  7:28           ` Nigel Cunningham
2004-01-31  7:38             ` Joseph Pingenot
2004-01-31  7:48               ` Nigel Cunningham
2004-01-31  8:32               ` Nigel Cunningham
2004-01-31  9:03                 ` Prakash K. Cheemplavam
2004-01-31  9:08                   ` Nigel Cunningham
2004-01-31  9:19                     ` Prakash K. Cheemplavam
2004-01-31  9:51                       ` Nigel Cunningham
2004-01-31 10:43                         ` Prakash K. Cheemplavam
2004-01-31 10:48                           ` Prakash K. Cheemplavam
2004-01-31 13:25                           ` Måns Rullgård
2004-01-31 23:11                             ` Joseph Pingenot
2004-01-31 22:15                               ` Måns Rullgård
2004-02-01  0:26                               ` Micha Feigin
2004-02-01  1:48                                 ` oops with 2.6.1-rc1 and rc-3 Prakash K. Cheemplavam
2004-02-01  2:54                                   ` Micha Feigin
2004-02-01 10:36                                     ` Prakash K. Cheemplavam
2004-02-01 11:37                                       ` Prakash K. Cheemplavam
2004-01-31  9:35         ` [Swsusp-devel] Software Suspend 2.0  Éric Brunet
2004-01-31  9:38           ` Nigel Cunningham
2004-01-31  7:22     ` Luke-Jr
2004-01-31  7:31       ` Nigel Cunningham
2004-01-31  8:09         ` Luke-Jr
2004-01-31  8:11           ` Luke-Jr
2004-01-31  8:18           ` Nigel Cunningham
2004-01-31 15:23 ` Sebastian Kugler
2004-02-01  7:08 ` Hugang
2004-02-02 17:01   ` swsusp2 on ppc [Re: Software Suspend 2.0] Marco Giordani
2004-02-03  1:37     ` Hugang [this message]
2004-02-03 12:07       ` Marco Giordani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040203093754.194ecba1@localhost \
    --to=hugang@soulinfo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marco@bononia.it \
    --cc=swsusp-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.