Skip to content

drm: Use new DRM printk funcs (like drm_dbg_*()) in DP helpers

Lyude Paul amd-gfx dri-devel intel-gfx linux-arm-kernel linux-arm-msm linux-tegra lkml nouveau 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest17 patches 2 repliesIn review
  2. v320 patches 11 repliesSuperseded
  3. v220 patches 11 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v130 patches23 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17drm/bridge/cdns-mhdp8546: Register DP aux channel with userspacedrivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c+10 -10 replies
2/17drm/nouveau/kms/nv50-: Move AUX adapter reg to connector late register/early unregisterdrivers/gpu/drm/nouveau/nouveau_connector.c+20 -51 reply
3/17drm/dp: Add backpointer to drm_device in drm_dp_auxdrivers/gpu/drm/amd/amdgpu/atombios_dp.c drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c drivers/gpu/drm/bridge/analogix/analogix-anx6345.c +17 more+36 -60 replies
4/17drm/dp: Clarify DP AUX registration timedrivers/gpu/drm/drm_dp_helper.c+32 -130 replies
5/17drm/dp: Pass drm_dp_aux to drm_dp_link_train_clock_recovery_delay()drivers/gpu/drm/amd/amdgpu/atombios_dp.c drivers/gpu/drm/drm_dp_helper.c drivers/gpu/drm/i915/display/intel_dp_link_training.c +5 more+11 -80 replies
6/17drm/dp: Pass drm_dp_aux to drm_dp*_link_train_channel_eq_delay()drivers/gpu/drm/amd/amdgpu/atombios_dp.c drivers/gpu/drm/drm_dp_helper.c drivers/gpu/drm/i915/display/intel_dp_link_training.c +5 more+22 -160 replies
7/17drm/dp: Always print aux channel name in logsdrivers/gpu/drm/drm_dp_helper.c+7 -60 replies
8/17drm/dp_dual_mode: Pass drm_device to drm_dp_dual_mode_detect()drivers/gpu/drm/drm_dp_dual_mode_helper.c drivers/gpu/drm/i915/display/intel_hdmi.c drivers/gpu/drm/i915/display/intel_lspcon.c +1 more+10 -50 replies
9/17drm/dp_dual_mode: Pass drm_device to drm_dp_dual_mode_set_tmds_output()drivers/gpu/drm/drm_dp_dual_mode_helper.c drivers/gpu/drm/i915/display/intel_hdmi.c include/drm/drm_dp_dual_mode_helper.h+4 -40 replies
10/17drm/dp_dual_mode: Pass drm_device to drm_dp_dual_mode_max_tmds_clock()drivers/gpu/drm/drm_dp_dual_mode_helper.c drivers/gpu/drm/i915/display/intel_hdmi.c include/drm/drm_dp_dual_mode_helper.h+4 -30 replies
11/17drm/dp_dual_mode: Pass drm_device to drm_dp_dual_mode_get_tmds_output()drivers/gpu/drm/drm_dp_dual_mode_helper.c include/drm/drm_dp_dual_mode_helper.h+4 -30 replies
12/17drm/dp_dual_mode: Pass drm_device to drm_lspcon_(get|set)_mode()drivers/gpu/drm/drm_dp_dual_mode_helper.c drivers/gpu/drm/i915/display/intel_lspcon.c include/drm/drm_dp_dual_mode_helper.h+14 -100 replies
13/17drm/dp_mst: Pass drm_dp_mst_topology_mgr to drm_dp_get_vc_payload_bw()drivers/gpu/drm/drm_dp_mst_topology.c drivers/gpu/drm/i915/display/intel_dp_mst.c include/drm/drm_dp_mst_helper.h+9 -40 replies
14/17drm/print: Handle potentially NULL drm_devices in drm_dbg_*include/drm/drm_print.h+10 -100 replies
15/17drm/dp: Convert drm_dp_helper.c to using drm_err/drm_dbg_*()drivers/gpu/drm/drm_dp_helper.c+59 -620 replies
16/17drm/dp_dual_mode: Convert drm_dp_dual_mode_helper.c to using drm_err/drm_dbg_kms()drivers/gpu/drm/drm_dp_dual_mode_helper.c+21 -240 replies
17/17drm/dp_mst: Convert drm_dp_mst_topology.c to drm_err()/drm_dbg*()drivers/gpu/drm/drm_dp_mst_topology.c+187 -1810 replies

Reviews trailers per patch

5 of 17 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchThierry RedingLaurent PinchartRodrigo ViviRobert FossDave Airlie
SeriesR-b
1/17
2/17
3/17A-b
4/17
5/17R-b R-b
6/17R-b
7/17
8/17
9/17
10/17
11/17
12/17
13/17
14/17
15/17R-b
16/17
17/17R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v4 thread

Cover letter [PATCH v4 00/17] drm: Use new DRM printk funcs (like drm_dbg_*()) in DP helpers

Since it's been asked quite a few times on some of the various DP related patch series I've submitted to use the new DRM printk helpers, and it technically wasn't really trivial to do this before due to the lack of a consistent way to find a drm_device for an AUX channel, this patch series aims to address this. In this series we:

