Files
android_kernel_xiaomi_sm8450/drivers/gpu/drm/amd/amdgpu
Monk Liu f59548c882 drm/amdgpu:fix NULL pointer access during drv remove
NULL pointer is because original logic will step into
set_pde_pte() even after the gart.ptr is freed due to
there are twice gart_unbind() on all gart area.

also, there are other minor fixes:
1,since gart_init only create dummy page, the corresponding
gart_fini shouldn't do more like unbinding all GART, this is
unnecessary because in driver fini stage all GART unbinding
had already been done during each IP's SW_FINI (GMC's
SW_FINI is the last one called), so remove the step
for the GART unbinding in gart_fini().

2,gart_fini() is already invoked during each GMC IP's gart_fini
routine,e.g. gmc_vx_0_gart_fini(), so no need to manually
call it during ttm_fini().

3,amdgpu_gem_force_release() should be put ahead of
amdgpu_vm_manager_fini()

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2017-12-06 12:47:50 -05:00
..
2017-12-04 16:33:12 -05:00
2017-07-14 11:06:10 -04:00
2015-06-03 21:03:15 -04:00
2017-10-20 13:28:44 -04:00
2015-06-03 21:03:15 -04:00
2017-09-28 16:03:30 -04:00
2017-09-28 16:03:30 -04:00
2017-09-26 15:14:22 -04:00
2017-09-26 17:01:32 -04:00
2015-06-03 21:03:17 -04:00
2017-09-26 15:14:22 -04:00
2016-08-31 15:21:09 -04:00
2017-05-24 17:41:17 -04:00
2017-12-06 12:47:22 -05:00
2017-12-06 12:47:22 -05:00
2017-12-06 12:47:22 -05:00
2017-12-06 12:47:22 -05:00