]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: dump job ibs in the devcoredump
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Wed, 4 Feb 2026 15:45:36 +0000 (16:45 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Apr 2026 20:16:25 +0000 (16:16 -0400)
commit7b15fc2d1f1a00fb99f0146e404ff2600999ec74
tree85302a1131772051f756e142de8eeba33d571e2b
parent32ab301b89b30d71a2e68d86f564eca66f7c52c5
drm/amdgpu: dump job ibs in the devcoredump

Now that we have a worker thread, we can try to access the
IBs of the job. The process is:
* get the VM from the PASID
* get the BO from its VA and the VM
* map the BO for CPU access
* copy everything, then add it to the dump
Each step can fail so we have to be cautious.
These operations can be slow so when amdgpu_devcoredump_format
is called only to determine the size of the buffer we skip all
of them and assume they will succeed.

---
v3: use kvfree
---

Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c