Properly wire defines, shifts and masks in SI and cleanup
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest18 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | drm/amdgpu: move GFX6 defines into gfx_v6_0.cdrivers/ drivers/ | +3 | 0 replies | |
| 2/18 | drm/amdgpu: wire up defines, shifts and masks through SI codedrivers/ drivers/ drivers/ +2 more | +43 | 0 replies | |
| 3/18 | drm/amdgpu: use proper defines, shifts and masks in DCE6 codedrivers/ drivers/ drivers/ +2 more | +13 | 1 reply | |
| 4/18 | drm/amdgpu: remove PACKET3 duplicated defines from si_enums.hdrivers/ | +0 | 0 replies | |
| 5/18 | drm/admgpu: move si_ih.c away from sid.h definesdrivers/ | +8 | 0 replies | |
| 6/18 | drm/amdgpu: use GRPH_SECONDARY_SURFACE_ADDRESS_MASK with GRPH_SECONDARY_SURFACE_ADDRESS in DCE6drivers/ | +1 | 0 replies | |
| 7/18 | drm/amdgpu: move DCE6 away from sid.h and si_enums.h definesdrivers/ drivers/ drivers/ | +182 | 0 replies | |
| 8/18 | drm/amdgpu: add missing DMA defines, shifts and masksdrivers/ drivers/ | +61 | 0 replies | |
| 9/18 | drm/amdgpu: add missing GFX6 definesdrivers/ | +2 | 0 replies | |
| 10/18 | drm/amdgpu: add missing SMU6 defines, shifts and masksdrivers/ drivers/ | +230 | 0 replies | |
| 11/18 | drm/pm/legacy-dpm: move SI away from sid.h and si_enums.hdrivers/ drivers/ | +190 | 2 replies | |
| 12/18 | drm/amdgpu: fix GFX6 variables for sid.h cleanupdrivers/ | +8 | 1 reply | |
| 13/18 | drm/amdgpu: move si.c away from sid.hdrivers/ | +185 | 0 replies | |
| 14/18 | drm/amdgpu: move si_dma.c away from sid.h and si_enums.hdrivers/ drivers/ | +61 | 0 replies | |
| 15/18 | drm/amdgpu: huge sid.h cleanup, drop substituted defines.drivers/ | +9 | 0 replies | |
| 16/18 | drm/amdgpu: keep removing sid.h dependency from si_dma.cdrivers/ drivers/ drivers/ | +5 | 0 replies | |
| 17/18 | drm/amdgpu: cleanup DCE6 a bit moredrivers/ drivers/ | +2 | 0 replies | |
| 18/18 | drm/amdgpu: continue cleaning up sid.h and si_enums.hdrivers/ drivers/ | +14 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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