Skip to content

Commit 57f812d

Browse files
ChristianKoenigAMDalexdeucher
authored andcommitted
drm/amdgpu: fix amdgpu_coredump
The VM pointer might already be outdated when that function is called. Use the PASID instead to gather the information instead. Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent d1ebe30 commit 57f812d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,10 @@ void amdgpu_coredump(struct amdgpu_device *adev, bool skip_vram_check,
343343
coredump->skip_vram_check = skip_vram_check;
344344
coredump->reset_vram_lost = vram_lost;
345345

346-
if (job && job->vm) {
347-
struct amdgpu_vm *vm = job->vm;
346+
if (job && job->pasid) {
348347
struct amdgpu_task_info *ti;
349348

350-
ti = amdgpu_vm_get_task_info_vm(vm);
349+
ti = amdgpu_vm_get_task_info_pasid(adev, job->pasid);
351350
if (ti) {
352351
coredump->reset_task_info = *ti;
353352
amdgpu_vm_put_task_info(ti);

0 commit comments

Comments
 (0)