Commit 61155363 authored by Nicholas Kazlauskas's avatar Nicholas Kazlauskas Committed by chrome-bot
Browse files

BACKPORT/FROMGIT: drm/amd/display: Add support for toggling DFS bypass



[Why]

If the hardware supports DFS bypass it will always be enabled after
creation of the DCCG. DFS bypass should only be enabled when
the current stream consists of a single embedded panel and the
minimum display clock is below the DFS bypass threshold.

[How]

Add a function to the DCCG table that updates the DFS bypass state
when setting the bandwidth. If the DFS bypass state is changed, the
clock needs to be reprogrammed to reflect this before the DPREFCLK
is updated for audio endpoints. The existing display clock value
is used as the target display clock value when reprogramming since the
resulting change will be equal or larger to the current value.

These changes only specifically target dce110 but do offer a framework
for support on other applicable targets.

Signed-off-by: default avatarNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: default avatarDavid Francis <David.Francis@amd.com>
Acked-by: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>

(cherry picked from commit 5a83c932
    git://anongit.freedesktop.org/drm/drm of origin/drm-next branch)

 Conflicts:
       drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c
       drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
       drivers/gpu/drm/amd/display/dc/inc/hw/display_clock.h
	[Hang Zhou] Fix rebase conflicts due to missing latest clock voltage update request redesign.

    BUG=b:117659336
    TEST=Build & Boot on Careena

Change-Id: I80a628875480d335d3f58c91d4792d8044c51538
Reviewed-on: https://chromium-review.googlesource.com/1294551


Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: default avatarHang Zhou <hang.zhou@amd.corp-partner.google.com>
Reviewed-by: default avatarDaniel Kurtz <djkurtz@chromium.org>
parent 4b501e0b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment