Skip to content

Commit 479d590

Browse files
deepak-rawatthomashvmw
authored andcommitted
drm/vmwgfx: Also check for crtc status while checking for DU active
During modeset check it is possible to have all crtc_state's in atomic state. Check for crtc enable status while checking for display unit active status. Only error if enabling a crtc while display unit is not active. Cc: <stable@vger.kernel.org> Fixes: 9da6e26: ("drm/vmwgfx: Fix a layout race condition") Signed-off-by: Deepak Rawat <drawat@vmware.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
1 parent 51fdbeb commit 479d590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/vmwgfx/vmwgfx_kms.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,7 @@ static int vmw_kms_check_topology(struct drm_device *dev,
16461646
struct drm_connector_state *conn_state;
16471647
struct vmw_connector_state *vmw_conn_state;
16481648

1649-
if (!du->pref_active) {
1649+
if (!du->pref_active && new_crtc_state->enable) {
16501650
ret = -EINVAL;
16511651
goto clean;
16521652
}

0 commit comments

Comments
 (0)