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(-) -- 2.55.0
