FAILED: patch "[PATCH] drm/amd/display: Clear OPTC mem select on disable" failed to apply to 6.7-stable tree
[email protected]
maintainerThe patch below does not apply to the 6.7-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]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.7.y
git checkout FETCH_HEAD
git cherry-pick -x 3ba2a0bfd8cf94eb225e1c60dff16e5c35bde1da
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2024012741-tulip-enhance-9750@gregkh' --subject-prefix 'PATCH 6.7.y' HEAD^..
Possible dependencies:
3ba2a0bfd8cf ("drm/amd/display: Clear OPTC mem select on disable") 7bdbfb4e36e3 ("drm/amd/display: Disconnect phantom pipe OPP from OPTC being disabled") e7b2b108cdea ("drm/amd/display: Fix hang/underflow when transitioning to ODM4:1")
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 3ba2a0bfd8cf94eb225e1c60dff16e5c35bde1da 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.
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 */