drm/amd/display: Fix DML2 watermark calculation
authorOvidiu Bunea <ovidiu.bunea@amd.com>
Tue, 19 Dec 2023 02:40:45 +0000 (21:40 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jan 2024 21:31:52 +0000 (16:31 -0500)
commitd3579f5df0536c2f0fabaa3ea80bb2d179884195
tree3f452d97425bda8b9e01bf5f71fa360c0cf6adeb
parent3ba2a0bfd8cf94eb225e1c60dff16e5c35bde1da
drm/amd/display: Fix DML2 watermark calculation

[Why]
core_mode_programming in DML2 should output watermark calculations
to locals, but it incorrectly uses mode_lib

[How]
update code to match HW DML2

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Ovidiu Bunea <ovidiu.bunea@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.c