Re: [PATCH] x86_64: fix dma_alloc_pages

From: Ingo Molnar
Date: Tue Feb 19 2008 - 05:30:19 EST



* Yinghai Lu <Yinghai.Lu@xxxxxxx> wrote:

> one system with two nodes and two ht links on every node. the bios
> already have _pxm for two links.
>
> when no ram installed for node1 will have panic.
>
> reason: the device on second chain will get node = 1 from
> dev_to_node...via pci_acpi_scan_root. but node1 doesn't have ram
> installed. in dma_alloc_pages it will pass check with
> first_node(node_online_map)... and will have problem with
> __alloc_pages in alloc_pages_node.
>
> this patch will check the if the node is online..., if not will get
> numa_node_id to get one node with ram.

thanks, applied.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/