From bc3636294ad7e27bc360a18f9d35f209017fbbad Mon Sep 17 00:00:00 2001 From: Sonika Jindal Date: Tue, 17 Mar 2015 11:40:32 +0530 Subject: [PATCH] Test commit for edp low vswing issue --- drivers/gpu/drm/i915/intel_bios.c | 3 +++ drivers/gpu/drm/i915/intel_ddi.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c index c684085..0cf940b 100644 --- a/drivers/gpu/drm/i915/intel_bios.c +++ b/drivers/gpu/drm/i915/intel_bios.c @@ -668,7 +668,10 @@ parse_edp(struct drm_i915_private *dev_priv, struct bdb_header *bdb) vswing = (edp->edp_vswing_preemph >> (panel_type * 4)) & 0xF; dev_priv->vbt.edp_low_vswing = vswing == 0; + DRM_DEBUG_KMS("SONIKA: edp_vswing_preemph:%u, vbt.edp_low_vswing:%d, panel_type:%d\n", edp->edp_vswing_preemph, dev_priv->vbt.edp_low_vswing, panel_type); } + DRM_DEBUG_KMS("SONIKA: Disabling low vswing\n"); + dev_priv->vbt.edp_low_vswing = false; } static void diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index 8aee7d7..185a51b 100644 --- a/drivers/gpu/drm/i915/intel_ddi.c +++ b/drivers/gpu/drm/i915/intel_ddi.c @@ -207,9 +207,11 @@ static void intel_prepare_ddi_buffers(struct drm_device *dev, enum port port) ddi_translations_dp = skl_ddi_translations_dp; n_dp_entries = ARRAY_SIZE(skl_ddi_translations_dp); if (dev_priv->vbt.edp_low_vswing) { + DRM_DEBUG_KMS("SONIKA: LOW VSWING SELECTED\n"); ddi_translations_edp = skl_ddi_translations_edp; n_edp_entries = ARRAY_SIZE(skl_ddi_translations_edp); } else { + DRM_DEBUG_KMS("SONIKA: DEFAULT DP transnlation selected\n"); ddi_translations_edp = skl_ddi_translations_dp; n_edp_entries = ARRAY_SIZE(skl_ddi_translations_dp); } -- 1.7.10.4