Skip to content

GC per queue reset

Alex Deucher amd-gfx 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest53 patches 2 repliesIn review
  2. v134 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/53drm/amdgpu/gfx10: handle SDMA in KIQ map/unmapdrivers/gpu/drm/amd/amdgpu/gfx_v10_0.c drivers/gpu/drm/amd/amdgpu/nvd.h+73 -140 replies
2/53drm/amdgpu/mes11: handle second gfx pipedrivers/gpu/drm/amd/amdgpu/mes_v11_0.c+2 -00 replies
3/53drm/amdgpu/mes: add API for legacy queue resetdrivers/gpu/drm/amd/amdgpu/amdgpu_mes.c drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h+40 -00 replies
4/53drm/amdgpu/mes11: add API for legacy queue resetdrivers/gpu/drm/amd/amdgpu/mes_v11_0.c+33 -00 replies
5/53drm/amdgpu/mes12: add API for legacy queue resetdrivers/gpu/drm/amd/amdgpu/mes_v12_0.c+33 -00 replies
6/53drm/amdgpu/mes: add API for user queue resetdrivers/gpu/drm/amd/amdgpu/amdgpu_mes.c drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h+52 -00 replies
7/53drm/amdgpu/mes11: add API for user queue resetdrivers/gpu/drm/amd/amdgpu/mes_v11_0.c+21 -00 replies
8/53drm/amdgpu/mes12: add API for user queue resetdrivers/gpu/drm/amd/amdgpu/mes_v12_0.c+21 -00 replies
9/53drm/amdgpu: add new ring reset callbackdrivers/gpu/drm/amd/amdgpu/amdgpu_ring.h+2 -00 replies
10/53drm/amdgpu: add per ring reset support (v5)drivers/gpu/drm/amd/amdgpu/amdgpu_job.c+19 -00 replies
11/53drm/amdgpu: increase the reset counter for the queue resetdrivers/gpu/drm/amd/amdgpu/amdgpu_job.c+1 -00 replies
12/53drm/amdgpu/gfx11: add ring reset callbacksdrivers/gpu/drm/amd/amdgpu/gfx_v11_0.c+18 -00 replies
13/53drm/amdgpu/gfx11: fallback to driver reset compute queue directly (v2)drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c+71 -130 replies
14/53drm/amdgpu/gfx11: rename gfx_v11_0_gfx_init_queue()drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c+3 -30 replies
15/53drm/amdgpu/gfx11: wait for reset done before remapdrivers/gpu/drm/amd/amdgpu/gfx_v11_0.c+14 -10 replies
16/53drm/amdgpu/gfx10: add ring reset callbacksdrivers/gpu/drm/amd/amdgpu/gfx_v10_0.c+91 -00 replies
17/53drm/amdgpu/gfx10: remap queue after reset successfullydrivers/gpu/drm/amd/amdgpu/gfx_v10_0.c+35 -110 replies
18/53drm/amdgpu/gfx10: wait for reset done before remapdrivers/gpu/drm/amd/amdgpu/gfx_v10_0.c+31 -120 replies
19/53drm/amdgpu/gfx10: rework reset sequencedrivers/gpu/drm/amd/amdgpu/gfx_v10_0.c+19 -70 replies
20/53drm/amdgpu/gfx9: add ring reset callbackdrivers/gpu/drm/amd/amdgpu/gfx_v9_0.c+38 -00 replies
21/53drm/amdgpu/gfx9: remap queue after reset successfullydrivers/gpu/drm/amd/amdgpu/gfx_v9_0.c+27 -90 replies
22/53drm/amdgpu/gfx9: wait for reset done before remapdrivers/gpu/drm/amd/amdgpu/gfx_v9_0.c+31 -50 replies
23/53drm/amdgpu/gfx9.4.3: add ring reset callbackdrivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c+38 -00 replies
24/53drm/amdgpu/gfx9.4.3: remap queue after reset successfullydrivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c+27 -90 replies
25/53drm/amdgpu/gfx_9.4.3: wait for reset done before remapdrivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c+33 -60 replies
26/53drm/amdgpu/gfx12: add ring reset callbacksdrivers/gpu/drm/amd/amdgpu/gfx_v12_0.c+18 -00 replies
27/53drm/amdgpu/gfx12: fallback to driver reset compute queue directlydrivers/gpu/drm/amd/amdgpu/gfx_v12_0.c+79 -140 replies
28/53drm/amdgpu/gfx: add a new kiq_pm4_funcs callback for reset_hw_queuedrivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h+4 -00 replies
29/53drm/amdgpu/gfx9: implement reset_hw_queue for gfx9drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c+37 -00 replies
30/53drm/amdgpu/gfx9.4.3: implement reset_hw_queue for gfx9.4.3drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c+36 -00 replies
31/53drm/amdgpu/mes: modify mes api for mmio queue resetdrivers/gpu/drm/amd/amdgpu/amdgpu_mes.c drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c +1 more+17 -40 replies
32/53drm/amdgpu/mes: implement amdgpu_mes_reset_hw_queue_mmiodrivers/gpu/drm/amd/amdgpu/amdgpu_mes.c+20 -00 replies
33/53drm/amdgpu/gfx11: enter safe mode before touching CP_INT_CNTLdrivers/gpu/drm/amd/amdgpu/gfx_v11_0.c+2 -20 replies
34/53drm/amdgpu/gfx11: add a mutex for the gfx semaphoredrivers/gpu/drm/amd/amdgpu/amdgpu_device.c drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c+10 -30 replies
35/53drm/amdgpu/gfx11: export gfx_v11_0_request_gfx_index_mutex()drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c drivers/gpu/drm/amd/amdgpu/gfx_v11_0.h+5 -20 replies
36/53drm/amdgpu/mes11: implement mmio queue reset for gfx11drivers/gpu/drm/amd/amdgpu/mes_v11_0.c+78 -00 replies
37/53drm/amdgpu/gfx9: per queue reset only on bare metaldrivers/gpu/drm/amd/amdgpu/gfx_v9_0.c drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c+6 -00 replies
38/53drm/amdgpu/gfx10: per queue reset only on bare metaldrivers/gpu/drm/amd/amdgpu/gfx_v10_0.c+6 -00 replies
39/53drm/amdgpu/gfx11: per queue reset only on bare metaldrivers/gpu/drm/amd/amdgpu/gfx_v11_0.c+6 -00 replies
40/53drm/amdgpu/gfx12: per queue reset only on bare metaldrivers/gpu/drm/amd/amdgpu/gfx_v12_0.c+6 -00 replies
41/53drm/amdgpu/gfx9: add ring reset callback for gfxdrivers/gpu/drm/amd/amdgpu/gfx_v9_0.c+47 -00 replies
42/53drm/amdgpu/gfx8: add ring reset callback for gfxdrivers/gpu/drm/amd/amdgpu/gfx_v8_0.c drivers/gpu/drm/amd/amdgpu/vid.h+75 -10 replies
43/53drm/amdgpu/gfx7: add ring reset callback for gfxdrivers/gpu/drm/amd/amdgpu/cikd.h drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c+76 -10 replies
44/53drm/amdgpu/gfx9: use proper rlc safe mode helpersdrivers/gpu/drm/amd/amdgpu/gfx_v9_0.c+4 -40 replies
45/53drm/amdgpu/gfx9.4.3: use proper rlc safe mode helpersdrivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c+4 -40 replies
46/53drm/amdgpu/gfx10: use proper rlc safe mode helpersdrivers/gpu/drm/amd/amdgpu/gfx_v10_0.c+2 -20 replies
47/53drm/amdgpu/gfx11: use proper rlc safe mode helpersdrivers/gpu/drm/amd/amdgpu/gfx_v11_0.c+4 -40 replies
48/53drm/amdgpu/gfx12: use proper rlc safe mode helpersdrivers/gpu/drm/amd/amdgpu/gfx_v12_0.c+2 -20 replies
49/53drm/amdgpu/gfx12: use rlc safe mode for soft recoverydrivers/gpu/drm/amd/amdgpu/gfx_v12_0.c+2 -00 replies
50/53drm/amdgpu/gfx11: use rlc safe mode for soft recoverydrivers/gpu/drm/amd/amdgpu/gfx_v11_0.c+2 -00 replies
51/53drm/amdgpu/gfx10: use rlc safe mode for soft recoverydrivers/gpu/drm/amd/amdgpu/gfx_v10_0.c+2 -00 replies
52/53drm/amdgpu/gfx9.4.3: use rlc safe mode for soft recoverydrivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c+2 -00 replies
53/53drm/amdgpu/gfx9: use rlc safe mode for soft recoverydrivers/gpu/drm/amd/amdgpu/gfx_v9_0.c+2 -00 replies

