]> git.baikalelectronics.ru Git - kernel.git/commit
drm/fb-helper: Fix locking in drm_fb_helper_hotplug_event
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 11 Apr 2013 14:26:55 +0000 (14:26 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 12 Apr 2013 04:21:12 +0000 (14:21 +1000)
commit9816409e80d40b47e71f5134ce1964547d6b327a
tree33fb230e4392878537e19a01d724b9a7a00eb313
parent23670c0df35699adb0870e688383e05b7cce9a64
drm/fb-helper: Fix locking in drm_fb_helper_hotplug_event

Driver's and ->fill_modes functions are allowed to grab crtc mutexes
(for e.g. load detect). Hence we need to first only grab the general
kms mutex, and only in a second step grab all locks to do the
modesets.

This prevents a deadlock on my gm45 in the tv load detect code called
by drm_helper_probe_single_connector_modes.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_fb_helper.c