ioat(4): Assert against ring underflow

This commit is contained in:
Conrad Meyer 2016-07-12 21:56:57 +00:00
parent 08a6b96aa5
commit 3b188a672f

View File

@ -702,6 +702,11 @@ ioat_process_events(struct ioat_softc *ioat)
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;