]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: return error if dma_alloc_writecombine fails
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 17 Mar 2015 13:31:11 +0000 (15:31 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 24 Jun 2015 06:53:26 +0000 (09:53 +0300)
commite40097108cfda7d13080d4ca2c59ed2e4b9febb1
treed41905e5912c996ba9a9082a9c2b66d49cf18702
parent0a3b4724a0982204c71e8a1e4e09a845fd26c8de
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>
drivers/gpu/drm/omapdrm/omap_gem.c