6.7/6.8: misc-additions: Add a partial revert fix for amdgpu gamma-related kernel panic

Thanks to Anthony Ruhier

https://gitlab.freedesktop.org/drm/amd/-/issues/3142#note_2317021
https://gitlab.freedesktop.org/drm/amd/-/issues/3142#note_2324729

Following https://github.com/Frogging-Family/linux-tkg/issues/896
This commit is contained in:
Tk-Glitch
2024-03-15 08:33:36 +01:00
parent f57acdf0a2
commit 44ac733f98
2 changed files with 25 additions and 0 deletions

View File

@@ -98,3 +98,15 @@ index f4b210ab061291..837d0dbb28ea08 100644
help
This value can be used to select the number of bits to use to
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_state.c b/drivers/gpu/drm/amd/display/dc/core/dc_state.c
index 180ac47868c2..42bf097b36b7 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_state.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_state.c
@@ -300,7 +300,6 @@ void dc_state_destruct(struct dc_state *state)
state->phantom_plane_count = 0;
state->stream_mask = 0;
- memset(&state->res_ctx, 0, sizeof(state->res_ctx));
memset(&state->pp_display_cfg, 0, sizeof(state->pp_display_cfg));
memset(&state->dcn_bw_vars, 0, sizeof(state->dcn_bw_vars));
state->clk_mgr = NULL;