]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Only initialize LSDMA if it is supported in DMU
authorAlvin Lee <Alvin.Lee2@amd.com>
Thu, 23 Oct 2025 19:26:33 +0000 (15:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Nov 2025 02:54:15 +0000 (21:54 -0500)
Need to check caps flag to determine whether LSDMA is supported in DMU

Reviewed-by: Rafal Ostrowski <rafal.ostrowski@amd.com>
Signed-off-by: Alvin Lee <Alvin.Lee2@amd.com>
Signed-off-by: Fangzhi Zuo <jerry.zuo@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h

index fffbf1983143df2f96d1e9f41d591807532fd352..7b09af1cb306e8a2ddd57ad8122815ebb3b1fbb4 100644 (file)
@@ -2084,6 +2084,9 @@ bool dmub_lsdma_init(struct dc_dmub_srv *dc_dmub_srv)
        struct dmub_cmd_lsdma_data *lsdma_data = &cmd.lsdma.lsdma_data;
        bool result;
 
+       if (!dc_dmub_srv->dmub->feature_caps.lsdma_support_in_dmu)
+               return false;
+
        memset(&cmd, 0, sizeof(cmd));
 
        cmd.cmd_common.header.type     = DMUB_CMD__LSDMA;
index 9bc512a522e03fe3e36650c160e3add41b1a0aa0..e956722209baf3bb0a6e9d71f59fd581a25ab40d 100644 (file)
@@ -721,6 +721,7 @@ struct dmub_feature_caps {
        uint8_t replay_supported;
        uint8_t replay_reserved[3];
        uint8_t abm_aux_backlight_support;
+       uint8_t lsdma_support_in_dmu;
 };
 
 struct dmub_visual_confirm_color {