]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: fix dmabuf mmap for dma_alloc'ed buffers
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 28 Feb 2017 08:11:45 +0000 (10:11 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 13 Mar 2017 10:53:27 +0000 (12:53 +0200)
commit4711f9818d47262b8640eee97da7f6992695438e
treea6faee3b35082142ba261bbe071f93a3ef762691
parentb1187e6c2bfd8b79c7b0014b16409a28a1b0f6e0
drm/omap: fix dmabuf mmap for dma_alloc'ed buffers

omap_gem_dmabuf_mmap() returns an error (with a WARN) when called for a
buffer which is allocated with dma_alloc_*(). This prevents dmabuf mmap
from working on SoCs without DMM, e.g. AM4 and OMAP3.

I could not find any reason for omap_gem_dmabuf_mmap() rejecting such
buffers, and just removing the if() fixes the limitation.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c