linux/drivers/gpu/drm/rockchip
Daniel Kurtz 8915bf2028 drm/rockchip: use drm_gem_mmap helpers
Rather than (incompletely [0]) re-implementing drm_gem_mmap() and
drm_gem_mmap_obj() helpers, call them directly from the rockchip mmap
routines.

Once the core functions return successfully, the rockchip mmap routines
can still use dma_mmap_attrs() to simply mmap the entire buffer.

[0] Previously, we were performing the mmap() without first taking a
reference on the underlying gem buffer.  This could leak ptes if the gem
object is destroyed while userspace is still holding the mapping.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: stable@vger.kernel.org
2015-07-13 13:54:03 +08:00
..
dw_hdmi-rockchip.c drm: rockchip/dw_hdmi-rockchip: improve for HDMI electrical test 2015-04-01 10:54:13 +01:00
Kconfig drm: rockchip: add reset controller dependency 2015-01-31 10:11:48 +10:00
Makefile
rockchip_drm_drv.c drm: Use of-graph helpers to loop over endpoints 2015-04-13 17:28:16 +10:00
rockchip_drm_drv.h
rockchip_drm_fb.c drm/rockchip: only call drm_fb_helper_hotplug_event if fb_helper present 2015-07-13 13:50:52 +08:00
rockchip_drm_fb.h
rockchip_drm_fbdev.c drm: rockchip: Turn off VT switching on suspend 2015-04-03 14:23:21 +08:00
rockchip_drm_fbdev.h
rockchip_drm_gem.c drm/rockchip: use drm_gem_mmap helpers 2015-07-13 13:54:03 +08:00
rockchip_drm_gem.h drm/rockchip: Only alloc a kmap for fbdev gem object 2015-03-16 10:07:12 +08:00
rockchip_drm_vop.c drm/rockchip: Add BGR formats to VOP 2015-07-13 13:50:46 +08:00
rockchip_drm_vop.h