Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Aug 2010 18:25:59 GMT
From:      Hans Petter Selasky <hselasky@skunkworks.freebsd.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 182151 for review
Message-ID:  <201008111825.o7BIPxVe084057@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@182151?ac=10

Change 182151 by hselasky@hselasky_laptop001 on 2010/08/09 20:17:26

	USB controller (XHCI):
		- we also need to check if the ISOC transfer is queued to
		far in the future alike the OHCI driver.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/controller/xhci.c#24 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb/controller/xhci.c#24 (text+ko) ====

@@ -1687,7 +1687,8 @@
 		y = XHCI_MFINDEX_GET(x - xfer->endpoint->isoc_next);
 
 		if ((xfer->endpoint->is_synced == 0) ||
-		    (y < (xfer->nframes << shift))) {
+		    (y < (xfer->nframes << shift)) ||
+		    (XHCI_MFINDEX_GET(-y) >= (128 * 8))) {
 			/*
 			 * If there is data underflow or the pipe
 			 * queue is empty we schedule the transfer a



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