Skip to content

Properly wire defines, shifts and masks in SI and cleanup

Alexandre Demers amd-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18drm/amdgpu: move GFX6 defines into gfx_v6_0.cdrivers/gpu/drm/amd/amdgpu/gfx_v6_0.c drivers/gpu/drm/amd/amdgpu/si_enums.h+3 -20 replies
2/18drm/amdgpu: wire up defines, shifts and masks through SI codedrivers/gpu/drm/amd/amdgpu/si.c drivers/gpu/drm/amd/amdgpu/si_dma.c drivers/gpu/drm/amd/amdgpu/si_ih.c +2 more+43 -40 replies
3/18drm/amdgpu: use proper defines, shifts and masks in DCE6 codedrivers/gpu/drm/amd/amdgpu/dce_v6_0.c drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c drivers/gpu/drm/amd/amdgpu/si_enums.h +2 more+13 -361 reply
4/18drm/amdgpu: remove PACKET3 duplicated defines from si_enums.hdrivers/gpu/drm/amd/amdgpu/si_enums.h+0 -1230 replies
5/18drm/admgpu: move si_ih.c away from sid.h definesdrivers/gpu/drm/amd/amdgpu/si_ih.c+8 -80 replies
6/18drm/amdgpu: use GRPH_SECONDARY_SURFACE_ADDRESS_MASK with GRPH_SECONDARY_SURFACE_ADDRESS in DCE6drivers/gpu/drm/amd/amdgpu/dce_v6_0.c+1 -10 replies
7/18drm/amdgpu: move DCE6 away from sid.h and si_enums.h definesdrivers/gpu/drm/amd/amdgpu/dce_v6_0.c drivers/gpu/drm/amd/amdgpu/si_enums.h drivers/gpu/drm/amd/amdgpu/sid.h+182 -2610 replies
8/18drm/amdgpu: add missing DMA defines, shifts and masksdrivers/gpu/drm/amd/include/asic_reg/oss/oss_1_0_d.h drivers/gpu/drm/amd/include/asic_reg/oss/oss_1_0_sh_mask.h+61 -30 replies
9/18drm/amdgpu: add missing GFX6 definesdrivers/gpu/drm/amd/include/asic_reg/gca/gfx_6_0_d.h+2 -00 replies
10/18drm/amdgpu: add missing SMU6 defines, shifts and masksdrivers/gpu/drm/amd/include/asic_reg/smu/smu_6_0_d.h drivers/gpu/drm/amd/include/asic_reg/smu/smu_6_0_sh_mask.h+230 -40 replies
11/18drm/pm/legacy-dpm: move SI away from sid.h and si_enums.hdrivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c+190 -1842 replies
12/18drm/amdgpu: fix GFX6 variables for sid.h cleanupdrivers/gpu/drm/amd/amdgpu/gfx_v6_0.c+8 -41 reply
13/18drm/amdgpu: move si.c away from sid.hdrivers/gpu/drm/amd/amdgpu/si.c+185 -1840 replies
14/18drm/amdgpu: move si_dma.c away from sid.h and si_enums.hdrivers/gpu/drm/amd/amdgpu/si_dma.c drivers/gpu/drm/amd/amdgpu/sid.h+61 -830 replies
15/18drm/amdgpu: huge sid.h cleanup, drop substituted defines.drivers/gpu/drm/amd/amdgpu/sid.h+9 -12100 replies
16/18drm/amdgpu: keep removing sid.h dependency from si_dma.cdrivers/gpu/drm/amd/amdgpu/si_dma.c drivers/gpu/drm/amd/amdgpu/sid.h drivers/gpu/drm/amd/include/asic_reg/oss/oss_1_0_d.h+5 -50 replies
17/18drm/amdgpu: cleanup DCE6 a bit moredrivers/gpu/drm/amd/amdgpu/dce_v6_0.c drivers/gpu/drm/amd/amdgpu/sid.h+2 -100 replies
18/18drm/amdgpu: continue cleaning up sid.h and si_enums.hdrivers/gpu/drm/amd/amdgpu/si_enums.h drivers/gpu/drm/amd/amdgpu/sid.h+14 -920 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/18] Properly wire defines, shifts and masks in SI and cleanup

The following series is intented to remove duplicated defines, shifts and masks or to classify them where they belong. si_enums.h has been used as a garbage can for anything and everything when moving SI code from radeon to amdgpu.

Where needed, the defines found under sid.h and si_enums.h were ported to DCE6, GFX6 and GMC6 defines, shifts and masks. There location was based on CIK and later.

However, most of them were already available, but not used where they could be.

This series is running on my PITCAIRN setup without any visible drawbacks.

Alexandre Demers (18):
drm/amdgpu: move GFX6 defines into gfx_v6_0.c drm/amdgpu: wire up defines, shifts and masks through SI code drm/amdgpu: use proper defines, shifts and masks in DCE6 code drm/amdgpu: remove PACKET3 duplicated defines from si_enums.h drm/admgpu: move si_ih.c away from sid.h defines drm/amdgpu: use GRPH_SECONDARY_SURFACE_ADDRESS_MASK with
GRPH_SECONDARY_SURFACE_ADDRESS in DCE6
drm/amdgpu: move DCE6 away from sid.h and si_enums.h defines drm/amdgpu: add missing DMA defines, shifts and masks drm/amdgpu: add missing GFX6 defines
drm/amdgpu: add missing SMU6 defines, shifts and masks drm/pm/legacy-dpm: move SI away from sid.h and si_enums.h drm/amdgpu: fix GFX6 variables for sid.h cleanup drm/amdgpu: move si.c away from sid.h
drm/amdgpu: move si_dma.c away from sid.h and si_enums.h drm/amdgpu: huge sid.h cleanup, drop substituted defines. drm/amdgpu: keep removing sid.h dependency from si_dma.c drm/amdgpu: cleanup DCE6 a bit more
drm/amdgpu: continue cleaning up sid.h and si_enums.h

 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c         |  176 +-
 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c         |   15 +-
 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c         |    2 +-
 drivers/gpu/drm/amd/amdgpu/si.c               |  387 +++--
 drivers/gpu/drm/amd/amdgpu/si_dma.c           |  116 +-
 drivers/gpu/drm/amd/amdgpu/si_enums.h         |  234 +--
 drivers/gpu/drm/amd/amdgpu/si_ih.c            |   17 +-
 drivers/gpu/drm/amd/amdgpu/sid.h              | 1546 ++---------------
 .../include/asic_reg/dce/dce_6_0_sh_mask.h    |    4 +-
 .../drm/amd/include/asic_reg/gca/gfx_6_0_d.h  |    2 +
 .../drm/amd/include/asic_reg/oss/oss_1_0_d.h  |   23 +-
 .../include/asic_reg/oss/oss_1_0_sh_mask.h    |   43 +
 .../drm/amd/include/asic_reg/smu/smu_6_0_d.h  |   44 +
 .../include/asic_reg/smu/smu_6_0_sh_mask.h    |  190 +-
 drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c    |  358 ++--
 drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c    |   42 +-
 16 files changed, 1001 insertions(+), 2198 deletions(-)
Signature · 1 line
2.48.1