[PATCH 2/2] drm/amd/pp: Add stable Pstate clk display when print_clock_levels

2018-01-08 Thread Rex Zhu
The additional output are at the end of sclk/mclk info as cat pp_dpm_mclk 0: 300Mhz * 1: 1650Mhz P: 300Mhz Signed-off-by: Rex Zhu <rex@amd.com> Change-Id: Idf8eeedb5d399d9ffb7de7a2fb2976c7fa7c01a8 --- drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 2 ++ drivers/gpu/drm/amd/pow

[PATCH 1/2] drm/amd/pp: Store stable Pstate clocks

2018-01-05 Thread Rex Zhu
User can use to calculate profiling ratios when set UMD Pstate. Signed-off-by: Rex Zhu <rex@amd.com> Change-Id: I3c6b82ebface57eb969d474c57149e8658ab7014 --- drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 2 ++ drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c | 3 +++ drive

[PATCH 2/2] drm/amd/pp: Add stable Pstate clk display support in debugfs

2018-01-05 Thread Rex Zhu
The additional output are: PSTATE_SCLK and PSTATE_MCLK value in MHz as: 300 MHz (PSTATE_SCLK) 300 MHz (PSTATE_MCLK) Change-Id: I08645d518635f81bc566d242712b6906ee5413fb Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 2 ++ drivers/gpu/d

[PATCH 1/2] drm/amd/pp: Add a new pp feature mask bit for OD feature

2018-01-04 Thread Rex Zhu
when this bit was set on module load, driver will allow the user over/under gpu clock and voltage through sysfs. by default, this bit was not set. Change-Id: I4ec2d3a689ae946d4af9f904c59b42da5b929181 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu

[PATCH] drm/amd/pp: Refine code shorten variable name

2018-01-04 Thread Rex Zhu
Change-Id: Id5f146321b11c9dbfa5a48a5197e714761f57670 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 24 -- .../gpu/drm/amd/powerplay/inc/hardwaremanager.h| 2 +- 2 files changed, 9 insertions(+), 17 deletions(-)

[PATCH 2/2] drm/amd/pp: Add and initialize OD_dpm_table for CI/VI.

2018-01-04 Thread Rex Zhu
Change-Id: I05db3fe2a274ce9666a5074c82448bf8bd6e7ee8 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 73 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.h | 14 + 2 files changed, 87 insertions(+) diff --git a/d

[PATCH v2] drm/amd/pp: Implement get_max_high_clocks for CI/VI

2018-01-03 Thread Rex Zhu
: I20454060ebe01955c5653de037dd8c09a576026a Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c index 4

[PATCH] drm/amd/pp: Implement get_max_high_clocks for CI/VI

2018-01-03 Thread Rex Zhu
DC component expect PP to give max engine clock and memory clock through pp_get_display_mode_validation_clocks on DGPU as well. This patch can fix MultiGPU-Display blank out with 1 IGPU-4k display and 2 DGPU-two 4K displays. Change-Id: I20454060ebe01955c5653de037dd8c09a576026a Signed-off-by: Rex

[PATCH] drm/amd/pp: Supply Max DGPU clock for DC validation

2018-01-02 Thread Rex Zhu
This patch can fix MultiGPU-Display blank out with 1 IGPU-4k display and 2 DGPU-two 4K displays. Change-Id: I41208feb6b275d9e8b45e9ef129e19c9739107a4 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 9 +++-- 1 file changed, 7 insertions

[PATCH 3/3] drm/amd/pp: Refine pp_dpm_set_pp_table logic

2018-01-02 Thread Rex Zhu
Disable avfs control before set user defined pp table. Change-Id: I0a63aa1def82b166d3f2aa542c3a190339270236 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/d

[PATCH 2/3] drm/amd/pp: Update avfs when reset power state on VI

2018-01-02 Thread Rex Zhu
when Over-driver engine clock and voltage were set, need to recalculate AVFS voltage Change-Id: Ib97f0424e35ea52e5ce0ed7d7765e207c753f744 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 78 ++ drivers/gpu/drm/amd/pow

[PATCH 1/3] drm/amd/pp: Add sysfs entry to get voltage control type

