From 5f451cd59b8634da628c571612980f2d60aa34fc Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Sun, 27 Jan 2013 09:31:11 +0000 Subject: [PATCH] Fix reversed condition in the logic to wait for the chipset buffers flush wait on the Gen2 chipsets. Confirmed by the inspection of the Linux agp code. Submitted by: Taku YAMAMOTO MFC after: 2 weeks --- sys/dev/agp/agp_i810.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/agp/agp_i810.c b/sys/dev/agp/agp_i810.c index 21c7ce60404..9ec3992c61d 100644 --- a/sys/dev/agp/agp_i810.c +++ b/sys/dev/agp/agp_i810.c @@ -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); }