[Intel-gfx] [PATCH] drm/i915: Acquire dpio_lock for VLV sideband programming in DP/HDMI

Daniel Vetter daniel at ffwll.ch
Fri Jul 26 19:43:14 CEST 2013


On Fri, Jul 26, 2013 at 7:11 PM, Chris Wilson <chris at chris-wilson.co.uk> wrote:
>> The problem here is that Jesse was lazy and grabs the lock in
>> vlv_crtc_enable, so I think your code here will deadlock. But I agree
>> that grabbing the lock where we actually frob the sideband is what we
>> want ...
>
> Looks like vlv_crtc_enable() is the only place that takes the lock around
> callbacks, so I propose dropping the locking in that function (and
> scoping it around the sideband sequences as above).

Yeah, I think moving the locking into callbacks/lower-level functions
is the right approach.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch



More information about the Intel-gfx mailing list