mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-16 21:15:10 -05:00
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: 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>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user