summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJosip Pavic <Josip.Pavic@amd.com>2021-05-14 14:04:02 -0400
committerAlex Deucher <alexander.deucher@amd.com>2023-04-26 22:27:43 -0400
commitf11aee97b13ea6817287cd8dbed9b09a260ff0e7 (patch)
tree310a95912aac5854fc6e727c9e423a1feef63ee9 /drivers
parent822b84ecfc646da0f87fd947fa00dc3be5e45ecc (diff)
downloadlinux-stable-f11aee97b13ea6817287cd8dbed9b09a260ff0e7.tar.gz
linux-stable-f11aee97b13ea6817287cd8dbed9b09a260ff0e7.tar.bz2
linux-stable-f11aee97b13ea6817287cd8dbed9b09a260ff0e7.zip
drm/amd/display: copy dmub caps to dc on dcn31
[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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hwseq.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hwseq.c b/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hwseq.c
index 7ac6e69cff37..62ce36c75c4d 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hwseq.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hwseq.c
@@ -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(