summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorXiaogang Chen <xiaogang.chen@amd.com>2026-04-24 21:47:01 +0300
committerAlex Deucher <alexander.deucher@amd.com>2026-05-05 17:18:23 +0300
commit81665e35f143d93adef654f3be1360def9196e72 (patch)
treec955da2db3230ff061d844a04d8c43fccabee2a7 /include/uapi
parente6c2e6c2e1fa066968a16aca1cb66cd1bdde7741 (diff)
downloadlinux-81665e35f143d93adef654f3be1360def9196e72.tar.xz
drm/amdkfd: Check if there are kfd porcesses using adev by kfd_processes_count
During gpu hot-unplug need check if there are kfd porcesses still using the being removed gpu before clean resources of the device. Current driver checks if kfd_processes_table is empty. kfd processes are not terminated after removed from kfd_processes_table immediately. They are still alive and may access the device until kfd_process_wq work queue got ran. Check kfd->kfd_processes_count value that is updated after kfd process got uninitialized when its ref becomes zero. Fixes: 6cca686dfce7 ("drm/amdkfd: kfd driver supports hot unplug/replug amdgpu devices") Signed-off-by: Xiaogang Chen <xiaogang.chen@amd.com> Reviewed-by: Felix Kuehling <felix.kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit d12d05c4bc4c15585130af43e897923ff292df7b)
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions