Date: Sat, 26 Jan 2013 05:06:54 +0900 From: Taku YAMAMOTO <taku@tackymt.homeip.net> To: FreeBSD Current <freebsd-current@freebsd.org> Subject: [PATCH] to fix slow gen2 Intel video (i830, i845, i85x, i865) with KMS Message-ID: <20130126050654.37ac83fd477464a911b49bf6@tackymt.homeip.net>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Hi all,
A good news to owners of i830, i845, i852, i855 and i865 (a.k.a. gen2),
who've got frustrated with the bad performance with KMS.
I managed to track down the root cause of the slowness of gen2 with KMS and
finally fixed it.
The attached one-liner patch is the fix.
(It was my surprise that the actual problem lied in agp rather than i915kms.)
--
-|-__ YAMAMOTO, Taku
| __ < <taku@tackymt.homeip.net>
- A chicken is an egg's way of producing more eggs. -
[-- Attachment #2 --]
--- sys/dev/agp/agp_i810.c.orig 2013-01-20 16:18:33.382363986 +0900
+++ sys/dev/agp/agp_i810.c 2013-01-25 05:47:17.046570619 +0900
@@ -2228,7 +2228,7 @@ agp_i830_chipset_flush(device_t dev)
bus_write_4(sc->sc_res[0], AGP_I830_HIC, hic | (1 << 31));
for (i = 0; i < 20000 /* 1 sec */; i++) {
hic = bus_read_4(sc->sc_res[0], AGP_I830_HIC);
- if ((hic & (1 << 31)) != 0)
+ if ((hic & (1 << 31)) == 0)
break;
DELAY(50);
}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130126050654.37ac83fd477464a911b49bf6>
