svn commit: r353277 - releng/12.1/sys/dev/usb/controller

Hans Petter Selasky hselasky at FreeBSD.org
Mon Oct 7 15:03:24 UTC 2019


Author: hselasky
Date: Mon Oct  7 15:03:24 2019
New Revision: 353277
URL: https://svnweb.freebsd.org/changeset/base/353277

Log:
  MFS r353169:
  The maximum TD size is 31 and not 15.
  
  Found at:	EuroBSDcon 2019
  Sponsored by:	Mellanox Technologies
  Approved by:	re (gjb)

Modified:
  releng/12.1/sys/dev/usb/controller/xhci.c
Directory Properties:
  releng/12.1/   (props changed)

Modified: releng/12.1/sys/dev/usb/controller/xhci.c
==============================================================================
--- releng/12.1/sys/dev/usb/controller/xhci.c	Mon Oct  7 14:46:23 2019	(r353276)
+++ releng/12.1/sys/dev/usb/controller/xhci.c	Mon Oct  7 15:03:24 2019	(r353277)
@@ -2003,7 +2003,7 @@ restart:
 
 	/* clear TD SIZE to zero, hence this is the last TRB */
 	/* remove chain bit because this is the last data TRB in the chain */
-	td->td_trb[td->ntrb - 1].dwTrb2 &= ~htole32(XHCI_TRB_2_TDSZ_SET(15));
+	td->td_trb[td->ntrb - 1].dwTrb2 &= ~htole32(XHCI_TRB_2_TDSZ_SET(31));
 	td->td_trb[td->ntrb - 1].dwTrb3 &= ~htole32(XHCI_TRB_3_CHAIN_BIT);
 	/* remove CHAIN-BIT from last LINK TRB */
 	td->td_trb[td->ntrb].dwTrb3 &= ~htole32(XHCI_TRB_3_CHAIN_BIT);


More information about the svn-src-all mailing list