Author: cem Date: Tue Jul 12 21:56:57 2016 New Revision: 302683 URL: https://svnweb.freebsd.org/changeset/base/302683
Log: ioat(4): Assert against ring underflow Modified: head/sys/dev/ioat/ioat.c Modified: head/sys/dev/ioat/ioat.c ============================================================================== --- head/sys/dev/ioat/ioat.c Tue Jul 12 21:56:55 2016 (r302682) +++ head/sys/dev/ioat/ioat.c Tue Jul 12 21:56:57 2016 (r302683) @@ -702,6 +702,11 @@ ioat_process_events(struct ioat_softc *i ioat->tail++; if (desc->hw_desc_bus_addr == status) break; + + KASSERT(ioat_get_active(ioat) > 0, ("overrunning ring t:%u " + "h:%u st:0x%016lx last_seen:%016lx completed:%u\n", + ioat->tail, ioat->head, comp_update, ioat->last_seen, + completed)); } ioat->last_seen = desc->hw_desc_bus_addr; _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"