linux/drivers/gpu/drm/msm
Sean Paul 70df9610de drm/msm: dpu: Untangle frame_done timeout units
There exists a bunch of confusion as to what the actual units of
frame_done is:

- The definition states it's in # of frames
- CRTC treats it like it's ms
- frame_done_timeout comment thinks it's Hz, but it stores ms
- frame_done timer is setup such that it _should_ be in frames, but the
  timeout is super long

So this patch tries to interpret what the driver really wants. I've
de-centralized the #define since the consumers are expecting different
units.

For crtc, we just use 60ms since that's what it was doing before.
Perhaps we could get fancy and scale with vrefresh, but that's for
another time.

For encoder, fix the comments and rename frame_done_timeout so it's
obvious what the units are. In practice, frame_done_timeout is really
just checked against 0 || !0, which I guess is why the units being wrong
didn't matter. I've also dropped the timeout from the previous 60 frames
to 5. That seems like more than enough time to give up on a frame, and
my guess is that no one intended for the timeout to _actually_ be 60
frames.

Reviewed-by: Fritz Koenig <frkoenig@google.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190128204306.95076-3-sean@poorly.run

Signed-off-by: Rob Clark <robdclark@chromium.org>
2019-04-18 10:04:10 -07:00
..
adreno drm/msm/a6xx: Add support for an interconnect path 2019-02-19 14:50:12 +01:00
disp drm/msm: dpu: Untangle frame_done timeout units 2019-04-18 10:04:10 -07:00
dsi drm-misc-next for 5.1: 2019-01-18 09:31:28 +10:00
edp drm-misc-next for 5.1: 2019-01-18 09:31:28 +10:00
hdmi drm-misc-next for 5.1: 2019-01-18 09:31:28 +10:00
Kconfig drm/msm/a6xx: Add support for an interconnect path 2019-02-19 14:50:12 +01:00
Makefile drm/msm/dpu: Remove dpu_irq and unused functions 2018-12-11 13:10:18 -05:00
msm_atomic.c drm pull request for 4.21-rc1 2018-12-25 11:48:26 -08:00
msm_debugfs.c drm pull request for 4.21-rc1 2018-12-25 11:48:26 -08:00
msm_debugfs.h
msm_drv.c Merge https://gitlab.freedesktop.org/drm/msm into drm-next 2019-02-20 12:16:37 +10:00
msm_drv.h Merge https://gitlab.freedesktop.org/drm/msm into drm-next 2019-02-20 12:16:37 +10:00
msm_fb.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
msm_fbdev.c drm/msm: Add msm_gem_get_and_pin_iova() 2018-12-11 13:05:32 -05:00
msm_fence.c drm/msm: Remove unecessary dma_fence_ops 2018-08-17 11:22:25 +02:00
msm_fence.h drm/msm: strip out msm_fence_cb 2018-03-19 06:33:35 -04:00
msm_gem_prime.c
msm_gem_shrinker.c
msm_gem_submit.c Remove 'type' argument from access_ok() function 2019-01-03 18:57:57 -08:00
msm_gem_vma.c drm/msm: Fix NULL pointer dereference 2019-04-18 10:04:09 -07:00
msm_gem.c drm/msm: don't allocate pages from the MOVABLE zone 2019-04-18 10:04:09 -07:00
msm_gem.h drm/msm: Add a name field for gem objects 2018-12-11 13:06:59 -05:00
msm_gpu_trace.h drm/msm/gpu: Add trace events for tracking GPU submissions 2018-12-11 13:05:28 -05:00
msm_gpu_tracepoints.c drm/msm/gpu: Add trace events for tracking GPU submissions 2018-12-11 13:05:28 -05:00
msm_gpu.c drm/msm/gpu: Remove hardcoded interrupt name 2019-01-29 10:17:34 -05:00
msm_gpu.h drm/msm/a6xx: Add support for an interconnect path 2019-02-19 14:50:12 +01:00
msm_gpummu.c drm/msm: implement a2xx mmu 2018-12-11 13:07:10 -05:00
msm_iommu.c drm/msm: Remove pm_runtime calls from msm_iommu.c 2019-04-18 10:04:09 -07:00
msm_kms.h drm/msm: Cut dpu_kms hooks from msm_pm_suspend/resume 2018-12-11 12:51:27 -05:00
msm_mmu.h drm/msm: implement a2xx mmu 2018-12-11 13:07:10 -05:00
msm_perf.c
msm_rd.c drm/msm: Unblock writer if reader closes file 2019-01-29 10:17:34 -05:00
msm_ringbuffer.c drm/msm/gpu: Map the ringbuffer in the iova at create time 2018-12-11 13:07:03 -05:00
msm_ringbuffer.h drm/msm/gpu: Add per-submission statistics 2018-12-11 13:05:28 -05:00
msm_submitqueue.c drm/msm: Support multiple ringbuffers 2017-10-28 11:01:36 -04:00
NOTES