Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Jan 2015 18:54:57 +0000 (GMT)
From:      Rui Paulo <rpaulo@me.com>
To:        Hans Petter Selasky <hselasky@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r276407 - head/sys/dev/usb/controller
Message-ID:  <03ad1e28-01a1-476b-a0cb-fb827f18df81@me.com>

next in thread | raw e-mail | index | archive | help

On Dec 30, 2014, at 01:20 AM, Hans Petter Selasky <hselasky@FreeBSD.org> wrote:

Author: hselasky
Date: Tue Dec 30 09:20:29 2014
New Revision: 276407
URL: https://svnweb.freebsd.org/changeset/base/276407

Log:
Allow systems having a page size greater than 4K to use fewer
scatter-gather XHCI TRB entries for its payload data. The XHCI
controller can handle at least 65536 bytes per scatter-gather list
entry.

MFC after:  1 week
Suggested by:  Kohji Okuno <okuno.kohji@jp.panasonic.com>

Modified:
head/sys/dev/usb/controller/xhci.h

Modified: head/sys/dev/usb/controller/xhci.h
==============================================================================
--- head/sys/dev/usb/controller/xhci.h  Tue Dec 30 08:50:50 2014    (r276406)
+++ head/sys/dev/usb/controller/xhci.h  Tue Dec 30 09:20:29 2014    (r276407)
@@ -320,11 +320,23 @@ struct xhci_dev_endpoint_trbs {
  XHCI_MAX_TRANSFERS) + XHCI_MAX_STREAMS];
};

-#define    XHCI_TD_PAGE_NBUF      17        /* units, room enough for 64Kbytes */
-#define      XHCI_TD_PAGE_SIZE  4096    /* bytes */
-#define  XHCI_TD_PAYLOAD_MAX      (XHCI_TD_PAGE_SIZE * (XHCI_TD_PAGE_NBUF - 1))
+#if (USB_PAGE_SIZE < 4096)
+#error "The XHCI driver needs a pagesize above 4K"
+#endif

This error string is misleading: it should read "page size greater or equal to 4096 bytes".


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?03ad1e28-01a1-476b-a0cb-fb827f18df81>