From: Andreas Herrmann <andreas.herrmann3@amd.com>
To: Yinghai Lu <yhlu.kernel@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>,
jbarnes@virtuousgeek.org, "H. Peter Anvin" <hpa@zytor.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] pci: derive nearby CPUs from device's instead of bus' NUMA information
Date: Tue, 21 Apr 2009 20:05:14 +0200 [thread overview]
Message-ID: <20090421180514.GB2763@alberich.amd.com> (raw)
In-Reply-To: <86802c440904201423y7d1290e5m5b0e2529f3a81fc3@mail.gmail.com>
On Mon, Apr 20, 2009 at 02:23:47PM -0700, Yinghai Lu wrote:
> On Mon, Apr 20, 2009 at 1:47 AM, Andreas Herrmann
> <andreas.herrmann3@amd.com> wrote:
> > During initialization the struct device's numa_node is set to -1 and
> > later on the information is inherited from the parent numa_node.
> >
> parent numa_node could be -1 too.
>
> in amd_bus.c
> int get_mp_bus_to_node(int busnum)
> {
> int node = -1;
>
> if (busnum < 0 || busnum > (BUS_NR - 1))
> return node;
>
> node = mp_bus_to_node[busnum];
>
> /*
> * let numa_node_id to decide it later in dma_alloc_pages
> * if there is no ram on that node
> */
> if (node != -1 && !node_online(node))
> node = -1;
>
> return node;
> }
Ok, I see.
Thanks,
Andreas
prev parent reply other threads:[~2009-04-21 18:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-17 10:01 Andreas Herrmann
2009-04-17 16:21 ` Ingo Molnar
2009-04-17 19:26 ` Yinghai Lu
2009-04-20 8:47 ` Andreas Herrmann
2009-04-20 20:03 ` Jesse Barnes
2009-05-07 8:51 ` Andreas Herrmann
2009-05-11 21:54 ` Jesse Barnes
2009-06-09 5:47 ` Andreas Herrmann
2009-04-20 21:23 ` Yinghai Lu
2009-04-21 18:05 ` Andreas Herrmann [this message]
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=20090421180514.GB2763@alberich.amd.com \
--to=andreas.herrmann3@amd.com \
--cc=hpa@zytor.com \
--cc=jbarnes@virtuousgeek.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=yhlu.kernel@gmail.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®