summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
diff options
context:
space:
mode:
authorSean Paul2018-11-16 19:42:22 +0100
committerRob Clark2018-12-11 19:10:11 +0100
commit18a63b3c6f0b6247f93f5eb05353b0486512017e (patch)
treef1c41e65a3f895437f671f29bb8d5261d8cdc997 /drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
parentdrm/msm: dpu: Add ->enabled to dpu_encoder_virt (diff)
downloadkernel-qcow2-linux-18a63b3c6f0b6247f93f5eb05353b0486512017e.tar.gz
kernel-qcow2-linux-18a63b3c6f0b6247f93f5eb05353b0486512017e.tar.xz
kernel-qcow2-linux-18a63b3c6f0b6247f93f5eb05353b0486512017e.zip
drm/msm: dpu: Move crtc runtime resume to encoder
The crtc runtime resume doesn't actually operate on the crtc, but rather its encoders. The problem with this is that we need to inspect the crtc state to get the currently connected encoders. Since runtime resume isn't guaranteed to be called while holding the modeset locks (although it sometimes is), this presents a race condition. Now that we have ->enabled on the virtual encoders, and a lock to protect it, just call resume on each encoder and only restore the ones that are enabled. Changes in v2: - None Cc: Jeykumar Sankaran <jsanka@codeaurora.org> Reviewed-by: Jeykumar Sankaran <jsanka@codeaurora.org> Signed-off-by: Sean Paul <seanpaul@chromium.org> Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c')
0 files changed, 0 insertions, 0 deletions