]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Load NV12 SOC BB from firmware
authorLeo Li <sunpeng.li@amd.com>
Tue, 6 Aug 2019 17:50:28 +0000 (13:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Aug 2019 15:57:42 +0000 (10:57 -0500)
commitb82f3703ce3abdd59cc184f927193d98df78e636
tree7be1be08d47bc459aa34218c98d5f93f7f8b87ef
parent0e91add5107756fb9d9849925ff00564b5636334
drm/amd/display: Load NV12 SOC BB from firmware

[Why]

Previous SOC bounding box firmware loading logic was for NV10, when we
still had it in firmware. Now that it's brought into driver code, and
NV12 BB is in firmware, this logic needs to be repurposed for NV12.

[How]

Set SOC_BOUNDING_BOX_VALID to false, and add the dcn_2_0_nv12_soc BB
struct. In init_soc_bounding_box, load firmware to nv12 BB instead.

In addition, conditionally update and patch the BB, depending on ASIC
REV.

Signed-off-by: Leo Li <sunpeng.li@amd.com>
Reviewed-by: Hersen Wu <hersenxs.wu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c