diff options
author | Bing Guo <bing.guo@amd.com> | 2021-07-19 18:24:06 -0400 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2021-08-26 08:35:39 -0400 |
commit | dcc8c5fb8d8595f5061c7b000ca1d16449a5e865 (patch) | |
tree | 6b051936c7f8f5aba40740aed4ea17aae1e0d7b7 | |
parent | 8849a8c7058e697d7fe5864b84a1bd58c58963bd (diff) | |
download | kernel_replicant_linux-dcc8c5fb8d8595f5061c7b000ca1d16449a5e865.tar.gz kernel_replicant_linux-dcc8c5fb8d8595f5061c7b000ca1d16449a5e865.tar.bz2 kernel_replicant_linux-dcc8c5fb8d8595f5061c7b000ca1d16449a5e865.zip |
drm/amd/display: Fix Dynamic bpp issue with 8K30 with Navi 1X
[ Upstream commit 06050a0f01dbac2ca33145ef19a72041206ea983 ]
Why:
In DCN2x, HW doesn't automatically divide MASTER_UPDATE_LOCK_DB_X
by the number of pipes ODM Combined.
How:
Set MASTER_UPDATE_LOCK_DB_X to the value that is adjusted by the
number of pipes ODM Combined.
Reviewed-by: Martin Leung <martin.leung@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Bing Guo <bing.guo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c index d8b18c515d06..e3cfb442a062 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c +++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c @@ -357,7 +357,7 @@ void optc2_lock_doublebuffer_enable(struct timing_generator *optc) REG_UPDATE_2(OTG_GLOBAL_CONTROL1, MASTER_UPDATE_LOCK_DB_X, - h_blank_start - 200 - 1, + (h_blank_start - 200 - 1) / optc1->opp_count, MASTER_UPDATE_LOCK_DB_Y, v_blank_start - 1); } |