DMA mapping and loadable modules

Roman Zippel zippel at fh-brandenburg.de
Fri Feb 9 06:43:01 EST 2001


Hi,

On Thu, 8 Feb 2001, Dan Malek wrote:

> There is a problem when loadable drivers with "static" data stuctures
> try to determine the physical address for DMA.  The "virt_to_bus"
> macro doesn't work for these (or for any dynamically allocated memory).

Sure, they can use get_free_page/kmalloc and it will work.

> These drivers will work fine when compiled in, and break when loaded
> as modules.

The same problem exists on any architecture.

bye, Roman


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/






More information about the Linuxppc-dev mailing list