drm/amd/display: get socBB from VBIOS for dcn302 and dcn303
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Wed, 21 Apr 2021 19:05:11 +0000 (15:05 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Jun 2021 21:45:14 +0000 (17:45 -0400)
commit9253e11503b4c091509c723f3330119b4fc8c7f0
tree097ff3d8585db67048c8dae0d5af1e621ba88707
parentd8ddeb155c00a557afb8e0f65280009552acb61e
drm/amd/display: get socBB from VBIOS for dcn302 and dcn303

[why]
Some SOC BB paramters may vary per SKU, and it does
not make sense for driver to hardcode these values.
This change was added for dcn30 and dcn301, but not
for dcn302 and dcn303

[how]
Parse the values from VBIOS if available, and use
them if valid

Fixes: 93669c8e480dca ("drm/amd/display: get socBB from VBIOS")
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Bindu Ramamurthy <bindu.r@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/dcn302/dcn302_resource.c
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c