misc patches related to powerplay
Subsystems (2)
cover misc patches related to powerplay
Rex Zhu (9):
drm/amd/powerplay: mark symbols static where possible on tonga. drm/amd/powerplay: add feature flags in hwmgr to enable/disable
special features.
drm/amd/powerplay: add module parameter for mask pp feature drm/amd/powerplay: initialize platform caps in hwmgr_init. drm/amd/powerplay: add common functiones for visiting pp table. drm/amd/powerplay: wrap get evv voltage of fiji and polaris drm/amd/powerplay: move smu related variable definitions to smumgr. drm/amd/powerplay: delete const flag of hwmgr_funcs for overload. drm/amd/powerplay: delete dupicated function and definition.
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 + drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/fiji_hwmgr.c | 2 +- .../gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 34 ---- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 186 ++++++++++++++++++--- .../gpu/drm/amd/powerplay/hwmgr/iceland_hwmgr.c | 10 +- .../gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c | 7 +- .../gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.h | 5 +- .../drm/amd/powerplay/hwmgr/polaris10_powertune.h | 13 -- drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c | 21 +-- .../gpu/drm/amd/powerplay/inc/hardwaremanager.h | 1 - drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 32 +++- .../drm/amd/powerplay/smumgr/polaris10_smumgr.c | 1 - .../drm/amd/powerplay/smumgr/polaris10_smumgr.h | 20 +++ drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c | 1 + 16 files changed, 229 insertions(+), 111 deletions(-)
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 1/9 drm/amd/powerplay: mark symbols static where possible on tonga/iceland.
In reply to a message not in the archive--- drivers/gpu/drm/amd/powerplay/hwmgr/iceland_hwmgr.c | 6 +++--- drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-)
drivers/gpu/drm/amd/powerplay/hwmgr/iceland_hwmgr.c +3 -3
@@ -781,7 +781,7 @@ static int iceland_upload_firmware(struct pp_hwmgr *hwmgr)* @param hwmgr the address of the powerplay hardware manager. * @return always 0 */ -int iceland_process_firmware_header (struct pp_hwmgr *hwmgr) +static int iceland_process_firmware_header (struct pp_hwmgr *hwmgr) {iceland_hwmgr *data = (iceland_hwmgr *)(hwmgr->backend);
@@ -2606,7 +2606,7 @@ static int iceland_populate_smc_initial_state(struct pp_hwmgr *hwmgr)* @param pInput the pointer to input data (PowerState) * @return always 0 */ -int iceland_init_smc_table (struct pp_hwmgr *hwmgr) +static int iceland_init_smc_table (struct pp_hwmgr *hwmgr) {int result;iceland_hwmgr *data = (iceland_hwmgr *)(hwmgr->backend);
@@ -4629,7 +4629,7 @@ static int iceland_update_vce_dpm(struct pp_hwmgr *hwmgr, const void *input)return 0 ; } -int iceland_update_sclk_threshold (struct pp_hwmgr *hwmgr) +static int iceland_update_sclk_threshold (struct pp_hwmgr *hwmgr) {iceland_hwmgr *data = (iceland_hwmgr *)(hwmgr->backend);
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c +5 -5
@@ -233,7 +233,7 @@ uint8_t tonga_get_voltage_index(phm_ppt_v1_voltage_lookup_table *look_up_table,return i-1 ; } -bool tonga_is_dpm_running (struct pp_hwmgr *hwmgr) +static bool tonga_is_dpm_running (struct pp_hwmgr *hwmgr) {/* * We return the status of Voltage Control instead of checking SCLK/MCLK DPM
@@ -338,7 +338,7 @@ void tonga_initialize_dpm_defaults(struct pp_hwmgr *hwmgr) } -int tonga_update_sclk_threshold (struct pp_hwmgr *hwmgr) +static int tonga_update_sclk_threshold (struct pp_hwmgr *hwmgr) {tonga_hwmgr *data = (tonga_hwmgr *)(hwmgr->backend);
@@ -775,7 +775,7 @@ int tonga_set_boot_state(struct pp_hwmgr *hwmgr)* @param hwmgr the address of the powerplay hardware manager. * @return always 0 */ -int tonga_process_firmware_header (struct pp_hwmgr *hwmgr) +static int tonga_process_firmware_header (struct pp_hwmgr *hwmgr) {tonga_hwmgr *data = (tonga_hwmgr *)(hwmgr->backend);struct tonga_smumgr *tonga_smu = (struct tonga_smumgr *)(hwmgr->smumgr->backend);
@@ -2898,7 +2898,7 @@ int tonga_populate_smc_initial_state(struct pp_hwmgr *hwmgr,* @param pInput the pointer to input data (PowerState) * @return always 0 */ -int tonga_init_smc_table (struct pp_hwmgr *hwmgr) +static int tonga_init_smc_table (struct pp_hwmgr *hwmgr) {int result;tonga_hwmgr *data = (tonga_hwmgr *)(hwmgr->backend);
@@ -3993,7 +3993,7 @@ int tonga_set_valid_flag(phw_tonga_mc_reg_table *table)return 0 ; } -int tonga_initialize_mc_reg_table (struct pp_hwmgr *hwmgr) +static int tonga_initialize_mc_reg_table (struct pp_hwmgr *hwmgr) {int result;tonga_hwmgr *data = (tonga_hwmgr *)(hwmgr->backend);
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 2/9 drm/amd/powerplay: add feature flags in hwmgr to enable/disable special features.
In reply to a message not in the archive--- drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h +14 -0
@@ -70,6 +70,19 @@ enum PP_Result {#define PCIE_PERF_REQ_GEN2 3#define PCIE_PERF_REQ_GEN3 4 +enum PP_FEATURE_MASK { +PP_SCLK_DPM_MASK =0x1 , +PP_MCLK_DPM_MASK =0x2 , +PP_PCIE_DPM_MASK =0x4 , +PP_SCLK_DEEP_SLEEP_MASK =0x8 , +PP_POWER_CONTAINMENT_MASK =0x10 , +PP_UVD_HANDSHAKE_MASK =0x20 , +PP_SMC_VOLTAGE_CONTROL_MASK =0x40 , +PP_VBI_TIME_SUPPORT_MASK =0x80 , +PP_ULV_MASK =0x100 , +PP_ENABLE_GFX_CG_THRU_SMU =0x200 +}; +enum PHM_BackEnd_Magic { PHM_Dummy_Magic =0xAA5555AA , PHM_RV770_Magic =0xDCBAABCD ,
@@ -635,6 +648,7 @@ struct pp_hwmgr {struct pp_power_state *boot_ps;struct pp_power_state *uvd_ps;struct amd_pp_display_configuration display_config; +uint32_t feature_mask; };
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 3/9 drm/amd/powerplay: add module parameter for mask pp feature
In reply to a message not in the archive--- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 ++++ 2 files changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +1 -0
@@ -96,6 +96,7 @@ extern unsigned amdgpu_cg_mask;extern unsigned amdgpu_pg_mask;extern int amdgpu_sclk_deep_sleep_en;extern char *amdgpu_virtual_display; +extern unsigned amdgpu_pp_feature_mask;#define AMDGPU_WAIT_IDLE_TIMEOUT_IN_MS 3000#define AMDGPU_MAX_USEC_TIMEOUT 100000/* 100 ms */
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +4 -0
@@ -94,6 +94,7 @@ unsigned amdgpu_pcie_lane_cap = 0;unsigned amdgpu_cg_mask =0xffffffff ;unsigned amdgpu_pg_mask =0xffffffff ;char *amdgpu_virtual_display =NULL ; +unsigned amdgpu_pp_feature_mask =0xffffffff ;MODULE_PARM_DESC (vramlimit,"Restrict VRAM for testing, in megabytes" );module_param_named (vramlimit, amdgpu_vram_limit, int,0600 );
@@ -179,6 +180,9 @@ module_param_named(powerplay, amdgpu_powerplay, int, 0444);MODULE_PARM_DESC (powercontainment,"Power Containment (1 = enable (default), 0 = disable)" );module_param_named (powercontainment, amdgpu_powercontainment, int,0444 ); + +MODULE_PARM_DESC (ppfeaturemask,"all power features enabled (default))" ); +module_param_named (ppfeaturemask, amdgpu_pp_feature_mask, int,0444 );#endif MODULE_PARM_DESC (sclkdeepsleep,"SCLK Deep Sleep (1 = enable (default), 0 = disable)" );
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 4/9 drm/amd/powerplay: initialize platform caps in hwmgr_init.
In reply to a message not in the archive--- .../gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 34 ------- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 109 ++++++++++++++++----- .../gpu/drm/amd/powerplay/inc/hardwaremanager.h | 1 - drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 1 + 4 files changed, 87 insertions(+), 58 deletions(-)
drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c +0 -34
@@ -24,8 +24,6 @@#include "hwmgr.h" #include "hardwaremanager.h" #include "power_state.h" -#include "pp_acpi.h" -#include "amd_acpi.h" #include "pp_debug.h" #define PHM_FUNC_CHECK (hw) \
@@ -34,38 +32,6 @@return -EINVAL ; \ }while (0 ) -void phm_init_dynamic_caps(struct pp_hwmgr *hwmgr) -{ -phm_cap_unset (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_DisableVoltageTransition); -phm_cap_unset (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_DisableEngineTransition); -phm_cap_unset (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_DisableMemoryTransition); -phm_cap_unset (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_DisableMGClockGating); -phm_cap_unset (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_DisableMGCGTSSM); -phm_cap_unset (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_DisableLSClockGating); -phm_cap_unset (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_Force3DClockSupport); -phm_cap_unset (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_DisableLightSleep); -phm_cap_unset (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_DisableMCLS); -phm_cap_set (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_DisablePowerGating); - -phm_cap_unset (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_DisableDPM); -phm_cap_unset (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_DisableSMUUVDHandshake); -phm_cap_unset (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_ThermalAutoThrottling); - -phm_cap_unset (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_PCIEPerformanceRequest); - -phm_cap_unset (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_NoOD5Support); -phm_cap_unset (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_UserMaxClockForMultiDisplays); - -phm_cap_unset (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_VpuRecoveryInProgress); - -phm_cap_set (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_UVDDPM); -phm_cap_set (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_VCEDPM); - -if (acpi_atcs_functions_supported (hwmgr->device,ATCS_FUNCTION_PCIE_PERFORMANCE_REQUEST ) && -acpi_atcs_functions_supported (hwmgr->device,ATCS_FUNCTION_PCIE_DEVICE_READY_NOTIFICATION )) -phm_cap_set (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_PCIEPerformanceRequest); -} - bool phm_is_hw_access_blocked(struct pp_hwmgr *hwmgr) {return hwmgr->block_hw_access;
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +86 -23
142 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h +0 -1
@@ -341,7 +341,6 @@ extern int phm_powerdown_uvd(struct pp_hwmgr *hwmgr);extern int phm_setup_asic (struct pp_hwmgr *hwmgr);extern int phm_enable_dynamic_state_management (struct pp_hwmgr *hwmgr);extern int phm_disable_dynamic_state_management (struct pp_hwmgr *hwmgr); -extern void phm_init_dynamic_caps (struct pp_hwmgr *hwmgr);extern bool phm_is_hw_access_blocked (struct pp_hwmgr *hwmgr);extern int phm_block_hw_access (struct pp_hwmgr *hwmgr,bool block); extern int phm_set_power_state(struct pp_hwmgr *hwmgr,
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h +1 -0
@@ -40,6 +40,7 @@ struct pp_atomctrl_voltage_table;extern int amdgpu_powercontainment;extern int amdgpu_sclk_deep_sleep_en; +extern unsigned amdgpu_pp_feature_mask;enum DISPLAY_GAP {DISPLAY_GAP_VBLANK_OR_WM =0 ,/* Wait for vblank or MCHG watermark. */
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 5/9 drm/amd/powerplay: add common functiones for visiting pp table.
In reply to a message not in the archive--- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 57 +++++++++++++++++++++++++++++ drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 8 +++- 2 files changed, 63 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +57 -0
@@ -443,6 +443,27 @@ uint8_t phm_get_voltage_index(return i -1 ; } +uint8_t phm_get_voltage_id (pp_atomctrl_voltage_table *voltage_table, +uint32_t voltage) +{ +uint8_t count = (uint8_t ) (voltage_table->count); +uint8_t i =0 ; + +PP_ASSERT_WITH_CODE ((NULL != voltage_table), + "Voltage Table empty.", return 0;); +PP_ASSERT_WITH_CODE ((0 != count), + "Voltage Table empty.", return 0;); + +for (i =0 ; i < count; i++) { +/* find first voltage bigger than requested */ +if (voltage_table->entries[i].value >= voltage) +return i; + } + +/* voltage is bigger than max voltage in the table */ +return i -1 ; +} +uint16_t phm_find_closest_vddci (struct pp_atomctrl_voltage_table *vddci_table,uint16_t vddci) {uint32_t i;
@@ -676,3 +697,39 @@ int hwmgr_set_user_specify_caps(struct pp_hwmgr *hwmgr)return 0 ; } +int phm_add_voltage (struct pp_hwmgr *hwmgr, +phm_ppt_v1_voltage_lookup_table *look_up_table, +phm_ppt_v1_voltage_lookup_record *record) +{ +uint32_t i; + +PP_ASSERT_WITH_CODE ((NULL != look_up_table), +"Lookup Table empty." , return -EINVAL ); +PP_ASSERT_WITH_CODE ((0 != look_up_table->count), +"Lookup Table empty." , return -EINVAL ); + + i =smum_get_mac_definition (hwmgr->smumgr,SMU_MAX_LEVELS_VDDGFX ); +PP_ASSERT_WITH_CODE ((i >= look_up_table->count), +"Lookup Table is full." , return -EINVAL ); + +/* This is to avoid entering duplicate calculated records. */ +for (i =0 ; i < look_up_table->count; i++) { +if (look_up_table->entries[i].us_vdd == record->us_vdd) { +if (look_up_table->entries[i].us_calculated ==1 ) +return 0 ; +break ; + } + } + + look_up_table->entries[i].us_calculated =1 ; + look_up_table->entries[i].us_vdd = record->us_vdd; + look_up_table->entries[i].us_cac_low = record->us_cac_low; + look_up_table->entries[i].us_cac_mid = record->us_cac_mid; + look_up_table->entries[i].us_cac_high = record->us_cac_high; +/* Only increment the count when we're appending, not replacing duplicate entry. */ +if (i == look_up_table->count) + look_up_table->count++; + +return 0 ; +} +
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h +6 -2
@@ -685,6 +685,8 @@ extern void phm_trim_voltage_table_to_fit_state_table(uint32_t max_vol_steps, stextern int phm_reset_single_dpm_table (void *table,uint32_t count,int max);extern void phm_setup_pcie_table_entry (void *table,uint32_t index,uint32_t pcie_gen,uint32_t pcie_lanes);extern int32_t phm_get_dpm_level_enable_mask_value (void *table); +extern uint8_t phm_get_voltage_id (struct pp_atomctrl_voltage_table *voltage_table, +uint32_t voltage);extern uint8_t phm_get_voltage_index (struct phm_ppt_v1_voltage_lookup_table *lookup_table,uint16_t voltage);extern uint16_t phm_find_closest_vddci (struct pp_atomctrl_voltage_table *vddci_table,uint16_t vddci);extern int phm_find_boot_level (void *table,uint32_t value,uint32_t *boot_level);
@@ -695,6 +697,10 @@ extern int phm_hwmgr_backend_fini(struct pp_hwmgr *hwmgr);extern uint32_t phm_get_lowest_enabled_level (struct pp_hwmgr *hwmgr,uint32_t mask);extern void phm_apply_dal_min_voltage_request (struct pp_hwmgr *hwmgr); +extern int phm_add_voltage (struct pp_hwmgr *hwmgr, +phm_ppt_v1_voltage_lookup_table *look_up_table, +phm_ppt_v1_voltage_lookup_record *record); +#define PHM_ENTIRE_REGISTER_MASK 0xFFFFFFFFU#define PHM_FIELD_SHIFT (reg, field) reg##__##field##__SHIFT
@@ -709,8 +715,6 @@ extern void phm_apply_dal_min_voltage_request(struct pp_hwmgr *hwmgr); PHM_FIELD_SHIFT(reg, field)) - -/* Operations on named fields. */ #define PHM_READ_FIELD (device, reg, field) \
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 6/9 drm/amd/powerplay: wrap get evv voltage of fiji and polaris
In reply to a message not in the archive--- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 17 +++++++++++++++++ drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 3 +++ 2 files changed, 20 insertions(+)
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +17 -0
@@ -733,3 +733,20 @@ int phm_add_voltage(struct pp_hwmgr *hwmgr,return 0 ; } +int phm_get_voltage_evv_on_sclk (struct pp_hwmgr *hwmgr,uint8_t voltage_type, +uint32_t sclk,uint16_t id,uint16_t *voltage) +{ +uint32_t vol; +int ret =0 ; + +if (hwmgr->chip_id <CHIP_POLARIS10 ) { +atomctrl_get_voltage_evv_on_sclk (hwmgr, voltage_type, sclk, id, voltage); +if (*voltage >=2000 || *voltage ==0 ) + *voltage =1150 ; + }else { + ret =atomctrl_get_voltage_evv_on_sclk_ai (hwmgr, voltage_type, sclk, id, &vol); + *voltage = (uint16_t )vol/100 ; + } +return ret; +} +
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h +3 -0
@@ -701,6 +701,9 @@ extern int phm_add_voltage(struct pp_hwmgr *hwmgr, phm_ppt_v1_voltage_lookup_table *look_up_table, phm_ppt_v1_voltage_lookup_record *record); +extern int phm_get_voltage_evv_on_sclk (struct pp_hwmgr *hwmgr,uint8_t voltage_type, +uint32_t sclk,uint16_t id,uint16_t *voltage); +#define PHM_ENTIRE_REGISTER_MASK 0xFFFFFFFFU#define PHM_FIELD_SHIFT (reg, field) reg##__##field##__SHIFT
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 7/9 drm/amd/powerplay: move smu related variable definitions to smumgr.
In reply to a message not in the archive--- .../gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.h | 5 +---- .../drm/amd/powerplay/hwmgr/polaris10_powertune.h | 13 ------------- .../gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.h | 20 ++++++++++++++++++++ 3 files changed, 21 insertions(+), 17 deletions(-)
drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.h +1 -4
@@ -30,6 +30,7 @@#include "ppatomctrl.h" #include "polaris10_ppsmc.h" #include "polaris10_powertune.h" +#include "polaris10_smumgr.h" #define POLARIS10_MAX_HARDWARE_POWERLEVELS 2
@@ -165,10 +166,6 @@ struct polaris10_pcie_perf_range {uint16_t max;uint16_t min; }; -struct polaris10_range_table { -uint32_t trans_lower_frequency;/* in 10khz */ -uint32_t trans_upper_frequency; -};struct polaris10_hwmgr {struct polaris10_dpm_table dpm_table;
drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_powertune.h +0 -13
@@ -66,19 +66,6 @@ struct polaris10_pt_config_reg {enum polaris10_pt_config_reg_type type; }; -struct polaris10_pt_defaults { -uint8_t SviLoadLineEn; -uint8_t SviLoadLineVddC; -uint8_t TDC_VDDC_ThrottleReleaseLimitPerc; -uint8_t TDC_MAWt; -uint8_t TdcWaterfallCtl; -uint8_t DTEAmbientTempBase; - -uint32_t DisplayCac; -uint32_t BAPM_TEMP_GRADIENT; -uint16_t BAPMTI_R[SMU74_DTE_ITERATIONS *SMU74_DTE_SOURCES *SMU74_DTE_SINKS ]; -uint16_t BAPMTI_RC[SMU74_DTE_ITERATIONS *SMU74_DTE_SOURCES *SMU74_DTE_SINKS ]; -};void polaris10_initialize_power_tune_defaults (struct pp_hwmgr *hwmgr);int polaris10_populate_bapm_parameters_in_dpm_table (struct pp_hwmgr *hwmgr);
drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.h +20 -0
@@ -26,12 +26,27 @@#include <polaris10_ppsmc.h> #include <pp_endian.h> +#include "smu74.h" struct polaris10_avfs {enum AVFS_BTC_STATUS avfs_btc_status;uint32_t avfs_btc_param; }; +struct polaris10_pt_defaults { +uint8_t SviLoadLineEn; +uint8_t SviLoadLineVddC; +uint8_t TDC_VDDC_ThrottleReleaseLimitPerc; +uint8_t TDC_MAWt; +uint8_t TdcWaterfallCtl; +uint8_t DTEAmbientTempBase; + +uint32_t DisplayCac; +uint32_t BAPM_TEMP_GRADIENT; +uint16_t BAPMTI_R[SMU74_DTE_ITERATIONS *SMU74_DTE_SOURCES *SMU74_DTE_SINKS ]; +uint16_t BAPMTI_RC[SMU74_DTE_ITERATIONS *SMU74_DTE_SOURCES *SMU74_DTE_SINKS ]; +}; +struct polaris10_buffer_entry {uint32_t data_size;uint32_t mc_addr_low;
@@ -40,6 +55,11 @@ struct polaris10_buffer_entry {unsigned long handle; }; +struct polaris10_range_table { +uint32_t trans_lower_frequency;/* in 10khz */ +uint32_t trans_upper_frequency; +}; +struct polaris10_smumgr {uint8_t *header;uint8_t *mec_image;
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 8/9 drm/amd/powerplay: delete const flag of hwmgr_funcs for overload.
In reply to a message not in the archive--- drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/fiji_hwmgr.c | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/iceland_hwmgr.c | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c | 2 +- drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c +1 -1
@@ -1857,7 +1857,7 @@ static int cz_get_max_high_clocks(struct pp_hwmgr *hwmgr, struct amd_pp_simple_creturn 0 ; } -static const struct pp_hwmgr_func cz_hwmgr_funcs = { +static struct pp_hwmgr_func cz_hwmgr_funcs = { .backend_init = cz_hwmgr_backend_init, .backend_fini = cz_hwmgr_backend_fini, .asic_setup =NULL ,
drivers/gpu/drm/amd/powerplay/hwmgr/fiji_hwmgr.c +1 -1
@@ -5541,7 +5541,7 @@ static int fiji_set_mclk_od(struct pp_hwmgr *hwmgr, uint32_t value)return 0 ; } -static const struct pp_hwmgr_func fiji_hwmgr_funcs = { +static struct pp_hwmgr_func fiji_hwmgr_funcs = { .backend_init = &fiji_hwmgr_backend_init, .backend_fini = &fiji_hwmgr_backend_fini, .asic_setup = &fiji_setup_asic_task,
drivers/gpu/drm/amd/powerplay/hwmgr/iceland_hwmgr.c +1 -1
@@ -5627,7 +5627,7 @@ static int iceland_set_mclk_od(struct pp_hwmgr *hwmgr, uint32_t value)return 0 ; } -static const struct pp_hwmgr_func iceland_hwmgr_funcs = { +static struct pp_hwmgr_func iceland_hwmgr_funcs = { .backend_init = &iceland_hwmgr_backend_init, .backend_fini = &iceland_hwmgr_backend_fini, .asic_setup = &iceland_setup_asic_task,
drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c +1 -1
@@ -5232,7 +5232,7 @@ static int polaris10_set_mclk_od(struct pp_hwmgr *hwmgr, uint32_t value)return 0 ; } -static const struct pp_hwmgr_func polaris10_hwmgr_funcs = { +static struct pp_hwmgr_func polaris10_hwmgr_funcs = { .backend_init = &polaris10_hwmgr_backend_init, .backend_fini = &polaris10_hwmgr_backend_fini, .asic_setup = &polaris10_setup_asic_task,
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c +1 -1
@@ -6325,7 +6325,7 @@ static int tonga_set_mclk_od(struct pp_hwmgr *hwmgr, uint32_t value)return 0 ; } -static const struct pp_hwmgr_func tonga_hwmgr_funcs = { +static struct pp_hwmgr_func tonga_hwmgr_funcs = { .backend_init = &tonga_hwmgr_backend_init, .backend_fini = &tonga_hwmgr_backend_fini, .asic_setup = &tonga_setup_asic_task,
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h +1 -1
@@ -633,7 +633,7 @@ struct pp_hwmgr {struct phm_runtime_table_header display_configuration_changed;struct phm_runtime_table_header start_thermal_controller;struct phm_runtime_table_header set_temperature_range; -const struct pp_hwmgr_func *hwmgr_func; +struct pp_hwmgr_func *hwmgr_func;const struct pp_table_func *pptable_func;struct pp_power_state *ps;enum pp_power_source power_source;
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 9/9 drm/amd/powerplay: delete dupicated function and definition.
In reply to a message not in the archive--- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 7 +++++-- drivers/gpu/drm/amd/powerplay/hwmgr/iceland_hwmgr.c | 8 -------- drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c | 5 ----- drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c | 9 --------- drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 4 ++++ drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c | 1 - drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c | 1 + 7 files changed, 10 insertions(+), 25 deletions(-)
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +5 -2
@@ -35,8 +35,6 @@#include "pp_acpi.h" #include "amd_acpi.h" -#define VOLTAGE_SCALE 4 -extern int cz_hwmgr_init (struct pp_hwmgr *hwmgr);extern int tonga_hwmgr_init (struct pp_hwmgr *hwmgr);extern int fiji_hwmgr_init (struct pp_hwmgr *hwmgr);
@@ -46,6 +44,11 @@ extern int iceland_hwmgr_init(struct pp_hwmgr *hwmgr);static void hwmgr_init_default_caps (struct pp_hwmgr *hwmgr);static int hwmgr_set_user_specify_caps (struct pp_hwmgr *hwmgr); +uint8_t convert_to_vid (uint16_t vddc) +{ +return (uint8_t ) ((6200 - (vddc *VOLTAGE_SCALE )) /25 ); +} +int hwmgr_init (struct amd_pp_init *pp_init,struct pp_instance *handle) {struct pp_hwmgr *hwmgr;
drivers/gpu/drm/amd/powerplay/hwmgr/iceland_hwmgr.c +0 -8
@@ -1355,14 +1355,6 @@ static int iceland_populate_smc_mvdd_table(struct pp_hwmgr *hwmgr,return 0 ; } -/** -* Convert a voltage value in mv unit to VID number required by SMU firmware -*/ -static uint8_t convert_to_vid (uint16_t vddc) -{ -return (uint8_t ) ((6200 - (vddc *VOLTAGE_SCALE )) /25 ); -} -int iceland_populate_bapm_vddc_vid_sidd (struct pp_hwmgr *hwmgr) {int i;
drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c +0 -5
@@ -736,11 +736,6 @@ int polaris10_setup_default_dpm_tables(struct pp_hwmgr *hwmgr)return 0 ; } -uint8_t convert_to_vid (uint16_t vddc) -{ -return (uint8_t ) ((6200 - (vddc *VOLTAGE_SCALE )) /25 ); -} -/** * Mvdd table preparation for SMC. *
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c +0 -9
@@ -1319,15 +1319,6 @@ static int tonga_populate_smc_mvdd_table(struct pp_hwmgr *hwmgr, }/** -* Convert a voltage value in mv unit to VID number required by SMU firmware -*/ -static uint8_t convert_to_vid (uint16_t vddc) -{ -return (uint8_t ) ((6200 - (vddc *VOLTAGE_SCALE )) /25 ); -} - - -/** * Preparation of vddc and vddgfx CAC tables for SMC. * * @param hwmgr the address of the hardware manager
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h +4 -0
@@ -42,6 +42,10 @@ extern int amdgpu_powercontainment;extern int amdgpu_sclk_deep_sleep_en;extern unsigned amdgpu_pp_feature_mask; +#define VOLTAGE_SCALE 4 + +uint8_t convert_to_vid (uint16_t vddc); +enum DISPLAY_GAP {DISPLAY_GAP_VBLANK_OR_WM =0 ,/* Wait for vblank or MCHG watermark. */ DISPLAY_GAP_VBLANK =1 ,/* Wait for vblank. */
drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c +0 -1
@@ -40,7 +40,6 @@#include "cgs_common.h" #define POLARIS10_SMC_SIZE 0x20000 -#define VOLTAGE_SCALE 4/* Microcode file is stored in this buffer */ #define BUFFER_SIZE 80000
drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c +1 -0
@@ -29,6 +29,7 @@#include "cgs_common.h" #include "linux/delay.h" +int smum_init (struct amd_pp_init *pp_init,struct pp_instance *handle) {struct pp_smumgr *smumgr;
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Patch #1-#7 and #9 are Acked-by: Christian König <[email protected]>.
Patch #8: That looks fishy, usually we don't want to override static functions tables.
So what is the specific use case here?
Regards,
Christian.
Am 09.09.2016 um 15:37 schrieb Rex Zhu:
Quoted 21 lines
Rex Zhu (9):
drm/amd/powerplay: mark symbols static where possible on tonga. drm/amd/powerplay: add feature flags in hwmgr to enable/disable
special features.
drm/amd/powerplay: add module parameter for mask pp feature drm/amd/powerplay: initialize platform caps inhwmgr_init. drm/amd/powerplay: add common functiones for visiting pp table. drm/amd/powerplay: wrap get evv voltage of fiji and polaris drm/amd/powerplay: move smu related variable definitions to smumgr. drm/amd/powerplay: delete const flag ofhwmgr_funcsfor overload. drm/amd/powerplay: delete dupicated function and definition.drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 + drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/fiji_hwmgr.c | 2 +- .../gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 34 ---- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 186 ++++++++++++++++++--- .../gpu/drm/amd/powerplay/hwmgr/iceland_hwmgr.c | 10 +- .../gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c | 7 +- .../gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.h | 5 +-
Quoted 9 lines
.../drm/amd/powerplay/hwmgr/polaris10_powertune.h | 13 -- drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c | 21 +-- .../gpu/drm/amd/powerplay/inc/hardwaremanager.h | 1 - drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 32 +++- .../drm/amd/powerplay/smumgr/polaris10_smumgr.c | 1 - .../drm/amd/powerplay/smumgr/polaris10_smumgr.h | 20 +++ drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c | 1 + 16 files changed, 229 insertions(+), 111 deletions(-)
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Hi Christian,
I used smu7_hwmgr for all the asics of smu version 7 , CI and Vi. Please see powerplay code refactoring patches.
But some functions in the table were different between those asics. so we needed to overload those functions for some asics.
for example:
from tonga. we used pptable version 1, but ci and iceland, no pptable,
so needed to overload related functions:
hwmgr->hwmgr_func = &smu7_hwmgr_funcs;
hwmgr->pptable_func = &pptable_v1_0_funcs;
pp_smu7_thermal_initialize(hwmgr);
+ if (hwmgr->pp_table_version == PP_TABLE_V0) {
+ hwmgr->hwmgr_func->get_pp_table_entry = &smu7_get_pp_table_entry_v0;
+ hwmgr->hwmgr_func->get_num_of_pp_table_entries = smu7_get_number_of_powerplay_table_entries_v0;
+ hwmgr->pptable_func = &pptable_funcs;+ }
Best Regards
Rex
________________________________
From: Christian König <[email protected]>
Sent: Friday, September 9, 2016 10:23:26 PM
To: Zhu, Rex; [email protected]
Subject: Re: [PATCH 0/9] misc patches related to powerplay
Patch #1-#7 and #9 are Acked-by: Christian König <[email protected]>.
Patch #8: That looks fishy, usually we don't want to override static functions tables.
So what is the specific use case here?
Regards,
Christian.
Am 09.09.2016 um 15:37 schrieb Rex Zhu:
Quoted 21 lines
Rex Zhu (9):
drm/amd/powerplay: mark symbols static where possible on tonga. drm/amd/powerplay: add feature flags in hwmgr to enable/disable
special features.
drm/amd/powerplay: add module parameter for mask pp feature drm/amd/powerplay: initialize platform caps inhwmgr_init. drm/amd/powerplay: add common functiones for visiting pp table. drm/amd/powerplay: wrap get evv voltage of fiji and polaris drm/amd/powerplay: move smu related variable definitions to smumgr. drm/amd/powerplay: delete const flag ofhwmgr_funcsfor overload. drm/amd/powerplay: delete dupicated function and definition.drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 + drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/fiji_hwmgr.c | 2 +- .../gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 34 ---- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 186 ++++++++++++++++++--- .../gpu/drm/amd/powerplay/hwmgr/iceland_hwmgr.c | 10 +- .../gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c | 7 +- .../gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.h | 5 +-
Quoted 9 lines
.../drm/amd/powerplay/hwmgr/polaris10_powertune.h | 13 -- drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c | 21 +-- .../gpu/drm/amd/powerplay/inc/hardwaremanager.h | 1 - drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 32 +++- .../drm/amd/powerplay/smumgr/polaris10_smumgr.c | 1 - .../drm/amd/powerplay/smumgr/polaris10_smumgr.h | 20 +++ drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c | 1 + 16 files changed, 229 insertions(+), 111 deletions(-)
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Hi Rex,
exactly as I feared, please don't do this.
I for example have a system with multiple PEG slots to be able to test different hardware generations at the same time.
This is rather common setup for testing and will break horrible and quite unpredictable when the code suddenly overrides a global function table which is used by multiple hardware generations.
Either create one function table for each variant or make the function table a member of the hwmgr structure so that you can overwrite it in each instance without affecting others.
Regards,
Christian.
Am 09.09.2016 um 18:29 schrieb Zhu, Rex:
Quoted 86 lines
Hi Christian,
I used
smu7_hwmgrfor all the asics of smu version 7 , CI and Vi. Please see powerplay code refactoring patches.But some functions in the table were different between those asics. so we needed to overload those functions for some asics.
for example:
from tonga. we used pptable version 1, but ci and iceland, no pptable,
so needed to overload related functions:
hwmgr->hwmgr_func = &smu7_hwmgr_funcs; hwmgr->pptable_func = &pptable_v1_0_funcs; pp_smu7_thermal_initialize(hwmgr);+ if (
hwmgr->pp_table_version==PP_TABLE_V0) {
+hwmgr->hwmgr_func->get_pp_table_entry=&smu7_get_pp_table_entry_v0;
+hwmgr->hwmgr_func->get_num_of_pp_table_entries=smu7_get_number_of_powerplay_table_entries_v0;(quoted diff) +2
-0+ hwmgr->pptable_func = &pptable_funcs; + }Best Regards
Rex
------------------------------------------------------------------------
*From:* Christian König <[email protected]> *Sent:* Friday, September 9, 2016 10:23:26 PM
*To:* Zhu, Rex; [email protected] *Subject:* Re: [PATCH 0/9] misc patches related to powerplay
Patch #1-#7 and #9 are Acked-by: Christian König <[email protected]>.Patch #8: That looks fishy, usually we don't want to override static functions tables.
So what is the specific use case here?
Regards,
Christian.Am 09.09.2016 um 15:37 schrieb Rex Zhu:
Quoted 12 lines
Rex Zhu (9):
drm/amd/powerplay: mark symbols static where possible on tonga. drm/amd/powerplay: add feature flags in hwmgr to enable/disable
special features.
drm/amd/powerplay: add module parameter for mask pp feature drm/amd/powerplay: initialize platform caps inhwmgr_init. drm/amd/powerplay: add common functiones for visiting pp table. drm/amd/powerplay: wrap get evv voltage of fiji and polaris drm/amd/powerplay: move smu related variable definitions to smumgr. drm/amd/powerplay: delete const flag ofhwmgr_funcsfor overload. drm/amd/powerplay: delete dupicated function and definition.Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 + drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/fiji_hwmgr.c | 2 +- .../gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 34 ---- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 186++++++++++++++++++---
Quoted 12 lines
.../gpu/drm/amd/powerplay/hwmgr/iceland_hwmgr.c | 10 +- .../gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c | 7 +- .../gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.h | 5 +- .../drm/amd/powerplay/hwmgr/polaris10_powertune.h | 13 -- drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c | 21 +-- .../gpu/drm/amd/powerplay/inc/hardwaremanager.h | 1 - drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 32 +++- .../drm/amd/powerplay/smumgr/polaris10_smumgr.c | 1 - .../drm/amd/powerplay/smumgr/polaris10_smumgr.h | 20 +++ drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c | 1 + 16 files changed, 229 insertions(+), 111 deletions(-)
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 Christian,
you are right, I missed mult-gpu case. i will refine related patches.
Thanks.
Best Regards
Rex
________________________________
From: Christian König <[email protected]>
Sent: Saturday, September 10, 2016 1:51:30 AM
To: Zhu, Rex; [email protected]
Subject: Re: [PATCH 0/9] misc patches related to powerplay
Hi Rex,
exactly as I feared, please don't do this.
I for example have a system with multiple PEG slots to be able to test different hardware generations at the same time.
This is rather common setup for testing and will break horrible and quite unpredictable when the code suddenly overrides a global function table which is used by multiple hardware generations.
Either create one function table for each variant or make the function table a member of the hwmgr structure so that you can overwrite it in each instance without affecting others.
Regards,
Christian.
Am 09.09.2016 um 18:29 schrieb Zhu, Rex:
Hi Christian,
I used smu7_hwmgr for all the asics of smu version 7 , CI and Vi. Please see powerplay code refactoring patches.
But some functions in the table were different between those asics. so we needed to overload those functions for some asics.
for example:
from tonga. we used pptable version 1, but ci and iceland, no pptable,
so needed to overload related functions:
hwmgr->hwmgr_func = &smu7_hwmgr_funcs;
hwmgr->pptable_func = &pptable_v1_0_funcs;
pp_smu7_thermal_initialize(hwmgr);
+ if (hwmgr->pp_table_version == PP_TABLE_V0) {
+ hwmgr->hwmgr_func->get_pp_table_entry = &smu7_get_pp_table_entry_v0;
+ hwmgr->hwmgr_func->get_num_of_pp_table_entries = smu7_get_number_of_powerplay_table_entries_v0;
+ hwmgr->pptable_func = &pptable_funcs;+ }
Best Regards
Rex
________________________________
From: Christian König <[email protected]><mailto:[email protected]>
Sent: Friday, September 9, 2016 10:23:26 PM
To: Zhu, Rex; [email protected]<mailto:[email protected]>
Subject: Re: [PATCH 0/9] misc patches related to powerplay
Patch #1-#7 and #9 are Acked-by: Christian König <[email protected]><mailto:[email protected]>.
Patch #8: That looks fishy, usually we don't want to override static functions tables.
So what is the specific use case here?
Regards,
Christian.
Am 09.09.2016 um 15:37 schrieb Rex Zhu:
Quoted 21 lines
Rex Zhu (9):
drm/amd/powerplay: mark symbols static where possible on tonga. drm/amd/powerplay: add feature flags in hwmgr to enable/disable
special features.
drm/amd/powerplay: add module parameter for mask pp feature drm/amd/powerplay: initialize platform caps inhwmgr_init. drm/amd/powerplay: add common functiones for visiting pp table. drm/amd/powerplay: wrap get evv voltage of fiji and polaris drm/amd/powerplay: move smu related variable definitions to smumgr. drm/amd/powerplay: delete const flag ofhwmgr_funcsfor overload. drm/amd/powerplay: delete dupicated function and definition.drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 + drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/fiji_hwmgr.c | 2 +- .../gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 34 ---- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 186 ++++++++++++++++++--- .../gpu/drm/amd/powerplay/hwmgr/iceland_hwmgr.c | 10 +- .../gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c | 7 +- .../gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.h | 5 +-
Quoted 9 lines
.../drm/amd/powerplay/hwmgr/polaris10_powertune.h | 13 -- drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c | 21 +-- .../gpu/drm/amd/powerplay/inc/hardwaremanager.h | 1 - drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 32 +++- .../drm/amd/powerplay/smumgr/polaris10_smumgr.c | 1 - .../drm/amd/powerplay/smumgr/polaris10_smumgr.h | 20 +++ drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c | 1 + 16 files changed, 229 insertions(+), 111 deletions(-)
_______________________________________________
amd-gfx mailing list [email protected]<mailto:[email protected]>
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx