]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6fd968da018a6810ce4917b2ebd5e328f3ae36a1
tree370cf63beb9defc6b5331d2907e92301b5006d32
parent7bfff9d5000d66383be6ef595f8a705b8b31e845
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