]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Also check for crtc status while checking for DU active
authorDeepak Rawat <drawat@vmware.com>
Fri, 21 Dec 2018 22:38:35 +0000 (14:38 -0800)
committerThomas Hellstrom <thellstrom@vmware.com>
Tue, 5 Feb 2019 12:53:28 +0000 (13:53 +0100)
commit78ac2a053b9a287f2d36d886a5ab395d2567b266
tree22a98d5aad1cec7b33f8b3c8616929a00941ca49
parent81823e0a71b88151e6b85d1f796b504416126907
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: fdbd577065e2: ("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>
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c