drm/msm/disp/dpu1: fix display underruns during modeset.
authorKalyan Thota <kalyan_t@codeaurora.org>
Fri, 19 Mar 2021 12:54:06 +0000 (05:54 -0700)
committerRob Clark <robdclark@chromium.org>
Fri, 9 Apr 2021 19:02:35 +0000 (12:02 -0700)
commita29c8c0241654d5f3165d52e9307e4feff955621
treea3bd0df6252c08a114f5d8cf388b15a2ae837f2f
parent33b2b91e3430b0764234dc2ec28c5ae128828fe0
drm/msm/disp/dpu1: fix display underruns during modeset.

During crtc disable, display perf structures are reset to 0
which includes state varibles which are immutable. On crtc
enable, we use the same structures and they don't refelect
the actual values

1) Fix is to avoid updating the state structures during disable.
2) Reset the perf structures during atomic check when there is no
modeset enable.

Signed-off-by: Kalyan Thota <kalyan_t@codeaurora.org>
Reported-by: Stephen Boyd <swboyd@chromium.org>
Tested-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/1616158446-19290-1-git-send-email-kalyan_t@codeaurora.org
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c