OSDN Git Service

drm/amdgpu/sriov add amdgpu_amdkfd_pre_reset in gpu reset
authorJack Zhang <Jack.Zhang1@amd.com>
Tue, 7 Apr 2020 05:50:05 +0000 (13:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Apr 2020 14:43:15 +0000 (10:43 -0400)
commitb639c22c98ff0ba140799ddc56f639240014f999
tree3f98a5887bf6153364ea21c4016622a1d44c647d
parentfe9824d15eff7ef38f63eddd1a06648e49286c7b
drm/amdgpu/sriov add amdgpu_amdkfd_pre_reset in gpu reset

[PATCH 2/2]
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.

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_device.c