drm/amdkfd: Fix checkpoint-restore on multi-xcc
authorDavid Yat Sin <David.YatSin@amd.com>
Wed, 16 Jul 2025 22:04:28 +0000 (22:04 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Aug 2025 19:38:49 +0000 (15:38 -0400)
commitf6c0f3d24478a0792e50a64c2eba9f34d65519f2
treeef3152a04e6f4f39405355fb0a42b7f03d3d1704
parent796ff8a7e01bd18738d3bb4111f9d6f963145d29
drm/amdkfd: Fix checkpoint-restore on multi-xcc

GPUs with multi-xcc have multiple MQDs per queue. This patch saves and
restores all the MQDs within the partition.

Signed-off-by: David Yat Sin <David.YatSin@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit a578f2a58c3ab38f0643b1b6e7534af860233cb1)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c