Commit 17bdb4a8 authored by Jerry (Fangzhi) Zuo's avatar Jerry (Fangzhi) Zuo Committed by Alex Deucher
Browse files

drm/amd/display: Check DMCU Exists Before Loading

parent 7b353e41
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1389,9 +1389,14 @@ static int dm_late_init(void *handle)
	struct dmcu_iram_parameters params;
	unsigned int linear_lut[16];
	int i;
	struct dmcu *dmcu = adev->dm.dc->res_pool->dmcu;
	struct dmcu *dmcu = NULL;
	bool ret = false;

	if (!adev->dm.fw_dmcu)
		return detect_mst_link_for_all_connectors(adev->ddev);

	dmcu = adev->dm.dc->res_pool->dmcu;

	for (i = 0; i < 16; i++)
		linear_lut[i] = 0xFFFF * i / 15;