Re: [PATCH] RFC: kills consistent_dma_mask

From: Krzysztof Halasa
Date: Mon Aug 18 2003 - 12:02:48 EST


"David S. Miller" <davem@xxxxxxxxxx> writes:

> The ia64 support code to do things with consistent_dma_mask just isn't
> in the tree yet.

Ok. Any pointer so I can see how is it used?

> Because the other platforms don't to do anything special wrt. this
> they can just ignore consitent_dma_mask altogether.

No. The documentation states that consistent_dma_mask (and not dma_mask)
will be used when doing pci_alloc_consistent(). This is, obviously, false
on most platforms.
It is perfectly reasonable to expect that setting consistent_dma_mask
to, say, 28 bits will cause pci_alloc_consistent to return memory from
first 256 MB. This is not true on most platforms, for example i386
happily allocs memory near the top in such case.

If we really need two masks, they can't be ignored on some archs.

Perhaps we should drop the masks at all and always supply a mask to
a alloc/map calls (possibly first checking if the mask is valid)?
I don't know.
--
Krzysztof Halasa
Network Administrator
-
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/