]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdkfd: Properly acquire queue buffers in CRIU restore
authorDavid Francis <David.Francis@amd.com>
Thu, 4 Jun 2026 19:04:03 +0000 (15:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Jun 2026 22:08:14 +0000 (18:08 -0400)
commit20a5e7ffdfecddc34c60a6b4483f42acf3d8731d
treecff6e85cba2a4d514dc24e77bce8ff7b200c556b
parent76589bcc73f477ef2b3b90e4fae6a7a4dfd925af
drm/amdkfd: Properly acquire queue buffers in CRIU restore

When kfd_queue_acquire_buffers() was split off from
set_queue_properties_from_user(), set_queue_properties_from_criu()
was missed. Thus, set_queue_properties_from_criu() is not
filling out the buffer fields of queue_properties, which
can come up when subsequent code expects them to be non-null.

Add the proper call to kfd_queue_acquire_buffers(), and also
use the right cast types in set_queue_properties_from_criu()
(which were missed at the same time)

Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Kent Russell <kent.russell@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 88ed96abbbe27b70193544fbc1ee06448c274714)
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c