public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 00/11] [RFC] drm_for_each_* macros and list locking
@ 2015-06-23 20:45 Daniel Vetter
  2015-06-23 20:45 ` [PATCH 01/11] drm: Simplify drm_for_each_legacy_plane arguments Daniel Vetter
                   ` (11 more replies)
  0 siblings, 12 replies; 17+ messages in thread
From: Daniel Vetter @ 2015-06-23 20:45 UTC (permalink / raw)
  To: DRI Development; +Cc: Daniel Vetter, Intel Graphics Development

Hi all,

Dave&I have been discussing connector hotplug and unplugging around DP MST and
if there's one thing that's clear it's that we don't even really know where all
the problems are. Hence first step is to figure that out. One of the bigger
items is walking the encoder/connector lists without appropriate locking to
protect against concurrent hotadd/removal of connectors.

This patch series tries to untangle things a bit here. RFC since only lightly
tested and missing conversion of the radoen mst code to the new locking scheme.
I think rolling out the new macros for i915 should be done as a second step, to
avoid hitting too many WARN_ON ;-)

Cheers, Daniel

Daniel Vetter (11):
  drm: Simplify drm_for_each_legacy_plane arguments
  drm: Add modeset object iterators
  drm/probe-helper: Grab mode_config.mutex in poll_init/enable
  drm/fbdev-helper: Grab mode_config.mutex in
    drm_fb_helper_single_add_all_connectors
  drm: Check locking in drm_for_each_encoder/connector
  drm/i915: Use drm_for_each_fb in i915_debugfs.c
  drm: Check locking in drm_for_each_fb
  drm/i915: Take all modeset locks for DP MST hotplug
  drm: Amend connector/encoder list locking rules
  drm: Roll out drm_for_each_connector more
  drm: Roll out drm_for_each_{plane,crtc,encoder}

 drivers/gpu/drm/drm_atomic.c              |  2 +-
 drivers/gpu/drm/drm_atomic_helper.c       |  4 +--
 drivers/gpu/drm/drm_crtc.c                | 56 +++++++++++++++----------------
 drivers/gpu/drm/drm_crtc_helper.c         | 42 +++++++++++------------
 drivers/gpu/drm/drm_edid.c                |  2 +-
 drivers/gpu/drm/drm_fb_cma_helper.c       |  2 +-
 drivers/gpu/drm/drm_fb_helper.c           | 19 +++++++----
 drivers/gpu/drm/drm_modeset_lock.c        |  7 ++--
 drivers/gpu/drm/drm_of.c                  |  2 +-
 drivers/gpu/drm/drm_plane_helper.c        |  3 +-
 drivers/gpu/drm/drm_probe_helper.c        | 45 +++++++++++++++----------
 drivers/gpu/drm/i915/i915_debugfs.c       |  4 ++-
 drivers/gpu/drm/i915/intel_dp_mst.c       | 12 +++----
 drivers/gpu/drm/i915/intel_pm.c           |  2 +-
 drivers/gpu/drm/shmobile/shmob_drm_crtc.c |  2 +-
 include/drm/drm_crtc.h                    | 33 ++++++++++++++++--
 16 files changed, 140 insertions(+), 97 deletions(-)

-- 
2.1.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2015-06-29  3:41 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-23 20:45 [PATCH 00/11] [RFC] drm_for_each_* macros and list locking Daniel Vetter
2015-06-23 20:45 ` [PATCH 01/11] drm: Simplify drm_for_each_legacy_plane arguments Daniel Vetter
2015-06-23 20:45 ` [PATCH 02/11] drm: Add modeset object iterators Daniel Vetter
2015-06-23 20:45 ` [PATCH 03/11] drm/probe-helper: Grab mode_config.mutex in poll_init/enable Daniel Vetter
2015-06-23 20:45 ` [PATCH 04/11] drm/fbdev-helper: Grab mode_config.mutex in drm_fb_helper_single_add_all_connectors Daniel Vetter
2015-06-23 20:45 ` [PATCH 05/11] drm: Check locking in drm_for_each_encoder/connector Daniel Vetter
2015-06-23 20:45 ` [PATCH 06/11] drm/i915: Use drm_for_each_fb in i915_debugfs.c Daniel Vetter
2015-06-23 20:45 ` [PATCH 07/11] drm: Check locking in drm_for_each_fb Daniel Vetter
2015-06-23 20:45 ` [PATCH 08/11] drm/i915: Take all modeset locks for DP MST hotplug Daniel Vetter
2015-06-23 20:46 ` [PATCH 09/11] drm: Amend connector/encoder list locking rules Daniel Vetter
2015-06-24  7:57   ` Chris Wilson
2015-06-24  8:36     ` Daniel Vetter
2015-06-23 20:46 ` [PATCH 10/11] drm: Roll out drm_for_each_connector more Daniel Vetter
2015-06-23 20:46 ` [PATCH 11/11] drm: Roll out drm_for_each_{plane, crtc, encoder} Daniel Vetter
2015-06-29  3:41   ` shuang.he
2015-06-24  7:44 ` [PATCH 00/11] [RFC] drm_for_each_* macros and list locking Chris Wilson
2015-06-24  8:35   ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox