Commit 2551b4a3 authored by Aurabindo Pillai's avatar Aurabindo Pillai Committed by Alex Deucher
Browse files

drm/amd/display: parse umc_info or vram_info based on ASIC

An upstream bug report suggests that there are production dGPUs that are
older than DCN401 but still have a umc_info in VBIOS tables with the
same version as expected for a DCN401 product. Hence, reading this
tables should be guarded with a version check.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3678


Reviewed-by: default avatarDillon Varone <dillon.varone@amd.com>
Signed-off-by: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: default avatarZaeem Mohamed <zaeem.mohamed@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 583c21c2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3127,7 +3127,9 @@ static enum bp_result bios_parser_get_vram_info(
	struct atom_data_revision revision;

	// vram info moved to umc_info for DCN4x
	if (info && DATA_TABLES(umc_info)) {
	if (dcb->ctx->dce_version >= DCN_VERSION_4_01 &&
		dcb->ctx->dce_version < DCN_VERSION_MAX &&
		info && DATA_TABLES(umc_info)) {
		header = GET_IMAGE(struct atom_common_table_header,
					DATA_TABLES(umc_info));