From 0e3e70a00cff83bca83e6f411a1e77756b9575ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sun, 24 Nov 2013 14:55:15 +0100 Subject: [PATCH] USB Stack: enable xHCI module lookup. * also increase PhysicalMemoryAllocator max to 128KB instead of 16KB. This translates in a 8MB-sized USB Stack Allocator area. * tested OK on a Fresco Logic FL1009 USB 3.0 Host Controller but KO on a Nec Corporation uPD720200 USB 3.0 Host Controller. * tested a synched copy to a BFS partition on a Lacie USB3 disk takes about 8 seconds for 350MB versus 11 seconds on eHCI. --- src/add-ons/kernel/bus_managers/usb/Stack.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/add-ons/kernel/bus_managers/usb/Stack.cpp b/src/add-ons/kernel/bus_managers/usb/Stack.cpp index fbad834985..04ad0758d7 100644 --- a/src/add-ons/kernel/bus_managers/usb/Stack.cpp +++ b/src/add-ons/kernel/bus_managers/usb/Stack.cpp @@ -42,7 +42,7 @@ Stack::Stack() memset(fObjectArray, 0, objectArraySize); fAllocator = new(std::nothrow) PhysicalMemoryAllocator("USB Stack Allocator", - 8, B_PAGE_SIZE * 4, 64); + 8, B_PAGE_SIZE * 32, 64); if (!fAllocator || fAllocator->InitCheck() < B_OK) { TRACE_ERROR("failed to allocate the allocator\n"); delete fAllocator; @@ -64,6 +64,7 @@ Stack::Stack() "busses/usb/uhci", "busses/usb/ohci", "busses/usb/ehci", + "busses/usb/xhci", NULL };