linux/drivers/gpu/drm/msm
Gustavo Padovan f6ce410a59 drm/fence: allow fence waiting to be interrupted by userspace
If userspace is running an synchronously atomic commit and interrupts the
atomic operation during fence_wait() it will hang until the timer expires,
so here we change the wait to be interruptible so it stop immediately when
userspace wants to quit.

Also adds the necessary error checking for fence_wait().

v2: Comment by Daniel Vetter
	- Add error checking for fence_wait()

v3: Rebase on top of new atomic noblocking support

v4: Comment by Maarten Lankhorst
	- remove 'swapped' bitfield as it was duplicating information

v5: Comments by Maarten Lankhorst
	- assign plane->state to plane_state if !intr
	- squash previous patch into this one

v6: Comment by Sean Paul
	- rename intr to pre_swap

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
[seanpaul fixed a couple checkpatch warnings and moved the preswap comment]
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1473707291-14781-1-git-send-email-gustavo@padovan.org
2016-09-12 16:59:15 -04:00
..
adreno drm/msm: deal with arbitrary # of cmd buffers 2016-07-16 10:09:08 -04:00
dsi drm/msm/dsi: Fix return value check in msm_dsi_host_set_display_mode() 2016-07-16 10:29:28 -04:00
edp drm: msm: Rely on the default ->best_encoder() behavior where appropriate 2016-06-09 08:43:26 +02:00
hdmi drm/msm/hdmi: Delete an unnecessary check before the function call "kfree" 2016-07-16 10:29:33 -04:00
mdp drm: Allow drivers to modify plane_state in prepare_fb/cleanup_fb 2016-08-19 10:58:55 +02:00
Kconfig drm: msm: Add ASoC generic hdmi audio codec support. 2016-07-16 10:29:00 -04:00
Makefile drm/msm: shrinker support 2016-07-16 10:09:06 -04:00
msm_atomic.c drm/fence: allow fence waiting to be interrupted by userspace 2016-09-12 16:59:15 -04:00
msm_debugfs.c drm/msm: move debugfs code to it's own file 2016-05-08 10:16:02 -04:00
msm_debugfs.h drm/msm: move debugfs code to it's own file 2016-05-08 10:16:02 -04:00
msm_drv.c dma-mapping: use unsigned long for dma_attrs 2016-08-04 08:50:07 -04:00
msm_drv.h drm/msm: wire up vmap shrinker 2016-07-16 10:09:07 -04:00
msm_fb.c drm/msm: Delete unnecessary checks before drm_gem_object_unreference_unlocked() 2016-07-16 10:29:34 -04:00
msm_fbdev.c drm/msm: change gem->vmap() to get/put 2016-07-16 10:09:07 -04:00
msm_fence.c drm/msm: 'struct fence' conversion 2016-05-08 10:22:15 -04:00
msm_fence.h drm/msm: 'struct fence' conversion 2016-05-08 10:22:15 -04:00
msm_gem_prime.c drm/msm: change gem->vmap() to get/put 2016-07-16 10:09:07 -04:00
msm_gem_shrinker.c drm/msm: wire up vmap shrinker 2016-07-16 10:09:07 -04:00
msm_gem_submit.c drm/msm: deal with arbitrary # of cmd buffers 2016-07-16 10:09:08 -04:00
msm_gem.c drm/msm: Delete an unnecessary check before drm_gem_object_unreference() 2016-07-16 10:29:35 -04:00
msm_gem.h drm/msm: deal with arbitrary # of cmd buffers 2016-07-16 10:09:08 -04:00
msm_gpu.c drm/msm: print offender task name on hangcheck recovery 2016-05-08 10:22:18 -04:00
msm_gpu.h drm/msm: drop return from gpu->submit() 2016-05-08 10:22:18 -04:00
msm_iommu.c drm/msm: Print the correct virtual addresses in map/unmap funcs 2016-07-16 10:08:44 -04:00
msm_kms.h drm/msm/mdp5: Remove old kms init/destroy funcs 2016-07-16 10:08:57 -04:00
msm_mmu.h drm/msm: make iommu port names const'ier 2016-03-02 16:19:43 -05:00
msm_perf.c drm/msm: return -EFAULT instead of bytes remaining 2016-07-16 10:29:32 -04:00
msm_rd.c drm/msm: return -EFAULT instead of bytes remaining 2016-07-16 10:29:32 -04:00
msm_ringbuffer.c drm/msm: change gem->vmap() to get/put 2016-07-16 10:09:07 -04:00
msm_ringbuffer.h
NOTES drm/msm: add mdp5/apq8x74 2014-01-09 14:44:06 -05:00