public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Suresh Jayaraman <sjayaraman@suse.de>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: mmotm 2009-09-09-22-56 uploaded
Date: Mon, 28 Sep 2009 23:27:48 -0700	[thread overview]
Message-ID: <20090928232748.c41eeb5b.akpm@linux-foundation.org> (raw)
In-Reply-To: <4AC1A6FB.1080304@suse.de>

On Tue, 29 Sep 2009 11:49:39 +0530 Suresh Jayaraman <sjayaraman@suse.de> wrote:

> Hi all,
> 
> On Thu, Sep 10, 2009 at 11:31 AM,  <akpm@linux-foundation.org> wrote:
> > The mm-of-the-moment snapshot 2009-09-09-22-56 has been uploaded to
> >
> >   http://userweb.kernel.org/~akpm/mmotm/
> >
> > and will soon be available at
> >
> >   git://git.zen-sources.org/zen/mmotm.git
> >
> 
> With this snapshot plus fixes, I'm unable to limit the memory using the
> kernel command line switch "mem=nn" on a x86_64 box. Is this the
> expected behavior?
> 
> Using "cgroup_disable=memory" together with "mem=nn" switch didn't help.
> Am I supposed to use some other switch along with this?
> 

hm, perhaps that -mm was needing this?


commit eda6da9286ad5b35b1eb70f6368958a8ee41a9dd
Author:     Yinghai Lu <yinghai@kernel.org>
AuthorDate: Sat Sep 19 11:07:57 2009 -0700
Commit:     Ingo Molnar <mingo@elte.hu>
CommitDate: Sat Sep 19 20:31:33 2009 +0200

    Revert 'x86: Fix system crash when loading with "reservetop" parameter'
    
    After close looking, commit 8126dec3 will break:
    
     1. some cpu feature  in early stage too, like cpu_has_x2apic
     2. will break built-in-command line
     3. will break other memmap= and mem=
     4. early_dbgp and early_console that will use early_ioremap to access mmio (?)
    
    So revert it.
    
    Reported-by: Hugh Dickins <hugh.dickins@tiscali.co.uk>,
    Cc: Linus Torvalds <torvalds@linux-foundation.org>,
    Cc: Andrew Morton <akpm@linux-foundation.org>,
    LKML-Reference: <4AB51DFD.2000904@kernel.org>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>

diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index 19f15c4..f5baa2a 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -712,21 +712,6 @@ void __init setup_arch(char **cmdline_p)
 	printk(KERN_INFO "Command line: %s\n", boot_command_line);
 #endif
 
-	strlcpy(command_line, boot_command_line, COMMAND_LINE_SIZE);
-	*cmdline_p = command_line;
-
-#ifdef CONFIG_X86_64
-	/*
-	 * Must call this twice: Once just to detect whether hardware doesn't
-	 * support NX (so that the early EHCI debug console setup can safely
-	 * call set_fixmap(), and then again after parsing early parameters to
-	 * honor the respective command line option.
-	 */
-	check_efer();
-#endif
-
-	parse_early_param();
-
 	/* VMI may relocate the fixmap; do this before touching ioremap area */
 	vmi_init();
 
@@ -809,6 +794,21 @@ void __init setup_arch(char **cmdline_p)
 #endif
 #endif
 
+	strlcpy(command_line, boot_command_line, COMMAND_LINE_SIZE);
+	*cmdline_p = command_line;
+
+#ifdef CONFIG_X86_64
+	/*
+	 * Must call this twice: Once just to detect whether hardware doesn't
+	 * support NX (so that the early EHCI debug console setup can safely
+	 * call set_fixmap(), and then again after parsing early parameters to
+	 * honor the respective command line option.
+	 */
+	check_efer();
+#endif
+
+	parse_early_param();
+
 #ifdef CONFIG_X86_64
 	check_efer();
 #endif


  reply	other threads:[~2009-09-29  6:28 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-29  6:19 mmotm 2009-09-09-22-56 uploaded Suresh Jayaraman
2009-09-29  6:27 ` Andrew Morton [this message]
2009-09-29  6:32   ` KAMEZAWA Hiroyuki
2009-09-29 11:13   ` Suresh Jayaraman
2009-09-29  6:30 ` KAMEZAWA Hiroyuki
  -- strict thread matches above, loose matches on Subject: below --
2009-09-10  6:01 akpm
2009-09-14  6:02 ` Suresh Jayaram
2009-09-14  7:10   ` Andrew Morton
2009-09-15  4:59   ` David Rientjes
2009-09-15  6:34     ` Dmitry Torokhov
2009-09-15  6:49       ` David Rientjes
2009-09-15 10:20     ` Suresh Jayaram
2009-09-15 22:39       ` David Rientjes
2009-09-18  9:38         ` David Rientjes
2009-09-18  9:38         ` Suresh Jayaram
2009-09-18  9:52           ` David Rientjes
2009-09-18 10:41             ` David Rientjes
2009-09-18 15:26               ` Jesse Barnes
2009-09-18 16:23               ` Suresh Jayaram
2009-09-18 16:27               ` Yinghai Lu
2009-09-18 16:35                 ` Jesse Barnes
     [not found]     ` <38c3c4860909150313k6ca79371y91b68db3294e08f6@mail.gmail.com>
2009-09-15 18:27       ` Andrew Morton

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=20090928232748.c41eeb5b.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sjayaraman@suse.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox