]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5dbe3b79b230bde49deedeea86bf9773f17793ee
treea3bd0df6252c08a114f5d8cf388b15a2ae837f2f
parentb878c1e2f6ffe95504e4fa977f9cdf8da3aaa206
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