Lock in the ironlake_panel_vdd_work()
Subsystems (2)
I have a question about ironlake_panel_vdd_work(). Should it use the device struct_mutex, or need it to be the mode_config.mutex instead ?
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 3 lines · Konstantin Belousov
I have a question about
ironlake_panel_vdd_work(). Should it use the devicestruct_mutex, or need it to be the mode_config.mutex instead ?
Yeah. This was actually flagged in review by Chris and me, but seems to have been lost in the merge. Keith?
-Daniel
Signature · 3 lines
Daniel Vetter Mail: [email protected] Mobile: +41 (0)79 365 57 48
Quoted 7 lines · Daniel Vetter
Quoted 3 lines · Konstantin Belousov
I have a question about
ironlake_panel_vdd_work(). Should it use the devicestruct_mutex, or need it to be the mode_config.mutex instead ?Yeah. This was actually flagged in review by Chris and me, but seems to have been lost in the merge. Keith?
I thought I fixed that; it must have gotten lost in the fairly steady set of rebasing/reworking of that patch sequence.
commit 241dedda2785f040da45576418686490431232d2
Author: Keith Packard <[email protected]> Date: Mon Oct 31 11:30:10 2011 -0700
drm/i915: Use mode_config.mutex in ironlake_panel_vdd_work
Use of the struct_mutex is not correct for locking in mode setting paths.
drivers/gpu/drm/i915/intel_dp.c +2 -2
@@ -971,9 +971,9 @@ static void ironlake_panel_vdd_work(struct work_struct *__work) struct intel_dp, panel_vdd_work);struct drm_device *dev = intel_dp->base.base.dev; -mutex_lock (&dev->struct_mutex); +mutex_lock (&dev->mode_config.mutex);ironlake_panel_vdd_off_sync (intel_dp); -mutex_unlock (&dev->struct_mutex); +mutex_unlock (&dev->mode_config.mutex); }static void ironlake_edp_panel_vdd_off (struct intel_dp *intel_dp,bool sync)
Signature · 1 line
[email protected]
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Daniel Vetter
Reviewed-byQuoted 11 lines · Keith Packard
Quoted 7 lines · Daniel Vetter
Quoted 3 lines · Konstantin Belousov
I have a question about
ironlake_panel_vdd_work(). Should it use the devicestruct_mutex, or need it to be the mode_config.mutex instead ?Yeah. This was actually flagged in review by Chris and me, but seems to have been lost in the merge. Keith?
I thought I fixed that; it must have gotten lost in the fairly steady set of rebasing/reworking of that patch sequence.
Yeah, I recall having seen a fixed version somewhere ...
Quoted 9 lines
commit
241dedda2785f040da45576418686490431232d2Author: Keith Packard <[email protected]> Date: Mon Oct 31 11:30:10 2011 -0700drm/i915: Use mode_config.mutex in
ironlake_panel_vdd_workUse of the
struct_mutexis not correct for locking in mode setting paths.Signed-off-by Keith Packard <[email protected]>
Signature · 3 lines
Daniel Vetter Mail: [email protected] Mobile: +41 (0)79 365 57 48