drm/amd/display: Support parsing VRAM info v3.0 from VBIOS
authorGeorge Shen <george.shen@amd.com>
Wed, 2 Nov 2022 19:06:48 +0000 (15:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Nov 2022 16:53:35 +0000 (11:53 -0500)
commit2ec3a0f0f17c20eccc3789fd844ba36755b7fe12
tree46f97d4e87e127bbee4035ff5a440fb2cb28877e
parent2641c7b7808191cba25ba28b82bb73ca294924cc
drm/amd/display: Support parsing VRAM info v3.0 from VBIOS

[Why]
For DCN3.2 and DCN3.21, VBIOS has switch to using v3.0 of the VRAM
info struct. We should read and override the VRAM info in driver with
values provided by VBIOS to support memory downbin cases.

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: George Shen <george.shen@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c