diff options
author | Kevin Wang | 2018-12-24 08:02:50 +0100 |
---|---|---|
committer | Alex Deucher | 2019-03-19 21:03:56 +0100 |
commit | 56c53ad6fe6c59469eda11caedc408b6e827864a (patch) | |
tree | cd990dc62b248dbbe44e23596b0fdc6c5de1ca23 /drivers/gpu/drm/amd/powerplay/smu_v11_0.c | |
parent | drm/amd/powerplay: Change the allocate method of dpm context for smu11. (diff) | |
download | kernel-qcow2-linux-56c53ad6fe6c59469eda11caedc408b6e827864a.tar.gz kernel-qcow2-linux-56c53ad6fe6c59469eda11caedc408b6e827864a.tar.xz kernel-qcow2-linux-56c53ad6fe6c59469eda11caedc408b6e827864a.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/smu_v11_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c index 9cb1796138a1..d0933040c1e2 100644 --- a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c +++ b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c @@ -658,6 +658,13 @@ static int smu_v11_0_set_tool_table_location(struct smu_context *smu) return ret; } +static int smu_v11_0_init_display(struct smu_context *smu) +{ + int ret = 0; + ret = smu_send_smc_msg_with_param(smu, SMU_MSG_NumOfDisplays, 0); + return ret; +} + static const struct smu_funcs smu_v11_0_funcs = { .init_microcode = smu_v11_0_init_microcode, .load_microcode = smu_v11_0_load_microcode, @@ -680,6 +687,7 @@ static const struct smu_funcs smu_v11_0_funcs = { .write_pptable = smu_v11_0_write_pptable, .set_min_dcef_deep_sleep = smu_v11_0_set_min_dcef_deep_sleep, .set_tool_table_location = smu_v11_0_set_tool_table_location, + .init_display = smu_v11_0_init_display, }; void smu_v11_0_set_smu_funcs(struct smu_context *smu) |