Three small fixes found while working on the amdgpu devcoredump. Patch 1 fixes reading the IB contents into the devcoredump: a NULL dereference for PRT mappings and purged BOs, a wrong offset for mappings that don't start at the beginning of their BO, no bounds check of the IB against its mapping, and clobbering abo->kmap.
Patch 2 clears the JPEG and VCN1 IP dump pointers after freeing them, as the other VCN versions already do. Patch 3 skips the MES legacy queue unmap during a GPU reset, as the KIQ path already does, so a hung MES doesn't add about 2.1 seconds per queue to recovery. Signed-off-by: Matt Turner <[email protected]> --- Matt Turner (3): drm/amdgpu: fix IB content read in the devcoredump drm/amdgpu: clear stale JPEG and VCN1 IP dump pointers drm/amdgpu: don't unmap legacy queues through MES during reset drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c | 67 ++++++++++++++++-------- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 8 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c | 1 + drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 1 + 4 files changed, 56 insertions(+), 21 deletions(-) --- base-commit: a69db917063c539fa09325ea22f3ff7b0626b478 change-id: 20261118-amdgpu-devcoredump-fixes-03f0342dc0a2 Best regards, -- Matt Turner <[email protected]>
