]> Gentwo Git Trees - linux/.git/commit
drm/amdkfd: Dequeue user queues when process mm released
authorPhilip Yang <Philip.Yang@amd.com>
Wed, 15 Oct 2025 19:17:54 +0000 (15:17 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Oct 2025 13:59:44 +0000 (09:59 -0400)
commit22d9e071e5028815accf26956ed0b9634a4c0b8d
tree9d41e7998aebedf9ddd08194df3732fe717ab7a4
parent7bb02a34c2ba69bbe0329fc3049c795f7ba66b9a
drm/amdkfd: Dequeue user queues when process mm released

Move dequeue user queues and destroy user queues from
kfd_process_wq_release to mmu notifier release callback, to ensure no
system memory access from GPU because the process memory is going to
free from CPU after mmu release notifier callback returns.

Destroy queue releases the svm prange queue_refcount, this also removes
fake flase positive warning message "Freeing queue vital buffer" message
if application crash or killed.

Suggested-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Philip Yang <Philip.Yang@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.c