Skip to content

drm/amdgpu: Simplify nbio doorbell range programming

Hawking Zhang amd-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13drm/amdgpu: Add common NBIO doorbell entry helpersdrivers/gpu/drm/amd/amdgpu/amdgpu_nbio.c drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h+221 -00 replies
2/13drm/amdgpu: Add nbio v6_3_2 doorbell layoutdrivers/gpu/drm/amd/amdgpu/nbio_v6_3_2.c+100 -00 replies
3/13drm/amdgpu: Use common doorbell helpers in nbio v6_3_2drivers/gpu/drm/amd/amdgpu/nbio_v6_3_2.c+85 -1390 replies
4/13drm/amdgpu: Add nbio v4_3 doorbell layoutdrivers/gpu/drm/amd/amdgpu/nbio_v4_3.c+77 -00 replies
5/13drm/amdgpu: Use common doorbell helpers in nbio v4_3drivers/gpu/drm/amd/amdgpu/nbio_v4_3.c+88 -1000 replies
6/13drm/amdgpu: Support doorbell range programming through smndrivers/gpu/drm/amd/amdgpu/amdgpu_nbio.c drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h+25 -80 replies
7/13drm/amdgpu: Use common doorbell helpers in nbio v7_9drivers/gpu/drm/amd/amdgpu/nbio_v7_9.c+204 -1730 replies
8/13drm/amdgpu: Use common doorbell helpers in nbio v7_11_5drivers/gpu/drm/amd/amdgpu/nbio_v7_11_5.c+158 -980 replies
9/13drm/amdgpu: Add nbif v4_10_0 ip headersdrivers/gpu/drm/amd/include/asic_reg/nbif/nbif_4_10_0_offset.h drivers/gpu/drm/amd/include/asic_reg/nbif/nbif_4_10_0_sh_mask.h+676 -00 replies
10/13drm/amdgpu: Add nbio v7_11_4 supportdrivers/gpu/drm/amd/amdgpu/Makefile drivers/gpu/drm/amd/amdgpu/nbio_v7_11_4.c drivers/gpu/drm/amd/amdgpu/nbio_v7_11_4.h+425 -10 replies
11/13drm/amdgpu: Drop nbio v7_11_x support from nbif v6_3_1drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c drivers/gpu/drm/amd/amdgpu/nbif_v6_3_1.c+19 -760 replies
12/13drm/amdgpu: Use common doorbell helpers in nbio v7_11_4drivers/gpu/drm/amd/amdgpu/nbio_v7_11_4.c+184 -1230 replies
13/13drm/amdgpu: Use common doorbell helpers in nbif v6_3_1drivers/gpu/drm/amd/amdgpu/nbif_v6_3_1.c+187 -1301 reply

Reviews trailers per patch

5 of 13 patches have a Reviewed-by or Acked-by.

PatchLikun Gao
1/13R-b
2/13R-b
3/13R-b
4/13R-b
5/13R-b
6/13
7/13
8/13
9/13
10/13
11/13
12/13
13/13

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/13] drm/amdgpu: Simplify nbio doorbell range programming

Introduce common nbio helpers to build s2a doorbell entry values from per-generation field layouts and program them through either mmio or global SMN addresses.

Convert the nbio v4_3, v6_3_1, v6_3_2, v7_9, v7_11_4, v7_11_5 implementations

This removes duplicated register-field construction and access logic from the individual IP implementations. Future NBIO generations using the same s2a programming model can provide their field layout and client-to-port mapping while reusing the common validation and programming paths.

Hawking Zhang (13):
drm/amdgpu: Add common NBIO doorbell entry helpers drm/amdgpu: Add nbio v6_3_2 doorbell layout drm/amdgpu: Use common doorbell helpers in nbio v6_3_2 drm/amdgpu: Add nbio v4_3 doorbell layout drm/amdgpu: Use common doorbell helpers in nbio v4_3 drm/amdgpu: Support doorbell range programming through smn drm/amdgpu: Use common doorbell helpers in nbio v7_9 drm/amdgpu: Use common doorbell helpers in nbio v7_11_5 drm/amdgpu: Add nbif v4_10_0 ip headers drm/amdgpu: Add nbio v7_11_4 support
drm/amdgpu: Drop nbio v7_11_x support from nbif v6_3_1 drm/amdgpu: Use common doorbell helpers in nbio v7_11_4 drm/amdgpu: Use common doorbell helpers in nbif v6_3_1

 drivers/gpu/drm/amd/amdgpu/Makefile           |   3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c |   6 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.c      | 150 +++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h      |  88 +++
 drivers/gpu/drm/amd/amdgpu/nbif_v6_3_1.c      | 384 ++++++------
 drivers/gpu/drm/amd/amdgpu/nbio_v4_3.c        | 265 +++++---
 drivers/gpu/drm/amd/amdgpu/nbio_v6_3_2.c      | 324 +++++-----
 drivers/gpu/drm/amd/amdgpu/nbio_v7_11_4.c     | 452 ++++++++++++++
 drivers/gpu/drm/amd/amdgpu/nbio_v7_11_4.h     |  32 +
 drivers/gpu/drm/amd/amdgpu/nbio_v7_11_5.c     | 256 +++++---
 drivers/gpu/drm/amd/amdgpu/nbio_v7_9.c        | 377 ++++++------
 .../asic_reg/nbif/nbif_4_10_0_offset.h        | 103 ++++
 .../asic_reg/nbif/nbif_4_10_0_sh_mask.h       | 573 ++++++++++++++++++
 13 files changed, 2307 insertions(+), 706 deletions(-)
 create mode 100644 drivers/gpu/drm/amd/amdgpu/nbio_v7_11_4.c
 create mode 100644 drivers/gpu/drm/amd/amdgpu/nbio_v7_11_4.h
 create mode 100644 drivers/gpu/drm/amd/include/asic_reg/nbif/nbif_4_10_0_offset.h
 create mode 100644 drivers/gpu/drm/amd/include/asic_reg/nbif/nbif_4_10_0_sh_mask.h
Signature · 1 line
2.17.1