]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/disp/dpu1: avoid perf update in frame done event
authorKrishna Manikandan <mkrishn@codeaurora.org>
Thu, 27 May 2021 05:07:56 +0000 (10:37 +0530)
committerRob Clark <robdclark@chromium.org>
Wed, 23 Jun 2021 14:32:16 +0000 (07:32 -0700)
commita1f2ba60eace242fd034173db3762f342a824a2e
tree0a3112346ab09fc8e3d2dbb7032c7fe41fbe8794
parent5b702d787b47e19f5aebb4f11360678493759a3b
drm/msm/disp/dpu1: avoid perf update in frame done event

Crtc perf update from frame event work can result in
wrong bandwidth and clock update from dpu if the work
is scheduled after the swap state has happened.

Avoid such issues by moving perf update to complete
commit once the frame is accepted by the hardware.

Fixes: a29c8c024165 ("drm/msm/disp/dpu1: fix display underruns during modeset")
Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
Tested-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/1622092076-5100-1-git-send-email-mkrishn@codeaurora.org
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c