OSDN Git Service

drm/fb-helper: Stop using mode_config.mutex for internals
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 5 Jul 2017 04:56:29 +0000 (06:56 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Jul 2017 08:02:01 +0000 (10:02 +0200)
commite13a058310509b22b2b45cbdd82d8797e173c3db
tree27f10eafafffccfd27ad744a7fc7da60c7970948
parent1d0c641091805b9ca382ac44d022a4963e47f33e
drm/fb-helper: Stop using mode_config.mutex for internals

Those are now all protected using fb_helper->lock.

v2: We still need to hold mode_config.mutex right around calling
connector->fill_modes.

v3: I forgot to hold mode_config.mutex while looking at
connector->status and the mode list. Also, we need to patch up the
i915 ->initial_config callback to grab the locks it needs to inspect
the modeset state recovered from the fw.

v4: Don't reorder the probe too much (Ville).

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Thierry Reding <treding@nvidia.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170705045629.31265-1-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_fb_helper.c
drivers/gpu/drm/drm_vblank.c
drivers/gpu/drm/i915/intel_fbdev.c