diff options
author | Andrey Grodzovsky <andrey.grodzovsky@amd.com> | 2018-06-28 22:55:27 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-07-10 15:17:37 -0400 |
commit | efaa96463929684ceca4be96d0959e9ced1fa093 (patch) | |
tree | fa714819d6b888f1b867bfbaf45575d961799e6e /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
parent | 2aa37bf58838fd0251e0e6819767ffc8a83eac38 (diff) |
drm/amdgpu: Present amdgpu_task_info in VM_FAULTS.
Extract and present the reposnsible process and thread when
VM_FAULT happens.
v2: Use getter and setter functions.
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Acked-by: Jim Qu <Jim.Qu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index 1bc02816989d..9881a1e55df3 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |||
@@ -187,6 +187,10 @@ static int amdgpu_cs_parser_init(struct amdgpu_cs_parser *p, void *data) | |||
187 | if (p->uf_entry.robj) | 187 | if (p->uf_entry.robj) |
188 | p->job->uf_addr = uf_offset; | 188 | p->job->uf_addr = uf_offset; |
189 | kfree(chunk_array); | 189 | kfree(chunk_array); |
190 | |||
191 | /* Use this opportunity to fill in task info for the vm */ | ||
192 | amdgpu_vm_set_task_info(vm); | ||
193 | |||
190 | return 0; | 194 | return 0; |
191 | 195 | ||
192 | free_all_kdata: | 196 | free_all_kdata: |