Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Christian König and committed by
Alex Deucher
57f812d1 d1ebe307

+2 -3
+2 -3
drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c
··· 343 343 coredump->skip_vram_check = skip_vram_check; 344 344 coredump->reset_vram_lost = vram_lost; 345 345 346 - if (job && job->vm) { 347 - struct amdgpu_vm *vm = job->vm; 346 + if (job && job->pasid) { 348 347 struct amdgpu_task_info *ti; 349 348 350 - ti = amdgpu_vm_get_task_info_vm(vm); 349 + ti = amdgpu_vm_get_task_info_pasid(adev, job->pasid); 351 350 if (ti) { 352 351 coredump->reset_task_info = *ti; 353 352 amdgpu_vm_put_task_info(ti);