]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit030308fcbd944348e5be079f4c2d53d2bda00d53
tree73e79a167264e8b1e3703de25d1e664ad53fa20b
parent6e2e216fadd80b4280783bb78e543593ebf2cb69
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