Commit 67fe5746 authored by Roman Li's avatar Roman Li Committed by Alex Deucher
Browse files

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: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
Reviewed-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Signed-off-by: default avatarRoman Li <Roman.Li@amd.com>
Signed-off-by: default avatarZaeem Mohamed <zaeem.mohamed@amd.com>
Tested-by: default avatarMark Broadworth <mark.broadworth@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 2ba8619b)
Cc: stable@vger.kernel.org
parent 7eb287be
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -11043,6 +11043,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;