summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/bios
diff options
context:
space:
mode:
authorYongqiang Sun <yongqiang.sun@amd.com>2020-05-29 20:05:11 +0300
committerAlex Deucher <alexander.deucher@amd.com>2020-07-01 08:59:21 +0300
commitdfd991794685b1228387214f28630b6e94e56944 (patch)
tree0e43ae7b86aa873198a1371f3dfe228b3e4d9a67 /drivers/gpu/drm/amd/display/dc/bios
parentffa2151a8f4dab8670d46abcfacacbe68e394ae6 (diff)
downloadlinux-dfd991794685b1228387214f28630b6e94e56944.tar.xz
drm/amd/display: Not doing bios data pack.
[Why] dmub FW running abnormal after resume from S0i3 due to data aliagnment issue. [How] Before having a solution for this issue, temparory not doing data pack. Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com> Reviewed-by: Sung Lee <Sung.Lee@amd.com> Acked-by: Qingqing Zhuo <qingqing.zhuo@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.c5
1 files changed, 5 insertions, 0 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 150cdbc02d44..9311fec1643c 100644
--- a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
+++ b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
@@ -1880,10 +1880,12 @@ static enum bp_result bios_get_board_layout_info(
return BP_RESULT_OK;
}
+
static uint16_t bios_parser_pack_data_tables(
struct dc_bios *dcb,
void *dst)
{
+#ifdef PACK_BIOS_DATA
struct bios_parser *bp = BP_FROM_DCB(dcb);
struct atom_rom_header_v2_2 *rom_header = NULL;
struct atom_rom_header_v2_2 *packed_rom_header = NULL;
@@ -1975,6 +1977,9 @@ static uint16_t bios_parser_pack_data_tables(
}
}
return packed_data_tbl_offset;
+#endif
+ // TODO: There is data bytes alignment issue, disable it for now.
+ return 0;
}
static const struct dc_vbios_funcs vbios_funcs = {