diff options
author | José Roberto de Souza <jose.souza@intel.com> | 2019-03-12 12:57:43 -0700 |
---|---|---|
committer | José Roberto de Souza <jose.souza@intel.com> | 2019-03-13 14:20:21 -0700 |
commit | 8a9a5608a31b23a8da4be67285176dd4cacfa574 (patch) | |
tree | 7a982780d00ae8759c2dfb9d594df5eee5e3d428 /drivers/gpu/drm/i915/intel_psr.c | |
parent | 1e0c05c09037c593f0c06054a28c1021e13e8dfa (diff) | |
download | linux-stable-8a9a5608a31b23a8da4be67285176dd4cacfa574.tar.gz linux-stable-8a9a5608a31b23a8da4be67285176dd4cacfa574.tar.bz2 linux-stable-8a9a5608a31b23a8da4be67285176dd4cacfa574.zip |
drm/i915/icl+: Always use TPS2 or TPS3 when exiting PSR1
When any other value than EDP_PSR_TP4_TIME_0US is set, TPS1 and TPS4
will be used to do the link training when exiting PSR1.
Happily the eDP panels tested so far was able to sync with source
even without HBR3/TPS4 support but let use the right training
pattern.
TPS4 support was added to PSR1 registers because HBR3/PSR
specification was not closed when ICL was freezed so if HBR3 was
supported by PSR, ICL would already be ready but it was not added to
specification so lets always disable TPS4.
v3: Missed ";" SPANK SPANK SPANK!!!
BSpec: 17524
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190312195743.8829-3-jose.souza@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_psr.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_psr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_psr.c b/drivers/gpu/drm/i915/intel_psr.c index 813be3b81bdc..7d570a45fc17 100644 --- a/drivers/gpu/drm/i915/intel_psr.c +++ b/drivers/gpu/drm/i915/intel_psr.c @@ -439,6 +439,9 @@ static u32 intel_psr1_get_tp_time(struct intel_dp *intel_dp) struct drm_i915_private *dev_priv = dp_to_i915(intel_dp); u32 val = 0; + if (INTEL_GEN(dev_priv) >= 11) + val |= EDP_PSR_TP4_TIME_0US; + if (dev_priv->vbt.psr.tp1_wakeup_time_us == 0) val |= EDP_PSR_TP1_TIME_0us; else if (dev_priv->vbt.psr.tp1_wakeup_time_us <= 100) |