drm/edid: add a quirk for two LG monitors to get them to work on 10bpc
authorHamza Mahfooz <hamza.mahfooz@amd.com>
Fri, 21 Oct 2022 20:37:34 +0000 (16:37 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:59 +0000 (13:32 +0100)
commitdd76b1c9f6921af9a8d1e09aca3fab57d9f3555f
tree210569a4fff24e114c46cef5fb4bffba4575b6be
parent2b7e54cdda3f5d0b92740860bd680fb4a247bd35
drm/edid: add a quirk for two LG monitors to get them to work on 10bpc

[ Upstream commit aa193f7eff8ff753577351140b8af13b76cdc7c2 ]

The LG 27GP950 and LG 27GN950 have visible display corruption when
trying to use 10bpc modes. So, to fix this, cap their maximum DSC
target bitrate to 15bpp.

Suggested-by: Roman Li <roman.li@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/drm_edid.c
include/drm/drm_connector.h