drm/amd/display: Fix timing bandwidth calculation for HDMI
authorLeo (Hanghong) Ma <hanghong.ma@amd.com>
Thu, 4 Jan 2024 18:29:32 +0000 (13:29 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Jan 2024 22:13:26 +0000 (17:13 -0500)
commitc597479f27b6b96c61c70cb25b5e1a4f9ea4c7f7
treec5a8cb3770497f943e44be173905b1d8f607a392
parentaa708057c410175879dcdcdc8bdccd9b1f06e413
drm/amd/display: Fix timing bandwidth calculation for HDMI

[Why && How]
The current bandwidth calculation for timing doesn't account for
certain HDMI modes overhead which leads to DSC can't be enabled.
Add support to calculate the actual bandwidth for these HDMI modes.

Reviewed-by: Chris Park <chris.park@amd.com>
Acked-by: Roman Li <roman.li@amd.com>
Signed-off-by: Leo (Hanghong) Ma <hanghong.ma@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/dc_hw_types.h
drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c