All of lore.kernel.org
 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 2/2] drm/i915/dp: reduce missing TPS3 support errors to debug logging
Date: Fri, 5 Feb 2016 17:55:11 +0530	[thread overview]
Message-ID: <56B494A7.5000102@intel.com> (raw)
In-Reply-To: <1454667370-8001-2-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:
> Per spec, TPS3 support is mandatory for downstream devices that support
> HBR2. We've therefore logged errors on HBR2 without TPS3 since
>
> commit 1da7d7131c35cde83f1bab8ec732b57b69bef814
> Author: Jani Nikula <jani.nikula@intel.com>
> Date:   Thu Sep 3 11:16:08 2015 +0300
>
>      drm/i915: ignore link rate in TPS3 selection
>
> However, it seems there are real world devices out there that just
> aren't spec compliant, and still work at HBR2 using TPS2. So reduce the
> error message to debug logging.
>
> Cc: Ander Conselvan de Oliveira <conselvan2@gmail.com>
> Cc: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92932
> Fixes: 1da7d7131c35 ("drm/i915: ignore link rate in TPS3 selection")
> Cc: drm-intel-fixes@lists.freedesktop.org
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> ---
>   drivers/gpu/drm/i915/intel_dp_link_training.c | 20 ++++++++++++++------
>   1 file changed, 14 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_dp_link_training.c b/drivers/gpu/drm/i915/intel_dp_link_training.c
> index 83e667b92fda..0b8eefc2acc5 100644
> --- a/drivers/gpu/drm/i915/intel_dp_link_training.c
> +++ b/drivers/gpu/drm/i915/intel_dp_link_training.c
> @@ -222,19 +222,27 @@ intel_dp_link_training_clock_recovery(struct intel_dp *intel_dp)
>   static u32 intel_dp_training_pattern(struct intel_dp *intel_dp)
>   {
>   	u32 training_pattern = DP_TRAINING_PATTERN_2;
> +	bool source_tps3, sink_tps3;
>   
>   	/*
>   	 * Intel platforms that support HBR2 also support TPS3. TPS3 support is
> -	 * also mandatory for downstream devices that support HBR2.
> +	 * also mandatory for downstream devices that support HBR2. However, not
> +	 * all sinks follow the spec.
>   	 *
>   	 * Due to WaDisableHBR2 SKL < B0 is the only exception where TPS3 is
> -	 * supported but still not enabled.
> +	 * supported in source but still not enabled.
>   	 */
> -	if (intel_dp_source_supports_hbr2(intel_dp) &&
> -	    drm_dp_tps3_supported(intel_dp->dpcd))
> +	source_tps3 = intel_dp_source_supports_hbr2(intel_dp);
> +	sink_tps3 = drm_dp_tps3_supported(intel_dp->dpcd);
> +
> +	if (source_tps3 && sink_tps3) {
>   		training_pattern = DP_TRAINING_PATTERN_3;
> -	else if (intel_dp->link_rate == 540000)
> -		DRM_ERROR("5.4 Gbps link rate without HBR2/TPS3 support\n");
> +	} else if (intel_dp->link_rate == 540000) {
> +		if (!source_tps3)
> +			DRM_DEBUG_KMS("5.4 Gbps link rate without source HBR2/TPS3 support\n");
> +		if (!sink_tps3)
> +			DRM_DEBUG_KMS("5.4 Gbps link rate without sink TPS3 support\n");
> +	}
>   
>   	return training_pattern;
>   }

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

  reply	other threads:[~2016-02-05 12:25 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 [this message]
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 ` [PATCH 1/2] " Thulasimani, Sivakumar
2016-02-05 12:49   ` 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=56B494A7.5000102@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 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.