drm/amd/powerplay: notify smu with active display count
authorhersen wu <hersenxs.wu@amd.com>
Tue, 21 May 2019 20:03:28 +0000 (16:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 23:59:33 +0000 (18:59 -0500)
when dc update clocks via smu, smu needs to know how many
displays active. this interface is for dc notify number
of active displays to smu.

Signed-off-by: hersen wu <hersenxs.wu@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>
drivers/gpu/drm/amd/powerplay/smu_v11_0.c

index c9d0992d94a7da1532bd8bb8b025904b42c6d6c6..b020a8c28c32de15b74a87a611497100462ebace 100644 (file)
@@ -773,6 +773,7 @@ static int smu_v11_0_init_display_count(struct smu_context *smu, uint32_t count)
 
        if (!smu->pm_enabled)
                return ret;
+
        ret = smu_send_smc_msg_with_param(smu, SMU_MSG_NumOfDisplays, count);
        return ret;
 }