]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Fix CRIU restore op due to doorbell offset
authorRajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Wed, 7 Sep 2022 18:13:54 +0000 (14:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Sep 2022 16:54:23 +0000 (12:54 -0400)
commitea540a42fbd0f1271b3459030627daad8779f9b1
treeb2d4f3a9a0578db0c910b0dd94bbde8f738cce86
parent8d6d14130c37237b2e92ae95a4b2fe1c0e497a21
drm/amdkfd: Fix CRIU restore op due to doorbell offset

Recently introduced change to allocate doorbells only when the first
queue is created or mapped for CPU / GPU access, did not consider
Checkpoint Restore scenario completely. This fix allows the CRIU restore
operation by extending the doorbell optimization to CRIU restore
scenario.

Fixes: 528d40254064 ("drm/amdkfd: Allocate doorbells only when needed")
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c