2018-01-02 Thread Rex Zhu
Change-Id: Ie54af5a8056dba16aa9849190441377c5958b385 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 27 ++ drivers/gpu/drm/amd/include/kgd_pp_interface.h | 8 2 files changed, 35 insertions(+) diff --git a/d

[PATCH] drm/amd/pp: Get and save CZ/ST smu version

2017-12-21 Thread Rex Zhu
The smu firmware is loaded by the sbios on APUs, so query it from the smu and save the smu fw version info that is reported to userspace. Change-Id: Ifce41405c0369610985881cea26e14b0525e4d25 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c

[PATCH 4/4] drm/amd/pp: implement force_dpm_level on rv

2017-12-19 Thread Rex Zhu
user can change engine/mclk/soc/vcn clocks on Rv v3: add smu version check v2: fix no return statement Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c | 123 + drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.h | 15 +++ 2

[PATCH 3/4] drm/amd/pp: get Rv smu_version and notify amdgpu

2017-12-19 Thread Rex Zhu
Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 3 +++ drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.c | 8 2 files changed, 11 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu

[PATCH 2/4] drm/amd/pp: update smu_version value for CI/VI

2017-12-19 Thread Rex Zhu
Change-Id: Ia55a0bc2cde45cb995d92ff054e57b07ed548f08 --- drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c | 1 + drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c | 2 +- drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c| 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff

[PATCH 1/4] drm/amd/pp: move smu_version out vega to hwmgr

2017-12-19 Thread Rex Zhu
Change-Id: Ie8c32663aa0d61a1dfdd8e019509cb551f137aa0 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 8 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.h | 1 - drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 1 + 3 files chan

[PATCH 3/5] drm/amd/pp: delete repeated call of force_dpm_level

2017-12-18 Thread Rex Zhu
Change-Id: I0661b84ff55aceb88aaef8b09ceab2a29f335600 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 10 +- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 1 + drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c | 5 - 3 files chan

[PATCH 5/5] drm/amd/pp: implement force_dpm_level on rv

2017-12-18 Thread Rex Zhu
user can change engine/mclk/soc/vcn clocks on Rv v3: add smu version check v2: fix no return statement Change-Id: I4cba759701ab031085a687102de6566771f4494f Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c | 127 + drive

[PATCH 2/5] drm/amd/pp: implement phm_reset_power_profile_state

2017-12-18 Thread Rex Zhu
mv related code out of force_dpm_level to phm_reset_power_profile_state Change-Id: Ib304afb6c623a5638f5c633d76b8306c174a5677 Signed-off-by: Rex Zhu <rex@amd.com> --- .../gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 33 -- drivers/gpu/drm/amd/powerplay/hwmgr/pp

[PATCH 1/5] drm/amd/pp: delete dead code of arbiter overdriver clk

2017-12-18 Thread Rex Zhu
for sclk/mclk, we can adjust through sysfs. for uvd/vce clk, we will adjust case by case when requested. Change-Id: I093bd295df0dfbcf4fc1049a7f87b108d099e5c9 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 29 +++- drivers/gpu/d

[PATCH 4/5] drm/amd/pp: export more smu message on Rv

2017-12-18 Thread Rex Zhu
Change-Id: Ib89948c2a2ba8cede4a62875befde48c7bedba69 Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/inc/rv_ppsmc.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH 3/3] drm/amd/pp: implement force_dpm_level on rv

2017-12-15 Thread Rex Zhu
user can change engine/mclk/soc/vcn clocks on Rv v3: add smu version check v2: fix no return statement Change-Id: I4cba759701ab031085a687102de6566771f4494f Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c | 127 + drive

[PATCH 2/3] drm/amd/pp: export more smu message on Rv

2017-12-15 Thread Rex Zhu
Change-Id: Ib89948c2a2ba8cede4a62875befde48c7bedba69 Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/inc/rv_ppsmc.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH 1/3] drm/amd/pp: delete repeated call of force_dpm_level

2017-12-15 Thread Rex Zhu
Change-Id: I3d2a25cc9d483d2d529af0bcdb78dee891919d5e Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 10 +- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 1 + drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c | 4 +++- 3 files chan

[PATCH] drm/amd/pp: need to notify umd the pstate clock.

2017-12-13 Thread Rex Zhu
Change-Id: I344731cc6398c40976e08a125808bbfa85cb59a3 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 43 +- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 36 ++ drivers/gpu/drm/amd/powerplay/inc/h

