svn commit: r302684 - head/sys/dev/ioat

Conrad E. Meyer cem at FreeBSD.org
Tue Jul 12 21:57:02 UTC 2016


Author: cem
Date: Tue Jul 12 21:57:00 2016
New Revision: 302684
URL: https://svnweb.freebsd.org/changeset/base/302684

Log:
  ioat(4): Enhance KTR logging for descriptor completions

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:57 2016	(r302683)
+++ head/sys/dev/ioat/ioat.c	Tue Jul 12 21:57:00 2016	(r302684)
@@ -693,7 +693,8 @@ ioat_process_events(struct ioat_softc *i
 	while (1) {
 		desc = ioat_get_ring_entry(ioat, ioat->tail);
 		dmadesc = &desc->bus_dmadesc;
-		CTR1(KTR_IOAT, "completing desc %d", ioat->tail);
+		CTR3(KTR_IOAT, "completing desc %u ok  cb %p(%p)", ioat->tail,
+		    dmadesc->callback_fn, dmadesc->callback_arg);
 
 		if (dmadesc->callback_fn != NULL)
 			dmadesc->callback_fn(dmadesc->callback_arg, 0);
@@ -763,7 +764,8 @@ out:
 	while (ioat_get_active(ioat) > 0) {
 		desc = ioat_get_ring_entry(ioat, ioat->tail);
 		dmadesc = &desc->bus_dmadesc;
-		CTR1(KTR_IOAT, "completing err desc %d", ioat->tail);
+		CTR3(KTR_IOAT, "completing desc %u err cb %p(%p)", ioat->tail,
+		    dmadesc->callback_fn, dmadesc->callback_arg);
 
 		if (dmadesc->callback_fn != NULL)
 			dmadesc->callback_fn(dmadesc->callback_arg,


More information about the svn-src-all mailing list