forked from Minki/linux
drm/i915: Fixup for 'Hold mode_config->mutex during hotplug'
drm_helper_hpd_irq_event queues another work proc to go and deliver the user-space event, and that function also wants to hold the config mutex, so we shouldn't hold the mutex across the drm_helper_hpd_irq_event call. Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
e85194641b
commit
40ee3381dd
@ -313,10 +313,10 @@ static void i915_hotplug_work_func(struct work_struct *work)
|
|||||||
if (encoder->hot_plug)
|
if (encoder->hot_plug)
|
||||||
encoder->hot_plug(encoder);
|
encoder->hot_plug(encoder);
|
||||||
|
|
||||||
|
mutex_unlock(&mode_config->mutex);
|
||||||
|
|
||||||
/* Just fire off a uevent and let userspace tell us what to do */
|
/* Just fire off a uevent and let userspace tell us what to do */
|
||||||
drm_helper_hpd_irq_event(dev);
|
drm_helper_hpd_irq_event(dev);
|
||||||
|
|
||||||
mutex_unlock(&mode_config->mutex);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void i915_handle_rps_change(struct drm_device *dev)
|
static void i915_handle_rps_change(struct drm_device *dev)
|
||||||
|
Loading…
Reference in New Issue
Block a user