FAILED: patch "[PATCH] drm/amd/display: Adjust reg field for DSC wait for disconnect" failed to apply to 5.15-stable tree
[email protected]
maintainerThe patch below does not apply to the 5.15-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-5.15.y
git checkout FETCH_HEAD
git cherry-pick -x 569d7db70e5dcf13fbf072f10e9096577ac1e565
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2024081211-whacking-visa-8ff1@gregkh' --subject-prefix 'PATCH 5.15.y' HEAD^..
Possible dependencies:
569d7db70e5d ("drm/amd/display: Adjust reg field for DSC wait for disconnect") 176278d8bff2 ("drm/amd/display: reset DSC clock in post unlock update") 0127f0445f7c ("drm/amd/display: Refactor input mode programming for DIG FIFO") e6a901a00822 ("drm/amd/display: use even ODM slice width for two pixels per container") 532a0d2ad292 ("drm/amd/display: Revert "dc: Keep VBios pixel rate div setting util next mode set"") 47745acc5e8d ("drm/amd/display: Add trigger FIFO resync path for DCN35") 4d4d3ff16db2 ("drm/amd/display: Keep VBios pixel rate div setting util next mode set") 70839da63605 ("drm/amd/display: Add new DCN401 sources")9712b64d6f3f ("drm/amd/display: Remove MPC rate control logic from DCN30 and above") eed4edda910f ("drm/amd/display: Support long vblank feature")2d7f3d1a5866 ("drm/amd/display: Implement wait_for_odm_update_pending_complete") c7b33856139d ("drm/amd/display: Drop some unnecessary guards")6a068e64fb25 ("drm/amd/display: Update phantom pipe enable / disable sequence") db8391479f44 ("drm/amd/display: correct static screen event mask")4ba9ca63e696 ("drm/amd/display: Fix dcn35 8k30 Underflow/Corruption Issue") 9af68235ad3d ("drm/amd/display: Fix static screen event mask definition change") f6154d8babbb ("drm/amd/display: Refactor INIT into component folder")a71e1310a43f ("drm/amd/display: Add more mechanisms for tests")85fce153995e ("drm/amd/display: change static screen wait frame_count for ips") 09a4ec5da92c ("drm/amd/display: Refactor dc_state interface")
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 569d7db70e5dcf13fbf072f10e9096577ac1e565 Mon Sep 17 00:00:00 2001
From: Ryan Seto <[email protected]>
Date: Fri, 14 Jun 2024 14:56:15 -0400
Subject: [PATCH] drm/amd/display: Adjust reg field for DSC wait for disconnect
[WHY]
DSC was waiting for the wrong field to disconnect cleanly.
[HOW]
Changed field the DSC disconnect was waiting on.
drivers/gpu/drm/amd/display/dc/dsc/dcn20/dcn20_dsc.h +3 -1
@@ -454,7 +454,9 @@type DSCCIF_UPDATE_TAKEN_ACK ; \type DSCRM_DSC_FORWARD_EN ; \type DSCRM_DSC_OPP_PIPE_SOURCE ; \ - type DSCRM_DSC_DOUBLE_BUFFER_REG_UPDATE_PENDING +type DSCRM_DSC_DOUBLE_BUFFER_REG_UPDATE_PENDING ; \ + type DSCRM_DSC_FORWARD_EN_STATUS +struct dcn20_dsc_registers {uint32_t DSC_TOP_CONTROL;
drivers/gpu/drm/amd/display/dc/dsc/dcn401/dcn401_dsc.c +1 -1
@@ -208,7 +208,7 @@ static void dsc401_wait_disconnect_pending_clear(struct display_stream_compresso {struct dcn401_dsc *dsc401 =TO_DCN401_DSC (dsc); -REG_WAIT (DSCRM_DSC_FORWARD_CONFIG ,DSCRM_DSC_DOUBLE_BUFFER_REG_UPDATE_PENDING ,0 ,2 ,50000 ); +REG_WAIT (DSCRM_DSC_FORWARD_CONFIG ,DSCRM_DSC_FORWARD_EN_STATUS ,0 ,2 ,50000 ); }static void dsc401_disconnect (struct display_stream_compressor *dsc)
drivers/gpu/drm/amd/display/dc/dsc/dcn401/dcn401_dsc.h +2 -1
@@ -196,7 +196,8 @@DSC2_SF (DSCCIF0 ,DSCCIF_CONFIG0__BITS_PER_COMPONENT , mask_sh), \DSC_SF (DSCCIF0_DSCCIF_CONFIG0 ,DOUBLE_BUFFER_REG_UPDATE_PENDING , mask_sh), \DSC_SF (DSCRM0_DSCRM_DSC_FORWARD_CONFIG ,DSCRM_DSC_FORWARD_EN , mask_sh), \ - DSC_SF(DSCRM0_DSCRM_DSC_FORWARD_CONFIG, DSCRM_DSC_OPP_PIPE_SOURCE, mask_sh) +DSC_SF (DSCRM0_DSCRM_DSC_FORWARD_CONFIG ,DSCRM_DSC_OPP_PIPE_SOURCE , mask_sh), \ + DSC_SF(DSCRM0_DSCRM_DSC_FORWARD_CONFIG, DSCRM_DSC_FORWARD_EN_STATUS, mask_sh)struct dcn401_dsc_registers {uint32_t DSC_TOP_CONTROL;