Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jul 2016 21:56:57 +0000 (UTC)
From:      "Conrad E. Meyer" <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r302683 - head/sys/dev/ioat
Message-ID:  <201607122156.u6CLuvnS028921@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607122156.u6CLuvnS028921>