Re: Alpha: virt_to_bus/GFP_DMA problem

Alan Cox (alan@lxorguk.ukuu.org.uk)
Fri, 10 Dec 1999 18:25:18 +0000 (GMT)


> What virt_to_bus() does is to convert the virtual address to an
> address as seen from the PCI bus. The way I read the above code it
> means that memory in the Pyxis box as seen from the PCI bus will
> always be above the 1GB limit. In this case it simply means that you
> are out of luck, yet another broken PCI device, and the driver should
> simply print a warning and exit, without panicing the box.

It will do that just fine providing the GFP_DMA pages are correctly marked.
If there are none then none of them should be added to the lists. Then the
initial allocation fails and the driver refuses to load.

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