Problems with dma_alloc_coherent()
Dan Malek
dan at embeddededge.com
Fri Apr 2 04:55:10 EST 2004
Eugene Surovegin wrote:
> Hmm, I don't understand this, bus != PCI bus.
Isn't that necessary due to bridge windows? If != PCI bus I guess we
assume OCP that are connected to a 1:1 mapped internal bus, which
may not be a valid assumption either.
> Current implementation just relies on the fact that PCI devices view system
> memory the same way as other-bus devices (e.g. OCP devices which sit on OPB).
I don't think so. PCI devices are known to go through bridges, while
others are assumed to not.
> In more general case, yes, "views" can be different for each bus type or even
> for each bus...
So, we should always have some kind of 'bus type' device handle, that provides
this information. It's clear that all Linux APIs are designed from the
viewpoint of PC-like workstations. They have always fallen very short when
pressed into the more prevalent embedded computing space :-)
-- Dan
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev
mailing list