drm/amd/display: Force link_rate as LINK_RATE_RBR2 for 2018 15" Apple Retina panels
authorAun-Ali Zaidi <admin@kodeit.net>
Sat, 29 Jan 2022 05:49:55 +0000 (05:49 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Feb 2022 23:35:00 +0000 (18:35 -0500)
commit30fbce374745a9c6af93c775a5ac49a97f822fda
treef4e2596203e5d3a10bba8374eda4f7bb11b7d260
parent49a6ebb95d04bdaa5d57313a380c44249cf02100
drm/amd/display: Force link_rate as LINK_RATE_RBR2 for 2018 15" Apple Retina panels

The eDP link rate reported by the DP_MAX_LINK_RATE dpcd register (0xa) is
contradictory to the highest rate supported reported by
EDID (0xc = LINK_RATE_RBR2). The effects of this compounded with commit
'4a8ca46bae8a ("drm/amd/display: Default max bpc to 16 for eDP")' results
in no display modes being found and a dark panel.

For now, simply force the maximum supported link rate for the eDP attached
2018 15" Apple Retina panels.

Additionally, we must also check the firmware revision since the device ID
reported by the DPCD is identical to that of the more capable 16,1,
incorrectly quirking it. We also use said firmware check to quirk the
refreshed 15,1 models with Vega graphics as they use a slightly newer
firmware version.

Tested-by: Aun-Ali Zaidi <admin@kodeit.net>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Aun-Ali Zaidi <admin@kodeit.net>
Signed-off-by: Aditya Garg <gargaditya08@live.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c