DPCD/AUX locking

Ben Skeggs skeggsb at gmail.com
Tue May 6 22:26:20 PDT 2014


On Wed, May 7, 2014 at 9:20 AM, Dave Airlie <airlied at gmail.com> wrote:
> So now I've been playing with MST I think get the feeling I might need
> some explicit locking on the AUX channel, I think at the moment the
> mode_config mutex implicitly defends the aux channel as the only real
> paths into it are
>
> a) from userspace connector probing,
> b) from HPD irqs,
>
> currently both of these on i915 at least take mode config,
>
> however with MST I can't use mode_config for this, so I'm wondering if
> I should be adding some explicit locking in the helpers or make it the
> drivers problem to lock around helper access?
Without yet being clear on what you're locking against exactly, my
vote would be on making this the driver's problem.  We (should be, but
don't yet) need to take locks around AUX access anyway as the pads are
shared between aux/ddc channels in a lot of cases.

Ben.

>
> Any ideas, it would most likely have to be a mutex since DPCD can in
> theory sleep.
>
> Dave.
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel


More information about the dri-devel mailing list