Skip to content

drm: reduce drm_detect_monitor_audio/drm_detect_hdmi_monitor/edid_blob_ptr usage

Jani Nikula amd-gfx dri-devel intel-gfx llvm nouveau oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12drm/edid: parse display info has_audio similar to is_hdmidrivers/gpu/drm/drm_edid.c include/drm/drm_connector.h+14 -00 replies
2/12drm/nouveau: convert to using is_hdmi and has_audio from display infodrivers/gpu/drm/nouveau/dispnv50/disp.c drivers/gpu/drm/nouveau/dispnv50/head.c drivers/gpu/drm/nouveau/nouveau_connector.c+6 -120 replies
3/12drm/radeon: convert to using is_hdmi and has_audio from display infodrivers/gpu/drm/radeon/atombios_encoders.c drivers/gpu/drm/radeon/evergreen_hdmi.c drivers/gpu/drm/radeon/radeon_audio.c +3 more+19 -200 replies
4/12drm/radeon: remove radeon_connector_edid() and stop using edid_blob_ptrdrivers/gpu/drm/radeon/radeon_audio.c drivers/gpu/drm/radeon/radeon_connectors.c drivers/gpu/drm/radeon/radeon_mode.h+2 -201 reply
5/12drm/amdgpu: remove amdgpu_connector_edid() and stop using edid_blob_ptrdrivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.h drivers/gpu/drm/amd/amdgpu/dce_v10_0.c +3 more+8 -240 replies
6/12drm/i915/debugfs: stop using edid_blob_ptrdrivers/gpu/drm/i915/display/intel_display_debugfs.c+5 -50 replies
7/12drm/exynos: fix is_hdmi usagedrivers/gpu/drm/exynos/exynos_hdmi.c+2 -10 replies
8/12drm/i2c/tda998x: convert to using has_audio from display_infodrivers/gpu/drm/i2c/tda998x_drv.c+1 -10 replies
9/12drm/sti/sti_hdmi: convert to using is_hdmi from display infodrivers/gpu/drm/sti/sti_hdmi.c drivers/gpu/drm/sti/sti_hdmi.h+6 -70 replies
10/12drm/rockchip: cdn-dp: call drm_connector_update_edid_property() unconditionallydrivers/gpu/drm/rockchip/cdn-dp-core.c+2 -31 reply
11/12drm/rockchip: convert to using has_audio from display_infodrivers/gpu/drm/rockchip/cdn-dp-core.c drivers/gpu/drm/rockchip/inno_hdmi.c+4 -31 reply
12/12drm/connector: update edid_blob_ptr documentationinclude/drm/drm_connector.h+5 -10 replies

Reviews trailers per patch

2 of 12 patches have a Reviewed-by or Acked-by.

PatchHeiko Stuebner
1/12
2/12
3/12
4/12
5/12
6/12
7/12
8/12
9/12
10/12A-b
11/12A-b
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/12] drm: reduce drm_detect_monitor_audio/drm_detect_hdmi_monitor/edid_blob_ptr usage

THIS IS UNTESTED for anything other than i915.

Use previously parsed EDID where possible for display audio/hdmi detection. This in turn reduces edid_blob_ptr usage in a number of places. Further reduce edid_blob_ptr usage, and document that it should not be used by drivers directly.

BR,
Jani.

Cc Alain Volmat <[email protected]>
Cc Alex Deucher <[email protected]>
Cc Ben Skeggs <[email protected]>
Cc Christian König <[email protected]>
Cc Heiko Stübner <[email protected]>
Cc Inki Dae <[email protected]>
Cc Karol Herbst <[email protected]>
Cc Kyungmin Park <[email protected]>
Cc Lyude Paul <[email protected]>
Cc Pan, Xinhui <[email protected]>
Cc Russell King <[email protected]>
Cc Sandy Huang <[email protected]>
Cc Seung-Woo Kim <[email protected]>

Jani Nikula (12):
drm/edid: parse display info has_audio similar to is_hdmi drm/nouveau: convert to using is_hdmi and has_audio from display info drm/radeon: convert to using is_hdmi and has_audio from display info drm/radeon: remove radeon_connector_edid() and stop using
edid_blob_ptr
drm/amdgpu: remove amdgpu_connector_edid() and stop using
edid_blob_ptr
drm/i915/debugfs: stop using edid_blob_ptr
drm/exynos: fix is_hdmi usage
drm/i2c/tda998x: convert to using has_audio from display_info drm/sti/sti_hdmi: convert to using is_hdmi from display info drm/rockchip: cdn-dp: call drm_connector_update_edid_property()
unconditionally
drm/rockchip: convert to using has_audio from display_info drm/connector: update edid_blob_ptr documentation

 .../gpu/drm/amd/amdgpu/amdgpu_connectors.c    | 15 -----------
 .../gpu/drm/amd/amdgpu/amdgpu_connectors.h    |  1 -
 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c        |  4 +--
 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c        |  4 +--
 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c         |  4 +--
 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c         |  4 +--
 drivers/gpu/drm/drm_edid.c                    |  6 +++++
 drivers/gpu/drm/exynos/exynos_hdmi.c          |  3 ++-
 drivers/gpu/drm/i2c/tda998x_drv.c             |  2 +-
 .../drm/i915/display/intel_display_debugfs.c  | 10 +++----
 drivers/gpu/drm/nouveau/dispnv50/disp.c       |  8 +++---
 drivers/gpu/drm/nouveau/dispnv50/head.c       |  8 +-----
 drivers/gpu/drm/nouveau/nouveau_connector.c   |  2 +-
 drivers/gpu/drm/radeon/atombios_encoders.c    | 10 +++----
 drivers/gpu/drm/radeon/evergreen_hdmi.c       |  5 ++--
 drivers/gpu/drm/radeon/radeon_audio.c         | 11 ++++----
 drivers/gpu/drm/radeon/radeon_connectors.c    | 27 +++++--------------
 drivers/gpu/drm/radeon/radeon_display.c       |  2 +-
 drivers/gpu/drm/radeon/radeon_encoders.c      |  4 +--
 drivers/gpu/drm/radeon/radeon_mode.h          |  2 --
 drivers/gpu/drm/rockchip/cdn-dp-core.c        |  7 +++--
 drivers/gpu/drm/rockchip/inno_hdmi.c          |  3 ++-
 drivers/gpu/drm/sti/sti_hdmi.c                | 11 ++++----
 drivers/gpu/drm/sti/sti_hdmi.h                |  2 --
 include/drm/drm_connector.h                   | 14 +++++++++-
 25 files changed, 73 insertions(+), 96 deletions(-)
Signature · 1 line
2.39.2