drm/amdgpu: free handles after fini the context
authorLeo Liu <leo.liu@amd.com>
Fri, 22 Jul 2016 18:13:11 +0000 (14:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Jul 2016 18:37:05 +0000 (14:37 -0400)
commitcd437e37cb836805604d8b607a28ee6769d800ef
treeb842a802cd65452079bcd22081d74ad997e29c6e
parent2ff2bf1e5cd731e26293e08404f06bc8314480dc
drm/amdgpu: free handles after fini the context

This will make sure all the submissions from different contexts gets
finished, and then we close the session and free up the handles.

This will fix the issue that session clean-up is not get done properly,
when with the command `kill -9'

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c