diff options
Diffstat (limited to 'arch/ia64/sn/kernel/io_init.c')
-rw-r--r-- | arch/ia64/sn/kernel/io_init.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/arch/ia64/sn/kernel/io_init.c b/arch/ia64/sn/kernel/io_init.c index a67f39e448cb..a6649baf629a 100644 --- a/arch/ia64/sn/kernel/io_init.c +++ b/arch/ia64/sn/kernel/io_init.c | |||
@@ -61,7 +61,7 @@ sn_default_pci_unmap(struct pci_dev *pdev, dma_addr_t addr, int direction) | |||
61 | } | 61 | } |
62 | 62 | ||
63 | static void * | 63 | static void * |
64 | sn_default_pci_bus_fixup(struct pcibus_bussoft *soft) | 64 | sn_default_pci_bus_fixup(struct pcibus_bussoft *soft, struct pci_controller *controller) |
65 | { | 65 | { |
66 | return NULL; | 66 | return NULL; |
67 | } | 67 | } |
@@ -362,7 +362,7 @@ void sn_pci_controller_fixup(int segment, int busnum, struct pci_bus *bus) | |||
362 | 362 | ||
363 | provider_soft = NULL; | 363 | provider_soft = NULL; |
364 | if (provider->bus_fixup) | 364 | if (provider->bus_fixup) |
365 | provider_soft = (*provider->bus_fixup) (prom_bussoft_ptr); | 365 | provider_soft = (*provider->bus_fixup) (prom_bussoft_ptr, controller); |
366 | 366 | ||
367 | if (provider_soft == NULL) | 367 | if (provider_soft == NULL) |
368 | return; /* fixup failed or not applicable */ | 368 | return; /* fixup failed or not applicable */ |
@@ -380,6 +380,22 @@ void sn_pci_controller_fixup(int segment, int busnum, struct pci_bus *bus) | |||
380 | SN_PCIBUS_BUSSOFT(bus)->bs_xwidget_info = | 380 | SN_PCIBUS_BUSSOFT(bus)->bs_xwidget_info = |
381 | &(hubdev_info->hdi_xwidget_info[SN_PCIBUS_BUSSOFT(bus)->bs_xid]); | 381 | &(hubdev_info->hdi_xwidget_info[SN_PCIBUS_BUSSOFT(bus)->bs_xid]); |
382 | 382 | ||
383 | /* | ||
384 | * If the node information we obtained during the fixup phase is invalid | ||
385 | * then set controller->node to -1 (undetermined) | ||
386 | */ | ||
387 | if (controller->node >= num_online_nodes()) { | ||
388 | struct pcibus_bussoft *b = SN_PCIBUS_BUSSOFT(bus); | ||
389 | |||
390 | printk(KERN_WARNING "Device ASIC=%u XID=%u PBUSNUM=%lu" | ||
391 | "L_IO=%lx L_MEM=%lx BASE=%lx\n", | ||
392 | b->bs_asic_type, b->bs_xid, b->bs_persist_busnum, | ||
393 | b->bs_legacy_io, b->bs_legacy_mem, b->bs_base); | ||
394 | printk(KERN_WARNING "on node %d but only %d nodes online." | ||
395 | "Association set to undetermined.\n", | ||
396 | controller->node, num_online_nodes()); | ||
397 | controller->node = -1; | ||
398 | } | ||
383 | return; | 399 | return; |
384 | 400 | ||
385 | error_return: | 401 | error_return: |