drm/amd/display: Correct DML calculation to align HW formula
authorPaul Hsieh <Paul.Hsieh@amd.com>
Fri, 10 Feb 2023 04:00:16 +0000 (12:00 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Feb 2023 19:30:55 +0000 (14:30 -0500)
commit26a9f53198c955b15161da48cdb51041a38d5325
tree9203bb7454bf89b9baa9f17c924cbcacb9bfc94b
parente68d1e074d5e94b609de01a3ad3287d3d17721f2
drm/amd/display: Correct DML calculation to align HW formula

[Why]
In 2560x1440@240p eDP panel, some use cases will enable MPC
combine with RGB MPO then underflow happened. This case is
not allowed from HW formula. 

[How]
Correct eDP, DP and DP2 output bpp calculation to align HW
formula.

Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Paul Hsieh <Paul.Hsieh@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/dml/dcn31/display_mode_vba_31.c
drivers/gpu/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c