Reviews trailers per patch

15 of 53 patches have a Reviewed-by or Acked-by.

PatchAlex Deucher
1/53
2/53
3/53
4/53
5/53
6/53
7/53
8/53
9/53
10/53
11/53R-b
12/53
13/53R-b
14/53
15/53R-b
16/53
17/53R-b
18/53R-b
19/53
20/53
21/53R-b
22/53R-b
23/53
24/53R-b
25/53R-b
26/53
27/53
28/53R-b
29/53R-b
30/53R-b
31/53R-b
32/53R-b
33/53
34/53
35/53
36/53R-b
37/53
38/53
39/53
40/53
41/53
42/53
43/53
44/53
45/53
46/53
47/53
48/53
49/53
50/53
51/53
52/53
53/53

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH V2 00/53] GC per queue reset

This adds preliminary support for GC per queue reset. In this case, only the jobs currently in the queue are lost. If this fails, we fall back to a full adapter reset.

V2: Fix fallbacks to full adapter reset
RLC safemode cleanup
Preliminary support for older GPUs

Alex Deucher (38):
drm/amdgpu/gfx10: handle SDMA in KIQ map/unmap drm/amdgpu/mes11: handle second gfx pipe drm/amdgpu/mes: add API for legacy queue reset drm/amdgpu/mes11: add API for legacy queue reset drm/amdgpu/mes12: add API for legacy queue reset drm/amdgpu/mes: add API for user queue reset drm/amdgpu/mes11: add API for user queue reset drm/amdgpu/mes12: add API for user queue reset drm/amdgpu: add new ring reset callback
drm/amdgpu: add per ring reset support (v5) drm/amdgpu/gfx11: add ring reset callbacks drm/amdgpu/gfx11: rename gfx_v11_0_gfx_init_queue() drm/amdgpu/gfx10: add ring reset callbacks drm/amdgpu/gfx10: rework reset sequence drm/amdgpu/gfx9: add ring reset callback drm/amdgpu/gfx9.4.3: add ring reset callback drm/amdgpu/gfx12: add ring reset callbacks drm/amdgpu/gfx12: fallback to driver reset compute queue directly drm/amdgpu/gfx11: enter safe mode before touching CP_INT_CNTL drm/amdgpu/gfx11: add a mutex for the gfx semaphore drm/amdgpu/gfx11: export gfx_v11_0_request_gfx_index_mutex() drm/amdgpu/gfx9: per queue reset only on bare metal drm/amdgpu/gfx10: per queue reset only on bare metal drm/amdgpu/gfx11: per queue reset only on bare metal drm/amdgpu/gfx12: per queue reset only on bare metal drm/amdgpu/gfx9: add ring reset callback for gfx drm/amdgpu/gfx8: add ring reset callback for gfx drm/amdgpu/gfx7: add ring reset callback for gfx drm/amdgpu/gfx9: use proper rlc safe mode helpers drm/amdgpu/gfx9.4.3: use proper rlc safe mode helpers drm/amdgpu/gfx10: use proper rlc safe mode helpers drm/amdgpu/gfx11: use proper rlc safe mode helpers drm/amdgpu/gfx12: use proper rlc safe mode helpers drm/amdgpu/gfx12: use rlc safe mode for soft recovery drm/amdgpu/gfx11: use rlc safe mode for soft recovery drm/amdgpu/gfx10: use rlc safe mode for soft recovery drm/amdgpu/gfx9.4.3: use rlc safe mode for soft recovery drm/amdgpu/gfx9: use rlc safe mode for soft recovery

