Searched hist:a903e3b6 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/gpu/drm/omapdrm/ |
H A D | omap_gem.c | a903e3b6 Tue Mar 17 08:31:11 CDT 2015 Tomi Valkeinen <tomi.valkeinen@ti.com> drm/omap: return error if dma_alloc_writecombine fails
On a platform with no TILER (e.g. omap3, am43xx), when the user wants to allocate buffer with flag OMAP_BO_SCANOUT, the buffer needs to be allocated with dma_alloc_writecombine. For some reason the driver does not return an error if that alloc fails, instead it continues without backing memory. This leads to errors later when the user tries to use the buffer.
This patch makes the driver return an error if dma_alloc_writecombine fails.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> a903e3b6 Tue Mar 17 08:31:11 CDT 2015 Tomi Valkeinen <tomi.valkeinen@ti.com> drm/omap: return error if dma_alloc_writecombine fails On a platform with no TILER (e.g. omap3, am43xx), when the user wants to allocate buffer with flag OMAP_BO_SCANOUT, the buffer needs to be allocated with dma_alloc_writecombine. For some reason the driver does not return an error if that alloc fails, instead it continues without backing memory. This leads to errors later when the user tries to use the buffer. This patch makes the driver return an error if dma_alloc_writecombine fails. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|