Re: [PATCH] pcibus_to_node implementation for IA64

From: Jack Steiner <steiner_at_sgi.com>
Date: 2005-06-24 11:31:32
> Index: linux-2.6.12/arch/ia64/sn/kernel/io_init.c
> ===================================================================
> --- linux-2.6.12.orig/arch/ia64/sn/kernel/io_init.c	2005-06-17 12:48:29.000000000 -0700
> +++ linux-2.6.12/arch/ia64/sn/kernel/io_init.c	2005-06-23 13:55:02.000000000 -0700
> @@ -364,6 +364,8 @@ static void sn_pci_controller_fixup(int 
>  
>  	nasid = NASID_GET(SN_PCIBUS_BUSSOFT(bus)->bs_base);
>  	cnode = nasid_to_cnodeid(nasid);
> +	if (cnode < num_online_nodes() && cnode < numionodes)
> +		controller->node = cnode;

This doesn't look right. 

The code works for normal nodes (not TIO). For TIO nodes, the node number that
is returned by physical_node_map() is NOT a node number that is known to 
VM. 


>  	hubdev_info = (struct hubdev_info *)(NODEPDA(cnode)->pdinfo);
>  	SN_PCIBUS_BUSSOFT(bus)->bs_xwidget_info =
>  	    &(hubdev_info->hdi_xwidget_info[SN_PCIBUS_BUSSOFT(bus)->bs_xid]);

-- 
Thanks

Jack Steiner (steiner@sgi.com)          651-683-5302
Principal Engineer                      SGI - Silicon Graphics, Inc.


-
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 Thu Jun 23 21:38:25 2005

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