Skip to content

Commit 17bdb4a

Browse files
Jerry (Fangzhi) Zuoalexdeucher
authored andcommitted
drm/amd/display: Check DMCU Exists Before Loading
Signed-off-by: Jerry (Fangzhi) Zuo <[email protected]> Reviewed-by: Hersen Wu <[email protected]> Acked-by: Aurabindo Pillai <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 7b353e4 commit 17bdb4a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,9 +1389,14 @@ static int dm_late_init(void *handle)
13891389
struct dmcu_iram_parameters params;
13901390
unsigned int linear_lut[16];
13911391
int i;
1392-
struct dmcu *dmcu = adev->dm.dc->res_pool->dmcu;
1392+
struct dmcu *dmcu = NULL;
13931393
bool ret = false;
13941394

1395+
if (!adev->dm.fw_dmcu)
1396+
return detect_mst_link_for_all_connectors(adev->ddev);
1397+
1398+
dmcu = adev->dm.dc->res_pool->dmcu;
1399+
13951400
for (i = 0; i < 16; i++)
13961401
linear_lut[i] = 0xFFFF * i / 15;
13971402

0 commit comments

Comments
 (0)