Re: prevent swsusp with PAE



On Thu, 31 Aug 2006 15:53:36 +0200
Pavel Machek <pavel@xxxxxxx> wrote:

If HIGHMEM64G and swsusp are used at the same time, nasty random
crashes happen during resume. Cause is known; prevent that
combination.

I guess I'd like to see this one in 2.6.18...

Signed-off-by: Pavel Machek <pavel@xxxxxxx>

---
commit acb3b411ec93f827b25b8481d53670c5c9195d89
tree f52cd5518e34af16fe5ae28064717bcc95929f28
parent cd03e183c58e6e7073e054a7fe335cf50c61fe2f
author <pavel@xxxxxxxxxx> Thu, 31 Aug 2006 15:52:34 +0200
committer <pavel@xxxxxxxxxx> Thu, 31 Aug 2006 15:52:34 +0200

include/asm-i386/suspend.h | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/include/asm-i386/suspend.h b/include/asm-i386/suspend.h
index 08be1e5..01cd812 100644
--- a/include/asm-i386/suspend.h
+++ b/include/asm-i386/suspend.h
@@ -16,6 +16,15 @@ arch_prepare_suspend(void)
printk(KERN_ERR "PSE is required for swsusp.\n");
return -EPERM;
}
+
+#ifdef CONFIG_X86_PAE
+ printk(KERN_ERR "swsusp is incompatible with PAE.\n");
+ /* This is actually instance of the same problem. We need
+ identity mapping self-contained in swsusp_pg_dir, and PAE
+ prevents that. Solution could be copied from x86_64. */
+ return -EPERM;
+#endif
+
return 0;
}

Why not do this in Kconfig??
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Hibernation oops with 2.6.31 wont fit the screen - bisected
    ... but it always crashes on the second one. ... One way to get at least an indication of what broke the hibernation is to ... c7121843685de2bf7f3afd3ae1d6a146010bf1fc is first bad commit ... mult, make sure mult_orig is saved in mult on disable. ...
    (Linux-Kernel)
  • Re: [bug, 2.6.26-rc4/rc5] sporadic bootup crashes in blk_lookup_devt()/prepare_namespace()
    ... Find below a collection of 14 crashes i've managed to ... which are all similar to this crash pattern: ... if i were to finger a random commit in this ... sporadic nature of this bug i doubt i could do any conclusive testing. ...
    (Linux-Kernel)
  • Re: What happened to data=guarded?
    ... the implied flush hueristics, but we should at least try to see if we ... machine crashes before the transaction is committed). ... difference is in the fact that kjournald starts its commit every 5 seconds ... experience wrt. data loss is going to be similar to data=ordered mode. ...
    (Linux-Kernel)
  • Re: KAME IPsec spd_delete2 bug ...
    ... crashes. ... Can someone please commit this trivial patch? ... I'm afraid its against 6.2 sources but its also only one line. ...
    (freebsd-net)
  • [patch 30/37] r8169: fix oops in r8169_get_mac_version
    ... commit 21e197f231343201368338603cb0909a13961bac upstream. ... r8169_get_mac_version crashes when it meets an unknown MAC ...
    (Linux-Kernel)