[PATCH v2 0/9] drm: Third attempt at fixing the fb-helper .best_encoder() mess

Ville Syrjala ville.syrjala at linux.intel.com
Thu Jun 28 13:13:06 UTC 2018


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Changes from the previous version mainly involve Danoie's suggestion
of hiding the drm_encoder_find() in the iterator macro. I also polished
the msm and tilcdc cases a bit more with another small helper.

Cc: Alex Deucher <alexander.deucher at amd.com>
Cc: amd-gfx at lists.freedesktop.org
Cc: Ben Skeggs <bskeggs at redhat.com>
Cc: "Christian König" <christian.koenig at amd.com>
Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
Cc: "David (ChunMing) Zhou" <David1.Zhou at amd.com>
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan at intel.com>
Cc: freedreno at lists.freedesktop.org
Cc: Harry Wentland <harry.wentland at amd.com>
Cc: Jyri Sarha <jsarha at ti.com>
Cc: linux-arm-msm at vger.kernel.org
Cc: nouveau at lists.freedesktop.org
Cc: Rob Clark <robdclark at gmail.com>
Cc: Tomi Valkeinen <tomi.valkeinen at ti.com>

Ville Syrjälä (9):
  drm/fb-helper: Eliminate the .best_encoder() usage
  drm/i915: Nuke intel_mst_best_encoder()
  drm: Add drm_connector_for_each_possible_encoder()
  drm/amdgpu: Use drm_connector_for_each_possible_encoder()
  drm/nouveau: Use drm_connector_for_each_possible_encoder()
  drm/radeon: Use drm_connector_for_each_possible_encoder()
  drm: Add drm_connector_has_possible_encoder()
  drm/msm: Use drm_connector_has_possible_encoder()
  drm/tilcdc: Use drm_connector_has_possible_encoder()

 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | 81 ++++++-----------------
 drivers/gpu/drm/amd/amdgpu/dce_virtual.c       | 15 ++---
 drivers/gpu/drm/drm_connector.c                | 44 +++++++++----
 drivers/gpu/drm/drm_fb_helper.c                | 34 +++++-----
 drivers/gpu/drm/drm_probe_helper.c             | 10 +--
 drivers/gpu/drm/i915/intel_dp_mst.c            | 10 ---
 drivers/gpu/drm/msm/dsi/dsi_manager.c          |  8 +--
 drivers/gpu/drm/nouveau/nouveau_connector.c    | 21 +-----
 drivers/gpu/drm/radeon/radeon_connectors.c     | 90 ++++++++------------------
 drivers/gpu/drm/tilcdc/tilcdc_external.c       |  9 ++-
 include/drm/drm_connector.h                    | 16 +++++
 11 files changed, 128 insertions(+), 210 deletions(-)

-- 
2.16.4



More information about the amd-gfx mailing list