]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7d769dceeb8031dd7b908599160697552c4db920
tree097ff3d8585db67048c8dae0d5af1e621ba88707
parentfb03084142ed921086876fd77f0fc480567811b2
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: 6dc4c91d48a2f1 ("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