]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: add lock in kfd_process_dequeue_from_device
authorYunxiang Li <Yunxiang.Li@amd.com>
Mon, 3 Jun 2024 16:29:30 +0000 (12:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 20:17:11 +0000 (16:17 -0400)
commitd225960c2330e102370815367b877baaf8bb8b5d
treed6b86097111e4eb8fc71dde3d2753b82013bf2de
parentbf349b036d57950e9822b1d11ba12b8e28fa42d1
drm/amdgpu: add lock in kfd_process_dequeue_from_device

We need to take the reset domain lock before talking to MES. While in
this case we can take the lock inside the mes helper. We can't do so for
most other mes helpers since they are used during reset. So for
consistency sake we add the lock here.

Signed-off-by: Yunxiang Li <Yunxiang.Li@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c