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 18:16:04 +0000 (13:16 -0500)
commit7e952a18eb978a3e51fc1704b752378be66226b2
tree50abd972d1f349401ec2db3ed3567f4ca2c69cc4
parent8d8494c3467d366eb0f7c8198dab80be8bdc47d2
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>
Cc: stable@vger.kernel.org # 6.0.x
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c