drm/amd/display: Use DCN30 watermark calc for DCN301
authorZhan Liu <zhan.liu@amd.com>
Fri, 13 Aug 2021 15:31:04 +0000 (08:31 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Aug 2021 22:22:25 +0000 (18:22 -0400)
commit65c7e943ea59e0b1c42fa29d27ba3f5ea234b57d
treee27a8655175ac53afb59a2414f5a72a701d2feb4
parent424f2b2e263e851cc4a470faaaeb46b70d703876
drm/amd/display: Use DCN30 watermark calc for DCN301

[why]
dcn301_calculate_wm_and_dl() causes flickering when external monitor is
connected.

This issue has been fixed before by commit 0e4c0ae59d7e
("drm/amdgpu/display: drop dcn301_calculate_wm_and_dl for now"), however
part of the fix was gone after commit 2cbcb78c9ee5 ("Merge tag 'amd-drm-next-5.13-2021-03-23' of https://gitlab.freedesktop.org/agd5f/linux into drm-next").

[how]
Use dcn30_calculate_wm_and_dlg() instead as in the original fix.

Fixes: 2cbcb78c9ee5 ("Merge tag 'amd-drm-next-5.13-2021-03-23' of https://gitlab.freedesktop.org/agd5f/linux into drm-next")

Signed-off-by: Nikola Cornij <nikola.cornij@amd.com>
Reviewed-by: Zhan Liu <zhan.liu@amd.com>
Tested-by: Zhan Liu <zhan.liu@amd.com>
Tested-by: Oliver Logush <oliver.logush@amd.com>
Signed-off-by: Zhan Liu <zhan.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c