[PATCH] drm/amdgpu: add destroy session when generate VCE destroy msg.

2016-07-25 Thread Rex Zhu
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,

[PATCH 4/4] drm/amd/powerplay: not change uvd/vce block's state when initialize/resume

2016-07-28 Thread Rex Zhu
Change-Id: I6e338a5faeb023b13bb450ecb1c4bb3eaa3b0ac5 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/eventmgr/eventactionchains.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/eventmgr/eventactionchains.c b/drivers/gpu/d

[PATCH 1/4] drm/amd/powerplay: fix typos of volt/millivolt symbols in comment.

2016-07-28 Thread Rex Zhu
Change-Id: Ife6002b68b1e64f76886e6e421b3e6f5f454eda9 Signed-off-by: Rex Zhu <rex@amd.com> Reviewed-by: Alexandre Demers <alexandre.f.dem...@gmail.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH 3/4] drm/amdgpu: use modules parameter to ctrl deep sleep feature in dpm

2016-07-28 Thread Rex Zhu
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

[PATCH 5/5] drm/amd/powrplay: delete code no longer in use on Polaris.

2016-08-01 Thread Rex Zhu
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

[PATCH 2/5] drm/amd/powerplay: pass sub_device_id and sub_vendor_id to powerplay.

2016-08-01 Thread Rex Zhu
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

[PATCH 4/5] drm/amd/powrplay: workaround Memory EDC Error for certain partner boards.

2016-08-01 Thread Rex Zhu
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

[PATCH 1/5] drm/amd/powerplay: delete useless code in hwmgr.

2016-08-01 Thread Rex Zhu
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 ++-

[PATCH 3/5] drm/amdgpu: AMD SW workaround for certain partner boards

2016-08-01 Thread Rex Zhu
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

[PATCH] drm/amd/powrplay: delete code set/unset deep_sleep/power_containment.

2016-08-03 Thread Rex Zhu
they were controled by module parameter. Change-Id: Ia492c811191be2246bc6d2c3569ec250f1e66572 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 3 --- drivers/gpu/drm/amd/powerplay/hwmgr/fiji_powertune.c | 2 -- drivers/gpu/drm/amd/pow

[PATCH] drm/amd/powerplay: change structure variable name.

2016-08-01 Thread Rex Zhu
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

[PATCH v2] drm/amd/powerplay: enable power containment features for tonga.

2016-08-17 Thread Rex Zhu
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

[PATCH 1/2] drm/amd/display: fix array lenth error.

2017-02-05 Thread Rex Zhu
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

[PATCH 2/2] drm/amd/powerplay: refine code to avoid potential bug that the memory not cleared.

2017-02-05 Thread Rex Zhu
Change-Id: If286d163cbabd8e9921a9d3cfcb71bb2b99aaceb Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drive

[PATCH] drm/amd/powerplay: fix regresstion issue can't set manual dpm mode.

2017-01-24 Thread Rex Zhu
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

[PATCH 06/12] drm/amdgpu: refine uvd5.0/6.0 code.

2017-01-26 Thread Rex Zhu
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

[PATCH 09/12] drm/amdgpu: refine code for VCE2.0 and related dpm code.

2017-01-26 Thread Rex Zhu
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

[PATCH 04/12] drm/amdgpu: refine uvd pg code in kv_dpm.c

2017-01-26 Thread Rex Zhu
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>

[PATCH 03/12] drm/amdgpu: power down/up uvd4 when smu disabled.

2017-01-26 Thread Rex Zhu
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

[PATCH 05/12] drm/amdgpu: refine uvd4.2 init/stop code.

2017-01-26 Thread Rex Zhu
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>

[PATCH 08/12] drm/amdgpu: when dpm disabled, also need to stop/start vce.

2017-01-26 Thread Rex Zhu
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

[PATCH 12/12] drm/amdgpu: refine vce3.0 code and related powerplay pg code.

2017-01-26 Thread Rex Zhu
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_

[PATCH 10/12] drm/amdgpu: enable vce pg feature on Kv.

2017-01-26 Thread Rex Zhu
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

