OpenCloudOS-Kernel/drivers/gpu/drm/rockchip
Gustavo Padovan 1b47aaf9a9 drm/fence: add fence to drm_pending_event
Now a drm_pending_event can either send a real drm_event or signal a
fence, or both. It allow us to signal via fences when the buffer is
displayed on the screen. Which in turn means that the previous buffer
is not in use anymore and can be freed or sent back to another driver
for processing.

v2: Comments from Daniel Vetter
	- call fence_signal in drm_send_event_locked()
	- remove unneeded !e->event check

v3: Remove drm_pending_event->destroy to fix a leak when e->file_priv
is not set.

Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> (v2)
[danvet: fix one e->destroy in arcpgu due to rebasing.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1464818821-5736-13-git-send-email-daniel.vetter@ffwll.ch
2016-06-03 00:01:59 +02:00
..
Kconfig drm: rockchip: dp: add rockchip platform dp driver 2016-04-05 10:13:04 +08:00
Makefile drm: rockchip: dp: add rockchip platform dp driver 2016-04-05 10:13:04 +08:00
analogix_dp-rockchip.c drm/rockchip: get rid of rockchip_drm_crtc_mode_config 2016-05-03 14:11:23 +08:00
dw-mipi-dsi.c drm/rockchip: get rid of rockchip_drm_crtc_mode_config 2016-05-03 14:11:23 +08:00
dw_hdmi-rockchip.c drm/rockchip: get rid of rockchip_drm_crtc_mode_config 2016-05-03 14:11:23 +08:00
inno_hdmi.c drm/rockchip: get rid of rockchip_drm_crtc_mode_config 2016-05-03 14:11:23 +08:00
inno_hdmi.h drm/rockchip: hdmi: add Innosilicon HDMI support 2016-02-18 13:56:43 +08:00
rockchip_drm_drv.c drm: Nuke ->vblank_disable_allowed 2016-05-21 07:03:31 +10:00
rockchip_drm_drv.h drm/rockchip: get rid of rockchip_drm_crtc_mode_config 2016-05-03 14:11:23 +08:00
rockchip_drm_fb.c drm: Remove unused drm_device from drm_gem_object_lookup() 2016-05-17 08:47:30 +02:00
rockchip_drm_fb.h drm: Pass the user drm_mode_fb_cmd2 as const to .fb_create() 2015-11-24 11:47:38 +01:00
rockchip_drm_fbdev.c drm/rockchip: Use new drm_fb_helper functions 2015-08-06 14:12:56 +02:00
rockchip_drm_fbdev.h drm/rockchip: respect CONFIG_DRM_FBDEV_EMULATION 2016-01-22 08:45:31 +08:00
rockchip_drm_gem.c drm: Remove unused drm_device from drm_gem_object_lookup() 2016-05-17 08:47:30 +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/fence: add fence to drm_pending_event 2016-06-03 00:01:59 +02:00
rockchip_drm_vop.h drm/rockchip: vop: spilt scale regsters 2015-12-28 09:01:41 +08:00
rockchip_vop_reg.c drm/rockchip: vop: add rk3036 vop support 2015-12-28 09:01:48 +08:00
rockchip_vop_reg.h drm/rockchip: vop: add rk3036 vop support 2015-12-28 09:01:48 +08:00