drm/amdkfd: Add per-process IDR for buffer handles
authorFelix Kuehling <Felix.Kuehling@amd.com>
Thu, 15 Mar 2018 21:27:48 +0000 (17:27 -0400)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 15 Mar 2018 21:27:48 +0000 (17:27 -0400)
commit52b29d73340da6cbb10ba42b0a28e7fb795afe9c
treeba1d240c9bf1591c098c72fa8c327a7ba5f944eb
parentd01994c24cb28b6f200138d98cbfc17b6bd967c5
drm/amdkfd: Add per-process IDR for buffer handles

Also used for cleaning up on process termination.

v2: Refactored cleanup on process termination

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_process.c