summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-04-04 08:13:22 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-04-04 08:13:22 +0000
commit0300608c9bcea59aea2e253c62a08d12ae2a1aad (patch)
tree3fc110599a77f76d158577adca965c9f31bb10a7
parentb875cc84224e7937e9998942bcee757bb7df8c0e (diff)
drm/amd/display: Clear OPTC mem select on disable
From Ilya Bakoulin 2ceddecdd0ef6fe7cdb31ec14ff2e26ed938fa4b in linux-6.6.y/6.6.24 b4e05bb1dec53fe28c3c88425aded824498666e5 in mainline linux
-rw-r--r--sys/dev/pci/drm/amd/display/dc/dcn32/dcn32_optc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/display/dc/dcn32/dcn32_optc.c b/sys/dev/pci/drm/amd/display/dc/dcn32/dcn32_optc.c
index 93592e8051f..e817fa4efee 100644
--- a/sys/dev/pci/drm/amd/display/dc/dcn32/dcn32_optc.c
+++ b/sys/dev/pci/drm/amd/display/dc/dcn32/dcn32_optc.c
@@ -149,6 +149,9 @@ static bool optc32_disable_crtc(struct timing_generator *optc)
OPTC_SEG3_SRC_SEL, 0xf,
OPTC_NUM_OF_INPUT_SEGMENT, 0);
+ REG_UPDATE(OPTC_MEMORY_CONFIG,
+ OPTC_MEM_SEL, 0);
+
/* disable otg request until end of the first line
* in the vertical blank region
*/