mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02: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:
parent
0ea8176ce6
commit
edcace98fd
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user