]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Force full update in gpu reset
authorRoman Li <Roman.Li@amd.com>
Wed, 26 Mar 2025 14:33:51 +0000 (10:33 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Apr 2025 15:27:56 +0000 (11:27 -0400)
[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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 371c3edbb02e8893caa1f21c588d70c3b92be680..e700b1edac2c9c2f76481412f3a7c736c18ccf92 100644 (file)
@@ -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;