mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Adam J. Richter" <adam@yggdrasil.com>
To: gone@us.ibm.com, mbligh@aracnet.com
Cc: linux-kernel@vger.kernel.org
Subject: 2.5.64bk5: X86_PC + HIGHMEM boot failure
Date: Sun, 9 Mar 2003 15:05:12 -0800	[thread overview]
Message-ID: <200303092305.PAA02985@adam.yggdrasil.com> (raw)

	Under linux-2.5.64bk5, CONFIG_X86_PC sets CONFIG_NUMA,
which sets CONFIG_DISCONTIGMEM.  This causes the version of
set_max_mapnr_init in arch/i386/mm/discontig.c to be compiled
in (instead of the one from arch/i386/mm/init.c):

void __init set_max_mapnr_init(void)
{
#ifdef CONFIG_HIGHMEM
        highmem_start_page = NODE_DATA(0)->node_zones[ZONE_HIGHMEM].zone_mem_ma\p;
        printk ("AJR discontig.c: highmem_start_page set to %p.\n", highmem_sta\rt_page);
        num_physpages = highend_pfn;
#else
        num_physpages = max_low_pfn;
#endif
}


	The discontig.c version sets highmem_start_page to NULL
on my 768MB computer that is compiled with CONFIG_HIGHMEM4G, which
a kernel BUG() as soon as something that needs a lowmem page does
a sanity check.  (In my case, it happens to occur at
arch/i386/mm/pageattr.c line 99 during some kind ACPI initialization,
although I don't think that is particularly imporantant.)

	I am not sure what is the "right" fix for this problem,
because I don't understand if
NODE_DATA(0)->node_zones[ZONE_HIGHMEM].zone_mem_map should ever
be NULL (for example, in my case, when running a highmem kernel
on a computer with no highmem pages).

Adam J. Richter     __     ______________   575 Oroville Road
adam@yggdrasil.com     \ /                  Milpitas, California 95035
+1 408 309-6081         | g g d r a s i l   United States of America
                         "Free Software For The Rest Of Us."

             reply	other threads:[~2003-03-09 22:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-09 23:05 Adam J. Richter [this message]
2003-03-10  6:27 ` Martin J. Bligh
2003-03-09 23:08 Adam J. Richter
2003-03-10  8:46 Adam J. Richter
2003-03-10  8:57 ` William Lee Irwin III
2003-03-10 15:14 ` Martin J. Bligh
2003-03-10 17:08 Adam J. Richter
2003-03-10 19:22 Adam J. Richter
2003-03-10 19:18 ` Martin J. Bligh
2003-03-10 19:39 Adam J. Richter

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=200303092305.PAA02985@adam.yggdrasil.com \
    --to=adam@yggdrasil.com \
    --cc=gone@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mbligh@aracnet.com \
    /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

all inboxes | Powered by JetHome®