]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:18 +0000 (20:02 +0100)
commitab84ec6ef8f98014084ca2d535aaa48ea6ba138e
treee285ec4ed4dfaefc5a8b9ef6d3f8b3aa63421a6c
parent84423f325e9a6051ac59d510c15b2fb0cb4cf782
drm/msm: dpu: Only check flush register against pending flushes

[ Upstream commit 5f79e03b1f7c1b2cf0019ce6365fe5d52629813d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c