]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: check entity lock is held in amdgpu_ttm_job_submit
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 18 Nov 2025 14:09:14 +0000 (15:09 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Feb 2026 19:16:30 +0000 (14:16 -0500)
commitf633edd26562104bbc206858aea38d461abcdc9f
treec63fbc8e3a04af927e0b5bc272a35de84bdd5896
parent30f2daedf4d8adfa331b05fcce06746e643e1f18
drm/amdgpu: check entity lock is held in amdgpu_ttm_job_submit

drm_sched_job_arm and drm_sched_entity_push_job must be called
under the same lock to guarantee the order of execution.

This commit adds a check in amdgpu_ttm_job_submit and fix the
places where the lock was missing.

Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c