Skip to content

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

Jesse Zhang amd-gfx 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest0 of 15 patches 0 repliesNew

Changes in v2 from the cover letter

- 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).

Patches in v2 No applies recorded yet

None of the 15 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/15] 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