Skip to content

Commit

Permalink
drm/amd/display: Fix Dynamic bpp issue with 8K30 with Navi 1X
Browse files Browse the repository at this point in the history
[ 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 <[email protected]>
Acked-by: Aurabindo Pillai <[email protected]>
Signed-off-by: Bing Guo <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
  • Loading branch information
Bing Guo authored and wulf7 committed Sep 7, 2021
1 parent e593d51 commit b32eebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,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);
}
Expand Down

0 comments on commit b32eebd

Please sign in to comment.