Kevin Wang
c9b6604351
drm/amd/powerplay: implement sensor of SCLK and MCLK for smu11
...
add sensor interface of SCLK and MCKL for sys interface and hwmon.
Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Evan Quan <evan.quan@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:58 -05:00
Likun Gao
7292fd7d2b
drm/amd/powerplay: force clock levels for smu11
...
Add function to set sclk or mclk level for smu11.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Evan Quan <evan.quan@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:58 -05:00
Likun Gao
0a49887de9
drm/amd/powerplay: upload dpm level for smu11
...
Add function to support gfx_clk and mem_clk upload min and max dpm level for smu11.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Evan Quan <evan.quan@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:58 -05:00
Kevin Wang
289921b03f
drm/amd/powerplay: implement sysfs of pp_table for smu11 (v2)
...
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 <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:57 -05:00
Kevin Wang
4a5a2de666
drm/amd/powerplay: implement sysfs of amdgpu_get_busy_percent for smu11
...
add interface amdgpu_get_busy_percent for smu11
v2: convert data pointer type to uint32_t *.
Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:57 -05:00
Kevin Wang
dc8e3a0c8e
drm/amd/powerplay: implement is_support_sw_smu function for new smu
...
add this helper to check new sw-smu support.
Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:57 -05:00
Kevin Wang
dbe6a97024
drm/amd/powerplay: implement smu update table function
...
sometime, the driver need changed table data between driver and smu.
this function can help update table data
Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:57 -05:00
Likun Gao
74ba3553b2
drm/amd/powerplay: add function to start thermal control
...
Add function to start thermal control for smu11 when smu hw_init.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:57 -05:00
Likun Gao
e921ec97fe
drm/amd/powerplay: add function to set fan table to control thermal
...
Add function of smu_v11_0_set_thermal_fan_table to set fan table for
smu11.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:57 -05:00
Likun Gao
f81920dbde
drm/amd/powerplay: add function to enable thermal alert
...
Add function to enable thermal alerts on thermal control for smu11.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:57 -05:00
Likun Gao
83e1ede637
drm/amd/powerplay: add function to set thermal range
...
Add the function to set the correct min and max thermal value for smu11
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:57 -05:00
Likun Gao
3941b2dbed
drm/amd/powerplay: add function to get thermal range
...
Add the function to get the min and max thermal value for vega20 with
smu11 architecture.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:57 -05:00
Huang Rui
7457cf0254
drm/amd/powerplay: add get_max_sustainable_clock function
...
This patch adds get_max_sustainable_clock function for smu11.
Signed-off-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:57 -05:00
Likun Gao
86ac880307
drm/amd/powerplay: print clock levels for smu11 (v2)
...
Add function to print current levels for smu11.
v2: expose get_current_clk_freq for smu v11. (Kevin)
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:57 -05:00
Kevin Wang
bed3b3a1e1
drm/amd/powerplay: implement get_current_clk_freq for smu11
...
This patch implements get_current_clk_freq for smu11 future use.
Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:57 -05:00
Likun Gao
e66adb1eea
drm/amd/powerplay: add function to get power limit for smu11 (v2)
...
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 <Likun.Gao@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:57 -05:00
Likun Gao
133438fa4e
drm/amd/powerplay: add function to populate umd state clk.
...
Add vega20_populate_umd_state_clk function to set pstate_sclk and pstate_mclk.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:57 -05:00
Likun Gao
d6a4aa825a
drm/amd/powerplay: set defalut dpm table for smu
...
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 <Likun.Gao@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:57 -05:00
Kevin Wang
e1c6f86a91
drm/amd/powerplay: implement smu_notify_display_change function for smu11
...
add smu_notify_display_change function to send msg to smc to notify
display is changed.
Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:57 -05:00
Kevin Wang
2f25158d7d
drm/amd/powerplay: implement feature get&set functions
...
add smu feature operation function helper to deal with smu feature
bitmap.
Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:57 -05:00
Kevin Wang
6b816d7316
drm/amd/powerplay: implement smu feature functions
...
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 <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <Ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:57 -05:00
Kevin Wang
f6a6b9526c
drm/amd/powerplay: implement smu_run_afll_btc function
...
Add smu_run_afll_btc function to send msg to smc to start run afll btc.
Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:57 -05:00
Kevin Wang
56c53ad6fe
drm/amd/powerplay: implement smu_init_display for smu11
...
Add smu_init_display function to send msg to smc to init display.
Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:56 -05:00
Likun Gao
d76c9e2412
drm/amd/powerplay: Change the allocate method of dpm context for smu11.
...
Change the allocate method of dpm context as dpm_table is different bewteen
vega20 and smu11.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:56 -05:00
Likun Gao
00bfaec829
drm/amd/powerplay: expose the function of smu read argument
...
Expose the function of smu_read_smc_arg to get argument value from SMU11.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:56 -05:00
Huang Rui
c589527376
drm/amd/powerplay: add append_powerplay_table function
...
It needs to add append_powerplay_table function to program the smc_dpm_table for
PPTable_t.
Signed-off-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:56 -05:00
Kevin Wang
0914f1c635
drm/amd/powerplay: replace SMU_MSG_XXX with PPSMC_MSG_XXX message index for 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 <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:56 -05:00
Kevin Wang
5c45103f48
drm/amd/powerplay: use virtual msg index to replace asic-related msg index
...
Using virtual msg index is able to support all ASIC specific message values on
one smu upper layer.
Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:56 -05:00
Kevin Wang
78031c2c4d
drm/amd/powerplay: implement smu vega20_message_map for vega20
...
This patch implements smu vega20_message_map to map the PPSMC messages from
smu11 to specific asic.
Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:56 -05:00
Kevin Wang
64136ea6e7
drm/amd/powerplay: add enum smu_msg_type to header
...
each asic with different message index,
add this header to help top level smu code to send message.
Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:56 -05:00
Likun Gao
e88e4f836c
drm/amd/powerplay: add function to set tool table location for smu11 (v2)
...
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 <Likun.Gao@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:56 -05:00
Likun Gao
44619596eb
drm/amd/powerplay: add function to set min dcef deep sleep for smu11 (v2)
...
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 <Kevin1.Wang@amd.com >
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:56 -05:00
Likun Gao
863651b6fa
drm/amd/powerplay: add function to write pptable for smu11 (v2)
...
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 <Likun.Gao@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:56 -05:00
Likun Gao
29eed6fafd
drm/amd/powerplay: add function to populate smc pptable for smu11
...
Add smu_v11_0_populate_smc_pptable function for smu11.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:56 -05:00
Likun Gao
afba828229
drm/amd/powerplay: update hw fini function to relase some memory
...
Release memory of table_context->driver_pptable and
table_context->ppt_information when smu hw fini.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:56 -05:00
Likun Gao
c6eef2d01d
drm/amd/powerplay: add function to check pptable for smu11
...
Add smu_v11_0_check_pptable function for smu11.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:56 -05:00
Likun Gao
3e333c6ca1
drm/amd/powerplay: add function to parse pptable for smu11
...
Add smu_v11_0_parse_pptable function for smu11.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:56 -05:00
Huang Rui
74e07f9d3b
drm/amd/powerplay: add vega20 pptable function file
...
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 <ray.huang@amd.com >
Reviewed-by: Likun Gao <Likun.Gao@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:56 -05:00
Kevin Wang
d72e91c5b7
drm/amd/powerplay: implement notify_memory_pool_location function for smu11
...
This patch implements the notify_memory_pool_location function to send memory
address to smc for dram logging.
Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:56 -05:00
Kevin Wang
0b51d99378
drm/amd/powerplay: implement smu_alloc[free]_memory pool function
...
This patch implements smu_alloc[free]_memory pool function to reserve the memory
pool bo.
Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:56 -05:00
Huang Rui
08115f87c3
drm/amd/powerplay: implement get_clk_info_from_vbios function for smu11 (v2)
...
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 <ray.huang@amd.com >
Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:56 -05:00
Huang Rui
846f1a035b
drm/amd/powerplay: implement get_vbios_bootup_values function for smu11 (v2)
...
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 <ray.huang@amd.com >
Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:55 -05:00
Huang Rui
e98499b444
drm/amd/powerplay: add data structure of bootup values
...
This patch adds data structures for bootup values.
Signed-off-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:55 -05:00
Huang Rui
daddacf9f1
drm/amd/powerplay: update pptable header for smu11
...
This patch updates pptable header for smu v11.
Signed-off-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:55 -05:00
Kevin Wang
ce6f7fa8a7
drm/amd/powerplay: remove header of smu_v11_0_pptable
...
different ASICs have different pptables, so the header will move
to asic source code to implement.
Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <Ray.Huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:55 -05:00
Kevin Wang
f96357a991
drm/amd/powerplay: implement smu_init(fini)_fb_allocations function
...
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 <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:55 -05:00
Kevin Wang
8bf16963df
drm/amd/powerplay: implement smu_init[fini]_power function for smu11
...
This patch implements smu_init[fini]_power function for smu v11.
Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:55 -05:00
Kevin Wang
142dec6266
drm/amd/powerplay: implement smu dpm context functions for smu11
...
This patch implements smu dpm context functions for smu v11.
Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:55 -05:00
Kevin Wang
813ce27944
drm/amd/powerplay: implement smu_init[fini]_smc_tables for smu11
...
Each SMU IP may have a different number of SMU tables, so these tables
are allocated using dynamic memory
Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:55 -05:00
Huang Rui
244f344928
drm/amd/powerplay: implement read_pptable_from_vbios function for smu11
...
This patch implements the function of read_pptable_from_vbios for smu11.
Signed-off-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:55 -05:00