Skip to content

Commit

Permalink
drm/amd/display: disable dcn20 abm feature for bring up
Browse files Browse the repository at this point in the history
[WHY] dcn20 enable usb-c dp ALT mode in dmcu. There is bug
when enable abm feature which cause system crash. dal team
will debug this bug later.

[HOW] disable dcn abm feature for dcn20.

Signed-off-by: hersen wu <hersenxs.wu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
hersen wu authored and Alex Deucher committed Jun 22, 2019
1 parent bcba830 commit 96cb7cf
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ static int dm_late_init(void *handle)
unsigned int linear_lut[16];
int i;
struct dmcu *dmcu = adev->dm.dc->res_pool->dmcu;
bool ret;
bool ret = false;

for (i = 0; i < 16; i++)
linear_lut[i] = 0xFFFF * i / 15;
Expand All @@ -792,10 +792,13 @@ static int dm_late_init(void *handle)
params.backlight_lut_array_size = 16;
params.backlight_lut_array = linear_lut;

ret = dmcu_load_iram(dmcu, params);
/* todo will enable for navi10 */
if (adev->asic_type <= CHIP_RAVEN) {
ret = dmcu_load_iram(dmcu, params);

if (!ret)
return -EINVAL;
if (!ret)
return -EINVAL;
}

return detect_mst_link_for_all_connectors(adev->ddev);
}
Expand Down

0 comments on commit 96cb7cf

Please sign in to comment.