]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: properly handle vbios fake edid sizing
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Jul 2024 17:23:56 +0000 (13:23 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:10:51 +0000 (15:10 +0200)
commit92734d5e40009b3d9942418d7f98708f3a70d271
tree60fe63fced7b16527a30bed56a0a8cc643201f7d
parenta1f0111fcf18bd3e6f210ffa2e9bf5c08eba1769
drm/amdgpu: properly handle vbios fake edid sizing

[ Upstream commit 8155566a26b8d6c1dd914f06a0c652e4e2f2adf1 ]

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: d38ceaf99ed0 ("drm/amdgpu: add core driver (v4)")
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c