Re: [PATCH 07/13] dmaengine: introduce dma_request_channel and private channels
From: Dan Williams <hidden>
Date: 2008-12-18 17:28:23
Also in:
lkml
From: Dan Williams <hidden>
Date: 2008-12-18 17:28:23
Also in:
lkml
On Thu, Dec 18, 2008 at 7:33 AM, Sosnowski, Maciej [off-list ref] wrote:
What about situation, where some or all "public" channels in the system have been claimed by one client for its exclusive usage before another client appears trying to use available "public" channels? Despite of presence in the system of channels that supposed to be "public", the second cilent realizes that the channels are not available anymore at all or at least limited... Doesn't it contradict the general idea of "public" (general purpose) channels?
If a greedy module comes along and grabs all the channels via dma_request_channel() then yes, there will be nothing left for the public pool. So, there is a requirement to "play nice". If this becomes an issue in practice we could add a DMA_NO_PRIVATE flag to reserve a channel for public-only usage. Regards, Dan