--- 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);
 	}
