From: Yong Zhao Date: Wed, 7 Aug 2019 21:45:37 +0000 (-0400) Subject: drm/amdkfd: Fill amdgpu_task_info for KFD VMs X-Git-Tag: v5.4-rc1~32^2~9^2~134 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f40c6912d2be1d9721d83b00abe312b2240407e6;p=platform%2Fkernel%2Flinux-rpi.git drm/amdkfd: Fill amdgpu_task_info for KFD VMs The amdgpu_task_info will be used when printing VM page fault for KFD processes. Signed-off-by: Yong Zhao Acked-by: Christian König Reviewed-by: Harish Kasiviswanathan Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c b/drivers/gpu/drm/amd/amdkfd/kfd_process.c index 8f1076c..2ec4274 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_process.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_process.c @@ -801,6 +801,8 @@ int kfd_process_device_init_vm(struct kfd_process_device *pdd, return ret; } + amdgpu_vm_set_task_info(pdd->vm); + ret = kfd_process_device_reserve_ib_mem(pdd); if (ret) goto err_reserve_ib_mem;