i915: fix ironlake edp panel setup (v4)
commitbce2d0a8ec0e4160fa84a054838d334e82fd6cc3
authorDave Airlie <airlied@redhat.com>
Wed, 30 Jun 2010 01:46:17 +0000 (30 11:46 +1000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:27:36 +0000 (13 13:27 -0700)
tree5a0bcbdc6cebb34e6f76e2775369a127c435201e
parent4bab121beebb1ee0dfad5493529d0bba8886bf49
i915: fix ironlake edp panel setup (v4)

commit fe27d53e5c597ee5ba5d72a29d517091f244e974 upstream.

The eDP spec claims a 20% overhead for the 8:10 encoding scheme used
on the wire. Take this into account when picking the lane/clock speed
for the panel.

v3: some panels are out of spec, try our best to deal with them, don't
refuse modes on eDP panels, and try the largest allowed settings if
all else fails on eDP.
v4: fix stupid typo, forgot to git add before amending.

Fixes several reports in bugzilla:

      https://bugs.freedesktop.org/show_bug.cgi?id=28070

Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Cc: Manoj Iyer <manoj.iyer@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/i915/intel_dp.c