drm/amdgpu/vcn: Hold pg_lock before vcn power off

[ Upstream commit 111821e4b5 ]

Acquire vcn_pg_lock before changes to vcn power state
and release it after power off in 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>
Stable-dep-of: 9c0442286f ("drm/amdgpu: Check vcn state before profile switch")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Sathishkumar S 2025-08-05 21:35:10 +05:30 • committed by Greg Kroah-Hartman
commit 374a2b1302