aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Teeger <[email protected]>2024-04-09 10:38:58 -0400
committerAlex Deucher <[email protected]>2024-04-30 09:46:08 -0400
commit8acb83689258a606a43940191156ed1b24733a94 (patch)
treee5819e3146eaa0f116f9f1c22e712a6e7cc8efc5
parent10839ee6a977ed1f7d0f4deb29f2d7e5d1f2a9dd (diff)
drm/amd/display: Atom Integrated System Info v2_2 for DCN35
New request from KMD/VBIOS in order to support new UMA carveout model. This fixes a null dereference from accessing Ctx->dc_bios->integrated_info while it was NULL. DAL parses through the BIOS and extracts the necessary integrated_info but was missing a case for the new BIOS version 2.3. Reviewed-by: Nicholas Kazlauskas <[email protected]> Acked-by: Aurabindo Pillai <[email protected]> Signed-off-by: Gabe Teeger <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c1
1 files changed, 1 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 bafd3801de34..4d7006fdf345 100644
--- a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
+++ b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
@@ -3029,6 +3029,7 @@ static enum bp_result construct_integrated_info(
result = get_integrated_info_v2_1(bp, info);
break;
case 2:
+ case 3:
result = get_integrated_info_v2_2(bp, info);
break;
default: