drm/amd/powerplay: Configuring DIDT blocks only SQ enabled on Polaris11.
Subsystems (2)
PATCH 1/4 drm/amd/powerplay: Configuring DIDT blocks only SQ enabled on Polaris11.
following firmware's request.
--- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-)
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +12 -9
@@ -767,17 +767,10 @@ int phm_get_voltage_evv_on_sclk(struct pp_hwmgr *hwmgr, uint8_t voltage_type,int polaris_set_asic_special_caps (struct pp_hwmgr *hwmgr) { -/* power tune caps Assume disabled */ +phm_cap_set (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_SQRamping);phm_cap_set (hwmgr->platform_descriptor.platformCaps, - PHM_PlatformCaps_DBRamping); -phm_cap_set (hwmgr->platform_descriptor.platformCaps, - PHM_PlatformCaps_TDRamping); -phm_cap_set (hwmgr->platform_descriptor.platformCaps, - PHM_PlatformCaps_TCPRamping); - -phm_cap_set (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_RegulatorHot); phm_cap_set(hwmgr->platform_descriptor.platformCaps,
@@ -786,9 +779,19 @@ int polaris_set_asic_special_caps(struct pp_hwmgr *hwmgr)phm_cap_set (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_TablelessHardwareInterface); -if ((hwmgr->chip_id ==CHIP_POLARIS11 ) || (hwmgr->chip_id ==CHIP_POLARIS12 )) + +if (hwmgr->chip_id !=CHIP_POLARIS10 )phm_cap_set (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_SPLLShutdownSupport); + +if (hwmgr->chip_id !=CHIP_POLARIS11 ) { +phm_cap_set (hwmgr->platform_descriptor.platformCaps, + PHM_PlatformCaps_DBRamping); +phm_cap_set (hwmgr->platform_descriptor.platformCaps, + PHM_PlatformCaps_TDRamping); +phm_cap_set (hwmgr->platform_descriptor.platformCaps, + PHM_PlatformCaps_TCPRamping); + }return 0 ; }
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 2/4 drm/amd/powerplay: add new smu message.
In reply to a message not in the archive--- drivers/gpu/drm/amd/powerplay/inc/smu7_ppsmc.h | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/powerplay/inc/smu7_ppsmc.h +3 -0
@@ -394,6 +394,9 @@ typedef uint16_t PPSMC_Result;#define PPSMC_MSG_SetVBITimeout ((uint16_t) 0x306) +#define PPSMC_MSG_EnableDpmDidt ((uint16_t) 0x309) +#define PPSMC_MSG_DisableDpmDidt ((uint16_t) 0x30A) +#define PPSMC_MSG_SecureSRBMWrite ((uint16_t) 0x600)#define PPSMC_MSG_SecureSRBMRead ((uint16_t) 0x601)#define PPSMC_MSG_SetAddress ((uint16_t) 0x800)
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 3/4 drm/amd/powerplay: refine DIDT feature in Powerplay.
In reply to a message not in the archiveUpdating SQ DIDT settings and block mask
so SQ uses PCC on Polaris11.
--- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 4 + .../gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c | 224 ++++++++++++++++----- 2 files changed, 179 insertions(+), 49 deletions(-)
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +4 -0
@@ -1294,6 +1294,10 @@ int smu7_disable_dpm_tasks(struct pp_hwmgr *hwmgr)PP_ASSERT_WITH_CODE ((tmp_result ==0 ),"Failed to disable SMC CAC!" , result = tmp_result); + tmp_result =smu7_disable_didt_config (hwmgr); +PP_ASSERT_WITH_CODE ((tmp_result ==0 ), +"Failed to disable DIDT!" , result = tmp_result); +PHM_WRITE_INDIRECT_FIELD (hwmgr->device,CGS_IND_REG__SMC ,CG_SPLL_SPREAD_SPECTRUM ,SSEN ,0 ); PHM_WRITE_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC,
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c +175 -49
308 lines not on this page · raw message
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 4/4 drm/amdgpu: extend profiling mode.
In reply to a message not in the archivein profiling mode, powerplay will fix power state as stable as possible.and disable gfx cg and LBPW feature.
profile_standard: as a prerequisite, ensure power and thermal sustainable, set clocks ratio as close to the highest clock ratio as possible.profile_min_sclk: fix mclk as profile_normal, set lowest sclkprofile_min_mclk: fix sclk as profile_normal, set lowest mclkprofile_peak: set highest sclk and mclk, power and thermal not sustainableprofile_exit: exit profile mode. enable gfx cg/lbpw feature.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 38 ++++--- drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 5 +- drivers/gpu/drm/amd/include/amd_shared.h | 6 +- drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 3 +- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 127 ++++++++++++++++++++++- drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 1 + 6 files changed, 154 insertions(+), 26 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +21 -17
@@ -120,12 +120,15 @@ static ssize_t amdgpu_get_dpm_forced_performance_level(struct device *dev, level =amdgpu_dpm_get_performance_level (adev);return snprintf (buf,PAGE_SIZE ,"%s\n" , - (level & (AMD_DPM_FORCED_LEVEL_AUTO ) ?"auto" : - (level &AMD_DPM_FORCED_LEVEL_LOW ) ?"low" : - (level &AMD_DPM_FORCED_LEVEL_HIGH ) ?"high" : - (level &AMD_DPM_FORCED_LEVEL_MANUAL ) ?"manual" : - (level &AMD_DPM_FORCED_LEVEL_PROFILING ) ?"profiling" : -"unknown" )); + (level ==AMD_DPM_FORCED_LEVEL_AUTO ) ?"auto" : + (level ==AMD_DPM_FORCED_LEVEL_LOW ) ?"low" : + (level ==AMD_DPM_FORCED_LEVEL_HIGH ) ?"high" : + (level ==AMD_DPM_FORCED_LEVEL_MANUAL ) ?"manual" : + (level ==AMD_DPM_FORCED_LEVEL_PROFILE_STANDARD ) ?"profile_standard" : + (level ==AMD_DPM_FORCED_LEVEL_PROFILE_MIN_SCLK ) ?"profile_min_sclk" : + (level ==AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK ) ?"profile_min_mclk" : + (level ==AMD_DPM_FORCED_LEVEL_PROFILE_PEAK ) ?"profile_peak" : +"unknown" ); } static ssize_t amdgpu_set_dpm_forced_performance_level(struct device *dev,
@@ -154,9 +157,17 @@ static ssize_t amdgpu_set_dpm_forced_performance_level(struct device *dev, level =AMD_DPM_FORCED_LEVEL_AUTO ; }else if (strncmp ("manual" , buf,strlen ("manual" )) ==0 ) { level =AMD_DPM_FORCED_LEVEL_MANUAL ; - }else if (strncmp ("profile" , buf,strlen ("profile" )) ==0 ) { - level =AMD_DPM_FORCED_LEVEL_PROFILING ; - }else { + }else if (strncmp ("profile_exit" , buf,strlen ("profile_exit" )) ==0 ) { + level =AMD_DPM_FORCED_LEVEL_PROFILE_EXIT ; + }else if (strncmp ("profile_standard" , buf,strlen ("profile_standard" )) ==0 ) { + level =AMD_DPM_FORCED_LEVEL_PROFILE_STANDARD ; + }else if (strncmp ("profile_min_sclk" , buf,strlen ("profile_min_sclk" )) ==0 ) { + level =AMD_DPM_FORCED_LEVEL_PROFILE_MIN_SCLK ; + }else if (strncmp ("profile_min_mclk" , buf,strlen ("profile_min_mclk" )) ==0 ) { + level =AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK ; + }else if (strncmp ("profile_peak" , buf,strlen ("profile_peak" )) ==0 ) { + level =AMD_DPM_FORCED_LEVEL_PROFILE_PEAK ; + }else { count = -EINVAL ; goto fail; }
@@ -164,14 +175,6 @@ static ssize_t amdgpu_set_dpm_forced_performance_level(struct device *dev,if (current_level == level)return 0 ; -if (level ==AMD_DPM_FORCED_LEVEL_PROFILING ) -amdgpu_set_clockgating_state (adev,AMD_IP_BLOCK_TYPE_GFX , -AMD_CG_STATE_UNGATE ); -else if (level !=AMD_DPM_FORCED_LEVEL_PROFILING && - current_level ==AMD_DPM_FORCED_LEVEL_PROFILING ) -amdgpu_set_clockgating_state (adev,AMD_IP_BLOCK_TYPE_GFX , -AMD_CG_STATE_GATE ); -if (adev->pp_enabled)amdgpu_dpm_force_performance_level (adev, level);else {
@@ -188,6 +191,7 @@ static ssize_t amdgpu_set_dpm_forced_performance_level(struct device *dev, adev->pm.dpm.forced_level = level;mutex_unlock (&adev->pm.mutex); } + fail:return count; }
drivers/gpu/drm/amd/amdgpu/ci_dpm.c +3 -2
@@ -6571,8 +6571,9 @@ static int ci_dpm_force_clock_level(struct amdgpu_device *adev, {struct ci_power_info *pi =ci_get_pi (adev); -if (!(adev->pm.dpm.forced_level & - (AMD_DPM_FORCED_LEVEL_MANUAL |AMD_DPM_FORCED_LEVEL_PROFILING ))) +if (adev->pm.dpm.forced_level & (AMD_DPM_FORCED_LEVEL_AUTO | +AMD_DPM_FORCED_LEVEL_LOW | +AMD_DPM_FORCED_LEVEL_HIGH ))return -EINVAL ;switch (type) {
drivers/gpu/drm/amd/include/amd_shared.h +5 -1
@@ -85,7 +85,11 @@ enum amd_dpm_forced_level {AMD_DPM_FORCED_LEVEL_MANUAL =0x2 ,AMD_DPM_FORCED_LEVEL_LOW =0x4 ,AMD_DPM_FORCED_LEVEL_HIGH =0x8 , - AMD_DPM_FORCED_LEVEL_PROFILING = 0x10, +AMD_DPM_FORCED_LEVEL_PROFILE_STANDARD =0x10 , +AMD_DPM_FORCED_LEVEL_PROFILE_MIN_SCLK =0x20 , +AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK =0x40 , +AMD_DPM_FORCED_LEVEL_PROFILE_PEAK =0x80 , + AMD_DPM_FORCED_LEVEL_PROFILE_EXIT = 0x100, }; enum amd_powergating_state {
drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c +1 -2
@@ -1642,8 +1642,7 @@ static int cz_get_dal_power_level(struct pp_hwmgr *hwmgr,static int cz_force_clock_level (struct pp_hwmgr *hwmgr,enum pp_clock_type type,uint32_t mask) { -if (!(hwmgr->dpm_level & - (AMD_DPM_FORCED_LEVEL_MANUAL |AMD_DPM_FORCED_LEVEL_PROFILING ))) +if (hwmgr->dpm_level !=AMD_DPM_FORCED_LEVEL_MANUAL )return -EINVAL ;switch (type) {
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +123 -4
173 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h +1 -0
@@ -612,6 +612,7 @@ struct pp_hwmgr {uint32_t num_vce_state_tables;enum amd_dpm_forced_level dpm_level; +enum amd_dpm_forced_level saved_dpm_level;bool block_hw_access;struct phm_gfx_arbiter gfx_arbiter;struct phm_acp_arbiter acp_arbiter;
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 61 lines
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Rex Zhu
Sent: Monday, January 09, 2017 1:52 AM
To: [email protected]
Cc: Zhu, Rex
Subject: [PATCH 1/4] drm/amd/powerplay: Configuring DIDT blocks only SQ enabled on Polaris11.following firmware's request.
Change-Id I0098144cae57727999101152e973338ddffec28eSigned-off-by Rex Zhu <[email protected]>--- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 21 ++++++++++++----- ---- 1 file changed, 12 insertions(+), 9 deletions(-)drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +1
-4@@ -767,17 +767,10 @@ int phm_get_voltage_evv_on_sclk(struct pp_hwmgr *hwmgr, uint8_t voltage_type, int polaris_set_asic_special_caps(struct pp_hwmgr *hwmgr) { -/* power tune caps Assume disabled */ + phm_cap_set(hwmgr->platform_descriptor.platformCaps,PHM_PlatformCaps_SQRamping );phm_cap_set (hwmgr->platform_descriptor.platformCaps, - PHM_PlatformCaps_DBRamping); - phm_cap_set(hwmgr->platform_descriptor.platformCaps, -PHM_PlatformCaps_TDRamping);drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +0
-2- phm_cap_set(hwmgr->platform_descriptor.platformCaps, -PHM_PlatformCaps_TCPRamping);drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +0
-2- - phm_cap_set(hwmgr->platform_descriptor.platformCaps,PHM_PlatformCaps_RegulatorHot);drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +2
-1phm_cap_set(hwmgr->platform_descriptor.platformCaps,@@ -786,9 +779,19 @@ int polaris_set_asic_special_caps(struct pp_hwmgr *hwmgr)phm_cap_set (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_TablelessHardwareInterface); -if ((hwmgr->chip_id ==CHIP_POLARIS11 ) || (hwmgr->chip_id == CHIP_POLARIS12)) + +if (hwmgr->chip_id !=CHIP_POLARIS10 ) phm_cap_set(hwmgr->platform_descriptor.platformCaps,PHM_PlatformCaps_SPLLShutdownSupport);
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
Quoted 2 lines
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +2
-0+ +if (hwmgr->chip_id !=CHIP_POLARIS11 ) {
This will set the caps on Polaris10 as well? Intended?
Quoted 16 lines
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +2
-0+ phm_cap_set(hwmgr->platform_descriptor.platformCaps, +PHM_PlatformCaps_DBRamping);drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +2
-0+ phm_cap_set(hwmgr->platform_descriptor.platformCaps, +PHM_PlatformCaps_TDRamping);drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +2
-0+ phm_cap_set(hwmgr->platform_descriptor.platformCaps, +PHM_PlatformCaps_TCPRamping);drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +1
-1+ }return 0 ; } --1.9.1
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Deucher, Alexander
Reviewed-by Alex DeucherRE: [PATCH 2/4] drm/amd/powerplay: add new smu message.
In reply to a message not in the archiveQuoted 10 lines
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Rex Zhu
Sent: Monday, January 09, 2017 1:52 AM
To: [email protected]
Cc: Zhu, Rex
Subject: [PATCH 2/4] drm/amd/powerplay: add new smu message.Change-Id I17f02555fbc79a9e5a2e9d3160fddbc6c502eaf4Signed-off-by Rex Zhu <[email protected]>
Patches 2-4:
Quoted 22 lines
--- drivers/gpu/drm/amd/powerplay/inc/smu7_ppsmc.h | 3 +++ 1 file changed, 3 insertions(+)drivers/gpu/drm/amd/powerplay/inc/smu7_ppsmc.h +3
-1@@ -394,6 +394,9 @@ typedef uint16_t PPSMC_Result;#define PPSMC_MSG_SetVBITimeout ((uint16_t) 0x306) +#define PPSMC_MSG_EnableDpmDidt ((uint16_t) 0x309) +#define PPSMC_MSG_DisableDpmDidt ((uint16_t) 0x30A) +#define PPSMC_MSG_SecureSRBMWrite ((uint16_t) 0x600)#define PPSMC_MSG_SecureSRBMRead ((uint16_t) 0x601)#define PPSMC_MSG_SetAddress ((uint16_t) 0x800) --1.9.1
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Hi Alex,
Quoted 1 line
Quoted 1 line
Quoted 1 line
This will set the caps on Polaris10 as well? Intended?
Rex: Yes, Currently, New didt messages were only supported on Polaris11.
Best Regards
Rex
-----Original Message-----
From: Deucher, Alexander
Sent: Monday, January 09, 2017 10:12 PM
To: Zhu, Rex; [email protected]
Cc: Zhu, Rex
Subject: RE: [PATCH 1/4] drm/amd/powerplay: Configuring DIDT blocks only SQ enabled on Polaris11.
Quoted 60 lines
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Rex Zhu
Sent: Monday, January 09, 2017 1:52 AM
To: [email protected]
Cc: Zhu, Rex
Subject: [PATCH 1/4] drm/amd/powerplay: Configuring DIDT blocks only SQ enabled on Polaris11.following firmware's request.
Change-Id I0098144cae57727999101152e973338ddffec28eSigned-off-by Rex Zhu <[email protected]>--- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 21 ++++++++++++----- ---- 1 file changed, 12 insertions(+), 9 deletions(-)drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +1
-6@@ -767,17 +767,10 @@ int phm_get_voltage_evv_on_sclk(struct pp_hwmgr *hwmgr, uint8_t voltage_type, int polaris_set_asic_special_caps(struct pp_hwmgr *hwmgr) { -/* power tune caps Assume disabled */ + phm_cap_set(hwmgr->platform_descriptor.platformCaps,PHM_PlatformCaps_SQRamping );phm_cap_set (hwmgr->platform_descriptor.platformCaps, - PHM_PlatformCaps_DBRamping); -phm_cap_set (hwmgr->platform_descriptor.platformCaps, - PHM_PlatformCaps_TDRamping); - phm_cap_set(hwmgr->platform_descriptor.platformCaps, -PHM_PlatformCaps_TCPRamping);drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +0
-2- - phm_cap_set(hwmgr->platform_descriptor.platformCaps,PHM_PlatformCaps_RegulatorHot);drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +2
-1phm_cap_set(hwmgr->platform_descriptor.platformCaps,@@ -786,9 +779,19 @@ int polaris_set_asic_special_caps(struct pp_hwmgr *hwmgr)phm_cap_set (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_TablelessHardwareInterface); -if ((hwmgr->chip_id ==CHIP_POLARIS11 ) || (hwmgr->chip_id == CHIP_POLARIS12)) + +if (hwmgr->chip_id !=CHIP_POLARIS10 ) phm_cap_set(hwmgr->platform_descriptor.platformCaps,PHM_PlatformCaps_SPLLShutdownSupport);
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
Quoted 2 lines
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +2
-0+ +if (hwmgr->chip_id !=CHIP_POLARIS11 ) {
This will set the caps on Polaris10 as well? Intended?
Quoted 16 lines
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +2
-0+ phm_cap_set(hwmgr->platform_descriptor.platformCaps, +PHM_PlatformCaps_DBRamping);drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +2
-0+ phm_cap_set(hwmgr->platform_descriptor.platformCaps, +PHM_PlatformCaps_TDRamping);drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +2
-0+ phm_cap_set(hwmgr->platform_descriptor.platformCaps, +PHM_PlatformCaps_TCPRamping);drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +1
-1+ }return 0 ; } --1.9.1
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Re: [PATCH 4/4] drm/amdgpu: extend profiling mode.
In reply to a message not in the archiveQuoted 11 lines · Rex Zhu
in profiling mode, powerplay will fix power state as stable as possible.and disable gfx cg and LBPW feature.
profile_standard: as a prerequisite, ensure power and thermal sustainable, set clocks ratio as close to the highest clock ratio as possible.profile_min_sclk: fix mclk asprofile_normal, set lowest sclkprofile_min_mclk: fix sclk asprofile_normal, set lowest mclkprofile_peak: set highest sclk and mclk, power and thermal not sustainableprofile_exit: exit profile mode. enable gfx cg/lbpw feature.
Testing R9 285 Tonga on drm-next-4.11-wip
This commit has the effect that doing
echo high > /sys/class/drm/card0/device/power_dpm_force_performance_level
instantly forces fan to (I guess) max, where normally it doesn't need anything like as fast with the clocks high when doing nothing else.
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Re: [PATCH 4/4] drm/amdgpu: extend profiling mode.
In reply to a message not in the archiveQuoted 13 lines · Andy Furniss
Quoted 11 lines · Rex Zhu
in profiling mode, powerplay will fix power state as stable as possible.and disable gfx cg and LBPW feature.
profile_standard: as a prerequisite, ensure power and thermal sustainable, set clocks ratio as close to the highest clock ratio as possible.profile_min_sclk: fix mclk asprofile_normal, set lowest sclkprofile_min_mclk: fix sclk asprofile_normal, set lowest mclkprofile_peak: set highest sclk and mclk, power and thermal not sustainableprofile_exit: exit profile mode. enable gfx cg/lbpw feature.
Quoted 8 lines
Testing R9 285 Tonga on drm-next-4.11-wip
This commit has the effect that doing
echo high >
/sys/class/drm/card0/device/power_dpm_force_performance_levelinstantly forces fan to (I guess) max, where normally it doesn't need anything like as fast with the clocks high when doing nothing else.
Ping - just in case this got missed, still the same on current drm-next-4.11-wip
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Re: [PATCH 4/4] drm/amdgpu: extend profiling mode.
In reply to a message not in the archiveQuoted 21 lines · Andy Furniss
Quoted 20 lines · Andy Furniss
Quoted 4 lines · Rex Zhu
in profiling mode, powerplay will fix power state as stable as possible.and disable gfx cg and LBPW feature.
Quoted 8 lines
profile_standard: as a prerequisite, ensure power and thermal sustainable, set clocks ratio as close to the highest clock ratio as possible.profile_min_sclk: fix mclk asprofile_normal, set lowest sclkprofile_min_mclk: fix sclk asprofile_normal, set lowest mclkprofile_peak: set highest sclk and mclk, power and thermal not sustainableprofile_exit: exit profile mode. enable gfx cg/lbpw feature.Testing R9 285 Tonga on drm-next-4.11-wip
This commit has the effect that doing
Quoted 8 lines
Quoted 4 lines
echo high >
/sys/class/drm/card0/device/power_dpm_force_performance_levelinstantly forces fan to (I guess) max, where normally it doesn't need anything like as fast with the clocks high when doing nothing else.
Ping - just in case this got missed, still the same on current drm-next-4.11-wip
Just a heads up, Rex was looking at this, but it's Chinese New Year this week.
Alex
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Re: [PATCH 4/4] drm/amdgpu: extend profiling mode.
In reply to a message not in the archiveQuoted 24 lines · Alex Deucher
Quoted 23 lines · Andy Furniss
Quoted 22 lines · Andy Furniss
Quoted 4 lines · Rex Zhu
in profiling mode, powerplay will fix power state as stable as possible.and disable gfx cg and LBPW feature.
Quoted 8 lines
profile_standard: as a prerequisite, ensure power and thermal sustainable, set clocks ratio as close to the highest clock ratio as possible.profile_min_sclk: fix mclk asprofile_normal, set lowest sclkprofile_min_mclk: fix sclk asprofile_normal, set lowest mclkprofile_peak: set highest sclk and mclk, power and thermal not sustainableprofile_exit: exit profile mode. enable gfx cg/lbpw feature.Testing R9 285 Tonga on drm-next-4.11-wip
This commit has the effect that doing
echo high >
/sys/class/drm/card0/device/power_dpm_force_performance_level
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
instantly forces fan to (I guess) max, where normally it doesn't need anything like as fast with the clocks high when doing nothing else.
Ping - just in case this got missed, still the same on current drm-next-4.11-wip
Just a heads up, Rex was looking at this, but it's Chinese New Year this week.
OK, thanks & Happy new year.
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
RE: [PATCH 4/4] drm/amdgpu: extend profiling mode.
In reply to a message not in the archiveSorry for the late response.
Yes, I set the fan speed to max in this patch when user set high performance.
Considering that: 1. set fan speed to max is helpful to let GPU run under highest clock as long as possible.
2. avoid GPU rapid temperature rise in some case.
Best Regards
Rex
-----Original Message-----
From: Andy Furniss [mailto:[email protected]]
Sent: Wednesday, February 01, 2017 11:37 PM
To: Alex Deucher
Cc: Zhu, Rex; amd-gfx list
Subject: Re: [PATCH 4/4] drm/amdgpu: extend profiling mode.
Quoted 25 lines · Alex Deucher
Quoted 24 lines · Andy Furniss
Quoted 23 lines · Andy Furniss
Quoted 4 lines · Rex Zhu
in profiling mode, powerplay will fix power state as stable as possible.and disable gfx cg and LBPW feature.
Quoted 8 lines
profile_standard: as a prerequisite, ensure power and thermal sustainable, set clocks ratio as close to the highest clock ratio as possible.profile_min_sclk: fix mclk asprofile_normal, set lowest sclkprofile_min_mclk: fix sclk asprofile_normal, set lowest mclkprofile_peak: set highest sclk and mclk, power and thermal not sustainableprofile_exit: exit profile mode. enable gfx cg/lbpw feature.Testing R9 285 Tonga on drm-next-4.11-wip
This commit has the effect that doing
echo high >
/sys/class/drm/card0/device/power_dpm_force_performance_level
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
instantly forces fan to (I guess) max, where normally it doesn't need anything like as fast with the clocks high when doing nothing else.
Ping - just in case this got missed, still the same on current drm-next-4.11-wip
Just a heads up, Rex was looking at this, but it's Chinese New Year this week.
OK, thanks & Happy new year.
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Re: [PATCH 4/4] drm/amdgpu: extend profiling mode.
In reply to a message not in the archiveQuoted 6 lines · Rex
Sorry for the late response.
Yes, I set the fan speed to max in this patch when user set high performance.
Considering that: 1. set fan speed to max is helpful to let GPU run under highest clock as long as possible.
2. avoid GPU rapid temperature rise in some case.
OK, I guess you know if it's needed or not.
It is somewhat annoying noise wise, maybe one day there will be a way for users to set fan back on auto?
Accepting I don't know how the h/w works your point 2 would imply that with perf on auto doing something like running a benchmark that pegs all the clocks high should also instantly force fan high?
I don't think that would be popular WRT noise.
Quoted 44 lines
Best Regards
Rex-----Original Message-----
From: Andy Furniss [mailto:[email protected]]
Sent: Wednesday, February 01, 2017 11:37 PM
To: Alex Deucher
Cc: Zhu, Rex; amd-gfx list
Subject: Re: [PATCH 4/4] drm/amdgpu: extend profiling mode.Quoted 29 lines · Alex Deucher
Quoted 28 lines · Andy Furniss
Quoted 25 lines · Andy Furniss
Quoted 4 lines · Rex Zhu
in profiling mode, powerplay will fix power state as stable as possible.and disable gfx cg and LBPW feature.
Quoted 8 lines
profile_standard: as a prerequisite, ensure power and thermal sustainable, set clocks ratio as close to the highest clock ratio as possible.profile_min_sclk: fix mclk asprofile_normal, set lowest sclkprofile_min_mclk: fix sclk asprofile_normal, set lowest mclkprofile_peak: set highest sclk and mclk, power and thermal not sustainableprofile_exit: exit profile mode. enable gfx cg/lbpw feature.Testing R9 285 Tonga on drm-next-4.11-wip
This commit has the effect that doing
echo high >
/sys/class/drm/card0/device/power_dpm_force_performance_levelinstantly forces fan to (I guess) max, where normally it doesn't need anything like as fast with the clocks high when doing nothing else.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Ping - just in case this got missed, still the same on current drm-next-4.11-wip
Just a heads up, Rex was looking at this, but it's Chinese New Year this week.
OK, thanks & Happy new year.
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
RE: [PATCH 4/4] drm/amdgpu: extend profiling mode.
In reply to a message not in the archivePlease see in line.
Best Regards
Rex
-----Original Message-----
From: Andy Furniss [mailto:[email protected]]
Sent: Monday, February 06, 2017 8:32 PM
To: Zhu, Rex; Alex Deucher
Cc: amd-gfx list
Subject: Re: [PATCH 4/4] drm/amdgpu: extend profiling mode.
Quoted 9 lines · Rex
Sorry for the late response.
Yes, I set the fan speed to max in this patch when user set high performance.
Considering that: 1. set fan speed to max is helpful to let GPU run under highest clock as long as possible.
2. avoid GPU rapid temperature rise in some case.Quoted 2 lines
OK, I guess you know if it's needed or not.
It is somewhat annoying noise wise, maybe one day there will be a way for users to set fan back on auto?
Rex: sure, you can echo "2"> /sys/class/drm/card0/device/hwmon/hwmon3(maybe not 3)/pwm1_enable
Quoted 1 line
Quoted 1 line
Accepting I don't know how the h/w works your point 2 would imply that with perf on auto doing something like running a benchmark that pegs all the clocks high should also
Rex: based on the thermal, the fan speed.will be dynamically adjusted.
Quoted 1 line
Quoted 1 line
I don't think that would be popular WRT noise.
Rex: maybe I worried unnecessarily. I will change the code not to set fan speed to max. thanks.
Quoted 43 lines
Best Regards
Rex-----Original Message-----
From: Andy Furniss [mailto:[email protected]]
Sent: Wednesday, February 01, 2017 11:37 PM
To: Alex Deucher
Cc: Zhu, Rex; amd-gfx list
Subject: Re: [PATCH 4/4] drm/amdgpu: extend profiling mode.Quoted 29 lines · Alex Deucher
Quoted 28 lines · Andy Furniss
Quoted 25 lines · Andy Furniss
Quoted 4 lines · Rex Zhu
in profiling mode, powerplay will fix power state as stable as possible.and disable gfx cg and LBPW feature.
Quoted 8 lines
profile_standard: as a prerequisite, ensure power and thermal sustainable, set clocks ratio as close to the highest clock ratio as possible.profile_min_sclk: fix mclk asprofile_normal, set lowest sclkprofile_min_mclk: fix sclk asprofile_normal, set lowest mclkprofile_peak: set highest sclk and mclk, power and thermal not sustainableprofile_exit: exit profile mode. enable gfx cg/lbpw feature.Testing R9 285 Tonga on drm-next-4.11-wip
This commit has the effect that doing
echo high >
/sys/class/drm/card0/device/power_dpm_force_performance_levelinstantly forces fan to (I guess) max, where normally it doesn't need anything like as fast with the clocks high when doing nothing else.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Ping - just in case this got missed, still the same on current drm-next-4.11-wip
Just a heads up, Rex was looking at this, but it's Chinese New Year this week.
OK, thanks & Happy new year.
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Re: [PATCH 4/4] drm/amdgpu: extend profiling mode.
In reply to a message not in the archiveNot set max fan speed in high performance level because of the fan noise.
Best Regards
Rex
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Zhu, Rex <[email protected]>
Sent: Monday, February 6, 2017 10:09 PM
To: Andy Furniss; Alex Deucher
Cc: amd-gfx list
Subject: RE: [PATCH 4/4] drm/amdgpu: extend profiling mode.
Please see in line.
Best Regards
Rex
-----Original Message-----
From: Andy Furniss [mailto:[email protected]]
Sent: Monday, February 06, 2017 8:32 PM
To: Zhu, Rex; Alex Deucher
Cc: amd-gfx list
Subject: Re: [PATCH 4/4] drm/amdgpu: extend profiling mode.
Quoted 9 lines · Rex
Sorry for the late response.
Yes, I set the fan speed to max in this patch when user set high performance.
Considering that: 1. set fan speed to max is helpful to let GPU run under highest clock as long as possible.
2. avoid GPU rapid temperature rise in some case.Quoted 2 lines
OK, I guess you know if it's needed or not.
It is somewhat annoying noise wise, maybe one day there will be a way for users to set fan back on auto?
Rex: sure, you can echo "2"> /sys/class/drm/card0/device/hwmon/hwmon3(maybe not 3)/pwm1_enable
Quoted 1 line
Quoted 1 line
Accepting I don't know how the h/w works your point 2 would imply that with perf on auto doing something like running a benchmark that pegs all the clocks high should also
Rex: based on the thermal, the fan speed.will be dynamically adjusted.
Quoted 1 line
Quoted 1 line
I don't think that would be popular WRT noise.
Rex: maybe I worried unnecessarily. I will change the code not to set fan speed to max. thanks.
Quoted 43 lines
Best Regards
Rex-----Original Message-----
From: Andy Furniss [mailto:[email protected]]
Sent: Wednesday, February 01, 2017 11:37 PM
To: Alex Deucher
Cc: Zhu, Rex; amd-gfx list
Subject: Re: [PATCH 4/4] drm/amdgpu: extend profiling mode.Quoted 29 lines · Alex Deucher
Quoted 28 lines · Andy Furniss
Quoted 25 lines · Andy Furniss
Quoted 4 lines · Rex Zhu
in profiling mode, powerplay will fix power state as stable as possible.and disable gfx cg and LBPW feature.
Quoted 8 lines
profile_standard: as a prerequisite, ensure power and thermal sustainable, set clocks ratio as close to the highest clock ratio as possible.profile_min_sclk: fix mclk asprofile_normal, set lowest sclkprofile_min_mclk: fix sclk asprofile_normal, set lowest mclkprofile_peak: set highest sclk and mclk, power and thermal not sustainableprofile_exit: exit profile mode. enable gfx cg/lbpw feature.Testing R9 285 Tonga on drm-next-4.11-wip
This commit has the effect that doing
echo high >
/sys/class/drm/card0/device/power_dpm_force_performance_levelinstantly forces fan to (I guess) max, where normally it doesn't need anything like as fast with the clocks high when doing nothing else.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Ping - just in case this got missed, still the same on current drm-next-4.11-wip
Just a heads up, Rex was looking at this, but it's Chinese New Year this week.
OK, thanks & Happy new year.
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
From 4e3f4155fac060a4d86d8bff61d461278dd7ac02 Mon Sep 17 00:00:00 2001
From: Rex Zhu <[email protected]>
Date: Tue, 7 Feb 2017 17:34:11 +0800
Subject: [PATCH] drm/amd/powerplay: set fan speed to max in profile peak mode
only.
--- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +3 -2
@@ -2624,6 +2624,7 @@ static int smu7_force_dpm_level(struct pp_hwmgr *hwmgr,smu7_force_clock_level (hwmgr,PP_SCLK ,1 <<sclk_mask);smu7_force_clock_level (hwmgr,PP_MCLK ,1 <<mclk_mask);smu7_force_clock_level (hwmgr,PP_PCIE ,1 <<pcie_mask); +break ;case AMD_DPM_FORCED_LEVEL_MANUAL : hwmgr->dpm_level = level;
@@ -2633,9 +2634,9 @@ static int smu7_force_dpm_level(struct pp_hwmgr *hwmgr,break ; } -if (level & (AMD_DPM_FORCED_LEVEL_PROFILE_PEAK |AMD_DPM_FORCED_LEVEL_HIGH )) +if (level ==AMD_DPM_FORCED_LEVEL_PROFILE_PEAK && hwmgr->saved_dpm_level !=AMD_DPM_FORCED_LEVEL_PROFILE_PEAK )smu7_fan_ctrl_set_fan_speed_percent (hwmgr,100 ); -else +else if (level !=AMD_DPM_FORCED_LEVEL_PROFILE_PEAK && hwmgr->saved_dpm_level ==AMD_DPM_FORCED_LEVEL_PROFILE_PEAK )smu7_fan_ctrl_reset_fan_speed_to_default (hwmgr);return 0 ;
Signature · 1 line
1.9.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Re: [PATCH 4/4] drm/amdgpu: extend profiling mode.
In reply to a message not in the archiveQuoted 2 lines · Rex
Not set max fan speed in high performance level because of the fan noise.
Thanks, I tested the patch and all seems OK again.
Quoted 93 lines
Best Regards
Rex
________________________________
From: amd-gfx <[email protected]> on behalf of Zhu, Rex <[email protected]>
Sent: Monday, February 6, 2017 10:09 PM
To: Andy Furniss; Alex Deucher
Cc: amd-gfx list
Subject: RE: [PATCH 4/4] drm/amdgpu: extend profiling mode.Please see in line.
Best Regards
Rex-----Original Message-----
From: Andy Furniss [mailto:[email protected]]
Sent: Monday, February 06, 2017 8:32 PM
To: Zhu, Rex; Alex Deucher
Cc: amd-gfx list
Subject: Re: [PATCH 4/4] drm/amdgpu: extend profiling mode.Quoted 9 lines · Rex
Sorry for the late response.
Yes, I set the fan speed to max in this patch when user set high performance.
Considering that: 1. set fan speed to max is helpful to let GPU run under highest clock as long as possible.
2. avoid GPU rapid temperature rise in some case.Quoted 2 lines
OK, I guess you know if it's needed or not.
It is somewhat annoying noise wise, maybe one day there will be a way for users to set fan back on auto?Rex: sure, you can echo "2"> /sys/class/drm/card0/device/hwmon/hwmon3(maybe not 3)/pwm1_enable
Quoted 1 line
Quoted 1 line
Accepting I don't know how the h/w works your point 2 would imply that with perf on auto doing something like running a benchmark that pegs all the clocks high should also
Rex: based on the thermal, the fan speed.will be dynamically adjusted.
Quoted 1 line
Quoted 1 line
I don't think that would be popular WRT noise.
Rex: maybe I worried unnecessarily. I will change the code not to set fan speed to max. thanks.
Quoted 48 lines
Best Regards
Rex-----Original Message-----
From: Andy Furniss [mailto:[email protected]]
Sent: Wednesday, February 01, 2017 11:37 PM
To: Alex Deucher
Cc: Zhu, Rex; amd-gfx list
Subject: Re: [PATCH 4/4] drm/amdgpu: extend profiling mode.Quoted 33 lines · Alex Deucher
Quoted 24 lines · Andy Furniss
Quoted 23 lines · Andy Furniss
Quoted 4 lines · Rex Zhu
in profiling mode, powerplay will fix power state as stable as possible.and disable gfx cg and LBPW feature.
Quoted 8 lines
profile_standard: as a prerequisite, ensure power and thermal sustainable, set clocks ratio as close to the highest clock ratio as possible.profile_min_sclk: fix mclk asprofile_normal, set lowest sclkprofile_min_mclk: fix sclk asprofile_normal, set lowest mclkprofile_peak: set highest sclk and mclk, power and thermal not sustainableprofile_exit: exit profile mode. enable gfx cg/lbpw feature.Testing R9 285 Tonga on drm-next-4.11-wip
This commit has the effect that doing
echo high >
/sys/class/drm/card0/device/power_dpm_force_performance_levelQuoted 6 lines
Quoted 2 lines
instantly forces fan to (I guess) max, where normally it doesn't need anything like as fast with the clocks high when doing nothing else.
Ping - just in case this got missed, still the same on current drm-next-4.11-wip
Just a heads up, Rex was looking at this, but it's Chinese New Year this week.
Quoted 9 lines
Quoted 3 lines
OK, thanks & Happy new year.
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
Reviewed-byRe: [PATCH 4/4] drm/amdgpu: extend profiling mode.
In reply to a message not in the archiveQuoted 2 lines · Rex
Not set max fan speed in high performance level because of the fan noise.
Quoted 104 lines
Best Regards
Rex
________________________________
From: amd-gfx <[email protected]> on behalf of Zhu, Rex <[email protected]>
Sent: Monday, February 6, 2017 10:09 PM
To: Andy Furniss; Alex Deucher
Cc: amd-gfx list
Subject: RE: [PATCH 4/4] drm/amdgpu: extend profiling mode.Please see in line.
Best Regards
Rex-----Original Message-----
From: Andy Furniss [mailto:[email protected]]
Sent: Monday, February 06, 2017 8:32 PM
To: Zhu, Rex; Alex Deucher
Cc: amd-gfx list
Subject: Re: [PATCH 4/4] drm/amdgpu: extend profiling mode.Quoted 12 lines · Rex
Sorry for the late response.
Yes, I set the fan speed to max in this patch when user set high performance.
Considering that: 1. set fan speed to max is helpful to let GPU run under highest clock as long as possible.
2. avoid GPU rapid temperature rise in some case.Quoted 3 lines
OK, I guess you know if it's needed or not.
It is somewhat annoying noise wise, maybe one day there will be a way for users to set fan back on auto?Rex: sure, you can echo "2"> /sys/class/drm/card0/device/hwmon/hwmon3(maybe not 3)/pwm1_enable
Quoted 3 lines
Quoted 3 lines
Accepting I don't know how the h/w works your point 2 would imply that with perf on auto doing something like running a benchmark that pegs all the clocks high should also
Rex: based on the thermal, the fan speed.will be dynamically adjusted.
Quoted 1 line
Quoted 1 line
I don't think that would be popular WRT noise.
Rex: maybe I worried unnecessarily. I will change the code not to set fan speed to max. thanks.
Quoted 51 lines
Best Regards
Rex-----Original Message-----
From: Andy Furniss [mailto:[email protected]]
Sent: Wednesday, February 01, 2017 11:37 PM
To: Alex Deucher
Cc: Zhu, Rex; amd-gfx list
Subject: Re: [PATCH 4/4] drm/amdgpu: extend profiling mode.Quoted 36 lines · Alex Deucher
Quoted 24 lines · Andy Furniss
Quoted 23 lines · Andy Furniss
Quoted 4 lines · Rex Zhu
in profiling mode, powerplay will fix power state as stable as possible.and disable gfx cg and LBPW feature.
Quoted 8 lines
profile_standard: as a prerequisite, ensure power and thermal sustainable, set clocks ratio as close to the highest clock ratio as possible.profile_min_sclk: fix mclk asprofile_normal, set lowest sclkprofile_min_mclk: fix sclk asprofile_normal, set lowest mclkprofile_peak: set highest sclk and mclk, power and thermal not sustainableprofile_exit: exit profile mode. enable gfx cg/lbpw feature.Testing R9 285 Tonga on drm-next-4.11-wip
This commit has the effect that doing
echo high >
/sys/class/drm/card0/device/power_dpm_force_performance_levelQuoted 7 lines
Quoted 3 lines
instantly forces fan to (I guess) max, where normally it doesn't need anything like as fast with the clocks high when doing nothing else.
Ping - just in case this got missed, still the same on current drm-next-4.11-wip
Just a heads up, Rex was looking at this, but it's Chinese New Year this week.
Quoted 8 lines
Quoted 3 lines
OK, thanks & Happy new year.
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx