drm/amdkfd: Fill amdgpu_task_info for KFD VMs

Submitted by Zhao, Yong on Aug. 13, 2019, 7:20 p.m.

Details

Message ID 20190813192007.15881-1-Yong.Zhao@amd.com
State New
Headers show
Series "drm/amdkfd: Fill amdgpu_task_info for KFD VMs" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Zhao, Yong Aug. 13, 2019, 7:20 p.m.
The amdgpu_task_info will be used when printing VM page fault for KFD
processes.

Change-Id: Ifd983db5dceb1d477e7287e4893f80565a7a6b06
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
---
 drivers/gpu/drm/amd/amdkfd/kfd_process.c | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

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;

Comments

Am 13.08.19 um 21:20 schrieb Zhao, Yong:
> The amdgpu_task_info will be used when printing VM page fault for KFD
> processes.
>
> Change-Id: Ifd983db5dceb1d477e7287e4893f80565a7a6b06
> Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>

Acked-by: Christian König <christian.koenig@amd.com>

> ---
>   drivers/gpu/drm/amd/amdkfd/kfd_process.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> 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;
Reviewed-by: Harish Kasiviswanathan <harish.kasiviswanatha@amd.com>


On 2019-08-14 4:13 a.m., Christian König wrote:
> Am 13.08.19 um 21:20 schrieb Zhao, Yong:

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

>> processes.

>>

>> Change-Id: Ifd983db5dceb1d477e7287e4893f80565a7a6b06

>> Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>

> 

> Acked-by: Christian König <christian.koenig@amd.com>

> 

>> ---

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

>>   1 file changed, 2 insertions(+)

>>

>> 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;

> 

> _______________________________________________

> amd-gfx mailing list

> amd-gfx@lists.freedesktop.org

> https://lists.freedesktop.org/mailman/listinfo/amd-gfx