Skip to content

DRM/KMS/EDID: Various EDID handling related fixes.

Egbert Eich dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 of 17 patches 6 repliesIn review

16 of 17 patches are in this archive. The cover letter announces 17.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17DRM/KMS/EDID: Mask out Segment Bits when calculating Offset.drivers/gpu/drm/drm_edid.c+1 -10 replies
3/17DRM/KMS/EDID: Return Base EDID block if reading EEDID Blocks fails.drivers/gpu/drm/drm_edid.c+5 -20 replies
4/17DRM/KMS/EDID: Test EDDC if EDID announces more than one Extension Block.drivers/gpu/drm/drm_edid.c+13 -00 replies
5/17DRM/KMS/EDID: Fix up EEDID Map Blocks if Extension block count has changed.drivers/gpu/drm/drm_edid.c+100 -51 reply
6/17DRM/exynos: Fix Memory Leak: free EDID blcok returned by drm_get_edid().drivers/gpu/drm/exynos/exynos_hdmi.c+1 -07 replies
7/17DRM/KMS/EDID: Move drm_edid_load.o to drm.kodrivers/gpu/drm/Makefile+1 -11 reply
8/17DRM/KMS/EDID: Use Extension Block Fixup Code also for 'firmware' EDID.drivers/gpu/drm/drm_edid.c drivers/gpu/drm/drm_edid_load.c include/drm/drm_edid.h+77 -551 reply
9/17DRM/KMS/EDID: Feed 'firmware' supplied EDID blocks whenever the EDID is read.drivers/gpu/drm/drm_crtc_helper.c drivers/gpu/drm/drm_edid.c drivers/gpu/drm/drm_edid_load.c +1 more+20 -190 replies
10/17DRM/KMS/EDID: Cache EDID blobs with extensions.drivers/gpu/drm/drm_crtc.c drivers/gpu/drm/drm_edid.c include/drm/drm_crtc.h +1 more+45 -11 reply
11/17DRM/KMS/EDID: Avoid failing on krealloc on EDID blocks.drivers/gpu/drm/drm_edid.c+13 -210 replies
12/17DRM/KMS/EDID: Consolidate EDID Error Handling.drivers/gpu/drm/drm_edid.c drivers/gpu/drm/radeon/radeon_connectors.c include/drm/drm_crtc.h +1 more+72 -440 replies
13/17DRM/KMS/EDID: Allow for multiple Connectors when specifying 'firmware'-EDID Files.drivers/gpu/drm/drm_edid_load.c+31 -141 reply
14/17DRM/KMS/ast: Include drm_edid.h in file using drm_get_edid().drivers/gpu/drm/ast/ast_mode.c+1 -00 replies
15/17DRM/KMS/gma500: Include drm_edid.h in file using drm_get_edid().drivers/gpu/drm/gma500/cdv_intel_dp.c drivers/gpu/drm/gma500/oaktrail_lvds.c drivers/gpu/drm/gma500/psb_intel_modes.c+3 -00 replies
16/17DRM/KMS/mgag200: Include drm_edid.h in file using drm_get_edid().drivers/gpu/drm/mgag200/mgag200_mode.c+1 -00 replies
17/17DRM/KMS/EDID: Move EDID related Functions to drm_edid.h.include/drm/drm_crtc.h include/drm/drm_edid.h+9 -80 replies

Reviews trailers per patch

1 of 16 patches has a Reviewed-by or Acked-by.

PatchSean Paul
1/17
3/17
4/17
5/17
6/17R-b
7/17
8/17
9/17
10/17
11/17
12/17
13/17
14/17
15/17
16/17
17/17

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/17] DRM/KMS/EDID: Various EDID handling related fixes.

This patchset fixes issues about EDID and EDID Extension block handling:

