intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: "Thulasimani, Sivakumar" <sivakumar.thulasimani@intel.com>
To: Jani Nikula <jani.nikula@intel.com>, intel-gfx@lists.freedesktop.org
Cc: drm-intel-fixes@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/i915/dp: abstract training pattern selection
Date: Fri, 5 Feb 2016 17:50:23 +0530	[thread overview]
Message-ID: <56B49387.1020008@intel.com> (raw)
In-Reply-To: <1454667370-8001-1-git-send-email-jani.nikula@intel.com>

Reviewed-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>

On 2/5/2016 3:46 PM, Jani Nikula wrote:
> Make it cleaner to add more checks in the function. No functional
> changes.
>
> Cc: Ander Conselvan de Oliveira <conselvan2@gmail.com>
> Cc: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
> Cc: drm-intel-fixes@lists.freedesktop.org # dependency on the next patch
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> ---
>   drivers/gpu/drm/i915/intel_dp_link_training.c | 25 ++++++++++++++++++-------
>   1 file changed, 18 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_dp_link_training.c b/drivers/gpu/drm/i915/intel_dp_link_training.c
> index 88887938e0bf..83e667b92fda 100644
> --- a/drivers/gpu/drm/i915/intel_dp_link_training.c
> +++ b/drivers/gpu/drm/i915/intel_dp_link_training.c
> @@ -215,16 +215,15 @@ intel_dp_link_training_clock_recovery(struct intel_dp *intel_dp)
>   	}
>   }
>   
> -static void
> -intel_dp_link_training_channel_equalization(struct intel_dp *intel_dp)
> +/*
> + * Pick training pattern for channel equalization. Training Pattern 3 for HBR2
> + * or 1.2 devices that support it, Training Pattern 2 otherwise.
> + */
> +static u32 intel_dp_training_pattern(struct intel_dp *intel_dp)
>   {
> -	bool channel_eq = false;
> -	int tries, cr_tries;
> -	uint32_t training_pattern = DP_TRAINING_PATTERN_2;
> +	u32 training_pattern = DP_TRAINING_PATTERN_2;
>   
>   	/*
> -	 * Training Pattern 3 for HBR2 or 1.2 devices that support it.
> -	 *
>   	 * Intel platforms that support HBR2 also support TPS3. TPS3 support is
>   	 * also mandatory for downstream devices that support HBR2.
>   	 *
> @@ -237,6 +236,18 @@ intel_dp_link_training_channel_equalization(struct intel_dp *intel_dp)
>   	else if (intel_dp->link_rate == 540000)
>   		DRM_ERROR("5.4 Gbps link rate without HBR2/TPS3 support\n");
>   
> +	return training_pattern;
> +}
> +
> +static void
> +intel_dp_link_training_channel_equalization(struct intel_dp *intel_dp)
> +{
> +	bool channel_eq = false;
> +	int tries, cr_tries;
> +	u32 training_pattern;
> +
> +	training_pattern = intel_dp_training_pattern(intel_dp);
> +
>   	/* channel equalization */
>   	if (!intel_dp_set_link_train(intel_dp,
>   				     training_pattern |

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

  parent reply	other threads:[~2016-02-05 12:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-05 10:16 [PATCH 1/2] drm/i915/dp: abstract training pattern selection Jani Nikula
2016-02-05 10:16 ` [PATCH 2/2] drm/i915/dp: reduce missing TPS3 support errors to debug logging Jani Nikula
2016-02-05 12:25   ` Thulasimani, Sivakumar
2016-02-05 10:47 ` ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915/dp: abstract training pattern selection Patchwork
2016-02-05 12:20 ` Thulasimani, Sivakumar [this message]
2016-02-05 12:49   ` [PATCH 1/2] " Jani Nikula

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=56B49387.1020008@intel.com \
    --to=sivakumar.thulasimani@intel.com \
    --cc=drm-intel-fixes@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@intel.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).