Add new parameter to control stutter mode enable/disable.
Enable stutter mode can save power in low DRAM use cases
including but not limited to productivity application use,
web browsing, and video playback.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 +
drivers/gpu
e.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 8
drivers/gpu/drm/amd/include/dm_pp_interface.h| 4 ++--
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c| 4 ++--
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
fix a typo when convert displayphyclk type.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
b/drivers/gpu/drm/amd/display/amdgpu_dm
powerplay implement hwmgr_function table for all supported asics in
order to conceal the asic's detail infomation. so no need to include
the smu10_hwmgr.h
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 1 -
1 file changed, 1 deletion(-)
diff --git
Implement pp_smu_funcs_rv in display.
so display can call powerplay run-time service.
Signed-off-by: Rex Zhu
---
.../drm/amd/display/amdgpu_dm/amdgpu_dm_services.c | 115 -
1 file changed, 114 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm
Display can notify smu to enable pwe after gpu suspend.
It is used in case when display resumes from S3 and wants to start
audio driver by enabling pwe
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/include/kgd_pp_interface.h | 7 ---
drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 20
display and powerplay component have individual clock type definitions.
so need to do clock type transfer in dc-pp interfaces.
Signed-off-by: Rex Zhu
---
.../drm/amd/display/amdgpu_dm/amdgpu_dm_services.c | 21 +
1 file changed, 21 insertions(+)
diff --git a/drivers/gpu
Missed to set some clock requests and display info which were needed
by powerplay.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c
b
, use the struct
display defined.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/include/dm_pp_interface.h | 37 ++
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 2 +-
drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c | 28
drivers/gpu/drm/amd
1. move shared struct dm_pp_wm_sets_with_clock_ranges_soc15 to
dm_pp_interface.h.
2. delete the same struct define in powerplay, use the struct
display defined.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/display/dc/dm_services_types.h | 49 +-
drivers/gpu/drm/amd/include
use smu_helper function smu_set_watermarks_for_clocks_ranges
in vega12_set_watermarks_for_clocks_ranges.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 43 +-
1 file changed, 1 insertion(+), 42 deletions(-)
diff --git a/drivers/gpu/drm/amd
change wm_min_memg_clk_in_khz -> wm_min_mem_clk_in_khz
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c | 8
drivers/gpu/drm/amd/display/dc/dm_services_types.h | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/
change function parameter type from dm_pp_wm_sets_with_clock_ranges * to
void *. so this interface can be supported on AI/RV.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c | 2 +-
drivers/gpu/drm/amd/display/dc/dm_services.h | 2 +-
drivers
this function is copied from dce112. it is not for AI/RV.
driver need to re-implement this function.
Signed-off-by: Rex Zhu
---
.../drm/amd/display/dc/dce120/dce120_resource.c| 123 +
1 file changed, 1 insertion(+), 122 deletions(-)
diff --git a/drivers/gpu/drm/amd
Also use the tolerable latency defined in Display
to find lowest MCLK frequency when disable mclk switch
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 24 ++
1 file changed, 2 insertions(+), 22 deletions(-)
diff --git a/drivers/gpu/drm/amd
Transfer 10KHz (requested by smu) to KHz needed by Display
component.
This can fix the issue 4k Monitor can't be lit up on Vega/Raven.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 4 ++--
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 10
Display component can get tru max_displ_clk_in_khz instand of hardcode
Signed-off-by: Rex Zhu
---
.../drm/amd/display/amdgpu_dm/amdgpu_dm_services.c | 45 +-
1 file changed, 43 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm
. That is to say,
ib test should be after CG/PG enablement. otherwise, the test will
not cover the cg/pg/poweroff enable case.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 14 --
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm
Enable PG state after CG enabled.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 33 +-
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 4
2 files changed, 28 insertions(+), 9 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu
.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 19 +++
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4
drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 25 +
3 files changed, 12 insertions(+), 36 deletions(-)
diff --git
.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 12 ++--
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4
drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 25 +
3 files changed, 11 insertions(+), 30 deletions(-)
diff --git
Raven support gfx off feature instand of gfx powergate,
so use smu10_gfx_off_control as the powergate_gfx backend function.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr
Some HW ip blocks need call SMU to enter/leave power gate state.
So export common set_powergating_by_smu interface.
1. keep consistent with set_clockgating_by_smu
2. scales easily to powergate other ip(gfx) if necessary
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h
keep consistent with powergate_uvd/vce/mmhub
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 6 +++---
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c | 2 +-
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.h | 2 +-
drivers/gpu/drm
In order to keep consistent with powergate_uvd/vce.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h | 4 ++--
drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 4 ++--
drivers/gpu/drm/amd/include/kgd_pp_interface.h| 2 +-
drivers/gpu/drm/amd/powerplay
As the SAMU ip was not supported in linux,
so delete the SAMU support in powerplay on
asics Bonarire/Hawwii/Tonga/Fiji/Polaris/vegam.
Signed-off-by: Rex Zhu
---
.../amd/powerplay/hwmgr/smu7_clockpowergating.c| 54 --
.../amd/powerplay/hwmgr/smu7_clockpowergating.h| 1
level.
So the od max memory clock should be less than highest soc clock.
and driver should not change the soc clock.
caused by commit ca57b9b0a156
("drm/amd/pp: Allow underclocking when od table is empty in vbios")
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_h
Enable PG state after CG enabled.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 29 +
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 4
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 5 -
3 files changed, 29 insertions(+), 9 deletions
by GFX IP.
Powerplay only export interface to gfx ip.
This logic is same as uvd/vce cg/pg.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 12 ++--
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4
drivers/gpu/drm/amd/powerplay/amd_powerplay.c
v2: Delete the dead gfx off code in ip_suspend.
gfx off should be controlled by GFX IP.
Powerplay only export interface to gfx ip.
This logic is same as uvd/vce cg/pg.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 6 --
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
gfx off should be controlled by GFX IP.
Powerplay only export interface to gfx ip.
This logic is same as uvd/vce cg/pg.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 4 ++--
2 files changed, 6
Enable PG state after CG enabled.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 29 +
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 4
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 5 -
3 files changed, 29 insertions(+), 9 deletions
Raven support gfx off feature instand of gfx powergate,
so use smu10_gfx_off_control as the powergate_gfx backend function.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr
This is a ip function for set smu pg state.
Although the cg/pg were still not supported on legacy asics, we should not
add other ip block's pg code in it.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 25 +
1 file changed, 1 insertion(+), 24
gfx ip block can call set_powergating_by_smu to set gfx pg state if
necessary.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 10 --
drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 4 ++--
drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 17
In order to keep consistent with powergate_uvd/vce.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h | 4 ++--
drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 4 ++--
drivers/gpu/drm/amd/include/kgd_pp_interface.h| 2 +-
drivers/gpu/drm/amd/powerplay
Some HW ip blocks need call SMU to enter/leave power gate state.
So export common set_powergating_by_smu interface.
1. keep consistent with set_clockgating_by_smu
2. scales easily to powergate other ip(gfx) if necessary
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h
keep consistent with powergate_uvd/vce/mmhub
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 4 ++--
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c | 2 +-
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.h | 2 +-
drivers/gpu/drm
driver need to know the real power source to do some power
related configuration when initialize.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
b/drivers/gpu/drm/amd/amdgpu
driver need to update uvd/vce smc table before enable
uvd/vce dpm.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c | 84
1 file changed, 84 insertions(+)
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c
b/drivers/gpu/drm/amd
if vbios not set the max clock voltage limit table for DC mode,
Set the table as sama as the table for AC mode.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
1. move ac_power to struct pm from dpm, so can be shared with powerplay
2. remove power_source in powerplay, use adev->pm.ac_power instand.
3. update ac_power before dispatch power task.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h| 2 +-
drivers/gpu/drm/
As the SAMU ip was not supported in linux,
so delete the SAMU support in powerplay on
asics Bonarire/Hawwii/Tonga/Fiji/Polaris/vegam.
Signed-off-by: Rex Zhu
---
.../amd/powerplay/hwmgr/smu7_clockpowergating.c| 54 --
.../amd/powerplay/hwmgr/smu7_clockpowergating.h| 1
if the max od engine clock limit and memory clock limit are not set
in vbios. driver will allow underclocking instand of disable od feature
completely.
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/powerplay/hwmgr/process_pptables_v1_0.c | 6 --
drivers/gpu/drm/amd/powerplay/hwmgr
For power saving, default profiling mode was setted
to power saving mode.
Currently, not support CUSTOM mode and not display
detailed profiling mode parameters in sysfs.
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 12
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
index 3549481..94b221f 100644
--- a/drive
We should return unlock on the error path
Signed-off-by: Rex Zhu <rex@amd.com>
---
.../gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c | 31 +-
1 file changed, 19 insertions(+), 12 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c
b/d
error: uninitialized symbol ''
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c | 24 +-
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 3 ++-
drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c | 6 ++
3
warning: missing braces around initializer [-Wmissing-braces]
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c| 2 +-
drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/soc15_common.h | 15 +++
1 file changed, 15 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15_common.h
b/drivers/gpu/drm/amd/amdgpu/soc15_common.h
index def8650..0942f49 100644
--- a/drivers/g
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 11 ++
drivers/gpu/drm/amd/amdgpu/soc15.c | 3 +-
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 183 ++--
3 files changed, 187 insertions(+), 10 deletions(-)
diff
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 19 ++-
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
index 58e4953..8b0d491
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/include/amd_shared.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/include/amd_shared.h
b/drivers/gpu/drm/amd/include/amd_shared.h
index 33de330..b178176 100644
--- a/drivers/gpu/d
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/soc15.c| 3 ++-
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 16
2 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c
b/drivers/gpu/drm/amd/amdgpu/soc15.c
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 25 ++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c
b/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index fcd4bb2..25bee46 100644
--- a/drivers/gpu/drm/amd/
Screen flickering observed while running 1080p video using
MPV_VAAPI/VDPAU with 4x4K@60 monitors
Need to set higher mclk in this configuration.
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 3 +++
1 file changed, 3 insertions(+)
diff
the performance drop happened on default TDP more than 256 Watt
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c
b/d
under manual dpm mode, user can set gfx/mem clock
through sysfs pp_dpm_sclk/mclk on Rv.
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 47 ++-
1 file changed, 46 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/d
-
5 CUSTOM:---
-- -
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 52 +++-
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.h | 1 -
2 files changed, 23 inse
with dpm enabled, need to get active crtcs in dc/no-dc mode.
caused by
'commit ebb649667a31 ("drm/amdgpu: Set pm_display_cfg in non-dc mode")'
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 32
1 file change
With powerplay enabled, also need to skip fan attributes
if no fan present.
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 21 -
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 3 +++
2 files changed, 11 insertions(+), 13 del
change the clk/voltage to default value.
echo "c">pp_od_clk_voltage
to commit the change
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 719 +++--
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.h | 25 +-
.../g
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 47 ++-
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.h | 2 -
2 files changed, 29 insertions(+), 20 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_h
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c
b/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c
index 0f25226..5
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c| 4 +--
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 42 ---
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.h | 2 --
3 files changed, 24 insertions(+), 24 del
It is caused by
'commit d6c9a7dc86cd ("drm/amd/pp: Move common code to smu_helper.c")'
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c
b/drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c
index 7c23741..93a3d02
newline
2. change unit of frequency Mhz to MHz
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 1 +
drivers/gpu/drm/amd/include/kgd_pp_interface.h | 1 +
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 22 ++
3 files chang
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 705 +++--
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.h | 25 +-
.../gpu/drm/amd/powerplay/inc/hardwaremanager.h| 3 +-
3 files changed, 376 insertions(+), 357 del
read vddc range from vbios.
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c | 28
drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.h | 3 ++
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 56
drivers/g
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 8 ++--
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
index 720ac47..9
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 16 ++--
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
index 6
ERROR: "__udivdi3" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
v2: remove temporary variable
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/display/modules/freesync/freesync.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu
ERROR: "__udivdi3" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/display/modules/freesync/freesync.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/
v2: check reserved vram size before allocate.
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 +
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 44 +++
drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h | 2 ++
drivers/g
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 +
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 44 +++
drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h | 2 ++
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 +
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 44 +++
drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h | 2 ++
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
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 -
drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 29 --
3 files changed, 40 deletions(-)
diff
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c | 56 ++
drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.h | 21
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 43 +
3 files changed, 78 inse
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
index 68b9e0b..31d271f
smu firmware do not update response register immediately under
some delay tasks. so we read out the original value.
so clear the register first.
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c | 4 +---
drivers/gpu/drm/amd/powerplay/
. need to assign the unit time to calculate the average power.
so remove this struct.
if user need to know the power on vddc/vddci.
we can export them with new common interface/struct.
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
write currentpkgpwr
to ixSMU_PM_STATUS_94. driver can read pkgpwr from ixSMU_PM_STATUS_94.
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 51 --
drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c | 10 +++--
2 files c
we don't have limit of [50ms, 4sec] sampling period.
smu calculate average gpu power in real time.
we can read average gpu power through smu message or
read special register.
This reverts commit 462d8dcc9fec0d89f1ff6a1f93f1d4f670878c71.
Signed-off-by: Rex Zhu <rex@amd.com>
---
drive
Shirish S <shiris...@amd.com>
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 4 ++--
drivers/gpu/drm/amd/amdgpu/vi.c | 31 +--
2 files changed, 27 insertions(+), 8 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu
fix the issue set uvd clock failed on CZ/ST
which lead 1s delay when boot up.
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
Reviewed-by: Huang Rui <ray.hu...@amd.com>
Acked-by: Christian König <christian.koe...@amd.com>
Acked-by: Shirish S <shiris...@amd.com>
Sig
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 84 +++---
1 file changed, 41 insertions(+), 43 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_h
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c| 4
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 4
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 2 ++
drivers/gpu/drm/amd/powerplay/smumgr/ci_sm
if driver send unsupported messages to smu.
so also refine the error info for smu7.
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 28 +-
drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c | 10 +---
2 files chang
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c | 10 --
drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.h | 1 -
2 files changed, 11 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c
b/drivers/gpu/d
Only check smc running state before start smu.
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c | 8
1 file changed, 8 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c
b/drivers/gpu/drm/amd/powerplay/
Do not check whether the smu message was supported by firmware.
send the message with parameter 0. if the return value not changed,
we use another way to read power.
There is no impact if driver send unsupported messages to smu.
so also refine the error info for smu7.
Signed-off-by: Rex Zhu <
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c| 7 ++-
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 22 +++---
drivers/gpu/drm/amd/include/kgd_pp_interface.h | 7 ---
drivers/gpu/drm/amd/powerplay
with vega.
6. for vddc/vddci power, we can calculate the average value per
[10ms, 4s] in other interface if needed.
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 45 +++-
1 file changed, 21 insertions(+), 24 deletions(-)
we don't have limit of [50ms, 4sec] sampling period.
only confused the average power and max power.
so don't need to increase delay time.
This reverts commit 462d8dcc9fec0d89f1ff6a1f93f1d4f670878c71.
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_h
In order to share pp_atomfwctrl_get_vbios_bootup_values
on asics with different BIOS_CLKID.
Not call function pp_atomfwctrl_get_clk_information_by_clkid in
pp_atomfwctrl_get_vbios_bootup_values.
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c | 2 +-
drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c
b/drivers/g
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
index aaa9f5b..38cf3a1
Use forward declaration in amdgpu_dm.h for struct dc instand
of include dc.h to make header files more standalone
Change-Id: I733a7e8499949aa9411e943230f9f50da6a8b8a2
Signed-off-by: Rex Zhu <rex@amd.com>
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 2 +-
drivers/gpu/d
201 - 300 of 798 matches
Mail list logo