[PATCH 07/12] drm/amdgpu: add uvd timeout time.

2017-01-26 Thread Rex Zhu
in dpm disabled case, we need to wait for more time. otherwise, uvd can't be initialized in bonarie/hawaii. Signed-off-by: Rex Zhu <rex@amd.com> Acked-by: Alex Deucher <alexander.deuc...@amd.com> Change-Id: Ia014a1b1b0ddff48c86309477e8aaf8b8f81d881 --- drivers/gpu/dr

[PATCH 00/12] mise patch related uvd/vce cg and pg.

2017-01-26 Thread Rex Zhu
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

[PATCH 01/12] drm/amdgpu: when dpm disabled, also can enable uvd cg/pg.

2017-01-26 Thread Rex Zhu
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

[PATCH 02/12] drm/amdgpu: add current_pg_status register define for smu7.1

2017-01-26 Thread Rex Zhu
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

[PATCH 1/4] drm/amdgpu: query sub_device id and sub_vendor id by cgs interface.

2016-08-22 Thread Rex Zhu
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

[PATCH 2/4] drm/amd/powerplay: simplify struct amd_pp_init.

2016-08-22 Thread Rex Zhu
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

[PATCH 3/4] drm/amd/powerplay: get system info by cgs interface.

2016-08-22 Thread Rex Zhu
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

[PATCH] drm/amdgpu: refine uvd gate logic for CI.

2016-08-24 Thread Rex Zhu
: 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/

[PATCH 4/4] drm/amd/powerplay: read power state table from vbios and can't be changed. so allocate memory for request ps and current ps.

2016-08-31 Thread Rex Zhu
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

[PATCH 3/4] drm/amd/powerplay: refine struct name for coding style reason.

2016-08-31 Thread Rex Zhu
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

[PATCH 1/4] drm/amd/powerplay: refine struct name for code style reason.

2016-08-31 Thread Rex Zhu
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

[PATCH 2/4] drm/amd/powerplay: add vce state tables initialize for ppt v1.

2016-08-31 Thread Rex Zhu
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

[PATCH 2/2] drm/amd/powerplay: fix issue power containment not enabled on Tonga.

2016-09-05 Thread Rex Zhu
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

[PATCH 2/2] drm/amd/powerplay: fix issue power containment not enabled on Tonga.

2016-09-05 Thread Rex Zhu
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

[PATCH 1/2] drm/amd/powerplay: enable/disable auto thermal throttle for tonga.

2016-09-05 Thread Rex Zhu
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

[PATCH 2/2] drm/amd/powerplay: fix issue power containment not enabled on Tonga.

2016-09-05 Thread Rex Zhu
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

[PATCH 2/2] drm/amd/powerplay: fix issue power containment not enabled on Tonga.

2016-09-05 Thread Rex Zhu
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

[PATCH 1/3] drm/amd/powerplay: calculate flexible array member's address.

2016-09-08 Thread Rex Zhu
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

[PATCH] drm/amd/powerplay: fix issue vce dpm can't be enabled on tonga.

2016-08-30 Thread Rex Zhu
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

[PATCH 00/20] powerplay code refactoring.

2016-09-09 Thread Rex Zhu
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

[PATCH 08/20] drm/amd/powerplay: use smu7_hwmgr to manager tonga.

2016-09-09 Thread Rex Zhu
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(-)

[PATCH 09/20] drm/amd/powerplay: implement smu7_smumgr for asics with smu ip version 7.

2016-09-09 Thread Rex Zhu
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

[PATCH 15/20] drm/amd/powerplay: add pp_table_version in hwmgr.

2016-09-09 Thread Rex Zhu
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

[PATCH 13/20] drm/amd/powerplay: use smu7 common functions and data on icelannd.

2016-09-09 Thread Rex Zhu
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 +- ...

[PATCH 17/20] drm/amd/powerplay: add pptable point check before use it

2016-09-09 Thread Rex Zhu
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

[PATCH 4/9] drm/amd/powerplay: initialize platform caps in hwmgr_init.

