]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Enable dpia in dmub only for DCN31 B0
authorJude Shih <shenshih@amd.com>
Thu, 21 Oct 2021 14:00:13 +0000 (22:00 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Oct 2021 18:26:59 +0000 (14:26 -0400)
commit40d0f928493a9ad06f3d221c34476e1609fe266a
tree7c7c4c44610937baece369aba02e137df9821ade
parenta751b0b44ab88de1a126daeb598005d8aefd75f9
drm/amd/display: Enable dpia in dmub only for DCN31 B0

[Why]
DMUB binary is common for both A0 and B0. Hence, driver should
notify FW about the support for DPIA in B0.

[How]
Added dpia_supported bit in dmub_fw_boot_options and will be set
only for B0.

Assign dpia_supported to true before dm_dmub_hw_init
in B0 case.

v2: fix build without CONFIG_DRM_AMD_DC_DCN (Alex)

Signed-off-by: Jude Shih <shenshih@amd.com>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dmub/dmub_srv.h
drivers/gpu/drm/amd/display/dmub/src/dmub_dcn31.c