]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/vmwgfx: Kill some lockdep warnings
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 3 May 2016 09:24:35 +0000 (11:24 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 20 May 2016 15:05:55 +0000 (17:05 +0200)
commit93cd16817ae5ddcfc548784b51c76bf6d7923442
tree4d953a68d06e5165a34da3ae8a0965ddc1c62718
parent7c10ddf87472c07eabc206e273dc59f77c700858
drm/vmwgfx: Kill some lockdep warnings

Some global KMS state that is elsewhere protected by the mode_config
mutex here needs to be protected with a local mutex. Remove corresponding
lockdep checks and introduce a new driver-private global_kms_state_mutex,
and make sure its locking order is *after* the crtc locks in order to
avoid having to release those when the new mutex is taken.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Cc: <stable@vger.kernel.org> # 4.6
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c