Re: [PATCH] pcibus_to_node implementation for IA64

From: Alex Williamson <alex.williamson_at_hp.com>
Date: 2005-06-24 07:17:34
On Thu, 2005-06-23 at 14:02 -0700, Christoph Lameter wrote:
> --- linux-2.6.12.orig/arch/ia64/hp/common/sba_iommu.c	2005-06-17 12:48:29.000000000 -0700
> +++ linux-2.6.12/arch/ia64/hp/common/sba_iommu.c	2005-06-23 13:55:02.000000000 -0700
> @@ -1930,6 +1930,9 @@ sba_connect_bus(struct pci_bus *bus)
>  		for (ioc = ioc_list; ioc; ioc = ioc->next)
>  			if (ioc->handle == handle) {
>  				PCI_CONTROLLER(bus)->iommu = ioc;
> +#ifdef CONFIG_NUMA
> +				PCI_CONTROLLER(bus)->node = ioc->node;
> +#endif
>  				return;
>  			}

   This will work, but there's no reason to hide this in the platform
specific code.  The PCI root bridges are in ACPI namespace, a
pxm_to_node() lookup should be done there when the buses are discovered.
Then it would work on HP and DIG boxes.  Thanks,

	Alex

-- 
Alex Williamson                             HP Linux & Open Source Lab

-
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 17:31:57 2005

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