linux_dsm_epyc7002/drivers/gpu/drm/rockchip
Daniel Kurtz 41315b793e 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
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-07-07 14:04:06 +02: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 drm: bridge/dw_hdmi: add rockchip rk3288 support 2015-01-07 18:32:00 +01:00
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 drm: rockchip: Add basic drm driver 2014-12-02 17:29:03 +08:00
rockchip_drm_fb.c drm: rockchip: Add basic drm driver 2014-12-02 17:29:03 +08:00
rockchip_drm_fb.h drm: rockchip: Add basic drm driver 2014-12-02 17:29:03 +08:00
rockchip_drm_fbdev.c drm: rockchip: Turn off VT switching on suspend 2015-04-03 14:23:21 +08:00
rockchip_drm_fbdev.h drm: rockchip: Add basic drm driver 2014-12-02 17:29:03 +08:00
rockchip_drm_gem.c drm/rockchip: use drm_gem_mmap helpers 2015-07-07 14:04:06 +02: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: fix error check when getting irq 2015-04-20 09:02:31 +08:00
rockchip_drm_vop.h drm: rockchip: Add basic drm driver 2014-12-02 17:29:03 +08:00