]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Stop storing failures into adev->dm.cached_state
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 2 Jun 2025 01:44:31 +0000 (20:44 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Aug 2025 16:41:17 +0000 (18:41 +0200)
commit47502a71d345098aed7fb779df562491627cb7f2
tree901a57fcaf2178b62e4a4be3ce1b1a8b28583297
parentfea53981179b90895d21c697666da08d01445eeb
drm/amd/display: Stop storing failures into adev->dm.cached_state

[ Upstream commit 709a37ab9c63297da2194dc36f604537f9d2d417 ]

If drm_atomic_helper_suspend() has failed for any reason, it's stored
in adev->dm.cached_state.  This isn't expected because the resume
(or complete()) sequence will attempt to use the stored state to
resume.

Reviewed-by: Alex Hung <alex.hung@amd.com>
Link: https://lore.kernel.org/r/20250602014432.3538345-3-superm1@kernel.org
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c