drm/amdgpu: gfx off support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest20 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/20 | drm/amdgpu: update psp gfx if headerdrivers/ | +46 | 0 replies | |
| 2/20 | drm/amdgpu: add new rlc firmware header format v2.1drivers/ drivers/ | +51 | 0 replies | |
| 3/20 | drm/amdgpu: add save restore list cntl gpm and srm firmware supportdrivers/ drivers/ drivers/ +4 more | +138 | 0 replies | |
| 4/20 | drm/amdgpu: enter rlc safe mode before set cgpgdrivers/ | +3 | 0 replies | |
| 5/20 | drm/amdgpu: cleanup init power gating functiondrivers/ | +6 | 0 replies | |
| 6/20 | drm/amdgpu: revise init_rlc_save_restore_list behavior to support latest register_list_format/register_restore tabledrivers/ | +87 | 0 replies | |
| 7/20 | drm/amdgpu: add setting powergating method for gfx9drivers/ | +5 | 0 replies | |
| 8/20 | drm/amd/powerplay: send CGPG smc message if PG is enabled for ravendrivers/ drivers/ | +8 | 0 replies | |
| 9/20 | drm/amdgpu: move PP_FEATURE_MASK to amd_shared headerdrivers/ drivers/ drivers/ +2 more | +20 | 0 replies | |
| 10/20 | drm/amdgpu: add gfxoff feature maskdrivers/ | +1 | 0 replies | |
| 11/20 | drm/amdgpu: set gfxoff disabled by defaultdrivers/ | +1 | 0 replies | |
| 12/20 | drm/amd/powerplay: add gfx off control functiondrivers/ drivers/ | +36 | 0 replies | |
| 13/20 | drm/amd/powerplay: enable/disable gfxoff through smudrivers/ | +9 | 0 replies | |
| 14/20 | drm/amdgpu: use pp_feature member to store the maskdrivers/ drivers/ drivers/ +2 more | +6 | 0 replies | |
| 15/20 | drm/amdgpu: clear gfxoff featue mask if the asic is not ravendrivers/ | +5 | 0 replies | |
| 16/20 | drm/amd/powerplay: add control gfxoff enabling in late initdrivers/ | +9 | 0 replies | |
| 17/20 | drm/amdgpu: it should disable gfxoff when system is going to suspenddrivers/ | +6 | 0 replies | |
| 18/20 | drm/amdgpu: fix to disable powergating in hw_finidrivers/ | +3 | 0 replies | |
| 19/20 | drm/amdgpu: set CGPG if gfxoff is enabled for ravendrivers/ | +5 | 0 replies | |
| 20/20 | drm/amd/powerplay: use the flag to decide whether send gfxoff smc messagedrivers/ | +5 | 0 replies |
Reviews trailers per patch
All 20 patches have a Reviewed-by or Acked-by.
| Patch | Hawking Zhang | Alex Deucher |
|---|---|---|
| 1/20 | A-b | R-b |
| 2/20 | A-b | |
| 3/20 | A-b | |
| 4/20 | A-b | A-b |
| 5/20 | A-b | A-b |
| 6/20 | A-b | A-b |
| 7/20 | A-b | A-b |
| 8/20 | A-b | A-b |
| 9/20 | R-b | R-b |
| 10/20 | R-b | R-b |
| 11/20 | R-b | R-b |
| 12/20 | R-b | R-b |
| 13/20 | R-b | R-b |
| 14/20 | R-b | R-b |
| 15/20 | R-b | R-b |
| 16/20 | R-b | R-b |
| 17/20 | R-b | R-b |
| 18/20 | R-b | R-b |
| 19/20 | R-b | R-b |
| 20/20 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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