Re: dmaengine.c: question about device_alloc_chan_resources

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dan Williams
Date: Saturday, September 20, 2008 - 4:00 pm

On Fri, Sep 19, 2008 at 7:34 AM, Timur Tabi <timur@freescale.com> wrote:

I think its a good idea especially since it would be best not to
needlessly proliferate client implementations with competing channel
allocation schemes.  However it would need to be more descriptive
than:

struct dma_chan *dma_request_channel(dma_cap_mask_t request_mask);

Why:
1/  What if the requester initializes before a dmaengine device has
been registered?  What if a device is never registered?
2/ What about platform specific concerns where dma_cap_mask_t is not
descriptive enough e.g. only one memcpy channel can address a certain
bus?  Currently a client implementation can have some intelligence to
return DMA_DUP for channels that do not have the platform capability.


At the very least clients should be allowed to set an 'exclusive' bit
to prevent the channel from leaking elsewhere.

--
Dan
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: dmaengine.c: question about device_alloc_chan_resources, Haavard Skinnemoen, (Thu Sep 18, 7:28 am)
Re: dmaengine.c: question about device_alloc_chan_resources, Haavard Skinnemoen, (Thu Sep 18, 7:45 am)
Re: dmaengine.c: question about device_alloc_chan_resources, Haavard Skinnemoen, (Thu Sep 18, 8:00 am)
Re: dmaengine.c: question about device_alloc_chan_resources, Haavard Skinnemoen, (Fri Sep 19, 4:25 am)
Re: dmaengine.c: question about device_alloc_chan_resources, linux-os (Dick Johnson), (Fri Sep 19, 7:50 am)
Re: dmaengine.c: question about device_alloc_chan_resources, Dan Williams, (Sat Sep 20, 4:00 pm)
Re: dmaengine.c: question about device_alloc_chan_resources, Haavard Skinnemoen, (Sun Sep 21, 2:26 am)
Re: dmaengine.c: question about device_alloc_chan_resources, Guennadi Liakhovetski, (Sun Sep 21, 12:50 pm)
Re: dmaengine.c: question about device_alloc_chan_resources, Haavard Skinnemoen, (Mon Sep 22, 12:44 am)