]> asedeno.scripts.mit.edu Git - linux.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)
commit675a9e38b39c4114dbcf1ed2e7f7a0e5a6a5e4b4
tree7be1be08d47bc459aa34218c98d5f93f7f8b87ef
parent6d83a32d0bdd39cdcc0d70d7b719cd2ffb419268
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