[PATCH] drm/amd/pp: reset dpm level when adjust power state

2017-12-13 Thread Rex Zhu
Change-Id: I312d1cf7b964d25d698b02800ce7cd06ac33b28f Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c b/drivers/gpu/drm/amd/powerplay

[PATCH] drm/amd/pp: implement dpm_get_sclk/mclk for RV

2017-12-11 Thread Rex Zhu
Change-Id: I3abf5bde8c64ccab8e842a7c22aee011fc34e69f Reviewed-by: Evan Quan <evan.q...@amd.com> Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a

[PATCH] drm/amd/pp: fix typecast error in powerplay.

2017-11-17 Thread Rex Zhu
resulted in data truncation Change-Id: I110011ba402a85fade89bb797adcf7318c0f0eb0 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/process_pptables_v1_0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay

[PATCH] drm/amd/pp: fix dpm randomly failed on Vega10

2017-11-08 Thread Rex Zhu
Change-Id: I15e562ddff64cf73262ece75f08df60fedc1de1a Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 29 +++--- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.h | 1 + 2 files changed, 16 insertions(+), 14 deletions(-)

[PATCH] Revert "drm/amd/display: Match actual state during S3 resume."

2017-10-20 Thread Rex Zhu
This reverts commit 7ae4acd21e9e264afb079e23d43bcf2238c7dbea. fix s3 hang issue. Change-Id: Iefb61cf8072b83146d867961b22f13ad83ab0106 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 38 --- 1 file changed, 38 del

[PATCH 2/2] drm/amd/powerplay: fix uninitialized variable

2017-10-20 Thread Rex Zhu
refresh_rate was not initialized when program display gap. this patch can fix vce ring test failed when do S3 on Polaris10. Change-Id: Ie7bb363a44df0ea5dca3c03b8d884ac42a5db0a7 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 6 +++---

[PATCH] drm/amd/pp: Fix overflow when setup decf/pix/disp dpm table.

2017-10-18 Thread Rex Zhu
Change-Id: I9e72043ea619a86b2bcf14ce9d6386fee107bd19 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/d

[PATCH] drm/amdgpu: fix regresstion on SR-IOV gpu reset failed

2017-10-18 Thread Rex Zhu
u_ucode_init_bo to amdgpu_device.c" This reverts commit 815b8f8595148d06a64d2ce4282e8e80dfcb02f1. Change-Id: I4c4f05ce85f7828e7ac19a2bfffa223614cca59a Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 8 drivers/gpu/drm/amd/amd

[PATCH] drm/amd/pp: add new sysfs pp_alloc_mem_for_smu

2017-10-11 Thread Rex Zhu
Change-Id: Ie06f87445e7d6945472d88ac976693c98d96cd43 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 3 + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 + drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 134 + 3 files c

[PATCH 2/3] drm/amdgpu: validate module parameter smu_prv_buffer_size

2017-10-10 Thread Rex Zhu
Change-Id: I5f7025a357720c7553035c02519b2b6ac2c59358 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 43 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c| 3 +++ drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 2 ++ drive

[PATCH 1/3] drm/amdgpu: add smu_memory_pool_size module parameter

2017-10-10 Thread Rex Zhu
used to clamp system memmoy for smu debug usage. Change-Id: I8399f55069b8dcc05a3a79f9285744fcc8549af0 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 5 + 2 files changed, 6 insertions(+) diff

[PATCH 3/3] drm/amd/powerplay: add new sysfs pp_alloc_mem_for_smu

2017-10-10 Thread Rex Zhu
Change-Id: I3f689b8da288ba739aaf74340c056814f80713a9 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 2 + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +- drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 89 ++ 3 files c

[PATCH] drm/amdgpu: refine code delete duplicated error handling

2017-10-09 Thread Rex Zhu
in function amdgpu_ucode_init_bo, when failed, it will set load_type to AMDGPU_FW_LOAD_DIRECT. Change-Id: Id671b168425dc46331aaf4bd2b734e88b9bfaf3c Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 del

[PATCH 2/9] drm/amd/powerplay: add new function point in hwmgr.

