mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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: 9da6e26c0a
: ("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>
This commit is contained in:
parent
51fdbeb4ca
commit
479d59026f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue