Re: [RFC] pcibus_to_node implementation for ia64

From: Jesse Barnes <>
Date: 2005-05-12 01:54:35
On Wednesday, May 11, 2005 8:44 am, colin ngam wrote:
> Fine line here .. a valid node id is always returned and that nodeid
> is a vaild node id for addressing the bus/devices and may be the only
> node id you can use to address these buses and devices, except when
> the IO Brick is dual ported.  It is valid with respect to addressing
> the bus/devices but may not be "valid" with respect to "having
> Memory" or "having cpus".  Depends on what you expect :-)  Depends on
> how you want to use it :-)

But not valid in the sense that you can pass it to any of the kernel 
routines that say they take a 'node' argument.  IMO, that's a bug in 
the implementation of I/O and memoryless nodes in sn2.  As Jack and I 
discussed last year at OLS (he convinced me of this), a node is any 
combination of memory, CPUs, and/or I/O.  If I/O nodes (or nodes w/o 
memory generally) are special cased, we're breaking that assumption, 
making things harder for every caller and user of nodes.

> >That's certainly another way to go--just make the function do a
> > search to find the closest node with memory (and/or CPUs) all by
> > itself.  The obvious disadvantage is that you'll incur that cost on
> > every function call unless you build a lookup table at boot time or
> > somesuch.
> How often do you do this to worry about latency?

Not sure, but the search could get pretty expensive so it's probably 
best to avoid it just to give callers flexibility.

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Wed May 11 11:59:13 2005

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