[Intel-gfx] [PATCH] drm/i915/dp: Do not prune the preferred mode on the panel

Manasi Navare manasi.d.navare at intel.com
Fri Sep 29 00:01:08 UTC 2017


During the mode validation, we should never prune the
preferred mode that is the native mode of the eDP panel.
This can result into no modes being available for the eDP
connector.

Cc: Jani Nikula <jani.nikula at linux.intel.com>
Cc: Ville Syrjala <ville.syrjala at linux.intel.com>
Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
Signed-off-by: Manasi Navare <manasi.d.navare at intel.com>
---
 drivers/gpu/drm/i915/intel_dp.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 90e756c..621eb4d 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -405,6 +405,9 @@ intel_dp_mode_valid(struct drm_connector *connector,
 	max_rate = intel_dp_max_data_rate(max_link_clock, max_lanes);
 	mode_rate = intel_dp_link_required(target_clock, 18);
 
+	if (intel_dp_is_edp(intel_dp) && (mode->type & DRM_MODE_TYPE_PREFERRED))
+		return MODE_OK;
+
 	if (mode_rate > max_rate || target_clock > max_dotclk)
 		return MODE_CLOCK_HIGH;
 
-- 
2.1.4



More information about the Intel-gfx mailing list