Skip to content

drm/amdgpu: gfx off support

Huang Rui amd-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest20 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20drm/amdgpu: update psp gfx if headerdrivers/gpu/drm/amd/amdgpu/psp_gfx_if.h+46 -210 replies
2/20drm/amdgpu: add new rlc firmware header format v2.1drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h+51 -20 replies
3/20drm/amdgpu: add save restore list cntl gpm and srm firmware supportdrivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +4 more+138 -30 replies
4/20drm/amdgpu: enter rlc safe mode before set cgpgdrivers/gpu/drm/amd/amdgpu/gfx_v9_0.c+3 -40 replies
5/20drm/amdgpu: cleanup init power gating functiondrivers/gpu/drm/amd/amdgpu/gfx_v9_0.c+6 -180 replies
6/20drm/amdgpu: revise init_rlc_save_restore_list behavior to support latest register_list_format/register_restore tabledrivers/gpu/drm/amd/amdgpu/gfx_v9_0.c+87 -540 replies
7/20drm/amdgpu: add setting powergating method for gfx9drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c+5 -00 replies
8/20drm/amd/powerplay: send CGPG smc message if PG is enabled for ravendrivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c drivers/gpu/drm/amd/powerplay/inc/rv_ppsmc.h+8 -10 replies
9/20drm/amdgpu: move PP_FEATURE_MASK to amd_shared headerdrivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h drivers/gpu/drm/amd/amdgpu/ci_dpm.c drivers/gpu/drm/amd/amdgpu/kv_dpm.c +2 more+20 -220 replies
10/20drm/amdgpu: add gfxoff feature maskdrivers/gpu/drm/amd/include/amd_shared.h+1 -00 replies
11/20drm/amdgpu: set gfxoff disabled by defaultdrivers/gpu/drm/amd/amdgpu/amdgpu_drv.c+1 -10 replies
12/20drm/amd/powerplay: add gfx off control functiondrivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c drivers/gpu/drm/amd/powerplay/inc/hwmgr.h+36 -10 replies
13/20drm/amd/powerplay: enable/disable gfxoff through smudrivers/gpu/drm/amd/powerplay/amd_powerplay.c+9 -00 replies
14/20drm/amdgpu: use pp_feature member to store the maskdrivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_device.c drivers/gpu/drm/amd/amdgpu/ci_dpm.c +2 more+6 -30 replies
15/20drm/amdgpu: clear gfxoff featue mask if the asic is not ravendrivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c+5 -10 replies
16/20drm/amd/powerplay: add control gfxoff enabling in late initdrivers/gpu/drm/amd/powerplay/amd_powerplay.c+9 -00 replies
17/20drm/amdgpu: it should disable gfxoff when system is going to suspenddrivers/gpu/drm/amd/amdgpu/amdgpu_device.c+6 -00 replies
18/20drm/amdgpu: fix to disable powergating in hw_finidrivers/gpu/drm/amd/amdgpu/gfx_v9_0.c+3 -00 replies
19/20drm/amdgpu: set CGPG if gfxoff is enabled for ravendrivers/gpu/drm/amd/amdgpu/soc15.c+5 -00 replies
20/20drm/amd/powerplay: use the flag to decide whether send gfxoff smc messagedrivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c+5 -10 replies

Reviews trailers per patch

All 20 patches have a Reviewed-by or Acked-by.

PatchHawking ZhangAlex Deucher
1/20A-b R-b
2/20A-b
3/20A-b
4/20A-b A-b
5/20A-b A-b
6/20A-b A-b
7/20A-b A-b
8/20A-b A-b
9/20R-b R-b
10/20R-b R-b
11/20R-b R-b
12/20R-b R-b
13/20R-b R-b
14/20R-b R-b
15/20R-b R-b
16/20R-b R-b
17/20R-b R-b
18/20R-b R-b
19/20R-b R-b
20/20R-b R-b

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/20] drm/amdgpu: gfx off support

GFXOFF is the new GPU feature that save power consumption. It used RLC to poweroff the gfx engine dynamicly when there is no workload on gfx pipe and make gfx into "idle" state.
1. Add three additional RLC ucodes, and use psp to load them.
2. Revise RLC save restore list.
3. Enable CGPG (GFX power gating).
4. Enable gfxoff.
5. Revise suspend/resume sequence.

Currently, only raven is able to support gfxoff at first. And after CQE do series rounds of testing, and there is no regression that bring by gfxoff feature till now.

We support two types of gfxoff, and user is able to build them manually from firmware repo:
1. Real CGPG

	$ make clean
	$ make REAL_CGPG=1
2. Faked CGPG: (by default)
	$ make clean
	$ make	

Then configure to enable gfxoff with ppfeaturemask=0xffffbfff.

Thanks,
Ray

Huang Rui (20):
drm/amdgpu: update psp gfx if header
drm/amdgpu: add new rlc firmware header format v2.1 drm/amdgpu: add save restore list cntl gpm and srm firmware support drm/amdgpu: enter rlc safe mode before set cgpg drm/amdgpu: cleanup init power gating function drm/amdgpu: revise init_rlc_save_restore_list behavior to support
latest register_list_format/register_restore table
drm/amdgpu: add setting powergating method for gfx9 drm/amd/powerplay: send CGPG smc message if PG is enabled for raven drm/amdgpu: move PP_FEATURE_MASK to amd_shared header drm/amdgpu: add gfxoff feature mask
drm/amdgpu: set gfxoff disabled by default drm/amd/powerplay: add gfx off control function drm/amd/powerplay: enable/disable gfxoff through smu drm/amdgpu: use pp_feature member to store the mask drm/amdgpu: clear gfxoff featue mask if the asic is not raven drm/amd/powerplay: add control gfxoff enabling in late init drm/amdgpu: it should disable gfxoff when system is going to suspend drm/amdgpu: fix to disable powergating in hw_fini drm/amdgpu: set CGPG if gfxoff is enabled for raven drm/amd/powerplay: use the flag to decide whether send gfxoff smc
message

 drivers/gpu/drm/amd/amdgpu/amdgpu.h               |  16 ++
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c        |   8 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h           |   2 -
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c           |   2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c           |  36 ++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c         |  51 ++++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h         |  22 ++
 drivers/gpu/drm/amd/amdgpu/ci_dpm.c               |   2 +-
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c             | 233 +++++++++++++++-------
 drivers/gpu/drm/amd/amdgpu/kv_dpm.c               |   2 +-
 drivers/gpu/drm/amd/amdgpu/psp_gfx_if.h           |  67 +++++--
 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c            |   9 +
 drivers/gpu/drm/amd/amdgpu/soc15.c                |   5 +
 drivers/gpu/drm/amd/include/amd_shared.h          |  19 ++
 drivers/gpu/drm/amd/powerplay/amd_powerplay.c     |  20 +-
 drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c       |   6 +-
 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c |  50 ++++-
 drivers/gpu/drm/amd/powerplay/inc/hwmgr.h         |  19 +-
 drivers/gpu/drm/amd/powerplay/inc/rv_ppsmc.h      |   1 +
 include/uapi/drm/amdgpu_drm.h                     |   6 +
 20 files changed, 447 insertions(+), 129 deletions(-)
Signature · 6 lines
2.7.4

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