summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorLinkai Gong <gonglinkai@kylinos.cn>2026-08-19 13:47:42 +0800
committerAlex Deucher <alexander.deucher@amd.com>2026-08-25 18:24:30 -0400
commit92a9eebd2a1f892fe482154d83f9f1626bc73d3b (patch)
tree29d34692e69827d330534406f62a5c77a5da1f1e /scripts/const_structs.checkpatch
parent84298acf1c8be2b1b03c0339bf1eb63102c51728 (diff)
downloadlinux-92a9eebd2a1f892fe482154d83f9f1626bc73d3b.tar.gz
linux-92a9eebd2a1f892fe482154d83f9f1626bc73d3b.zip
drm/amd/display: fix dc_lock leak on GPU reset error paths
On GPU reset, dm_suspend() takes dc_lock and leaves it for dm_resume() to drop. If amdgpu_dm_commit_zero_streams() or dm_dmub_hw_init() fails, the function returns with the lock still held. The matching resume path is then skipped, so every later dc_lock take hangs. Release the cached DC state and unlock before returning the error. Fixes: 3cf7a0bc87f0 ("drm/amd/display: Catch failures for amdgpu_dm_commit_zero_streams()") Fixes: 2b6943df5413 ("drm/amd/display: Pass up errors for reset GPU that fails to init HW") Cc: stable@vger.kernel.org Signed-off-by: Linkai Gong <gonglinkai@kylinos.cn> Reviewed-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions