diff options
author | Deepak Rawat <drawat@vmware.com> | 2018-12-21 14:38:35 -0800 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2019-01-29 13:57:56 +0100 |
commit | 46984feb928ade4af744eb4e4cc8b242ffaf14e3 (patch) | |
tree | e78801a8c8c7a1f9d76235f9a99817f4332f1e04 | |
parent | 4e5ec6d1f0eed391337bab9d0ac7f0daa2e62179 (diff) |
drm/vmwgfx: Also check for crtc status while checking for DU activevmwgfx-fixes-5.0-190130vmwgfx-fixes-5.0
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: 9da6e26c0aae: ("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>
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c index 3330bc89f1b9..9c8cdae5a4fa 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c @@ -1646,7 +1646,7 @@ static int vmw_kms_check_topology(struct drm_device *dev, struct drm_connector_state *conn_state; struct vmw_connector_state *vmw_conn_state; - if (!du->pref_active) { + if (!du->pref_active && new_crtc_state->enable) { ret = -EINVAL; goto clean; } |