2017-10-08 Thread Rex Zhu
used for notify SMU the allocated buffer address. Change-Id: I91badca7729b8d9c35faf7fc09dbdee70c26099a Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/amd/powerplay/inc/hwmg

[PATCH 8/9] drm/amdgpu: allocate requested gtt buffer for smu

2017-10-08 Thread Rex Zhu
v2: simplify check smu_memory_size code. simplify allocate smu memroy code. Change-Id: I8eb4f542dc2351c6393e4723f4985df92ff527cd Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 2 + drivers/gpu/drm/amd/amdgpu/amdgpu_device.

[PATCH 9/9] drm/amd/powerplay: delete an outdated comment in amd_powerplay.c

2017-10-08 Thread Rex Zhu
Change-Id: I96abfea4eb7d257d2b6461392683c280b268ef76 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/powerplay/amd_power

[PATCH 7/9] drm/amdgpu: add smu_memory_pool_size module parameter

2017-10-08 Thread Rex Zhu
this allow allocate system memmoy for smu debug usage. Change-Id: Iac0489e528395448abeaf23a22cd6a1031a5b55b Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 5 + 2 files changed, 6 insertions(+) diff

[PATCH 5/9] drm/amdgpu: add new pp function point notify_smu_memory_info

2017-10-08 Thread Rex Zhu
Change-Id: Ib915cd5ac32a6b75667ff6e8ddafcea61e06cd67 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h| 6 ++ drivers/gpu/drm/amd/include/kgd_pp_interface.h | 5 + 2 files changed, 11 insertions(+) diff --git a/drivers/gpu/drm/amd/

[PATCH 1/9] drm/amd/powerplay: export new smu messages for vega10

2017-10-08 Thread Rex Zhu
Change-Id: I5afa09980174ef191c7aa4e4f9dadaaa189783ca Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/inc/vega10_ppsmc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/powerplay/inc/vega10_ppsmc.h b/drivers/gpu/drm/amd/powerpl

[PATCH 6/9] drm/amd/powerplay: implement notify_smu_memory_info on Powerplay

2017-10-08 Thread Rex Zhu
Change-Id: I69a8a7637be35b9b03d7f7390cd3571cd24f9781 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 36 +++ 1 file changed, 36 insertions(+) diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/d

[PATCH 4/9] drm/amd/powerplay: implement function notify_cac_buffer_info on VI

2017-10-08 Thread Rex Zhu
Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 28 +++ drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 42 ++ drivers/gpu/drm/amd/powerplay/inc/smumgr.h | 5 +++ drivers/gpu/drm/amd/powerplay/

[PATCH 2/2] drm/amd/powerplay: fix mclk can't switch on Tonga

2017-10-05 Thread Rex Zhu
regresstion issue caused by commit 47047263c52779f1f3393c32e3e53661b53a372e ("drm/amd/powerplay: delete eventmgr related files.") Change-Id: Ia2ddf83443a666fd1e97ddf4142acce147be00dc Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 1 -

[PATCH 1/2] drm/amd/powerplay: fix ret checks in amd_powerplay.c

2017-10-05 Thread Rex Zhu
Change-Id: Ie745bc10d933462863b4295eb26cc2af08f06547 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/pow

[PATCH 2/2] drm/amd/powerplay: fix ret checks in amd_powerplay.c

2017-09-29 Thread Rex Zhu
regresstion issue caused by commit e37a7b4088da ("drm/amd/powerplay: tidy up ret checks in amd_powerplay.c") Change-Id: I46be14d8230ad7bc9039782a56a94bb060a21423 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 74 +--

[PATCH 1/2] drm/amd/powerplay: fix a logic error in pp_hw_init

2017-09-29 Thread Rex Zhu
Change-Id: I8607e51a0e4153b36268e2bcf4fe594c2bfbfe23 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/d

[PATCH 2/2] drm/amdgpu: add header kgd_pp_interface.h

2017-09-29 Thread Rex Zhu
move powerplay and amdgpu shared structures and definitions to kgd_pp_interface.h Change-Id: I4272b7974edbff3395ba8a6efebb0decd0cdfa12 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 5 +- drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c

[PATCH 1/2] drm/amdgpu: move struct amd_powerplay to amdgpu.h

2017-09-29 Thread Rex Zhu
Change-Id: Iea3b5ab620b536d1ab084ffc0859f44ffe7a Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 7 +++ drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h | 7 --- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/d

