All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i915: fix ironlake edp panel setup.
@ 2010-06-25  6:21 Dave Airlie
  2010-06-25  6:59 ` Keith Packard
  2010-06-26  9:56 ` Zhenyu Wang
  0 siblings, 2 replies; 5+ messages in thread
From: Dave Airlie @ 2010-06-25  6:21 UTC (permalink / raw)
  To: intel-gfx

From: Dave Airlie <airlied@redhat.com>

We've just gotten an eDP laptop, and kms was booting to a black screen.

as much as I hate Keith's magic * 3, it seems to work a lot better than the non-magic.

aligning the non-magic seems to make things a lot happier, and aligns better with what the bios appears to do, since the bios ends up using thehigher clock in VGA mode.

Signed-off-by: Dave Airlie <airlied@redhat.com>
---
 drivers/gpu/drm/i915/intel_dp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 6094e42..80e122d 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -133,7 +133,7 @@ intel_dp_link_required(struct drm_device *dev,
 	struct intel_dp_priv *dp_priv = intel_encoder->dev_priv;
 
 	if (IS_eDP(intel_encoder) || IS_PCH_eDP(dp_priv))
-		return (pixel_clock * dev_priv->edp_bpp) / 8;
+		return (pixel_clock * ALIGN(dev_priv->edp_bpp, 8)) / 8;
 	else
 		return pixel_clock * 3;
 }
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-06-27 23:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-25  6:21 [PATCH] i915: fix ironlake edp panel setup Dave Airlie
2010-06-25  6:59 ` Keith Packard
2010-06-25 11:16   ` Ben Guthro
2010-06-26  9:56 ` Zhenyu Wang
2010-06-27 23:46   ` Dave Airlie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.