]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/display: copy dmub caps to dc on dcn31
authorJosip Pavic <Josip.Pavic@amd.com>
Fri, 14 May 2021 18:04:02 +0000 (14:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Apr 2023 20:28:51 +0000 (16:28 -0400)
[Why & How]
Add code path to copy dmub caps to dc, which is missing on dcn31

Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Josip Pavic <Josip.Pavic@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hwseq.c

index 7ac6e69cff378a5a44a604e2bc07d6809a360280..62ce36c75c4d24375dfd8e6484ae3c516491b80f 100644 (file)
@@ -295,6 +295,10 @@ void dcn31_init_hw(struct dc *dc)
        if (dc->res_pool->hubbub->funcs->init_crb)
                dc->res_pool->hubbub->funcs->init_crb(dc->res_pool->hubbub);
 #endif
+
+       // Get DMCUB capabilities
+       dc_dmub_srv_query_caps_cmd(dc->ctx->dmub_srv->dmub);
+       dc->caps.dmub_caps.psr = dc->ctx->dmub_srv->dmub->feature_caps.psr;
 }
 
 void dcn31_dsc_pg_control(