2016-09-09 Thread Rex Zhu
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

[PATCH 5/9] drm/amd/powerplay: add common functiones for visiting pp table.

2016-09-09 Thread Rex Zhu
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(-)

[PATCH 12/20] drm/amd/powerplay: use smu7 common functions and data on Fiji.

2016-09-09 Thread Rex Zhu
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

[PATCH 16/20] drm/amd/powerplay: add pp table v0 support in smu7_hwmgr.

2016-09-09 Thread Rex Zhu
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

[PATCH 18/20] drm/amd/powerplay: implement fw related smu interface for iceland.

2016-09-09 Thread Rex Zhu
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

[PATCH 19/20] drm/amd/powerplay: use smu7 hwmgr to manager iceland

2016-09-09 Thread Rex Zhu
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(-)

[PATCH 10/20] drm/amd/powerplay: use smu7 common functions and data on Tonga.

2016-09-09 Thread Rex Zhu
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

[PATCH 1/9] drm/amd/powerplay: mark symbols static where possible on tonga/iceland.

2016-09-09 Thread Rex Zhu
Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/iceland_hwmgr.c | 6 +++--- drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c | 10 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/iceland_hwmg

[PATCH 2/9] drm/amd/powerplay: add feature flags in hwmgr to enable/disable special features.

2016-09-09 Thread Rex Zhu
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

[PATCH 0/9] misc patches related to powerplay

2016-09-09 Thread Rex Zhu
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

[PATCH 6/9] drm/amd/powerplay: wrap get evv voltage of fiji and polaris

2016-09-09 Thread Rex Zhu
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

[PATCH 9/9] drm/amd/powerplay: delete dupicated function and definition.

2016-09-09 Thread Rex Zhu
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

[PATCH 8/9] drm/amd/powerplay: delete const flag of hwmgr_funcs for overload.

2016-09-09 Thread Rex Zhu
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

[PATCH 3/9] drm/amd/powerplay: add module parameter for mask pp feature

2016-09-09 Thread Rex Zhu
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(+)

[PATCH 7/9] drm/amd/powerplay: move smu related variable definitions to smumgr.

2016-09-09 Thread Rex Zhu
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 --

[PATCH v2 05/16] drm/amd/powerplay: implement fw image related smu interface for Fiji.

2016-09-12 Thread Rex Zhu
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

[PATCH v2 08/16] drm/amd/powerplay: use smu7_hwmgr to manager tonga.

2016-09-12 Thread Rex Zhu
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(-)

[PATCH v2 04/16] drm/amd/powerplay: use smu7 hwmgr to manager polaris10/11

2016-09-12 Thread Rex Zhu
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 ++--

[PATCH v2 14/16] drm/amd/powerplay: implement fw related smu interface for iceland.

2016-09-12 Thread Rex Zhu
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

[PATCH v2 11/16] drm/amd/powerplay: use smu7 common functions and data on Polars10.

2016-09-12 Thread Rex Zhu
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

[PATCH v2 10/16] drm/amd/powerplay: use smu7 common functions and data on Tonga.

2016-09-12 Thread Rex Zhu
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

[PATCH v2 15/16] drm/amd/powerplay: use smu7 hwmgr to manager iceland

2016-09-12 Thread Rex Zhu
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(-)

[PATCH v2 12/16] drm/amd/powerplay: use smu7 common functions and data on Fiji.

2016-09-12 Thread Rex Zhu
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

[PATCH v2 13/16] drm/amd/powerplay: use smu7 common functions and data on icelannd.

2016-09-12 Thread Rex Zhu
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 +- ...

[PATCH v2 00/16] powerplay code refactoring.

2016-09-12 Thread Rex Zhu
smumgr to deal with fw related jobs. Rex Zhu (16): drm/amd/powerplay: add common interface in smumgr to help to visit fw image. drm/amd/powerplay: implement smu7 hwmgr to manager asics with smu ip version 7. drm/amd/powerplay: implement fw image related smum interface for Polaris

[PATCH v2 09/16] drm/amd/powerplay: implement smu7_smumgr for asics with smu ip version 7.

