Skip to content

Commit 5949e7c

Browse files
Fangzhi Zuoalexdeucher
authored andcommitted
drm/amd/display: Enable Dynamic DTBCLK Switch
[WHAT] Since dcn35, DTBCLK can be disabled when no DP2 sink connected for power saving purpose. Cc: Mario Limonciello <mario.limonciello@amd.com> Cc: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Signed-off-by: Fangzhi Zuo <Jerry.Zuo@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 2e97663 commit 5949e7c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2000,6 +2000,10 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
20002000

20012001
init_data.flags.disable_ips_in_vpb = 0;
20022002

2003+
/* DCN35 and above supports dynamic DTBCLK switch */
2004+
if (amdgpu_ip_version(adev, DCE_HWIP, 0) >= IP_VERSION(3, 5, 0))
2005+
init_data.flags.allow_0_dtb_clk = true;
2006+
20032007
/* Enable DWB for tested platforms only */
20042008
if (amdgpu_ip_version(adev, DCE_HWIP, 0) >= IP_VERSION(3, 0, 0))
20052009
init_data.num_virtual_links = 1;

0 commit comments

Comments
 (0)