]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/sriov:fix page fault issue of driver unload
authorMonk Liu <Monk.Liu@amd.com>
Fri, 15 Sep 2017 07:34:52 +0000 (15:34 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 19:14:11 +0000 (15:14 -0400)
commit2eeab5a8af32eaacc135909af9e46b7e4dec84ce
tree73e79a167264e8b1e3703de25d1e664ad53fa20b
parentc82cbe78cb22fcb0562754e97c5b7a3dafeee6ed
drm/amdgpu/sriov:fix page fault issue of driver unload

bo_free on csa is too late to put in amdgpu_fini because that
time ttm is already finished,
Move it earlier to avoid the page fault.

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Signed-off-by: Horace Chen <horace.chen@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_device.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c