Jiadong Zhu (13):
drm/amdgpu/gfx11: wait for reset done before remap drm/amdgpu/gfx10: remap queue after reset successfully drm/amdgpu/gfx10: wait for reset done before remap drm/amdgpu/gfx9: remap queue after reset successfully drm/amdgpu/gfx9: wait for reset done before remap drm/amdgpu/gfx9.4.3: remap queue after reset successfully drm/amdgpu/gfx_9.4.3: wait for reset done before remap drm/amdgpu/gfx: add a new kiq_pm4_funcs callback for reset_hw_queue drm/amdgpu/gfx9: implement reset_hw_queue for gfx9 drm/amdgpu/gfx9.4.3: implement reset_hw_queue for gfx9.4.3 drm/amdgpu/mes: modify mes api for mmio queue reset drm/amdgpu/mes: implement amdgpu_mes_reset_hw_queue_mmio drm/amdgpu/mes11: implement mmio queue reset for gfx11

Prike Liang (2):
drm/amdgpu: increase the reset counter for the queue reset drm/amdgpu/gfx11: fallback to driver reset compute queue directly (v2)

 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c |   1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h    |   6 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c    |  20 ++
 drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c    |  88 ++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h    |  37 +++
 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h   |   2 +
 drivers/gpu/drm/amd/amdgpu/cikd.h          |   1 +
 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c     | 251 +++++++++++++++++++--
 drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c     | 127 +++++++++--
 drivers/gpu/drm/amd/amdgpu/gfx_v11_0.h     |   3 +
 drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c     | 103 ++++++++-
 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c      |  76 ++++++-
 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c      |  75 +++++-
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c      | 179 ++++++++++++++-
 drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c    | 132 ++++++++++-
 drivers/gpu/drm/amd/amdgpu/mes_v11_0.c     | 134 +++++++++++
 drivers/gpu/drm/amd/amdgpu/mes_v12_0.c     |  54 +++++
 drivers/gpu/drm/amd/amdgpu/nvd.h           |   2 +
 drivers/gpu/drm/amd/amdgpu/vid.h           |   1 +
 19 files changed, 1243 insertions(+), 49 deletions(-)
Signature · 1 line
2.45.2