From 2d0aa553609a0e64fa4b2e755b9b1e244e5c3fa1 Mon Sep 17 00:00:00 2001 From: Zhenyu Wang Date: Mon, 2 Mar 2009 15:26:44 +0800 Subject: [PATCH] Skip LVDS config parsing on pre-9xx chips. 855GM laptops seems pretty broken when parsing this block. --- src/i830_bios.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/i830_bios.c b/src/i830_bios.c index a990ebec..7f20553a 100644 --- a/src/i830_bios.c +++ b/src/i830_bios.c @@ -174,9 +174,13 @@ parse_driver_feature(I830Ptr pI830, struct bdb_header *bdb) struct bdb_driver_feature *feature; /* For mobile chip, set default as true */ - if (IS_MOBILE(pI830)) + if (IS_MOBILE(pI830) && !IS_I830(pI830)) pI830->integrated_lvds = TRUE; + /* skip pre-9xx chips which is broken to parse this block. */ + if (!IS_I9XX(pI830)) + return; + feature = find_section(bdb, BDB_DRIVER_FEATURES); if (!feature) return;