]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu/jpeg: Hold pg_lock before jpeg poweroff
authorSathishkumar S <sathishkumar.sundararaju@amd.com>
Tue, 5 Aug 2025 15:58:25 +0000 (21:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Nov 2025 20:36:57 +0000 (15:36 -0500)
commit5edea8416e497dae5a1b093d33066f20ca436baf
tree6a2046c646eae620718fa528124ebec23c483c75
parentbfe6e7a2a84b17f00bfd47e4d025c9135800db6c
drm/amdgpu/jpeg: Hold pg_lock before jpeg poweroff

[ Upstream commit 0e7581eda8c76d1ca4cf519631a4d4eb9f82b94c ]

Acquire jpeg_pg_lock before changes to jpeg power state
and release it after power off from idle work handler.

Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c