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
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
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
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
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(-)
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
: 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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(-)
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
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 +++---
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
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
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
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
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
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
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
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
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.
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
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
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/
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
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
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/
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 -
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
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 +--
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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/
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
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 +++--
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(-)
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
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 +++
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/
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
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
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(
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
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
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
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
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
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
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
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
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
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(-)
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
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/
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
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/
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
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
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/
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
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
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
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
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
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
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
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
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.
501 - 600 of 798 matches
Mail list logo