Skip to content

Commit 67fe574

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]> (cherry picked from commit 2ba8619) Cc: [email protected]
1 parent 7eb287b commit 67fe574

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
@@ -11043,6 +11043,9 @@ static bool should_reset_plane(struct drm_atomic_state *state,
1104311043
state->allow_modeset)
1104411044
return true;
1104511045

11046+
if (amdgpu_in_reset(adev) && state->allow_modeset)
11047+
return true;
11048+
1104611049
/* Exit early if we know that we're adding or removing the plane. */
1104711050
if (old_plane_state->crtc != new_plane_state->crtc)
1104811051
return true;

0 commit comments

Comments
 (0)