[PATCH 3/3] drm/amd/powerplay: delete flag PP_VALID

2017-09-28 Thread Rex Zhu
don't need to check pp_valid, all pp export functions are moved to ip_funcs and pp_funcs. so just need to check the function point. Change-Id: Ib75cebece8fb9ebc7307f5d3cf084a813b5493db Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 3 +-- d

[PATCH 2/3] drm/amd/powerplay: move functions to amd_pm_funcs table

2017-09-28 Thread Rex Zhu
those functions are exported to DC Change-Id: I67637337ee40a6da6ecdd15fd78af0335f4c8414 Signed-off-by: Rex Zhu <rex@amd.com> --- .../drm/amd/display/amdgpu_dm/amdgpu_dm_services.c | 29 +++-- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 140 +++-- drivers/gpu/d

[PATCH v2] drm/amd/powerplay: refine code in amd_powerplay.c

2017-09-27 Thread Rex Zhu
v2: not set global module option amdgpu_dpm in cgs interface and not set dpm_enabled in function amdgpu_pp_hw_init. delete flag of PP_DPM_DISABLED pp_en in pp_handle is enough Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c

[PATCH] drm/amd/powerplay: move set_clockgating_by_smu to pp func table

2017-09-26 Thread Rex Zhu
Change-Id: I08f7eb9af1ddf4fac199d712f41b9afee94b9acd Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h | 4 +++ drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 23 +++- drivers/gpu/drm/amd/amdgpu/vi.c

[PATCH] drm/amd/powerplay: refine code in amd_powerplay.c

2017-09-25 Thread Rex Zhu
delete flag of PP_DPM_DISABLED pp_en in pp_handle is enough Change-Id: Iad7d48690e91e736da0f76b3a11a87d2cb519b05 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 9 -- drivers/g

[PATCH] drm/amd/powerplay: fix copy error in powerplay

2017-09-25 Thread Rex Zhu
cause amdgpu fail to initialize on CZ/ST Change-Id: Ica0527e9979268f609dbbe69fb8c7ecd97d26875 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/h

[PATCH 10/10] drm/amd/powerplay: export new interfaces in amd_pm_funcs

2017-09-25 Thread Rex Zhu
Change-Id: If13500f76da6e42f50d40fc794fc5e1e5dc143bf Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/include/amd_shared.h | 38 +++- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/include/amd_shared.h b/drive

[PATCH 07/10] drm/amdgpu: create powerplay by cgs interface

2017-09-25 Thread Rex Zhu
Signed-off-by: Rex Zhu <rex@amd.com> Change-Id: I3b2fa446fd7e233042794fe3d2fb5cbce903fe2d --- drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 30 + drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 81 +-- drivers/gpu/drm/amd/powerplay/inc/amd_power

[PATCH 01/10] drm/amdgpu: move common pm sysfs code to amdgpu_device.c

2017-09-25 Thread Rex Zhu
Change-Id: I4ad2c914081dd71b10a89f650fea87f9cbc9c859 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 6 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c| 6 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 7 +-- drivers/gpu/d

[PATCH 09/10] drm/amdgpu: add comments in struct amd_pm_funcs define

2017-09-25 Thread Rex Zhu
Change-Id: Ie54071d41fc8d67cb35a89cd500514dc067a9192 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/include/amd_shared.h | 51 ++-- 1 file changed, 29 insertions(+), 22 deletions(-) diff --git a/drivers/gpu/drm/amd/include/amd_shared.h b/drive

[PATCH 08/10] drm/amd/powerplay: change dmesg log level in powerplay

2017-09-25 Thread Rex Zhu
Use pr_debug to prevent spamming unimportant dmesg. Change-Id: I18b4df61d9d36f081df8ad3ed047eb195da70e7c Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pow

[PATCH 06/10] drm/amdgpu: add cgs interface to register pp handle

2017-09-25 Thread Rex Zhu
Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 23 +++ drivers/gpu/drm/amd/include/cgs_common.h | 8 2 files changed, 31 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/amd/

[PATCH 05/10] drm/amdgpu: delete pp_enable in adev

2017-09-25 Thread Rex Zhu
amdgpu not care powerplay or dpm is enabled. just check ip functions and pp functions Change-Id: I972700055e2ee4655ac1b24fe7ff2dacdaf49979 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 - drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c

