]> www.infradead.org Git - users/hch/configfs.git/commit
drm/radeon: properly handle vbios fake edid sizing
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Jul 2024 17:31:58 +0000 (13:31 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Jul 2024 21:41:58 +0000 (17:41 -0400)
commit17c6baff3d5f65c8da164137a58742541a060b2f
treed9d938ddfec95c544148e7c536a2a1357d0c54fd
parent8155566a26b8d6c1dd914f06a0c652e4e2f2adf1
drm/radeon: properly handle vbios fake edid sizing

The comment in the vbios structure says:
// = 128 means EDID length is 128 bytes, otherwise the EDID length = ucFakeEDIDLength*128

This fake edid struct has not been used in a long time, so I'm
not sure if there were actually any boards out there with a non-128 byte
EDID, but align the code with the comment.

Reviewed-by: Thomas Weißschuh <linux@weissschuh.net>
Reported-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lists.freedesktop.org/archives/amd-gfx/2024-June/109964.html
Fixes: c324acd5032f ("drm/radeon/kms: parse the extended LCD info block")
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_atombios.c