Commit dc22ee6fc18ce0f15424e753e8473c306ece95c1

Authored by Adam Jackson
Committed by Keith Packard
1 parent cd9dde44f4

drm/i915/dp: Remove eDP special cases from bandwidth checks

These were just working around the math being wrong.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Keith Packard <keithp@keithp.com>

Showing 1 changed file with 2 additions and 18 deletions Side-by-side Diff

drivers/gpu/drm/i915/intel_dp.c
... ... @@ -236,11 +236,8 @@
236 236 return MODE_PANEL;
237 237 }
238 238  
239   - /* only refuse the mode on non eDP since we have seen some weird eDP panels
240   - which are outside spec tolerances but somehow work by magic */
241   - if (!is_edp(intel_dp) &&
242   - (intel_dp_link_required(intel_dp, mode->clock)
243   - > intel_dp_max_data_rate(max_link_clock, max_lanes)))
  239 + if (intel_dp_link_required(intel_dp, mode->clock)
  240 + > intel_dp_max_data_rate(max_link_clock, max_lanes))
244 241 return MODE_CLOCK_HIGH;
245 242  
246 243 if (mode->clock < 10000)
... ... @@ -698,19 +695,6 @@
698 695 return true;
699 696 }
700 697 }
701   - }
702   -
703   - if (is_edp(intel_dp)) {
704   - /* okay we failed just pick the highest */
705   - intel_dp->lane_count = max_lane_count;
706   - intel_dp->link_bw = bws[max_clock];
707   - adjusted_mode->clock = intel_dp_link_clock(intel_dp->link_bw);
708   - DRM_DEBUG_KMS("Force picking display port link bw %02x lane "
709   - "count %d clock %d\n",
710   - intel_dp->link_bw, intel_dp->lane_count,
711   - adjusted_mode->clock);
712   -
713   - return true;
714 698 }
715 699  
716 700 return false;