On Mon, 17 Nov 2008 16:16:06 +0000
Ian Campbell <Ian.Campbell@citrix.com> wrote:
32bit is large enough for dma segment boundary mask, I think.
The problem that I talked about in the previous mail:
Since the popular value of the mask is 0xffffffff. So the above code
(mask + 1 ?) works wrongly if the size of mask is 32bit (well,
accidentally the result of max_slots is identical though).
I guess that you talk about the dma_mask (and coherent_dma_mask) in
struct device. The dma segment boundary mask represents the different
dma limitation of a device.
I think that 'unsigned long' is better for the dma segment boundary
mask since it represents the hardware limitation. The size of the
value are not related with kernel configurations at all.
--