]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:10:52 +0000 (15:10 +0200)
commitb95955dc8b6df293cc8c8c5679537425f6d204f3
treef41e586c49ed70bfc6fa3dd08a9bf2c88cbf990d
parent26819a5b69b0921a03b51c68325b26872b7aa8a9
drm/radeon: properly handle vbios fake edid sizing

[ Upstream commit 17c6baff3d5f65c8da164137a58742541a060b2f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/radeon/radeon_atombios.c