[Intel-gfx] [PATCH] drm/i915: Fix LVDS detect for pre-9XX mobile chips
Zhenyu Wang
zhenyu.z.wang at intel.com
Mon Mar 9 08:58:08 CET 2009
This brings fix from 2D driver:
Skip LVDS config parsing on pre-9xx chips.
Signed-off-by: Zhenyu Wang <zhenyu.z.wang at intel.com>
---
drivers/gpu/drm/i915/intel_bios.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c
index 6f668ee..bdc2ef2 100644
--- a/drivers/gpu/drm/i915/intel_bios.c
+++ b/drivers/gpu/drm/i915/intel_bios.c
@@ -156,12 +156,18 @@ static void
parse_driver_features(struct drm_i915_private *dev_priv,
struct bdb_header *bdb)
{
+ struct drm_device *dev = dev_priv->dev;
struct bdb_driver_features *driver;
/* set default for mobile chips */
- if (IS_MOBILE(dev_priv->dev) && !IS_I830(dev_priv->dev))
+ if (IS_MOBILE(dev) && !IS_I830(dev))
dev_priv->int_lvds_support = 1;
+ /* For pre-9xx mobile chips, LVDS config of driver feature
+ block is undefined. */
+ if (!IS_I9XX(dev))
+ return;
+
driver = find_section(bdb, BDB_DRIVER_FEATURES);
if (driver && driver->lvds_config != BDB_DRIVER_FEATURE_INT_LVDS)
dev_priv->int_lvds_support = 0;
--
1.6.1.3
More information about the Intel-gfx
mailing list