Skip to content

RFC: drm/amdgpu/sdma: Refactor SDMA v4 and older functions to be per-instance

Timur Kristóf amd-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12drm/amdgpu/sdma: Refactor SI DMA functions to be per instancedrivers/gpu/drm/amd/amdgpu/si_dma.c+47 -500 replies
2/12drm/amdgpu/sdma: Refactor SI DMA clock gating functions to be per-instancedrivers/gpu/drm/amd/amdgpu/si_dma.c+29 -340 replies
3/12drm/amdgpu/sdma: Refactor CIK SDMA functions to be per instancedrivers/gpu/drm/amd/amdgpu/cik_sdma.c+142 -1300 replies
4/12drm/amdgpu/sdma: Refactor CIK SDMA clock gating functions to be per-instancedrivers/gpu/drm/amd/amdgpu/cik_sdma.c+19 -310 replies
5/12drm/amdgpu/sdma: Refactor SDMA v2.4 functions to be per instancedrivers/gpu/drm/amd/amdgpu/sdma_v2_4.c+100 -890 replies
6/12drm/amdgpu/sdma: Refactor SDMA v2.4 golden registers to be per-instancedrivers/gpu/drm/amd/amdgpu/sdma_v2_4.c+31 -120 replies
7/12drm/amdgpu/sdma: Refactor SDMA v3.0 functions to be per instancedrivers/gpu/drm/amd/amdgpu/sdma_v3_0.c+155 -1430 replies
8/12drm/amdgpu/sdma: Refactor SDMA v3.0 clock gating functions to be per-instancedrivers/gpu/drm/amd/amdgpu/sdma_v3_0.c+39 -420 replies
9/12drm/amdgpu/sdma: Refactor SDMA v3.0 golden registers to be per-instancedrivers/gpu/drm/amd/amdgpu/sdma_v3_0.c+127 -550 replies
10/12drm/amdgpu/sdma: Refactor SDMA v4.0 functions to be per instancedrivers/gpu/drm/amd/amdgpu/sdma_v4_0.c+131 -1223 replies
11/12drm/amdgpu/sdma: Refactor SDMA v4.0 clock gating functions to be per-instancedrivers/gpu/drm/amd/amdgpu/sdma_v4_0.c+42 -470 replies
12/12drm/amdgpu/sdma: Refactor SDMA v4.0 golden registers to be per-instancedrivers/gpu/drm/amd/amdgpu/sdma_v4_0.c+182 -550 replies

Reviews trailers per patch

None of the 12 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAlex Deucher
SeriesR-b
1/12
2/12
3/12
4/12
5/12
6/12
7/12
8/12
9/12
10/12
11/12
12/12

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

Read the v1 thread

Cover letter [PATCH 00/12] RFC: drm/amdgpu/sdma: Refactor SDMA v4 and older functions to be per-instance

This series applies on top of my previous series:
"Improve existing SDMA queue resets" (currently under review)

Prepare the code for implementing recovery for
SDMA v4 and all older SDMA (and SI DMA) versions. Reorganize the SDMA 4.0 code so that the functions that are responsible for managing the SDMA engines take an instance ID as an argument.

This makes it possible to manage the SDMA instances independently of each other, which will enable us to also use these functions to implement resetting and recovering them independently. (The actual recovery implementation will be in a follow-up patch series which I will submit after this one is accepted.)

Timur Kristóf (12):
drm/amdgpu/sdma: Refactor SI DMA functions to be per instance drm/amdgpu/sdma: Refactor SI DMA clock gating functions to be
per-instance
drm/amdgpu/sdma: Refactor CIK SDMA functions to be per instance drm/amdgpu/sdma: Refactor CIK SDMA clock gating functions to be
per-instance
drm/amdgpu/sdma: Refactor SDMA v2.4 functions to be per instance drm/amdgpu/sdma: Refactor SDMA v2.4 golden registers to be
per-instance
drm/amdgpu/sdma: Refactor SDMA v3.0 functions to be per instance drm/amdgpu/sdma: Refactor SDMA v3.0 clock gating functions to be
per-instance
drm/amdgpu/sdma: Refactor SDMA v3.0 golden registers to be
per-instance
drm/amdgpu/sdma: Refactor SDMA v4.0 functions to be per instance drm/amdgpu/sdma: Refactor SDMA v4.0 clock gating functions to be
per-instance
drm/amdgpu/sdma: Refactor SDMA v4.0 golden registers to be
per-instance

 drivers/gpu/drm/amd/amdgpu/cik_sdma.c  | 322 +++++++-------
 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c | 232 +++++-----
 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c | 561 ++++++++++++++----------
 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 577 +++++++++++++++----------
 drivers/gpu/drm/amd/amdgpu/si_dma.c    | 160 ++++---
 5 files changed, 1043 insertions(+), 809 deletions(-)
Signature · 1 line
2.55.0