drm/amd/display: Catch errors from drm_atomic_helper_suspend()
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 6 Oct 2023 18:50:24 +0000 (13:50 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Oct 2023 15:01:16 +0000 (11:01 -0400)
commitf7fbf79fb5682db0865754765f10584245d291e8
treeec917167699a9a79e20cdc27153b852456a14e8e
parentdb9988906535aad9ab64f7e78ab7d52c0d0d2781
drm/amd/display: Catch errors from drm_atomic_helper_suspend()

drm_atomic_helper_suspend() can return PTR_ERR(), in which case the
error gets stored into `dm->cached_state`.  This can cause failures
during resume.  Catch the error during suspend and fail the suspend
instead.

Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2362
Acked-by: Christian König <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c