Skip to contentSkip to conversation

drm/amdgpu: add GFX engine reset support for GFX11/GFX12

PATCH New Jesse Zhang 1 participant 1 message Oct 22

lore
Share & tools
lore
#0 lore raw

v2 cover drm/amdgpu: add GFX engine reset support for GFX11/GFX12

*** BLURB HERE ***

Jesse Zhang (15):
drm/amdgpu/gfx: add a reset_engine callback drm/amdgpu/gfx12: add a gfx engine reset
drm/amdgpu/gfx11: add a gfx engine reset
drm/amdgpu/gfx: add callbacks to read and restore the ring state of a
gfx queue
drm/amdgpu/gfx12: read and restore the ring state of a gfx queue drm/amdgpu/gfx11: read and restore the ring state of a gfx queue drm/amdgpu/userq: add a helper to signal the fences of a queue up to a
point
drm/amdgpu/userq: add helpers to keep the user queues of one engine
across a reset
drm/amdgpu/gfx: add a gfx engine reset helper drm/amdgpu/gfx: reset the gfx engine when a kernel gfx queue reset
fails
drm/amdgpu/userq: reset the gfx engine when a gfx user queue reset
fails
drm/amdgpu: show the engine reset in the reset masks drm/amdgpu: add a debug_mask bit to disable the engine reset drm/amdgpu/gfx12: enable the gfx engine reset drm/amdgpu/gfx11: enable the gfx engine reset

v2:
- Drop the per-engine user queue reset lock and the walk over the queues of one type (Christian).
- Keep the gfx user queues across the engine reset instead of dropping
them: new gfx callbacks to read the ring state of a gfx HQD and write it into a gfx MQD (patches 4-6), and a helper to signal the fences of a user queue up to a seqno (patch 7).

 drivers/gpu/drm/amd/amdgpu/amdgpu.h           |   2 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c    |   3 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c       |   6 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c       |  97 +++++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h       |  38 +++
 drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c     | 109 +++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h     |   5 +
 .../gpu/drm/amd/amdgpu/amdgpu_userq_fence.c   |  31 ++
 .../gpu/drm/amd/amdgpu/amdgpu_userq_fence.h   |   2 +
 drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c        | 276 ++++++++++++++++++
 drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c        | 225 ++++++++++++++
 drivers/gpu/drm/amd/amdgpu/mes_userqueue.c    |  22 +-
 12 files changed, 808 insertions(+), 8 deletions(-)
Signature · 1 line
2.50.1