Skip to contentSkip to conversation

drm/amdkfd: Fill amdgpu_task_info for KFD VMs

PATCH In review Zhao, Yong 3 participants 3 messages Aug 13, 2019 – Aug 14, 2019 2 messages not in the archive

Subsystems (3)
lore
Share & tools
lore

Zhao, Yong

author
#0 lore raw

PATCH 1/1 drm/amdkfd: Fill amdgpu_task_info for KFD VMs

The amdgpu_task_info will be used when printing VM page fault for KFD processes.

Change-Id Ifd983db5dceb1d477e7287e4893f80565a7a6b06
---
 drivers/gpu/drm/amd/amdkfd/kfd_process.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdkfd/kfd_process.c +2 -0
index 8f1076c0c88a..2ec42749f971 100644
@@ -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;
Signature · 6 lines
2.17.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Am 13.08.19 um 21:20 schrieb Zhao, Yong:

Quoted 5 lines

The amdgpu_task_info will be used when printing VM page fault for KFD processes.

Change-Id Ifd983db5dceb1d477e7287e4893f80565a7a6b06
Quoted 9 lines
---
  drivers/gpu/drm/amd/amdkfd/kfd_process.c | 2 ++
  1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdkfd/kfd_process.c +0 -0
index 8f1076c0c88a..2ec42749f971 100644

drivers/gpu/drm/amd/amdkfd/kfd_process.c int kfd_process_device_init_vm(struct kfd_process_device *pdd, · line 808

Quoted 8 lines
drivers/gpu/drm/amd/amdkfd/kfd_process.c +2 -0
@@ -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;

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1557e6fe-60a0-39ff-1ffd-2133be879113-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

Reviewed-by Harish Kasiviswanathan
#4 lore raw
Quoted 22 lines · Christian König

Am 13.08.19 um 21:20 schrieb Zhao, Yong:

Quoted 5 lines

The amdgpu_task_info will be used when printing VM page fault for KFD processes.

Change-Id Ifd983db5dceb1d477e7287e4893f80565a7a6b06
Quoted 13 lines

---
  drivers/gpu/drm/amd/amdkfd/kfd_process.c | 2 ++

  1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdkfd/kfd_process.c +1 -0
index 8f1076c0c88a..2ec42749f971 100644
@@ -801,6 +801,8 @@ int kfd_process_device_init_vm(struct kfd_process_device *pdd,
           return ret;
       }
   +    amdgpu_vm_set_task_info(pdd->vm);
+
Quoted 8 lines

drivers/gpu/drm/amd/amdkfd/kfd_process.c int kfd_process_device_init_vm(struct kfd_process_device *pdd, · line 808

Quoted 3 lines
drivers/gpu/drm/amd/amdkfd/kfd_process.c +0 -0
       ret = kfd_process_device_reserve_ib_mem(pdd);
       if (ret)
           goto err_reserve_ib_mem;

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx