]> git.baikalelectronics.ru Git - kernel.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)
commit44c13c1b2cd727f1e7f40ba96b6d51091e60d9d9
tree4d953a68d06e5165a34da3ae8a0965ddc1c62718
parentb692132db7a0a5649cfe36e5c0189dce3836acff
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