drm/amdkfd: Remove GWS from process during uninit
authorJoseph Greathouse <Joseph.Greathouse@amd.com>
Wed, 17 Jul 2019 14:47:58 +0000 (09:47 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Jul 2019 18:34:31 +0000 (13:34 -0500)
commit6a5d4877544b9014c70533200ad4a5f9d6e005c5
tree370cf63beb9defc6b5331d2907e92301b5006d32
parent88891430a2c06b6be9b1ed08c095befb17fb4cb2
drm/amdkfd: Remove GWS from process during uninit

If we shut down a process without having destroyed its GWS-using
queues, it is possible that GWS BO will still be in the process
BO list during the gpuvm destruction. This list should be empty
at that time, so we should remove the GWS allocation at the
process uninit point if it is still around.

Signed-off-by: Joseph Greathouse <Joseph.Greathouse@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c