On Thu, 2010-08-19 at 23:50 +0900, FUJITA Tomonori wrote:
No it's not. It has one and only one meaning which is the mask defining
where the coherent memory can come from for that device. Nobody cares if
the device can do more and has been "clipped" at set_coherent_dma_mask()
time by the bus. This is not useful information.
So I beleive the arch should hook the later and modify the mask as it
gets applied -once-.
Well, max_direct_dma_addr used on powerpc is a bit nasty because it
doesn't necessarily represent a power of 2, so a mask is no good here
indeed.
Ben.
--