1. We currently don't return any EDID information if there are issues with reading extension blocks. There are devices however which announce to have EDID extension blocks although these are not readable.
If reading extension blocks fails we should at least return the base block (with a corrected extension blcok flag).
2. There are broken legacy DDC devices around which wrongly announce to have ED extension blocks. Since the segment address is ignored on these devices we will get a base block returned for any uneven block number. Detect this situation and abort reading further blocks.
3. When we read EDID extension blocks but fail to validate them we discard them and correct the EDID block count in the base block. There may however be a block map in the first extesion block which we should also fix. Similarly, don't fail if we cannot allocate enough contiguous memory for all EDID extension blocks: rather than failing completely, it is better to return at least the base block and if possible all extension blocks for which there is memory.
4. EDID 'firmware'-files:
* Treat the, the same way as EDIDs read from DDC channels:
- use the same routines to validate and fix them.
- feed them when reading
* Support different EDID files for different connectors.
5. Consolidate EDID error handling:
Store information about the error status of the last DDC read in the drm_connector structure. This data can be used:
- in the driver to detect certain issues with DDC read out.
- provide a finer control over repeated error logging - instead of disabling EDID error logging entirely if an EDID error has been detected, only disable it for those errors which have been seen also on the previous DDC read cycle.
6. Move EDID-related functions to drm_edid.h
The handling of EDID related DRM functions seemed to be a bit arbitrary:
although drm_edid.h had been created, new functions were often added to drm_crtc.h

Egbert Eich (17):
DRM/KMS/EDID: Mask out Segment Bits when calculating Offset. DRM/KMS/EDID: 0x7e -> EDID_EXTENSION_FLAG_OFFSET DRM/KMS/EDID: Return Base EDID block if reading EEDID Blocks fails. DRM/KMS/EDID: Test EDDC if EDID announces more than one Extension
Block.
DRM/KMS/EDID: Fix up EEDID Map Blocks if Extension block count has
changed.
DRM/exynos: Fix Memory Leak: free EDID blcok returned by

    drm_get_edid().

DRM/KMS/EDID: Move drm_edid_load.o to drm.ko DRM/KMS/EDID: Use Extension Block Fixup Code also for 'firmware'
EDID.
DRM/KMS/EDID: Feed 'firmware' supplied EDID blocks whenever the EDID
is read.
DRM/KMS/EDID: Cache EDID blobs with extensions. DRM/KMS/EDID: Avoid failing on krealloc on EDID blocks. DRM/KMS/EDID: Consolidate EDID Error Handling. DRM/KMS/EDID: Allow for multiple Connectors when specifying
'firmware'-EDID Files.
DRM/KMS/ast: Include drm_edid.h in file using drm_get_edid(). DRM/KMS/gma500: Include drm_edid.h in file using drm_get_edid(). DRM/KMS/mgag200: Include drm_edid.h in file using drm_get_edid(). DRM/KMS/EDID: Move EDID related Functions to drm_edid.h.

 drivers/gpu/drm/Makefile                   |    2 +-
 drivers/gpu/drm/ast/ast_mode.c             |    1 +
 drivers/gpu/drm/drm_crtc.c                 |    1 +
 drivers/gpu/drm/drm_crtc_helper.c          |    6 +-
 drivers/gpu/drm/drm_edid.c                 |  303 ++++++++++++++++++++++++----
 drivers/gpu/drm/drm_edid_load.c            |  115 +++++------
 drivers/gpu/drm/exynos/exynos_hdmi.c       |    1 +
 drivers/gpu/drm/gma500/cdv_intel_dp.c      |    1 +
 drivers/gpu/drm/gma500/oaktrail_lvds.c     |    1 +
 drivers/gpu/drm/gma500/psb_intel_modes.c   |    1 +
 drivers/gpu/drm/mgag200/mgag200_mode.c     |    1 +
 drivers/gpu/drm/radeon/radeon_connectors.c |    2 +-
 include/drm/drm_crtc.h                     |   13 +-
 include/drm/drm_edid.h                     |   24 ++-
 14 files changed, 348 insertions(+), 124 deletions(-)
Signature · 1 line
1.7.7