]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: dpu: Only check flush register against pending flushes
authorSean Paul <seanpaul@chromium.org>
Tue, 30 Oct 2018 16:00:08 +0000 (12:00 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 11 Dec 2018 18:07:08 +0000 (13:07 -0500)
commit10fa3c245c7aca72149865e34ee8f25dbb3283b4
tree746f2635436d5ecd47176aedb6f9163f944081b8
parent8d6419de873f2488918bca52ffea0e21f18ecae4
drm/msm: dpu: Only check flush register against pending flushes

There exists a case where a flush of a plane/dma may have been triggered
& started from an async commit. If that plane/dma is subsequently disabled
by the next commit, the flush register will continue to hold the flush
bit for the disabled plane. Since the bit remains active,
pending_kickoff_cnt will never decrement and we'll miss frame_done
events.

This patch limits the check of flush_register to include only those bits
which have been updated with the latest commit.

Changes in v2:
- None

Reviewed-by: Jeykumar Sankaran <jsanka@codeaurora.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c