[Intel-gfx] [PATCH 68/89] drm/i915/skl: Apply eDP WA only for gen < 9

Paulo Zanoni przanoni at gmail.com
Tue Sep 23 20:11:49 CEST 2014


2014-09-04 8:27 GMT-03:00 Damien Lespiau <damien.lespiau at intel.com>:
> From: Vandana Kannan <vandana.kannan at intel.com>
>
> The eDP WA to stop link train based on port type is for HSW/BDW, not
> required for SKL+.
> Suggested by Satheesh
>
> v2: Simplified the check befoe stop_link_train. Suggested by Satheesh.
>
> v3: stop_link_train need not be called from intel_enable_ddi for gen >= 9

Reviewed-by: Paulo Zanoni <paulo.r.zanoni at intel.com>

>
> Suggested-by: Satheeshakrishna M <satheeshakrishna.m at intel.com>
> Reviewed-by: Satheeshakrishna M <satheeshakrishna.m at intel.com>
> Signed-off-by: Vandana Kannan <vandana.kannan at intel.com>
> Cc: Satheeshakrishna M <satheeshakrishna.m at intel.com>
> Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
> ---
>  drivers/gpu/drm/i915/intel_ddi.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
> index f68e04c..2561b40 100644
> --- a/drivers/gpu/drm/i915/intel_ddi.c
> +++ b/drivers/gpu/drm/i915/intel_ddi.c
> @@ -1491,7 +1491,7 @@ static void intel_ddi_pre_enable(struct intel_encoder *intel_encoder)
>                 intel_dp_sink_dpms(intel_dp, DRM_MODE_DPMS_ON);
>                 intel_dp_start_link_train(intel_dp);
>                 intel_dp_complete_link_train(intel_dp);
> -               if (port != PORT_A)
> +               if (port != PORT_A || INTEL_INFO(dev)->gen >= 9)
>                         intel_dp_stop_link_train(intel_dp);
>         } else if (type == INTEL_OUTPUT_HDMI) {
>                 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder);
> @@ -1567,7 +1567,7 @@ static void intel_enable_ddi(struct intel_encoder *intel_encoder)
>         } else if (type == INTEL_OUTPUT_EDP) {
>                 struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
>
> -               if (port == PORT_A)
> +               if (port == PORT_A && INTEL_INFO(dev)->gen < 9)
>                         intel_dp_stop_link_train(intel_dp);
>
>                 intel_edp_backlight_on(intel_dp);
> --
> 1.8.3.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx



-- 
Paulo Zanoni



More information about the Intel-gfx mailing list