Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Imre Deak <imre.deak@intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Disable TRAINING_PATTERN_SET before stopping the TPS transmission
Date: Mon, 18 Jan 2021 18:52:04 +0200	[thread overview]
Message-ID: <20210118165204.GA1070820@ideak-desk.fi.intel.com> (raw)
In-Reply-To: <20210118162107.18424-1-ville.syrjala@linux.intel.com>

On Mon, Jan 18, 2021 at 06:21:07PM +0200, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> DP spec says:
> "The Source device shall start sending the idle pattern after
>  it has cleared the Training_Pattern byte in the DPCD."
> 
> Currently we do these in operations in the opposite order.
> Swap them around to match the spec.
> 
> Cc: Imre Deak <imre.deak@intel.com>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

Makes sense:
Reviewed-by: Imre Deak <imre.deak@intel.com>

> ---
>  drivers/gpu/drm/i915/display/intel_dp_link_training.c | 11 +++++------
>  1 file changed, 5 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_dp_link_training.c b/drivers/gpu/drm/i915/display/intel_dp_link_training.c
> index d8c6d7054d11..2d3396bfc207 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp_link_training.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp_link_training.c
> @@ -697,9 +697,9 @@ static bool intel_dp_disable_dpcd_training_pattern(struct intel_dp *intel_dp,
>   * @intel_dp: DP struct
>   * @crtc_state: state for CRTC attached to the encoder
>   *
> - * Stop the link training of the @intel_dp port, disabling the test pattern
> - * symbol generation on the port and disabling the training pattern in
> - * the sink's DPCD.
> + * Stop the link training of the @intel_dp port, disabling the training
> + * pattern in the sink's DPCD, and disabling the test pattern symbol
> + * generation on the port.
>   *
>   * What symbols are output on the port after this point is
>   * platform specific: On DDI/VLV/CHV platforms it will be the idle pattern
> @@ -713,10 +713,9 @@ void intel_dp_stop_link_train(struct intel_dp *intel_dp,
>  {
>  	intel_dp->link_trained = true;
>  
> -	intel_dp_program_link_training_pattern(intel_dp,
> -					       crtc_state,
> -					       DP_TRAINING_PATTERN_DISABLE);
>  	intel_dp_disable_dpcd_training_pattern(intel_dp, DP_PHY_DPRX);
> +	intel_dp_program_link_training_pattern(intel_dp, crtc_state,
> +					       DP_TRAINING_PATTERN_DISABLE);
>  }
>  
>  static bool
> -- 
> 2.26.2
> 
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2021-01-18 16:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-18 16:21 [Intel-gfx] [PATCH] drm/i915: Disable TRAINING_PATTERN_SET before stopping the TPS transmission Ville Syrjala
2021-01-18 16:52 ` Imre Deak [this message]
2021-01-18 19:00 ` [Intel-gfx] ✓ Fi.CI.BAT: success for " Patchwork
2021-01-19  0:56 ` [Intel-gfx] ✓ 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=20210118165204.GA1070820@ideak-desk.fi.intel.com \
    --to=imre.deak@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=ville.syrjala@linux.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