summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/bios
diff options
context:
space:
mode:
authorIgor Kravchenko <Igor.Kravchenko@amd.com>2020-07-24 11:10:40 -0400
committerAlex Deucher <alexander.deucher@amd.com>2020-08-04 17:29:28 -0400
commitda83b385f3eba1d695bc8014d8a5c0a791188c16 (patch)
tree617da0c23d6752fe3bf63f8f4d5b26455b7a92df /drivers/gpu/drm/amd/display/dc/bios
parent0914d1154f0ff03944d485f610efa3158aee4a06 (diff)
downloadlinux-stable-da83b385f3eba1d695bc8014d8a5c0a791188c16.tar.gz
linux-stable-da83b385f3eba1d695bc8014d8a5c0a791188c16.tar.bz2
linux-stable-da83b385f3eba1d695bc8014d8a5c0a791188c16.zip
drm/amd/display: Display goes blank after inst
[why] Display goes blank after driver installation. Aux tuning parameters must be used for 2.x only. Wrong dc_golden_table offset was used. [How] Implement a new enc3_hw_init function without VBIOS constants usage to be called for 3.x Calculate dc_golden_table offset using sum of base dce_info offset and golden table offset Signed-off-by: Igor Kravchenko <Igor.Kravchenko@amd.com> Reviewed-by: Aric Cyr <Aric.Cyr@amd.com> Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/bios')
-rw-r--r--drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
index f8db92fed9cf..078b7e344185 100644
--- a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
+++ b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
@@ -2101,7 +2101,7 @@ static struct atom_dc_golden_table_v1 *bios_get_golden_table(
DATA_TABLES(dce_info));
if (!disp_cntl_tbl_4_4)
return NULL;
- dc_golden_offset = disp_cntl_tbl_4_4->dc_golden_table_offset;
+ dc_golden_offset = DATA_TABLES(dce_info) + disp_cntl_tbl_4_4->dc_golden_table_offset;
*dc_golden_table_ver = disp_cntl_tbl_4_4->dc_golden_table_ver;
break;
}
@@ -2115,7 +2115,7 @@ static struct atom_dc_golden_table_v1 *bios_get_golden_table(
return NULL;
return GET_IMAGE(struct atom_dc_golden_table_v1,
- dc_golden_offset);
+ dc_golden_offset);
}
static enum bp_result bios_get_atom_dc_golden_table(