Re: PCI DMA to small buffers on cache-incoherent arch

Benjamin Herrenschmidt
2002-06-12T12:15:39Z

>If I understand both Davids correctly this is the solution.
>Buffers for dma must be allocated seperately using a special allocation
>function which is given the device so it can allocate correctly.
>David B wants a bus specific pointer to a function in the generic
>driver structure, right ?

Then let's have those as part of the generic device struct, with
the default ones pointing to the parent bus ones.

That way, a couple of generic ones could be set at the root of the
device tree for fully coherent or fully incoherent archs, and
bus drivers would have the ability to affect their child devices
ones.

Ben.