Re: Physically contiguous (DMA) memory allocation

From: Alan Cox
Date: Sat Aug 09 2003 - 06:16:28 EST


On Gwe, 2003-08-08 at 08:44, Anthony Truong wrote:
> Is there a quick solution to this problem, like increasing the size of
> the physically contiguous page pool (like in Windows NT and some other
> OS'es :-( )? (Is it a good idea to make this one of the future
> enhancements to Linux?) Or should I write a driver loaded at boot time
> grabbing the required memory pages and allocating them to my loadable
> driver when requested?
> Your suggestion is very much appreciated.

Without source code its hard to tell what you are doing but all
allocations made with the pci_* API in Linux are contiguous. If your
hardware requires a single contiguous 30Mb chunk then you have a problem
and will need to allocate at boot time.

-
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/