* (NEW! starting from V3) Make sure drm_dbg_*() and friends can handle NULL drm device pointers
* Clean-up potentially erroneous usages of drm_dp_aux_init() and drm_dp_aux_register() so that actual AUX registration doesn't happen until we have an associated DRM device
* Clean-up any obvious errors in drivers we find along the way
* Add a backpointer to the respective drm_device for an AUX channel in drm_dp_aux.drm_dev, and hook it up in every driver with an AUX channel across the tree
* Add a new ratelimited print helper we'll need for converting the DP helpers over to using the new DRM printk helpers
* Fix any inconsistencies with logging in drm_dp_helper.c so we always have the aux channel name printed
* Prepare the various DP helpers so they can find the correct drm_device to use for logging
* And finally, convert all of the DP helpers over to using drm_dbg_*() and drm_err().

Major changes in v4:
* Don't move i2c aux init into drm_dp_aux_init(), since I think I've found a much better solution to tegra's issues:
https://patchwork.freedesktop.org/series/89420/

Lyude Paul (17):
drm/bridge/cdns-mhdp8546: Register DP aux channel with userspace drm/nouveau/kms/nv50-: Move AUX adapter reg to connector late
register/early unregister
drm/dp: Add backpointer to drm_device in drm_dp_aux drm/dp: Clarify DP AUX registration time
drm/dp: Pass drm_dp_aux to drm_dp_link_train_clock_recovery_delay() drm/dp: Pass drm_dp_aux to drm_dp*_link_train_channel_eq_delay() drm/dp: Always print aux channel name in logs drm/dp_dual_mode: Pass drm_device to drm_dp_dual_mode_detect() drm/dp_dual_mode: Pass drm_device to
drm_dp_dual_mode_set_tmds_output()
drm/dp_dual_mode: Pass drm_device to drm_dp_dual_mode_max_tmds_clock() drm/dp_dual_mode: Pass drm_device to
drm_dp_dual_mode_get_tmds_output()
drm/dp_dual_mode: Pass drm_device to drm_lspcon_(get|set)_mode() drm/dp_mst: Pass drm_dp_mst_topology_mgr to drm_dp_get_vc_payload_bw() drm/print: Handle potentially NULL drm_devices in drm_dbg_* drm/dp: Convert drm_dp_helper.c to using drm_err/drm_dbg_*() drm/dp_dual_mode: Convert drm_dp_dual_mode_helper.c to using

    drm_err/drm_dbg_kms()

drm/dp_mst: Convert drm_dp_mst_topology.c to drm_err()/drm_dbg*()

 drivers/gpu/drm/amd/amdgpu/atombios_dp.c      |   6 +-
 .../display/amdgpu_dm/amdgpu_dm_mst_types.c   |   1 +
 .../drm/bridge/analogix/analogix-anx6345.c    |   1 +
 .../drm/bridge/analogix/analogix-anx78xx.c    |   1 +
 .../drm/bridge/analogix/analogix_dp_core.c    |   1 +
 .../drm/bridge/cadence/cdns-mhdp8546-core.c   |  12 +-
 drivers/gpu/drm/bridge/tc358767.c             |   1 +
 drivers/gpu/drm/bridge/ti-sn65dsi86.c         |   1 +
 drivers/gpu/drm/drm_dp_aux_dev.c              |   6 +
 drivers/gpu/drm/drm_dp_dual_mode_helper.c     |  68 ++--
 drivers/gpu/drm/drm_dp_helper.c               | 184 +++++----
 drivers/gpu/drm/drm_dp_mst_topology.c         | 376 +++++++++---------
 drivers/gpu/drm/i915/display/intel_dp_aux.c   |   1 +
 .../drm/i915/display/intel_dp_link_training.c |   6 +-
 drivers/gpu/drm/i915/display/intel_dp_mst.c   |   3 +-
 drivers/gpu/drm/i915/display/intel_hdmi.c     |   7 +-
 drivers/gpu/drm/i915/display/intel_lspcon.c   |  17 +-
 drivers/gpu/drm/msm/dp/dp_ctrl.c              |   6 +-
 drivers/gpu/drm/msm/edp/edp.h                 |   3 +-
 drivers/gpu/drm/msm/edp/edp_aux.c             |   5 +-
 drivers/gpu/drm/msm/edp/edp_ctrl.c            |   8 +-
 drivers/gpu/drm/nouveau/nouveau_connector.c   |  26 +-
 drivers/gpu/drm/radeon/atombios_dp.c          |   5 +-
 drivers/gpu/drm/tegra/dpaux.c                 |   1 +
 drivers/gpu/drm/xlnx/zynqmp_dp.c              |   5 +-
 include/drm/drm_dp_dual_mode_helper.h         |  14 +-
 include/drm/drm_dp_helper.h                   |  19 +-
 include/drm/drm_dp_mst_helper.h               |   3 +-
 include/drm/drm_print.h                       |  20 +-
 29 files changed, 453 insertions(+), 354 deletions(-)
Signature · 6 lines
2.30.2

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau