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 <taku@tackymt.homeip.net>
MFC after:	2 weeks
This commit is contained in:
Konstantin Belousov 2013-01-27 09:31:11 +00:00
parent 6a82e4291b
commit 5f451cd59b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245976

View File

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