Skip to content

S3 following up

Huang Rui amd-gfx 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 of 21 patches 2 repliesIn review
  2. v118 patches 16 repliesSuperseded

Changes in v2 from the cover letter

- Rename pt_regs to gart_pt_regs, dis_identity_aperture to disable_identity_aperture.
- Use upper_32_bits/lower_32_bits macros.
- Add comments and fix "uint64_t" for stolen size.
- Merge page table regs function into page table aperture.
- Add three patches to use RREG32_SOC15/WREG32_SOC15 instead.

7 of 21 patches are in this archive. The cover letter announces 21.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/21drm/amdgpu: abstract gart table initialization for gfxhub/mmhubdrivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c+42 -260 replies
2/21drm/amdgpu: abstract gart aperture initialization for gfxhub/mmhubdrivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c+40 -330 replies
7/21drm/amdgpu: abstract disable identity aperture for gfxhub/mmhubdrivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c+41 -320 replies
18/21drm/amdgpu: fix the gart table cleared issue for S3drivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c +3 more+14 -10 replies
19/21drm/amdgpu: update to use RREG32_SOC15/WREG32_SOC15 for gfxhubdrivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c+64 -770 replies
20/21drm/amdgpu: update to use RREG32_SOC15/WREG32_SOC15 for mmhubdrivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c+81 -920 replies
21/21drm/amdgpu: update to use RREG32_SOC15/WREG32_SOC15 for gmc9drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c+5 -50 replies

Reviews trailers per patch

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

PatchAlex Deucher
SeriesR-b
1/21
2/21
7/21
18/21
19/21
20/21
21/21

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/21] S3 following up

Hi all,

Changes from V1 -> V2:
- Rename pt_regs to gart_pt_regs, dis_identity_aperture to disable_identity_aperture.
- Use upper_32_bits/lower_32_bits macros.
- Add comments and fix "uint64_t" for stolen size.
- Merge page table regs function into page table aperture.
- Add three patches to use RREG32_SOC15/WREG32_SOC15 instead.

I just sent the modified patches (1, 2, 7, 18, 19, 20, 21) which compared with v1. Others, please check v1 set.

These patches refines gfxhub/mmhub programming sequence to make them clear and readable. And actually, gfxhub + mmhub = GMCv9 for vega10, we don't need specific gfxhub and mmhub ip blocks, and meanwhile, they have different resume sequence during gfxhub, mmhub, and gmc. That will make thing confused and easily miss some register configrations. So remove gfxhub and mmhub ip block here, and merge them into GMC v9.

Patch 1 -> 8: refine gfxhub/mmhub programming sequence
Patch 9: fix missed invalidation at resume
Patch 10 -> 15: remove gfxhub/mmhub ip blocks
Patch 16 -> 17: add prints to make ip_block mask clear.
Patch 18: fix gart table cleared and other BOs cleared issue which blocked S3.
(Extend stollen memory for VBIOS)
Patch 19 -> 21: update gmc/mmhub/gfxhub to use RREG32_SOC15/WREG32_SOC15 macro.

Thanks,
Ray

Huang Rui (21):
drm/amdgpu: abstract gart table initialization for gfxhub/mmhub drm/amdgpu: abstract gart aperture initialization for gfxhub/mmhub drm/amdgpu: abstract system aperture initialization for gfxhub/mmhub drm/amdgpu: abstract TLB initialization for gfxhub/mmhub drm/amdgpu: abstract cache initialization for gfxhub/mmhub drm/amdgpu: abstract system domain enablement for gfxhub/mmhub drm/amdgpu: abstract disable identity aperture for gfxhub/mmhub drm/amdgpu: abstract setup vmid config for gfxhub/mmhub drm/amdgpu: fix to miss program invalidation at resume drm/amdgpu: export gfxhub sw_init into gmc
drm/amdgpu: export mmhub sw_init into gmc
drm/amdgpu: export mmhub set clockgating into gmc drm/amdgpu: export mmhub get clockgating into gmc drm/amdgpu: remove gfxhub ip
drm/amdgpu: remove mmhub ip
drm/amdgpu: add ip name print for selecting ips with ip_block_mask drm/amdgpu: add ip block number prints
drm/amdgpu: fix the gart table cleared issue for S3 drm/amdgpu: update to use RREG32_SOC15/WREG32_SOC15 for gfxhub drm/amdgpu: update to use RREG32_SOC15/WREG32_SOC15 for mmhub drm/amdgpu: update to use RREG32_SOC15/WREG32_SOC15 for gmc9

 drivers/gpu/drm/amd/amdgpu/amdgpu.h        |   1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c |   8 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c    |   2 +-
 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c   | 424 +++++++++++---------------
 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.h   |   1 +
 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c      |   2 +
 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c      |   2 +
 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c      |   2 +
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c      |  31 +-
 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c    | 466 ++++++++++++-----------------
 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.h    |   4 +
 drivers/gpu/drm/amd/amdgpu/soc15.c         |   2 -
 drivers/gpu/drm/amd/include/amd_shared.h   |   2 -
 13 files changed, 406 insertions(+), 541 deletions(-)
Signature · 6 lines
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx