On Wed, Sep 21, 2011 at 7:41 AM, Marek Szyprowski m.szyprowski@samsung.com wrote:
I'm not entirely sure what will happen w/ dma_alloc_coherent, etc, if the global CMA pool is exhausted.
Marek? I guess you know what would happen?
The allocation will simply fail and dma_alloc_coherent will return NULL.
Ok, so we should probably setup device private pools so that userspace cannot allocate so much buffer memory that dma_alloc_coherent fails for other devices..
This is what I've done so far for omapdrm driver, although it is part of the other patch that adds the platform-device..
Thx
BR, -R