drm/amd/display: Check DMCU Exists Before Loading
Signed-off-by: Jerry (Fangzhi) Zuo <Jerry.Zuo@amd.com> Reviewed-by: Hersen Wu <hersenxs.wu@amd.com> Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
7b353e41b4
commit
17bdb4a82f
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue