Skip to content

drm/amd/display: Fix missing HF-EEODB blocks in EDID copies

Timo Prömer amd-gfx dri-devel lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 5 repliesIn review
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

- Fixed a bug in patch 2 where the bounds check still used the old extension count.
- Patch 1 remains unchanged.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/edid: Export drm_edid_block_count()drivers/gpu/drm/drm_edid.c include/drm/drm_edid.h+3 -11 reply
2/2drm/amd/display: Use drm_edid_block_count() instead of raw extensionsdrivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c+8 -34 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] drm/amd/display: Fix missing HF-EEODB blocks in EDID copies

Fix an issue in amd/display where devices with HF-EEODB blocks would be missing these additional blocks during EDID reads.

The driver previously used edid->extensions + 1 to calculate the number of blocks to copy, but the base extension flag does not include HF-EEODB blocks.

Use drm_edid_block_count() directly to get the true number of blocks, ensuring that HF-EEODB blocks are properly copied.

Changes in v2:
- Fixed a bug in patch 2 where the bounds check still used the old extension count.
- Patch 1 remains unchanged.

Timo Prömer (2):
drm/edid: Export drm_edid_block_count()
drm/amd/display: Use drm_edid_block_count() instead of raw extensions

 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 11 ++++++++---
 drivers/gpu/drm/drm_edid.c                            |  3 ++-
 include/drm/drm_edid.h                                |  1 +
 3 files changed, 11 insertions(+), 4 deletions(-)
Signature · 1 line
2.55.0