Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2019-03-19 | drm/amd/powerplay: implement sensor of SCLK and MCLK for smu11 | Kevin Wang | 1 | -0/+8 | |
add sensor interface of SCLK and MCKL for sys interface and hwmon. Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Reviewed-by: Evan Quan <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: force clock levels for smu11 | Likun Gao | 3 | -2/+87 | |
Add function to set sclk or mclk level for smu11. Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Evan Quan <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: upload dpm level for smu11 | Likun Gao | 1 | -0/+72 | |
Add function to support gfx_clk and mem_clk upload min and max dpm level for smu11. Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Evan Quan <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: implement sysfs of pp_table for smu11 (v2) | Kevin Wang | 4 | -8/+89 | |
add pp_table sysfs interface for new sw-smu. get: return pptable raw data set: write pptable raw data to pptable, then reset smu (hw_fini -> hw_init) v2: fix mutex lock issue Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: implement sysfs of amdgpu_get_busy_percent for smu11 | Kevin Wang | 5 | -46/+74 | |
add interface amdgpu_get_busy_percent for smu11 v2: convert data pointer type to uint32_t *. Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: implement is_support_sw_smu function for new smu | Kevin Wang | 4 | -9/+21 | |
add this helper to check new sw-smu support. Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: implement smu update table function | Kevin Wang | 2 | -0/+39 | |
sometime, the driver need changed table data between driver and smu. this function can help update table data Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: add function to start thermal control | Likun Gao | 4 | -0/+37 | |
Add function to start thermal control for smu11 when smu hw_init. Signed-off-by: Likun Gao <[email protected]> Acked-by: Alex Deucher <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: add function to set fan table to control thermal | Likun Gao | 1 | -0/+12 | |
Add function of smu_v11_0_set_thermal_fan_table to set fan table for smu11. Signed-off-by: Likun Gao <[email protected]> Acked-by: Alex Deucher <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: add function to enable thermal alert | Likun Gao | 1 | -0/+14 | |
Add function to enable thermal alerts on thermal control for smu11. Signed-off-by: Likun Gao <[email protected]> Acked-by: Alex Deucher <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: add function to set thermal range | Likun Gao | 1 | -0/+32 | |
Add the function to set the correct min and max thermal value for smu11 Signed-off-by: Likun Gao <[email protected]> Acked-by: Alex Deucher <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: add function to get thermal range | Likun Gao | 3 | -0/+15 | |
Add the function to get the min and max thermal value for vega20 with smu11 architecture. Signed-off-by: Likun Gao <[email protected]> Acked-by: Alex Deucher <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: add get_max_sustainable_clock function | Huang Rui | 4 | -0/+135 | |
This patch adds get_max_sustainable_clock function for smu11. Signed-off-by: Huang Rui <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: print clock levels for smu11 (v2) | Likun Gao | 3 | -2/+89 | |
Add function to print current levels for smu11. v2: expose get_current_clk_freq for smu v11. (Kevin) Signed-off-by: Likun Gao <[email protected]> Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: implement get_current_clk_freq for smu11 | Kevin Wang | 2 | -0/+27 | |
This patch implements get_current_clk_freq for smu11 future use. Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: add function to get power limit for smu11 (v2) | Likun Gao | 3 | -1/+30 | |
Add smu_v11_0_get_power_limit function to get power limit vaule. v2: update "set" to "get", it only implements "get" behavior. (Alex) Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: add function to populate umd state clk. | Likun Gao | 4 | -0/+40 | |
Add vega20_populate_umd_state_clk function to set pstate_sclk and pstate_mclk. Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: set defalut dpm table for smu | Likun Gao | 4 | -44/+251 | |
Add smu_set_default_dpm_table function to set dpm table for smu11. Modified the sequence to populate smc pptable, as it should be done after related dpm feature is enabled. Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: implement smu_notify_display_change function for smu11 | Kevin Wang | 3 | -0/+18 | |
add smu_notify_display_change function to send msg to smc to notify display is changed. Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: implement feature get&set functions | Kevin Wang | 2 | -0/+42 | |
add smu feature operation function helper to deal with smu feature bitmap. Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: implement smu feature functions | Kevin Wang | 4 | -1/+176 | |
each ip will support different smu feature, the driver use bitmap to management this feature. bitmap: -allowed: sw driver to enable & disable some feature when driver init. -suppored: the feature is supproed. -enabled: the feature is enabled. Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: implement smu_run_afll_btc function | Kevin Wang | 3 | -0/+15 | |
Add smu_run_afll_btc function to send msg to smc to start run afll btc. Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: implement smu_init_display for smu11 | Kevin Wang | 3 | -0/+16 | |
Add smu_init_display function to send msg to smc to init display. Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: Change the allocate method of dpm context for smu11. | Likun Gao | 4 | -6/+63 | |
Change the allocate method of dpm context as dpm_table is different bewteen vega20 and smu11. Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: expose the function of smu read argument | Likun Gao | 2 | -1/+5 | |
Expose the function of smu_read_smc_arg to get argument value from SMU11. Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: add append_powerplay_table function | Huang Rui | 3 | -0/+99 | |
It needs to add append_powerplay_table function to program the smc_dpm_table for PPTable_t. Signed-off-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: replace SMU_MSG_XXX with PPSMC_MSG_XXX message index for ↵ | Kevin Wang | 1 | -14/+13 | |
smu11 (v2) This patch is to setup a common SMU_MSGs for smu11. We can support common MSG definitions for each asics under smu11. v2: move smu_v11_0_ppsmc.h to xxx_ppt.c level, because it depends on specific asic. Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: use virtual msg index to replace asic-related msg index | Kevin Wang | 1 | -4/+12 | |
Using virtual msg index is able to support all ASIC specific message values on one smu upper layer. Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: implement smu vega20_message_map for vega20 | Kevin Wang | 2 | -2/+103 | |
This patch implements smu vega20_message_map to map the PPSMC messages from smu11 to specific asic. Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: add enum smu_msg_type to header | Kevin Wang | 1 | -0/+89 | |
each asic with different message index, add this header to help top level smu code to send message. Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: add function to set tool table location for smu11 (v2) | Likun Gao | 1 | -0/+23 | |
Add smu_v11_0_set_tool_table_location function for smu11. v2: fix the missed TABLE_PMSTATUSLOG bo creation which caused AGM hung. (Ray) Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Huang Rui <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: add function to set min dcef deep sleep for smu11 (v2) | Likun Gao | 1 | -0/+18 | |
Add smu_v11_0_set_min_dcef_deep_sleep function for smu11. v2: fix coding error about set_min_dcef_deep_sleep (Kevin) Signed-off-by: Kevin Wang <[email protected]> Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Huang Rui <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: add function to write pptable for smu11 (v2) | Likun Gao | 1 | -0/+60 | |
Add smu_v11_0_write_pptable and smu_v11_0_copy_table_to_smc function for smu11. v2: fix the build warning. (Ray) Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Huang Rui <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: add function to populate smc pptable for smu11 | Likun Gao | 1 | -0/+42 | |
Add smu_v11_0_populate_smc_pptable function for smu11. Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Huang Rui <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: update hw fini function to relase some memory | Likun Gao | 1 | -0/+5 | |
Release memory of table_context->driver_pptable and table_context->ppt_information when smu hw fini. Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Huang Rui <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: add function to check pptable for smu11 | Likun Gao | 3 | -0/+33 | |
Add smu_v11_0_check_pptable function for smu11. Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Huang Rui <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: add function to parse pptable for smu11 | Likun Gao | 3 | -0/+34 | |
Add smu_v11_0_parse_pptable function for smu11. Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Huang Rui <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: add vega20 pptable function file | Huang Rui | 6 | -7/+97 | |
This patch adds the vega20_ppt.c to support ATOM_Vega20_POWERPLAYTABLE format for vega20 on smu11. It will be used to implement to asic specific pptable helpers. Signed-off-by: Huang Rui <[email protected]> Reviewed-by: Likun Gao <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: implement notify_memory_pool_location function for smu11 | Kevin Wang | 1 | -0/+47 | |
This patch implements the notify_memory_pool_location function to send memory address to smc for dram logging. Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: implement smu_alloc[free]_memory pool function | Kevin Wang | 2 | -1/+65 | |
This patch implements smu_alloc[free]_memory pool function to reserve the memory pool bo. Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: implement get_clk_info_from_vbios function for smu11 (v2) | Huang Rui | 3 | -0/+50 | |
This patch implements the get_clk_info_from_vbios function for smu11. We can do execute_vbios_cmd_table to fetch the clk value from vbios. v2: use the proper cpu_to_le[32|16]() and le[32|16]_to_cpu() macros to handle endianness. (Alex) Signed-off-by: Huang Rui <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: implement get_vbios_bootup_values function for smu11 (v2) | Huang Rui | 1 | -0/+59 | |
This patch implements get_vbios_bootup_values function for smu11 to fetach firmwareinfo member from atombios. v2: use switch statement based on the content revision (Alex) Signed-off-by: Huang Rui <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: add data structure of bootup values | Huang Rui | 1 | -0/+16 | |
This patch adds data structures for bootup values. Signed-off-by: Huang Rui <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: update pptable header for smu11 | Huang Rui | 1 | -15/+15 | |
This patch updates pptable header for smu v11. Signed-off-by: Huang Rui <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: remove header of smu_v11_0_pptable | Kevin Wang | 1 | -2/+1 | |
different ASICs have different pptables, so the header will move to asic source code to implement. Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: implement smu_init(fini)_fb_allocations function | Kevin Wang | 1 | -1/+59 | |
This patch implements smu_init_fb_allocations/smu_fini_fb_allocations function for smu to reserve the BOs for smc tables. Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: implement smu_init[fini]_power function for smu11 | Kevin Wang | 4 | -0/+62 | |
This patch implements smu_init[fini]_power function for smu v11. Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: implement smu dpm context functions for smu11 | Kevin Wang | 3 | -0/+70 | |
This patch implements smu dpm context functions for smu v11. Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: implement smu_init[fini]_smc_tables for smu11 | Kevin Wang | 3 | -0/+86 | |
Each SMU IP may have a different number of SMU tables, so these tables are allocated using dynamic memory Signed-off-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2019-03-19 | drm/amd/powerplay: implement read_pptable_from_vbios function for smu11 | Huang Rui | 1 | -0/+23 | |
This patch implements the function of read_pptable_from_vbios for smu11. Signed-off-by: Huang Rui <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> |