[PATCH 04/10] drm/amdgpu: delete dead code about fw load check

2017-09-25 Thread Rex Zhu
Change-Id: I1df6ff230a4fc95afdb319f37f24dd1cae82eaaa Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 60 -- drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c | 20 +++- drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c | 21 +++--

[PATCH 03/10] drm/amd/powerplay: fix memory leak in powerplay

2017-09-25 Thread Rex Zhu
cgs device not free. Change-Id: I89435944a1205cb1a8da93469db3a3633a54125e Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 9 ++--- drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h | 1 + 2 files changed, 7 insertions(+), 3 deletions(-)

[PATCH 02/10] drm/amdgpu: move amdgpu_ucode_init_bo to amdgpu_device.c

2017-09-25 Thread Rex Zhu
Change-Id: I8f1016d9d77437b80fce97dadaae52f49c2c901e Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 8 drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 5 - drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 9 - 3 files chan

[PATCH] drm/amd/powerplay: refine phm_register_thermal_interrupt interface

2017-09-20 Thread Rex Zhu
currently, not all asics implement this callback function so not return error to avoid powerplay initialize failed in those asices Change-Id: I492b7ab54eebcc0d84c169edc0d5876c4529c619 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 6 +++

[PATCH 12/18] drm/amd/powerplay: delete PHM_READ_VFPF_INDIRECT_FIELD

2017-09-20 Thread Rex Zhu
repeated defining in hwmgr.h Change-Id: Id4fdbdb7df727516d9bdb2ca6c621b97b5ce509f Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/inc/smumgr.h | 5 - drivers/gpu/drm/amd/powerplay/smumgr/ci_smc.c | 2 +- drivers/gpu/drm/amd/powerplay/

[PATCH 18/18] drm/amd/powerplay: delete dead code in smumgr

2017-09-20 Thread Rex Zhu
Change-Id: I722ecb827144adf42b149e41595580ca8d4385ae Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/inc/smumgr.h| 31 -- drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c | 87 --- 2 files changed, 118 deletions(-) diff --git a/d

[PATCH 16/18] drm/amd/powerplay: delete SMUM_WAIT_INDIRECT_FIELD

2017-09-20 Thread Rex Zhu
repeated defining in hwmgr.h use PHM_WAIT_INDIRECT_FIELD instand. Change-Id: I4c06638c4fb2af2bae18a0c0f4f825b555f2bea3 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/inc/smumgr.h| 11 --- drivers/gpu/drm/amd/powerplay/smumgr/ci_smc.c

[PATCH 13/18] drm/amd/powerplay: delete SMUM_SET_FIELD

