drm/amd/display: Add stream overhead in BW calculations for 128b/132b
authorGeorge Shen <george.shen@amd.com>
Tue, 11 Apr 2023 00:00:46 +0000 (20:00 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Jul 2023 15:15:45 +0000 (11:15 -0400)
commit974764180838516f80a13257da67a1ec6afb87d4
tree73b6dfb19a857bdedb7081c45d7e96f82a16c58d
parent3999edf8ba0a2f404362269335030d5c35ca27b4
drm/amd/display: Add stream overhead in BW calculations for 128b/132b

[Why]
Current BW calculations do not account for the additional padding added
for uncompressed pixel-to-symbol packing.

This results in X.Y being too low for 128b/132b SST streams in certain
scenarios. If X.Y is too low, end user can observe image corruption.

[How]
Add function to calculate stream overhead to timing BW calculation for
128b/132b SST cases.

Reviewed-by: Wenjing Liu <wenjing.liu@amd.com>
Acked-by: Alan Liu <haoping.liu@amd.com>
Signed-off-by: George Shen <george.shen@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.h
drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c