FAILED: Patch "drm/amd/display: Clear OPTC mem select on disable" failed to apply to 6.8-stable tree
Sasha Levin
maintainerThe patch below does not apply to the 6.8-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From b4e05bb1dec53fe28c3c88425aded824498666e5 Mon Sep 17 00:00:00 2001
From: Ilya Bakoulin <[email protected]>
Date: Wed, 3 Jan 2024 09:42:04 -0500
Subject: [PATCH] drm/amd/display: Clear OPTC mem select on disable
[Why]
Not clearing the memory select bits prior to OPTC disable can cause DSC corruption issues when attempting to reuse a memory instance for another OPTC that enables ODM.
[How]
Clear the memory select bits prior to disabling an OPTC.
Cc Mario Limonciello <[email protected]>
Cc Alex Deucher <[email protected]>
Reviewed-by Charlene Liu <[email protected]>
Acked-by Alex Hung <[email protected]>
Signed-off-by Ilya Bakoulin <[email protected]>
Tested-by Daniel Wheeler <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/display/dc/optc/dcn32/dcn32_optc.c | 3 +++ drivers/gpu/drm/amd/display/dc/optc/dcn35/dcn35_optc.c | 3 +++ 2 files changed, 6 insertions(+)
drivers/gpu/drm/amd/display/dc/optc/dcn32/dcn32_optc.c +3 -0
@@ -173,6 +173,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 */
drivers/gpu/drm/amd/display/dc/optc/dcn35/dcn35_optc.c +3 -0
@@ -145,6 +145,9 @@ static bool optc35_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 */
Signature · 1 line
2.43.0