Author: hselasky
Date: Mon Oct  7 08:11:12 2019
New Revision: 353171
URL: https://svnweb.freebsd.org/changeset/base/353171

Log:
  MFC r352554:
  The maximum TD size is 31 and not 15.
  
  Found at:     EuroBSDcon 2019
  Sponsored by: Mellanox Technologies

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

Modified: stable/10/sys/dev/usb/controller/xhci.c
==============================================================================
--- stable/10/sys/dev/usb/controller/xhci.c     Mon Oct  7 08:10:26 2019        
(r353170)
+++ stable/10/sys/dev/usb/controller/xhci.c     Mon Oct  7 08:11:12 2019        
(r353171)
@@ -2007,7 +2007,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);
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to