From: Paul Mackerras <paulus@samba.org>
To: Andrew Morton <akpm@osdl.org>, kravetz@us.ibm.com
Cc: anton@samba.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] PPC64 NUMA memory fixup
Date: Fri, 11 Mar 2005 19:51:38 +1100 [thread overview]
Message-ID: <16945.23578.505529.220972@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <20050310023613.23499386.akpm@osdl.org>
Andrew Morton writes:
> This patch causes the non-numa G5 to oops very early in boot in
> smp_call_function().
Hmmm, the reason we are getting into smp_call_function is that we have
panicked due to not being able to allocate boot memory. It's kind of
sad that we can't even panic successfully, although this is very
early: we haven't got through setup_arch yet. The immediate reason
for the panic is that smp_ops is uninitialized. We seem to be looking
at smp_ops because num_online_cpus() is not 1; I assume it is 0 at
this point.
Anyway, the ultimate reason seems to be that the numa.c code is
assuming that an address value and a size value occupy the same number
of cells. On the G5 we have #address-cells = 2 but #size-cells = 1.
Previously this didn't matter because we used the values in lmb.memory
for the free_bootmem_node calls. Those values are obtained in prom.c
by scanning the memory nodes, using the correct number of cells. With
Mike's patch we rely instead on the values obtained by the numa.c
code, which uses read_cell_ul() for both address and size values, and
that just uses prom_n_size_cells() to know how many cells to parse.
It really needs to use prom_n_addr_cells() when parsing an address
value.
Paul.
next prev parent reply other threads:[~2005-03-11 8:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-09 4:04 Paul Mackerras
2005-03-10 10:36 ` Andrew Morton
2005-03-10 16:54 ` mike kravetz
2005-03-11 8:51 ` Paul Mackerras [this message]
2005-03-11 17:26 ` mike kravetz
2005-03-11 22:11 ` mike kravetz
2005-03-12 6:23 ` 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=16945.23578.505529.220972@cargo.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=akpm@osdl.org \
--cc=anton@samba.org \
--cc=kravetz@us.ibm.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 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®