Re: [RFC] pcibus_to_node implementation for ia64

From: Christoph Lameter <clameter_at_engr.sgi.com>
Date: 2005-05-11 11:34:47
On Tue, 10 May 2005, colin ngam wrote:

> >+int sn_pcibus_to_node(struct pci_bus *bus)
> >+{
> >+	return nasid_to_cnodeid(NASID_GET(SN_PCIBUS_BUSSOFT(bus)->bs_base));
> >
> >
> The cnodeid returned by the above function can be a node id:
>     1.  With memory but no cpus - Headless Nodes.
>     2.  With no memory and no cpus - IO Nodes.

How do I make the function return the correct result?

> pcibus_to_cpumask() can return 0 if the node is an ionode - TIO or
> Headless Node(node with no CPUs but has memory).

How can I determine that? A return value of 0 would mean that the block
i/o layer would allocate the control structures on node 0. The correct
result is -1 if there is no node associated with the device.
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue May 10 21:35:59 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:38 EST