Commit edcace98 authored by Alvin Lee's avatar Alvin Lee Committed by Alex Deucher
Browse files

drm/amd/display: Only initialize LSDMA if it is supported in DMU



Need to check caps flag to determine whether LSDMA is supported in DMU

Reviewed-by: default avatarRafal Ostrowski <rafal.ostrowski@amd.com>
Signed-off-by: default avatarAlvin Lee <Alvin.Lee2@amd.com>
Signed-off-by: default avatarFangzhi Zuo <jerry.zuo@amd.com>
Tested-by: default avatarDan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 0ea8176c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;
+1 −0
Original line number Diff line number Diff line
@@ -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 {