]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/atomic: Make atomic helper track newly assigned planes correctly, v2.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 17 Oct 2017 05:20:47 +0000 (07:20 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 17 Oct 2017 12:18:14 +0000 (14:18 +0200)
commit4edd60847287c34222116af58f76be985ebddef7
treebaaffecd9700be31b4c289004a2f3b76629a7b5a
parent75c65ee20adebca6ac29d6f9d301ced073dd8030
drm/atomic: Make atomic helper track newly assigned planes correctly, v2.

Commit 669c9215afea ("drm/atomic: Make async plane update checks work as
intended, v2.") forced planes to always be tracked, but forgot to
explicitly get the crtc commit from the new crtc when available.

This broke plane commit tracking, and caused kms_atomic_transitions
to randomly fail with -EBUSY.

Changes since v1:
- Prefer new_crtc_state->crtc above old_crtc_state->crtc.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fixes: 669c9215afea ("drm/atomic: Make async plane update checks work as intended, v2.")
Cc: Gustavo Padovan <gustavo.padovan@collabora.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102671
Testcase: kms_atomic_transitions
Link: https://patchwork.freedesktop.org/patch/msgid/20171017052047.8983-1-maarten.lankhorst@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic_helper.c