drm/vmwgfx: Use a mutex to protect gui positioning in vmw_display_unit
authorDeepak Rawat <drawat@vmware.com>
Wed, 20 Jun 2018 09:32:29 +0000 (11:32 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Tue, 3 Jul 2018 18:39:30 +0000 (20:39 +0200)
commitb89e5ff9eeeb8b1fe3d2d7477fb9e1c1aed5dd5b
tree0ae81b27b297a1482b00587baceeebd451fa33f7
parent018f60b26602bb41b33139da3408224e36dfe02d
drm/vmwgfx: Use a mutex to protect gui positioning in vmw_display_unit

To avoid race condition between update_layout ioctl and modeset ioctl
for access to gui_x/y positioning added a new mutex
requested_layout_mutex.

Also used drm_for_each_connector_iter to iterate over connector list.

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_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c