Skip to content

Commit 2ba8619

Browse files
Roman Lialexdeucher
authored andcommitted
drm/amd/display: Force full update in gpu reset
[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 <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Signed-off-by: Roman Li <[email protected]> Signed-off-by: Zaeem Mohamed <[email protected]> Tested-by: Mark Broadworth <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent d91bc90 commit 2ba8619

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11131,6 +11131,9 @@ static bool should_reset_plane(struct drm_atomic_state *state,
1113111131
state->allow_modeset)
1113211132
return true;
1113311133

11134+
if (amdgpu_in_reset(adev) && state->allow_modeset)
11135+
return true;
11136+
1113411137
/* Exit early if we know that we're adding or removing the plane. */
1113511138
if (old_plane_state->crtc != new_plane_state->crtc)
1113611139
return true;

0 commit comments

Comments
 (0)