All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Puthukattukaran <James.Puthukattukaran@sun.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH]: x86-64 system crashes when no memory populating Node 0
Date: Fri, 22 Dec 2006 12:47:13 -0500	[thread overview]
Message-ID: <458C1A21.8090009@sun.com> (raw)

I have a 4 socket AMD Operton system. The 2.6.18 kernel I have crashes 
when there is no memory in node0.

--James


diff -uNr linux-2.6.18-orig/arch/x86_64/kernel/aperture.c 
linux-2.6.18-new/arch/x86_64/kernel/aperture.c
--- linux-2.6.18-orig/arch/x86_64/kernel/aperture.c     2006-09-19 
23:42:06.000000000 -0400
+++ linux-2.6.18-new/arch/x86_64/kernel/aperture.c      2006-12-20 
19:43:42.000000000 -0500
@@ -38,7 +38,6 @@

 static u32 __init allocate_aperture(void)
 {
-       pg_data_t *nd0 = NODE_DATA(0);
        u32 aper_size;
        void *p;

@@ -52,12 +51,13 @@
         * Unfortunately we cannot move it up because that would make the
         * IOMMU useless.
         */
-       p = __alloc_bootmem_node(nd0, aper_size, aper_size, 0);
+
+       p = __alloc_bootmem(aper_size, aper_size, 0);
        if (!p || __pa(p)+aper_size > 0xffffffff) {
                printk("Cannot allocate aperture memory hole (%p,%uK)\n",
                       p, aper_size>>10);
                if (p)
-                       free_bootmem_node(nd0, __pa(p), aper_size);
+                       free_bootmem(__pa(p), aper_size);
                return 0;
        }
        printk("Mapping aperture over %d KB of RAM @ %lx\n",


                 reply	other threads:[~2006-12-22 18:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=458C1A21.8090009@sun.com \
    --to=james.puthukattukaran@sun.com \
    --cc=linux-kernel@vger.kernel.org \
    /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.