]> git.baikalelectronics.ru Git - kernel.git/commit
drm: arcpgu: Fix mmap() callback
authorJose Abreu <Jose.Abreu@synopsys.com>
Mon, 17 Jul 2017 12:08:25 +0000 (13:08 +0100)
committerAlexey Brodkin <abrodkin@synopsys.com>
Wed, 2 Aug 2017 21:11:01 +0000 (00:11 +0300)
commit1ec36cb37d98722ab9bf533c9dd5471f3cd8f0af
treeea40d9addb43d621a47d8cbbb884756135d0f210
parente9042ac8ec60ee9e8fffbed8d4ef590e6a15b6f6
drm: arcpgu: Fix mmap() callback

Now that ARC properly supports DMA mmap() we can use the standard
CMA helper to map dumb buffers. This makes ARC PGU works with
standard DRM consumer applications like, for example, mpv/mplayer
via DRM. While at it, use the DEFINE_DRM_GEM_CMA_FOPS() helper.

This fixes the use of dumb buffers.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Fixes: 0c4250e7b15e ("drm: Add support of ARC PGU display controller")
Cc: Carlos Palminha <palminha@synopsys.com>
Cc: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Dave Airlie <airlied@gmail.com>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
drivers/gpu/drm/arc/arcpgu_drv.c