2016-09-12 Thread Rex Zhu
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

[PATCH] drm/amdgpu: bypass vce clock if vce is idle on Fiji.

2016-09-24 Thread Rex Zhu
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

[PATCH] drm/amdgpu: use powerplay module for dgpu of VI.

2016-09-19 Thread Rex Zhu
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

[PATCH 1/3] drm/amd/powerplay: export function to help to set cg by smu.

2016-09-18 Thread Rex Zhu
Change-Id: I21d60ebdc8811af406246e24d985819f21498eb5 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 77 +-- drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h | 2 + 2 files changed, 5 insertions(+), 74 deletions(-) diff

[PATCH 3/3] drm/amdgpu: set gfx clock gating for tonga/polaris.

2016-09-18 Thread Rex Zhu
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/

[PATCH 2/3] drm/amdgpu: set system clock gating for tonga/polaris.

2016-09-18 Thread Rex Zhu
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

[PATCH] drm/amd/powerplay: enable power containment features for tonga.

2016-08-17 Thread Rex Zhu
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

[PATCH 6/6] drm/amdgpu: turn on/off uvd clock when dpm enable/disable on CI

2016-10-27 Thread Rex Zhu
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

[PATCH 2/2] drm/amd/powerplay: make CAC feature controlled by powertune.

2016-10-27 Thread Rex Zhu
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

[PATCH 1/2] drm/amdgpu: always un-gate UVD REGS path.

2016-11-09 Thread Rex Zhu
Change-Id: I910a79b551a9b79b635161bb42ac123a23783225 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c b/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c index d2c96f1..d

[PATCH 2/2] drm/amdgpu: change log level to KERN_INFO in ci_dpm.c

2016-11-09 Thread Rex Zhu
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

[PATCH 3/5] drm/amdgpu: refine uvd 5.0 clock gate feature.

2016-11-08 Thread Rex Zhu
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

[PATCH 5/5] drm/amdgpu: enable uvd mgcg for Fiji.

2016-11-08 Thread Rex Zhu
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

[PATCH 2/5] drm/amd/powerplay: partial revert commit 01b0e7fb1.

2016-11-08 Thread Rex Zhu
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

[PATCH 1/5] drm/amdgpu: not set bypass mode for uvd5.0/uvd6.0

2016-11-08 Thread Rex Zhu
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

[PATCH] drm/amd/powerplay: implement get_clock_by_type for iceland.

2016-11-09 Thread Rex Zhu
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

[PATCH] drm/amdgpu: refine cz uvd clock gate logic.

2016-11-10 Thread Rex Zhu
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

[PATCH] drm/amdgpu: not hardcode high performance level to 1 on Ci.

2016-11-11 Thread Rex Zhu
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/

[PATCH] drm/amd/powerplay: fix issue dpm can't work on iceland.

2016-11-11 Thread Rex Zhu
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

[PATCH 6/7] drm/amdgpu: update current ps/requeset ps in adev with real ps.

2016-10-14 Thread Rex Zhu
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

[PATCH 7/7] drm/amdgpu: refine set power state logic for dpm.

2016-10-14 Thread Rex Zhu
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

[PATCH 2/7] drm/amdgpu: add new callback to check power state info

2016-10-14 Thread Rex Zhu
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

[PATCH 4/7] drm/amdgpu: add an implement for check_power_state equal for Cz.

2016-10-14 Thread Rex Zhu
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

[PATCH 5/7] drm/amdgpu: add an implement for check_power_state equal for Si.

2016-10-14 Thread Rex Zhu
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/

[PATCH 3/7] drm/amdgpu: add an implement for check_power_state equal for CI

2016-10-14 Thread Rex Zhu
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/

[PATCH] drm/amdgpu: fix bug uvd status not true in debugfs.

2016-11-25 Thread Rex Zhu
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.

[PATCH 1/2] drm/amdgpu: fix s3 resume back, uvd dpm randomly can't disable.

2016-10-21 Thread Rex Zhu
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 +-

  1   2   3   4   5   6   7   8   9   >