Change-Id: I10bee5c669cceb05c91b164a82bb08cb70a30b33
Signed-off-by: David Mao <david@amd.com>
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Christian König <christian.koe...@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 15 ---
1 file changed,
Change-Id: I44a5a7fef33fdb1dce9e5f753d45c982f8743c08
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 +
drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 5 -
drivers/gpu/drm/amd/amdgpu/cz_dpm.c | 6 +-
drivers/gpu/drm/amd/amdgpu/kv_dpm.c | 6 +-
4
Change-Id: I97efcc8832dc595ab44ae705ad6de4a1def59453
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c | 13 -
1 file changed, 13 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c
b/drivers/gpu/d
Change-Id: I52c506611e1b3cda008612f0424742a7c00e1803
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 3 +++
drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h | 2 ++
2 file
Change-Id: Idce35c2bfc4f2d644e0f6f579f4736c2184df51a
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 2 ++
drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c | 5 -
2 file
Change-Id: I047ed9679598b0e519e49b12414ca7f629c67870
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 36 --
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 108 ++-
Change-Id: I1ba14aaf54a10530ea87e9efb44a01a18523e3d0
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amd
Change-Id: I7668616cf4ffef69a4dc9fb7687c1aeb2c277d50
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dri
v2: fix build error introduced when fix code style problems.
Change-Id: Ifa9bdfd92fe060349cfbf7c10cd75d30d8acb95d
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/Makefile | 2 +-
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c | 24 +-
drivers/g
Change-Id: I09011c5e6d5493db7e3d9a7ff7ab8c871a8db862
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_service
Change-Id: I0816a51efe696edfc2a37b17eaacb94660511038
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
b/drivers/gpu/drm/amd/powerplay
in powerplay.
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c | 24 +-
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 21 ---
.../drm/amd/pow
v2: clean up vce cg function.
use sw cg when vce stoped.
1. implement vce_stop function.
2. not start vce when hw_init.
3. refine vce cg/pg code.
4. delete bypass mode.
Change-Id: I14cc46fcec17d6e65ffda27a80f7215858e3b2dc
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex D
1. no need to set cg as use hw dynamic cg.
2. when uvd idle, stop uvd. encode, start uvd.
3. if pg feature enabled, power on/down uvd by smu.
4. drm/amdgpu: dpm do not set uvd pg status.
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
Change-Id: I68049a20a6980febe63ecc0028143564f5742892
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c | 17 -
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/drivers
1. set uvd_status busy before uvd_start.
2. clear uvd_status to 0 after uvd stop.
smu firmware may check uvd_status.
3. wait uvd idle before stop uvd.
4. not start uvd when hw_init.
Signed-off-by: Rex Zhu <rex@amd.com>
Acked-by: Alex Deucher <alexander.deuc...@amd.com>
Change-Id: Ia969546324aa9b35c99926bb88d87f29829a70b4
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amd
1. not start vce3.0 when hw_init
2. stop vce3.0 when vce idle.
3. pg mask used to ctrl power down/up vce.
4. change cg pg sequence in powerplay.
Change-Id: I852c4cf7066153074a12c272d81bfbe964d306a1
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/vce_
Change-Id: Idafb0fbd6bdae1d29a2bc5bb142158714406e681
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/amdgpu/cik.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/am
Rex Zhu (12):
drm/amdgpu: when dpm disabled, also can enable uvd cg/pg.
drm/amdgpu: add current_pg_status register define for smu7.1
drm/amdgpu: power down/up uvd4 when smu disabled.
drm/amdgpu: refine uvd pg code in kv_dpm.c
drm/amdgpu: refine uvd4.2 init/stop code.
drm/amdgpu
Change-Id: I69ad5568113dbda43fcf414c4bc2e3ff3c0116fb
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amd
Change-Id: Ib726b7b896a11264018b6a1894c94fcb817a46fa
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/include/asic_reg/smu/smu_7_0_1_d.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/amd/incl
Change-Id: I23b1f053c33d1176f05b8c14b22e0f4a6f58d454
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 6 ++
drivers/gpu/drm/amd/include/cgs_common.h | 2 ++
2 files changed, 8 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
b/d
delete the members not needed when amd_powerplay_init.
Change-Id: I14ea3fa4d795e6f439bf821241d9d151e8117a9a
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 4
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 3 ---
drivers/gpu/d
Change-Id: I4cf5a2526b1c6320cefaedf781131e46b7c75d0c
Signed-off-by: Rex Zhu <rex@amd.com>
---
.../gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c | 24 ++
1 file changed, 20 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmg
: I14792383ed50c0465699cdda7f1bad2ea144b861
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
index a0d63a2..1d8c375 100644
--- a/drivers/gpu/drm/amd/
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 2 +-
drivers/gpu/drm/amd/powerplay/eventmgr/psm.c | 5 +++--
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 15 +--
3 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/d
delete useless member.
Change-Id: I03585fc3476f2954735f487c17dffa668287ad45
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/inc/power_state.h | 20 +---
1 file changed, 9 insertions(+), 11 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerpl
Change-Id: I491a1de273f350a14576c45b2ec986365797dcc0
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c | 2 +-
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 4 ++--
drivers/gpu/drm/amd/powerplay/inc/power_state.h | 2 +-
3
Change-Id: Ib44bf1c7c1cb71ce619cc4589608e4c049f9db7e
Signed-off-by: Rex Zhu <rex@amd.com>
---
.../amd/powerplay/hwmgr/tonga_processpptables.c| 58 ++
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 22 ++--
2 files changed, 75 insertions(+), 5 del
Change-Id: I309d71fe5ca726f620a29425536d0824bd8f2e08
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_powertune.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_powertune.c
b/drivers/gpu/drm/amd/pow
Change-Id: I309d71fe5ca726f620a29425536d0824bd8f2e08
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_powertune.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_powertune.c
b/drivers/gpu/drm/amd/pow
Change-Id: I078ec1e89afaa13a072a67b0010d2903b12f446d
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c | 85 +++
1 file changed, 85 insertions(+)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c
b/drivers/gpu/d
Change-Id: I309d71fe5ca726f620a29425536d0824bd8f2e08
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_powertune.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_powertune.c
b/drivers/gpu/drm/amd/pow
Change-Id: I309d71fe5ca726f620a29425536d0824bd8f2e08
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_powertune.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_powertune.c
b/drivers/gpu/drm/amd/pow
Signed-off-by: Rex Zhu <rex@amd.com>
Acked-by: Christian König <christian.koe...@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
.../gpu/drm/amd/powerplay/hwmgr/tonga_pptable.h| 2 +-
.../amd/powerplay/hwmgr/tonga_processp
Signed-off-by: Rex Zhu <rex@amd.com>
Change-Id: If7fa45cf3e81c31a8828f208ee9ba02bb9f18a1c
---
.../amd/powerplay/hwmgr/tonga_clockpowergating.c | 60 +-
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c | 34 ++--
drivers/gpu/drm/amd/powerplay
implement smu7_hwmgr smu7_smumgr to manager asics with smu version 7.
so can delete duplicated code.
There are subtle differences in firmware image between different asics
implement asic_name_smc.c under smumgr to deal with fw related jobs.
Rex Zhu (20):
drm/amd/powerplay: add common
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/Makefile | 5 ++---
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 30 +---
2 files changed, 29 insertions(+), 6 deletions(-)
Change-Id: Id0017fcdd179cc726349eacc2ee56be96279b526
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/powerplay/inc/smumgr.h | 1 +
drivers/gpu/drm/amd/powerplay/smumgr/Makefile | 2 +-
drivers
Change-Id: Iee3c7ab9c1318ec7206bf5a5ae59d8c48b8e823b
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
Conflicts:
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
---
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 8
1 fil
Change-Id: I8144e52141f7e6a49a18be3523540a6edd898ec0
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
.../gpu/drm/amd/powerplay/hwmgr/iceland_hwmgr.c| 50 +-
.../drm/amd/powerplay/hwmgr/iceland_powertune.c| 6 +-
...
Change-Id: Ibad281cd7fd660abe612894df82be284c9b865a9
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/a
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
Signed-off-by: Rex Zhu <rex@amd.com>
---
.../gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 34 ---
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c| 109 -
.../gpu/drm/amd/powerplay/inc/hardw
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 57 +
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 8 +++-
2 files changed, 63 insertions(+), 2 deletions(-)
Change-Id: Ie63ee99aa515e37943aee726103260819c9e2913
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c| 69 +--
drivers/gpu/drm/amd/powerplay/smumgr/fiji_sm
Change-Id: I5cbd25597b02a01e7de28347659139a5e0a30098
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c| 2 +-
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwm
Change-Id: Ic5b83029c4e326ef4e02ee341ba8b1109d17328b
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
.../drm/amd/powerplay/hwmgr/iceland_powertune.h| 14 -
drivers/gpu/drm/amd/powerplay/smumgr/Makefile |5 +-
drivers
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/Makefile | 4 +---
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 36 +---
2 files changed, 28 insertions(+), 12 deletions(-)
Change-Id: If9ca14557f99f3e13e17086e8c0a90c53f232631
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c | 74 +--
.../gpu/drm/amd/powerplay/smumgr/tonga_smumg
Change-Id: I8d3a8cbcac10d65d0d7b724dfb6eb6fbaedcfda9
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 14 ++
1 file changed, 14 insertions(+)
diff --git a/drivers/gpu/drm/amd/p
Rex Zhu (9):
drm/amd/powerplay: mark symbols static where possible on tonga.
drm/amd/powerplay: add feature flags in hwmgr to enable/disable
special features.
drm/amd/powerplay: add module parameter for mask pp feature
drm/amd/powerplay: initialize platform caps in hwmgr_init.
drm
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 17 +
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 3 +++
2 files changed, 20 insertions(+)
diff --git a/drivers
Change-Id: I9a03c3aac811259e32edbf7c20ef3eeca69d0252
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 7 +--
drivers/gpu/drm/amd/powerplay/hwmgr/iceland_hwm
Change-Id: I832464f3de9cbacd2e0f6b6a22d2d7d9980be418
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c| 2 +-
drivers/gpu/drm/amd/powerplay/hwmgr/fiji_hwmgr.c | 2 +-
drivers
Change-Id: I0fad3f4f96a57b41a5c47293e412fca40c741738
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 +
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4
2 files changed, 5 insertions(+)
Change-Id: Ia64aee14b196bef708aded00cc257c7eafcfbcb9
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
Signed-off-by: Rex Zhu <rex@amd.com>
---
.../gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.h| 5 +
.../drm/amd/powerplay/hwmgr/polaris10_powertune.h| 13 --
Change-Id: I1bab73135461c289264b14972fbf15eb424734ee
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/powerplay/smumgr/Makefile |2 +-
drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/Makefile | 4 +---
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 30 +---
2 files changed, 28 insertions(+), 6 deletions(-)
Change-Id: Ia3dae5b7ef0889acd9479f83d5f3b8a91786f4bf
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/Makefile | 2 --
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 35 ++--
Change-Id: Ic5b83029c4e326ef4e02ee341ba8b1109d17328b
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
.../drm/amd/powerplay/hwmgr/iceland_powertune.h| 14 -
drivers/gpu/drm/amd/powerplay/smumgr/Makefile |5 +-
drivers
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
.../gpu/drm/amd/powerplay/inc/polaris10_pwrvirus.h | 3 +-
.../gpu/drm/amd/powerplay/smumgr/polaris10_smc.c | 81 +--
.../drm/amd/powerplay/smumgr/polaris10_smumg
Change-Id: If9ca14557f99f3e13e17086e8c0a90c53f232631
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c | 74 +--
.../gpu/drm/amd/powerplay/smumgr/tonga_smumg
Change-Id: Ie63ee99aa515e37943aee726103260819c9e2913
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c| 69 +--
drivers/gpu/drm/amd/powerplay/smumgr/fiji_sm
Change-Id: I8144e52141f7e6a49a18be3523540a6edd898ec0
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
.../gpu/drm/amd/powerplay/hwmgr/iceland_hwmgr.c| 50 +-
.../drm/amd/powerplay/hwmgr/iceland_powertune.c| 6 +-
...
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/powerplay/inc/smumgr.h | 1 +
drivers/gpu/drm/amd/powerplay/smumgr/Makefile | 2 +-
drivers/gpu/drm/amd/powerplay/smumgr/smu7_sm
Change-Id: I74bdf39af332eb369e87c989b344f3e06cbfc714
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
delete vi dpm related code and files.
Change-Id: I080de47df12d45be06a72fe229695675cf6648d6
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/Makefile | 5 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 13 +-
drivers/gpu/drm/amd/amdgpu/fiji
Change-Id: I65d9858b8ca0789c5d82db2f8893b7c10fc6f471
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 77 +++
1 file changed, 77 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
b/drivers/gpu/drm/amd/
Change-Id: Ie66afaea8b30c4b7b6d491c7aa63775e4a5cd6e1
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/vi.c | 61 +
1 file changed, 61 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c
Change-Id: Ibe7ddaea7188d40204b33574402d88bf50acff62
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/Makefile | 2 +-
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c | 24 +-
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.h | 11 +-
.../gpu/d
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 24 ++--
1 file changed, 18 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
index 5b41198..d265d1e 100644
--- a/drive
Change-Id: I93ec0c5e66e7a3e7b7bd49a88b8e55a7570de735
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 20 +++-
1 file changed, 7 insertions(+), 13 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
b/drivers/g
Change-Id: I2ad8a66d4dfd089b2a64ffaed81daf5b1525810b
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
index f
1. fix uvd cg status not correct.
2. fix uvd pg can't work on tonga.
3. enable uvd mgcg.
Change-Id: Ia3911f2bd0f982e2fd00a9041ec03f47ab5338ed
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
Reviewed-by: Tom St Denis <tom.stde...@amd.co
Change-Id: I96b937c8b97589d1f98a8351f3653b89163c84a0
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/vi.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c
index a230b39..d09c25a
when uvd is idle, we gate uvd clock.
and uvd is busy, we ungate uvd clock.
Change-Id: Ic2fa6149389b0113faf36ec7aad857e77d01af33
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpower
Change-Id: I99b307d2026d6fec0b5b18349455df2c38d78c6a
Signed-off-by: Rex Zhu <rex@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c | 15 ---
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 18 ++
2 file
iceland use pptable v0.
Change-Id: Ifaf5dc081c76a014d97f80b8bde0a21003271dd5
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 51 +++-
1 file changed, 33 insertions(+), 18 deletions(-)
diff --git a/drivers/gpu/drm/amd/pow
sw clockgate was used on uvd6.0.
when uvd is idle, we gate the uvd clock.
when decode, we ungate the uvd clock.
Change-Id: I79ecdc5d0f48e97919386a08acca994f1fa05484
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/cz_dpm.c | 6 ++
drivers/g
Change-Id: I39009697639f1aeaefbe444bae2bf081f156de61
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 23 ---
1 file changed, 16 insertions(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
b/drivers/gpu/drm/amd/
In driver, we can't assume there were only
2 performance levels on VI. it was decided by atombios.
e.g. there were 3 performance levels in HP atom bios.
Change-Id: Ia7645ca12018092c3e5870403abf3d7ba20dc801
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay
Change-Id: Iaff11c514927fc596cdf9677b2ebde92fcb2d31e
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 2 ++
drivers/gpu/drm/amd/amdgpu/cz_dpm.c | 6 --
drivers/gpu/drm/amd/amdgpu/si_dpm.c | 2 ++
3 files changed, 8 insertions(+), 2 deletions(-)
diff
Change-Id: I74e719454e1c048bb3d31f4dc3e3f39bad0e
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 81 +++---
1 file changed, 16 insertions(+), 65 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
b/drive
Change-Id: I3dcfda30f93f3a7cf94988097f34b7e1a8298968
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 4
Change-Id: I00186c6d316c22fdf065fd8525e927dd2ee79685
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/cz_dpm.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/cz_dpm.c
b/drivers/gpu/drm/amd/amdgpu/cz_dpm.c
index f
Change-Id: I6d214800a2bcf4781656905afc1643bca0dd07d5
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/si_dpm.c | 52 +
1 file changed, 52 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/si_dpm.c
b/drivers/gpu/drm/amd/
Change-Id: Ib774eeff0f3f19a5f593668dd3329f5cfd111eaa
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 51 +
1 file changed, 51 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
b/drivers/gpu/drm/amd/
can't get uvd's state by uvd_enabled. uvd_enabled
is used for request higher mclk.
in multi-display case, mclk has been in highest clock,
no matter uvd's state changed, uvd_enabled will not
be changed.
Change-Id: Iedbe3b7ce085e9199fa7fddb88185bfd16f26612
Signed-off-by: Rex Zhu <rex@amd.
the value of last_mclk_dpm_enable_mask will be changed if
other clients(vce,dal) trigger set power state between enable
and disable uvd dpm.
Change-Id: I5bdca2ff7d401243780c71c8d73fdc1e8febaae1
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 2 +-
fix pm-hibernat bug, when suspend/resume, dpm start failed.
Change-Id: I03784f0049563b11721ebe905d9bea40ecc82170
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 17 -
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/drivers/g
Change-Id: Ie7a8392755089b0f1d78d94bf7ba59b682619b06
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h | 2 ++
drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 2 +-
drivers/gpu/drm/amd/amdgpu/cz_dpm.c | 2 +-
drivers/gpu/drm/amd/amdgpu/kv_dpm.c | 2 +-
4
Change-Id: I42a6b99634ac67eeef16361be949eb535d0a9b26
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 4 ++--
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 2 --
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/amd/pow
Change-Id: I8b05ce1ad9cd2898a18eba3fa5f5ae3ba3627a2f
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 ++--
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 14 +++---
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/drivers/gpu/d
Change-Id: I085da4cef174adb7b170dac03a684867b3d80044
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 9 +++--
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
b/drivers/gpu/drm/amd/pow
Voltage Controller have been enabled (SMC message)
before ULV enablement.
Change-Id: I4833c8d53611c8b93712254d5a152ae8e98a7d78
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 7 ---
1 file changed, 7 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
Rex Zhu (7):
drm/amdgpu/powerplay: pp module only enable smu when dpm disabled.
drm/amd/powerplay: use mask bit for deepsleep/power tune feature.
drm/amdgpu: use mask bit for deep sleep feature on dpm.
drm/amdgpu: delete duplicate module parameter.
drm/amd/powerplay: fix code style
Change-Id: Idf3029dd61469c544c8431ba2220f61a21f98549
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c
b/drivers/g
Change-Id: I8ce8b16e77cacc914982fa0986b055eb31d6a390
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
index 3
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c | 25 ++---
drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c | 18 ++
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 9 -
3 files changed, 44 insertions(+), 8 deletions(-)
diff
1 - 100 of 798 matches
Mail list logo