2017-09-20 Thread Rex Zhu
repeated defining in hwmgr.h Signed-off-by: Rex Zhu <rex@amd.com> Change-Id: I62316f35417784c4cf30a75e148bd1895a184a5b --- drivers/gpu/drm/amd/powerplay/inc/smumgr.h | 5 - drivers/gpu/drm/amd/powerplay/smumgr/cz_smumgr.c | 12 ++-- 2 files changed, 6 insertions(

[PATCH 11/18] drm/amd/powerplay: delete SMUM_WRITE_VFPF_INDIRECT_FIELD

2017-09-20 Thread Rex Zhu
repeated defining in hwmgr.h Change-Id: I03b1adfb164d43e9f33e6442f666c013f2e98a05 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/inc/smumgr.h | 6 -- drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c | 14 +++--- .../gpu/drm/amd/pow

[PATCH 09/18] drm/amd/powerplay: delete SMU_WRITE_INDIRECT_FIELD

2017-09-20 Thread Rex Zhu
the macro is as same as PHM_WRITE_INDIRECT_FIELD Change-Id: I62389ad2d699530e3a7d6a81f7427c21fd88b7be Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/inc/smumgr.h| 15 --- drivers/gpu/drm/amd/powerplay/smumgr/ci_smc.c | 4 ++-- d

[PATCH 10/18] drm/amd/powerplay: delete SMUM_WRITE_FIELD

2017-09-20 Thread Rex Zhu
the macro is as same as PHM_WRITE_FIELD Signed-off-by: Rex Zhu <rex@amd.com> Change-Id: I678e6277b6d582ab6a651a5fba07989634bf1aee --- drivers/gpu/drm/amd/powerplay/inc/smumgr.h| 3 --- drivers/gpu/drm/amd/powerplay/smumgr/ci_smc.c | 6 +++--- drivers/gpu/d

[PATCH 07/18] drm/amd/powerplay: move macros to hwmgr.h

2017-09-20 Thread Rex Zhu
the SMUM_WAIT_VFPF_INDIRECT_FIELD_UNEQUAL is irrelated to SMU, so move to hwmgr.h and rename to PHM_WAIT_VFPF_INDIRECT_FIELD_UNEQUAL Signed-off-by: Rex Zhu <rex@amd.com> Change-Id: I2036309e8dd4cc3b211ae06a3d0ddfd9f16a92e7 --- drivers/gpu/drm/amd/powerplay/inc/hwmgr.h

[PATCH 06/18] drm/amd/powerplay: move macros to hwmgr.h

2017-09-20 Thread Rex Zhu
the SMUM_WAIT_INDIRECT_FIELD_UNEQUAL is irrelated to SMU, so move to hwmgr.h and rename to PHM_WAIT_INDIRECT_FIELD_UNEQUAL Signed-off-by: Rex Zhu <rex@amd.com> Change-Id: Ieeb89b022edc9f3897c39641dd00e7409aa0faf9 --- drivers/gpu/drm/amd/powerplay/inc/hwmgr.h

[PATCH 04/18] drm/amd/powerplay: use SMU_IND_INDEX/DATA_11 pair in VFPF macros to support virtualization

2017-09-20 Thread Rex Zhu
Change-Id: I81163535116224db66b20d0afe33909aa1d4bf11 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/inc/smumgr.h| 4 ++-- drivers/gpu/drm/amd/powerplay/smumgr/ci_smc.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/d

[PATCH 05/18] drm/amd/powerpolay: add new helper functions in hwmgr.h

2017-09-20 Thread Rex Zhu
Change-Id: I37f87d31c8467b1c8b9a2bfa5e40083634f19fdb Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c| 42 -- drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 10 -- drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.c

[PATCH 02/18] drm/amd/powerplay: delete dead code in hwmgr.h

2017-09-20 Thread Rex Zhu
Change-Id: I82f9d6e6d59609d47124e868c53e1cc7717c45d1 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h

[PATCH 00/18] refine smumgr code in powerplay

2017-09-20 Thread Rex Zhu
the smumgr layer is redundant in powerplay. so delete struct smumgr, move smu callback functions and backend data to hwmgr. the macros SMUM_* in smumgr.h is functionally repeated with macros PHM_* in hwmgr.h, and the macros is irrelated to smu. so delete the macros in smumgr.h Rex Zhu (18): drm

[PATCH] drm/amd/powerplay: Simplify smu7_voting_clients()

2017-09-15 Thread Rex Zhu
Change-Id: I78533929e1bbd60d5dca0edbfc62a402ca5c1bd1 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 59 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.h | 9 +--- 2 files changed, 19 insertions(+), 49 deletions(-)

[PATCH] drm/amdgpu: fix checkpatch.pl error to amdgpu_drv.c

2017-09-15 Thread Rex Zhu
fix checkpatch.pl error and warning: 1. ERROR: do not initialise globals to NULL 2. ERROR: do not initialise globals to 0 3. WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Change-Id: I7029087efcfa88c968be9d7ae42f2453bc4b1da0 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/g

[PATCH] drm/amdgpu: add powerplay support for CI asics

2017-09-15 Thread Rex Zhu
currently, for CI asics, use dpm by default, amdgpu.dpm=-1. when set amdgpu.dpm=1, enable powplay. when set amdgpu.dpm=0, disable both dpm and powerplay. when powerplay is stable on CI asics, ci_dpm will be removed. Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/

[PATCH 4/4] drm/amd/powerplay: fix pcie max lane define error

2017-09-13 Thread Rex Zhu
Change-Id: I307465ec2fe8fe02e19c76d979be0a1af30fed0c Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h b/drivers/gpu/d

[PATCH 3/4] drm/amd/powerplay: add CI support in powerplay

2017-09-13 Thread Rex Zhu
Change-Id: I47a456f403b99ddce0b82ac28e038d8a2ce8a7d1 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/

[PATCH 2/4] drm/amd/powerplay: add ci support in hwmgr

2017-09-13 Thread Rex Zhu
Change-Id: Ifd9693470534d96bfa99a6de2fa79c84d6b97662 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c| 52 + drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c | 84 +- drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.h

[PATCH 2/2] drm/amd/powerplay: fix spelling typo in function name

2017-09-08 Thread Rex Zhu
Change-Id: Ic1b96b6efd2997240a26b6d8bc00e69f05ea4676 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c | 8 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/d

[PATCH 1/2] drm/amdgpu: add support for request SI/CI firmware in CGS

2017-09-08 Thread Rex Zhu
Change-Id: If3ab520f8c65bec070e97cd8787041919d687ad3 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 79 + 1 file changed, 79 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/amd/

[PATCH 3/3] drm/amdgpu: unify amd_pm_funcitons in dpm and powerplay

2017-09-06 Thread Rex Zhu
delete amd_pm_funcs in amdgpu_pm, put pm function table in struct powerplay for all asics. Change-Id: I6248c4bd4cf23ae406a540bb5225c991fb9aca6e Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 5 +- drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h

[PATCH 1/3] drm/amdgpu: rename amdgpu_dpm_funcs to amd_pp_funcs

2017-09-06 Thread Rex Zhu
renamed amdgpu_dpm_funcs and moved to amd_shared.h so can shared with powerplay. Change-Id: I3a008099fcceb2f58605224ffc2db73b18f6acac Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c | 4 +- drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h

[PATCH 2/3] drm/amd/powerplay: use struct amd_pm_functions in powerplay

2017-09-06 Thread Rex Zhu
Change-Id: I1a8828ab1db49638c6205043600685f0179226fb Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/include/amd_shared.h | 15 +++ drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 50 +++--- .../drm/amd/powerplay/hwmgr/cz_clockpowerga

[PATCH 3/4] drm/amd/powerplay: refine powerplay code for RV

2017-09-04 Thread Rex Zhu
use function points instand of function table. Change-Id: Ic3a4fc1492dcb33884c32a70ec9b2013b412d52a Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c | 137 ++--- 1 file changed, 33 insertions(+), 104 deletions(-) diff

[PATCH 1/4] drm/amd/powerplay: refine code for thermal control in powerplay

2017-09-04 Thread Rex Zhu
add function point start_thermal_controller in hwmgr, delete thermal function table and related functions Change-Id: I61db5b7e37d75fdc55acd570369ca833b5346d01 Signed-off-by: Rex Zhu <rex@amd.com> --- .../gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 6 +- drivers/gpu/drm/amd/pow

[PATCH 4/4] drm/amd/powerplay: delete dead code in powerplay

2017-09-04 Thread Rex Zhu
delete functiontable related codes Change-Id: If4bba21beaf3e7fe100eb80def28f83f3b8ef077 Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/Makefile | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 3 +- .../gpu/drm/amd/powerplay

[PATCH 2/4] drm/amd/powerplay: refine powerplay code for CZ/ST

2017-09-04 Thread Rex Zhu
1. add function points instand of creat function tables 2. implement stop dpm tasks for CZ/ST Change-Id: Ibe6fc92b989ba125da34857ce8b056e8b699b41b Signed-off-by: Rex Zhu <rex@amd.com> --- .../drm/amd/powerplay/hwmgr/cz_clockpowergating.c | 30 -- drivers/gpu/drm/amd/powerplay

[PATCH 4/4] drm/amd/powerplay: set uvd/vce/nb/mclk level as UMD P-state required

2017-09-01 Thread Rex Zhu
Change-Id: I6e5cb169fcc22525d26cdc3f82ca011249f912ef Signed-off-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c b/drivers/gpu/d

[PATCH 3/4] drm/amd/powerplay: add UMD P-state in powerplay.

2017-09-01 Thread Rex Zhu
This feature is for UMD to run benchmark in a power state that is as steady as possible. kmd need to fix the power state as stable as possible. now, kmd support four level: profile_standard,peak,min_sclk,min_mclk move common related code to amd_powerplay.c Signed-off-by: Rex Zhu <rex@amd.

<    1   2   3   4   5   6   7   8   >