From de41ecb358b038e21be8bafed41e3259aa587ad8 Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 27 Aug 2021 02:43:55 +0000 Subject: [PATCH] drm/amd/display: Fix Dynamic bpp issue with 8K30 with Navi 1X From Bing Guo dcc8c5fb8d8595f5061c7b000ca1d16449a5e865 in linux 5.10.y/5.10.61 06050a0f01dbac2ca33145ef19a72041206ea983 in mainline linux --- sys/dev/pci/drm/amd/display/dc/dcn20/dcn20_optc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/amd/display/dc/dcn20/dcn20_optc.c b/sys/dev/pci/drm/amd/display/dc/dcn20/dcn20_optc.c index d8b18c515d0..e3cfb442a06 100644 --- a/sys/dev/pci/drm/amd/display/dc/dcn20/dcn20_optc.c +++ b/sys/dev/pci/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); } -- 2.20.1