drm/amd/display: Set default bits per channel
authorJing Zhou <Jing.Zhou@amd.com>
Mon, 16 Nov 2020 10:11:08 +0000 (18:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Dec 2020 04:03:52 +0000 (23:03 -0500)
commit5c8a6c71d72021c0d62d8904997495c93b962eec
treedbbc93f722545f9ee12e2e207ee3334ec20b3e44
parent92f1fa0d67a88d5c3992f1ddd7bab30a42f43eb8
drm/amd/display: Set default bits per channel

[Why]
Bump into calcReducedBlankingTiming because of mode query failed.
In this function,
timing.displayColorDepth == DISPLAY_COLOR_DEPTH_UNDEFINED.
Then req_bw == 0 because of bits_per_channel == 0.
So decide edp link settings, use default RBRx1 for special timing.

[How]
Set default bits_per_channel is 8.

Signed-off-by: Jing Zhou <Jing.Zhou@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Eryk Brol <eryk.brol@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c