OSDN Git Service

drm/amdgpu/sriov add amdgpu_amdkfd_pre_reset in gpu reset
authorJack Zhang <Jack.Zhang1@amd.com>
Thu, 2 Apr 2020 07:10:24 +0000 (15:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Apr 2020 14:43:14 +0000 (10:43 -0400)
commit04bef61e5da18c2b301c629a209ccdba4d4c6fbb
treebbc3e1dc63a4c2cb7683b95f344cfbc749917819
parent50dc581a8f43f22f72af613397c6a01460d7559d
drm/amdgpu/sriov add amdgpu_amdkfd_pre_reset in gpu reset

kfd_pre_reset will free mem_objs allocated by kfd_gtt_sa_allocate

Without this change, sriov tdr code path will never free those allocated
memories and get memory leak.

v2:add a bugfix for kiq ring test fail

Signed-off-by: Jack Zhang <Jack.Zhang1@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c