Skip to content

Commit

Permalink
drm/amd/display: Force full update in gpu reset
Browse files Browse the repository at this point in the history
[Why]
While system undergoing gpu reset always do full update
to sync the dc state before and after reset.

[How]
Return true in should_reset_plane() if gpu reset detected

Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Roman Li <Roman.Li@amd.com>
Signed-off-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Tested-by: Mark Broadworth <mark.broadworth@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Roman Li authored and Alex Deucher committed Apr 21, 2025
1 parent d91bc90 commit 2ba8619
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -11131,6 +11131,9 @@ static bool should_reset_plane(struct drm_atomic_state *state,
state->allow_modeset)
return true;

if (amdgpu_in_reset(adev) && state->allow_modeset)
return true;

/* Exit early if we know that we're adding or removing the plane. */
if (old_plane_state->crtc != new_plane_state->crtc)
return true;
Expand Down

0 comments on commit 2ba8619

Please sign in to comment.