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-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f40c6912d2be1d9721d83b00abe312b2240407e6;p=openwrt%2Fstaging%2Fblogic.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 8f1076c0c88a..2ec42749f971 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;