All of lore.kernel.org
 help / color / mirror / Atom feed
From: "José Roberto de Souza" <jose.souza@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH v2 12/13] drm/i915/tgl: Fix dkl link training
Date: Wed, 18 Sep 2019 17:07:25 -0700	[thread overview]
Message-ID: <20190919000726.267988-13-jose.souza@intel.com> (raw)
In-Reply-To: <20190919000726.267988-1-jose.souza@intel.com>

Link training is failling when running link at 2.7GHz and 1.62GHz and
following BSpec pll algorithm.

Comparing the values calculated and the ones from the reference table
it looks like MG_CLKTOP2_CORECLKCTL1_A_DIVRATIO should not always set
to 5. For DP ports ICL mg pll algorithm sets it to 10 or 5 based on
div2 value, that matches with dkl hardcoded table.

So implementing this way as it proved to work in HW and leaving a
comment so we know why it do not match BSpec.

Issue reported on BSpec 49204.

Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
---
 drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_dpll_mgr.c b/drivers/gpu/drm/i915/display/intel_dpll_mgr.c
index e6a7280da408..2379290ee6f2 100644
--- a/drivers/gpu/drm/i915/display/intel_dpll_mgr.c
+++ b/drivers/gpu/drm/i915/display/intel_dpll_mgr.c
@@ -2630,7 +2630,12 @@ static bool icl_mg_pll_find_divisors(int clock_khz, bool is_dp, bool use_ssc,
 				continue;
 			if (div2 >= 2) {
 				if (is_dkl) {
-					a_divratio = 5;
+					/*
+					 * Note: a_divratio not matching TGL
+					 * BSpec algorithm but matching
+					 * hardcoded values and working on HW
+					 */
+					a_divratio = 10;
 					tlinedrv = 1;
 				} else {
 					a_divratio = is_dp ? 10 : 5;
-- 
2.23.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2019-09-19  0:07 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-19  0:07 [PATCH v2 00/13] TGL TC enabling v2 José Roberto de Souza
2019-09-19  0:07 ` [PATCH v2 01/13] drm/i915/tgl: Add missing ddi clock select during DP init sequence José Roberto de Souza
2019-09-19 17:20   ` Imre Deak
2019-09-19 18:56     ` Lucas De Marchi
2019-09-19 19:41       ` Imre Deak
2019-09-19 19:33     ` Souza, Jose
2019-09-19  0:07 ` [PATCH v2 02/13] drm/i915/tgl: Finish modular FIA support on registers José Roberto de Souza
2019-09-19  1:25   ` Lucas De Marchi
2019-09-19  0:07 ` [PATCH v2 03/13] drm/i915/tgl/pll: Set update_active_dpll José Roberto de Souza
2019-09-19  1:26   ` Lucas De Marchi
2019-09-19  0:07 ` [PATCH v2 04/13] drm/i915/tgl: Add dkl phy registers José Roberto de Souza
2019-09-19 19:02   ` Lucas De Marchi
2019-09-19  0:07 ` [PATCH v2 05/13] drm/i915/tgl: Add initial dkl pll support José Roberto de Souza
2019-09-19 19:05   ` Lucas De Marchi
2019-09-19  0:07 ` [PATCH v2 06/13] drm/i915/tgl: Add support for dkl pll write José Roberto de Souza
2019-09-20 20:46   ` Lucas De Marchi
2019-09-19  0:07 ` [PATCH v2 07/13] drm/i915/tgl: TC helper function to return pin mapping José Roberto de Souza
2019-09-20 20:54   ` Lucas De Marchi
2019-09-20 20:59     ` Lucas De Marchi
2019-09-19  0:07 ` [PATCH v2 08/13] drm/i915/tgl: Add dkl phy programming sequences José Roberto de Souza
2019-09-20 21:44   ` Lucas De Marchi
2019-09-20 22:58     ` Souza, Jose
2019-09-19  0:07 ` [PATCH v2 09/13] drm/i915/icl: Unify disable and enable phy clock gating functions José Roberto de Souza
2019-09-20 18:15   ` Lucas De Marchi
2019-09-19  0:07 ` [PATCH v2 10/13] drm/i915/tgl: Check the UC health of tc controllers after power on José Roberto de Souza
2019-09-19 19:25   ` Imre Deak
2019-09-19 20:25     ` Imre Deak
2019-09-19 20:41       ` Souza, Jose
2019-09-19  0:07 ` [PATCH v2 11/13] drm/i915/tgl: Add dkl phy pll calculations José Roberto de Souza
2019-09-19 21:27   ` Lucas De Marchi
2019-09-19 21:36     ` Souza, Jose
2019-09-20  6:43       ` Lucas De Marchi
2019-09-19  0:07 ` José Roberto de Souza [this message]
2019-09-19  0:07 ` [PATCH v2 13/13] drm/i915/tgl: initialize TC and TBT ports José Roberto de Souza
2019-09-19  3:02 ` ✗ Fi.CI.CHECKPATCH: warning for TGL TC enabling (rev2) Patchwork
2019-09-19  3:25 ` ✓ Fi.CI.BAT: success " Patchwork
2019-09-19 13:54 ` ✓ Fi.CI.IGT: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190919000726.267988-13-jose.souza@intel.com \
    --to=jose.souza@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.