]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6f49a133740dd8e345cf2e2660e15db3d6fae639
treee27a8655175ac53afb59a2414f5a72a701d2feb4
parent35aa1a5b3c2c896150c3b5f31c8c3e2837f840e9
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 c48d0e0b3351
("drm/amdgpu/display: drop dcn301_calculate_wm_and_dl for now"), however
part of the fix was gone after commit 788aaca45814 ("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: 788aaca45814 ("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