From: Ingo Molnar <mingo@elte.hu>
To: Yinghai Lu <yhlu.kernel@gmail.com>
Cc: Greg KH <gregkh@suse.de>, Muli Ben-Yehuda <muli@il.ibm.com>,
Zhao Yakui <yakui.zhao@intel.com>,
lenb@kernel.org, linux-acpi@vger.kernel.org,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ACPI: Unneccessary to scan the PCI bus already scanned.
Date: Mon, 3 Mar 2008 11:11:51 +0100 [thread overview]
Message-ID: <20080303101151.GH18281@elte.hu> (raw)
In-Reply-To: <86802c440803030201i684f31c1m97fb3f1f1927d4f4@mail.gmail.com>
i also had to hand-merge the x86.git#testing patch below - could you
double-check that it's needed in this form?
Ingo
----------->
Subject: x86/acpi: make dev_to_node return online node
From: Yinghai Lu <Yinghai.Lu@Sun.COM>
Date: Wed, 20 Feb 2008 12:41:52 -0800
some numa system (with multi HT chains) may return node without ram. aka it
is not online. Try to get an online node, otherwise return -1
Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
arch/x86/pci/acpi.c | 3 +++
1 file changed, 3 insertions(+)
Index: linux-x86.q/arch/x86/pci/acpi.c
===================================================================
--- linux-x86.q.orig/arch/x86/pci/acpi.c
+++ linux-x86.q/arch/x86/pci/acpi.c
@@ -213,6 +213,9 @@ struct pci_bus * __devinit pci_acpi_scan
set_mp_bus_to_node(busnum, node);
else
node = get_mp_bus_to_node(busnum);
+
+ if (node != -1 && !node_online(node))
+ node = -1;
#endif
bus = pci_find_bus(domain, busnum);
next prev parent reply other threads:[~2008-03-03 10:12 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-03 6:19 [PATCH] ACPI: Unneccessary to scan the PCI bus already scanned Zhao Yakui
2008-03-03 7:32 ` Ingo Molnar
2008-03-03 8:06 ` Yinghai Lu
2008-03-03 8:30 ` Yinghai Lu
2008-03-03 10:01 ` Yinghai Lu
2008-03-03 10:10 ` Ingo Molnar
2008-03-03 10:33 ` Yinghai Lu
2008-03-03 11:11 ` Ingo Molnar
2008-03-03 18:57 ` Yinghai Lu
2008-03-04 19:28 ` Yinghai Lu
2008-03-04 19:34 ` Yinghai Lu
2008-03-04 21:23 ` Ingo Molnar
2008-03-03 10:11 ` Ingo Molnar [this message]
2008-03-03 10:30 ` Yinghai Lu
2008-03-03 8:18 ` Zhao Yakui
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=20080303101151.GH18281@elte.hu \
--to=mingo@elte.hu \
--cc=gregkh@suse.de \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=muli@il.ibm.com \
--cc=yakui.zhao@intel.com \
--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 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.