summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
diff options
context:
space:
mode:
authorHarry Wentland2019-05-07 21:34:21 +0200
committerAlex Deucher2019-06-22 01:59:34 +0200
commit48321c3dde79f7f2db5000febddf70df3620c445 (patch)
treef62250df689c9d2ed9507d9c19f87975ce55faa2 /drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
parentdrm/amd/powerplay: notify smu with active display count (diff)
downloadkernel-qcow2-linux-48321c3dde79f7f2db5000febddf70df3620c445.tar.gz
kernel-qcow2-linux-48321c3dde79f7f2db5000febddf70df3620c445.tar.xz
kernel-qcow2-linux-48321c3dde79f7f2db5000febddf70df3620c445.zip
drm/amd/display: Read soc_bounding_box from gpu_info (v2)
[WHY] We don't want to expose sensitive ASIC information before ASIC release. [HOW] Encode the soc_bounding_box in the gpu_info FW (for Linux) and read it at driver load. v2: fix warning when CONFIG_DRM_AMD_DC_DCN2_0 is not set (Alex) Signed-off-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c')
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 7e03847154d3..eeaf84e40dc1 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -557,6 +557,9 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
init_data.flags.fbc_support = true;
init_data.flags.power_down_display_on_boot = true;
+#ifdef CONFIG_DRM_AMD_DC_DCN2_0
+ init_data.soc_bounding_box = adev->dm.soc_bounding_box;
+#endif
/* Display Core create. */
adev->dm.dc = dc_create(&init_data);