summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller
Commit message (Collapse)AuthorAgeFilesLines
* r297229 (by hselasky): Add more UHCI PCI IDs.mav2016-03-291-0/+6
|
* MFC r297049: Add IDs for Intel Wellsburg USB controllers.mav2016-03-282-0/+6
|
* MFC r295463 (by hselasky): Correct PCI device description.mav2016-03-281-1/+1
|
* MFC r275137 (by adrian): Add PCI ID for Intel Lynx Point LP controller.mav2016-03-281-0/+2
| | | | PR: kern/195398
* MFC r295928:hselasky2016-03-072-0/+14
| | | | | | | | | | | Configure the correct bMaxPacketSize for control endpoints before requesting the initial complete device descriptor and not as part of the subsequent babble error recovery. Babble means that the received USB packet was bigger than than configured maximum packet size. This only affects enumeration of FULL speed USB devices which use a bMaxPacketSize different from 8 bytes. This patch might help fix enumeration of USB devices which exhibit USB I/O errors in dmesg during boot.
* MFC r293192:hselasky2016-01-121-6/+21
| | | | Fix for directly connected FULL or LOW speed USB devices.
* MFC r291199:hselasky2016-01-041-1/+1
| | | | Fix compile warning about shifting signed negative constant.
* MFC r290542:hselasky2015-11-192-39/+143
| | | | | | | Avoid using the bounce buffer when the source or destination buffer is 32-bits aligned. Merge the two bounce buffers into a single one. Some rough tests showed that the DWC OTG throughput on RPI2 increased by 10% after this patch.
* MFC r290195:hselasky2015-11-061-6/+11
| | | | | | | Reduce the DWC OTG interrupt load by not reading all the host channel status registers for every interrupt. Check a common host channel status interrupt register first, then conditionally read the individual host channel status registers.
* MFC r285914, r289029 and r289560:hselasky2015-11-032-82/+81
| | | | | | | | | | | | | | - Move the remainder of host controller capability registers reading from xhci_start_controller() to xhci_init(). These values don't change at run- time so there's no point of acquiring them on every USB_HW_POWER_RESUME instead of only once during initialization. In r276717, reading the first couple of registers in question already had been moved as a prerequisite for the changes in that revision. - Identify ASMedia ASM1042A controllers. - Use NULL instead of 0 for pointers. - Add quirks for USB 3.0 PCI devices. PR: 203650
* MFC r289030:kevlo2015-10-121-5/+10
| | | | | | | | | Add support for Fresco Logic USB 3.0 host controller. Fresco Logic hosts advertise MSI, but fail to actually generate MSI interrupts. We have to disable MSI use. Reviewed by: hselasky
* MFC r287355, r287772 and r287825:hselasky2015-10-082-0/+10
| | | | | | | | Add new USB PCI IDs. PR: 202807 Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> Differential Revision: https://reviews.freebsd.org/D3665
* MFC r286773:hselasky2015-08-291-4/+10
| | | | | Improve the realtime properties of USB transfers for embedded systems like RPI-B and RPI-2.
* MFC r283067, r286118, r285638, r285935, r286778, r286780 and r286802:hselasky2015-08-293-408/+374
| | | | | | | | | | | | - Make the FIFO configuration a bit more flexible for the DWC OTG in device side mode. - Limit the number of times we loop inside the DWC OTG poll handler to avoid starving other fast interrupts. Fix a comment while at it. - Optimise the DWC OTG host mode driver's transmit path - Optimise the DWC OTG host mode driver's receive path - Minor code refactor to avoid duplicating code. - Handle NYET high speed tokens and predict NAK'ing is up next. - Fixes for HIGH speed ISOCHRONOUS traffic.
* MFC r283922:hselasky2015-06-051-56/+52
| | | | | | | Fix for control endpoint handling in the DWC OTG driver. The data stage processing is only allowed after the setup complete event has been received. Else a race may occur and the OUT data can be corrupted. While at it ensure resetting a FIFO has the required wait loop.
* MFC r283103:hselasky2015-06-031-2/+31
| | | | | Fix for DWC OTG device side isochronous transfers. The even or odd isochronous frame bit needs to be flipped.
* MFC r281881:hselasky2015-05-051-9/+7
| | | | | | Disable multi process interrupts, because the current code doesn't use them. Else we can end up in an infinite interrupt loop in USB device mode.
* MFC r279563:hselasky2015-03-061-1/+12
| | | | Add quirk for USB 3.0 controllers which don't support 64-bit DMA.
* MFC r279544:hselasky2015-03-053-6/+12
| | | | | | Add quirk to disable 64-bit XHCI DMA after r276717. Requested by: Gary Jennejohn <gljennjohn@gmail.com>
* MFC r279210:hselasky2015-03-052-12/+49
| | | | | | Add support for the DWC OTG v2 chipset found in the STM32F4 series of processors. Make sure we pullup the data lines in device mode when we power on the port.
* MFC r279233:hselasky2015-02-271-0/+7
| | | | | | Ensure that the XHCI driver will refresh the control endpoint settings when re-enumerating a FULL speed device. Else the wrong max packet setting might be used when trying to re-enumerate a FULL speed device.
* MFC r278850:hselasky2015-02-251-1/+8
| | | | | | Handle VBUS error interrupts. PR: 190471
* MFC r277454, r277460, r277465, r277466, r277467, r277469, r277470, r277471,ian2015-02-131-17/+17
| | | | | | | | | | | | | | | | | | | | | r277472, r277473, r277474, r277475, r277476, r277477, r277478, r277479, r277480, r277512, r277516: Add inline implementations of arm bus_space_read/write_N(). Revise the arm bus_space implementation to avoid dereferencing the tag on every operation to retrieve the bs_cookie value almost nothing actually uses. Use the explicit member initializer style to init the bus_space struct. Use arm/bus_space-v6.c for all armv6 systems Consolidate many identical implementations of bus_space to a single common tag and implementation shared by armv4 and armv6. Micro-optimize the new arm inline bus_space implementation by grouping all the data the inline functions access together at the start of the bus_space struct so that they all fit in a single cache line.
* MFC r272103: Move s3c2xx0 into the samsung directory.ian2015-02-131-1/+1
|
* MFC r278477:hselasky2015-02-131-2/+2
| | | | Fix DMA address casts.
* MFC r278071:hselasky2015-02-101-1/+11
| | | | | | | Section 3.2.9 in the XHCI specification about control transfers says that we should use a normal-TRB if there are more TRBs extending the data-stage TRB. Add a dedicated state bit to the internal USB transfer flags to handle this case.
* MFC r277136:hselasky2015-02-051-0/+40
| | | | | | | | | | Resolve a special case deadlock: When two or more threads are simultaneously detaching kernel drivers on the same USB device we can get stuck in the "usb_wait_pending_ref_locked()" function because the conditions needed for allowing detach are not met. While at it ensure that "flag_iserror" is only written when "priv_mtx" is locked, which is protecting it.
* MFC r266969 and r276717:hselasky2015-02-0520-56/+82
| | | | | | Add 64-bit DMA support in the XHCI controller driver. - Fix some comments and whitespaces while at it. - Add support for PAE.
* MFC r276798:hselasky2015-01-191-6/+11
| | | | | Fix handling of an error case when the MUSB driver is operating in USB device side mode.
* MFC r271156 and r273376:hselasky2015-01-112-0/+9
| | | | | - Add IDs for Intel Patsburg USB 2.0 controller. - Add the Intel BayTrail USB device which needs port routing for USB 3.0.
* MFC r276321, r276404, r276407 and r276799:hselasky2015-01-113-29/+48
| | | | | | | | | | | | Various XHCI fixes and improvements: - Improve and fix MSI interrupt allocation, setup and release. - Add missed flushing of data which can happen when "xhci_configure_mask()" is called from "xhci_configure_reset_endpoint()". Ensure the 3-strikes error feature is always enabled except for ISOCHRONOUS transfers. - 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 r275624:hselasky2014-12-151-0/+1
| | | | | | Add port routing support for Wildcat Point. PR: 195793
* MFC r275101:mav2014-12-032-0/+6
| | | | Add bunch of PCI IDs of Intel Wildcat Point (9 Series) chipsets.
* MFC r269569:hselasky2014-10-311-2/+2
| | | | | | | | Remove unused defines. Fix some device_printf's that were missing '\n' at the end or had spelling errors. PR: 145319
* MFC r272349, r272422 and r272479:hselasky2014-10-062-8/+16
| | | | | | | | | | - Fix XHCI driver for devices which have more than 15 physical root HUB ports. The current bitmap array was too small to hold more than 16 bits and would at some point toggle the context size, which then would trigger an enumeration fault and cause a fallback to the EHCI companion controller, if any. - Make sure we always set the maximum number of valid contexts. - Set default cycle state in case of early interrupts.
* MFC r271953:hselasky2014-09-251-1/+8
| | | | | | | Some XHCI hardware requires dropping the endpoint context before adding it again. Approved by: re, glebius
* MFC r269565:hselasky2014-08-132-4/+4
| | | | Rename driver name a bit to avoid unit number confusion in dmesg.
* MFC r269604:hselasky2014-08-134-85/+127
| | | | | | | | - Implement fast interrupt handler to save CPU usage. - Cleanup some register reads and writes to use existing register access macros. - Ensure code which only applies to the control endpoint is not run for other endpoints in the data transfer path.
* MFC r257594:hselasky2014-08-121-0/+4
| | | | Add description of two EHCI PCI IDs.
* MFC r269139:hselasky2014-08-022-22/+22
| | | | | Split the XHCI TRB allocations into smaller parts, so that we don't end up allocating contiguous busdma buffers above PAGE_SIZE bytes.
* MFC r268735:hselasky2014-07-191-3/+6
| | | | | | | Improve support for Intel Lynx Point USB 3.0 controllers by using the USB 2.0 port mask in addition to the USB 3.0 port mask. The hardware does not always accept when writing -1U to the port switching registers.
* MFC r268354:hselasky2014-07-142-0/+5
| | | | | Improve support for Intel Lynx Point USB 3.0 controllers by masking the port routing bits like done in Linux.
* MFC: r267321marius2014-06-231-2/+3
| | | | | | | | | Avoid the USB device disconnected and controller shutdown clutter on system shutdown by putting the former under !rebooting and turning the latter into debug messages. Reviewed by: hps Sponsored by: Bally Wulff Games & Entertainment GmbH
* MFC r267240:hselasky2014-06-111-1/+7
| | | | | | | | | Resolve a deadlock setting the USB configuration index from userspace on USB HUBs by moving the code into the USB explore threads. The deadlock happens because child devices of the USB HUB don't have the expected reference count when called from outside the explore thread. Only the HUB device itself, which the IOCTL interface locks, gets the correct reference count.
* MFC r267212:hselasky2014-06-101-2/+2
| | | | Make WITNESS happy by giving USB mutexes different names.
* MFC r267044, r267120, r267210 and r267211:hselasky2014-06-082-240/+303
| | | | | | | Multiple fixes for FULL and LOW speed USB transfers going through the DWC OTG as split transactions. INTERRUPT transfers should have a higher chance of success after this series of patches and the chance of data loss should be reduced.
* MFC r266833:hselasky2014-06-041-27/+38
| | | | | Add some more spinlocks to protect the state of the USB transfer queue. Rename some functions to indicate locking requirements.
* MFC r266541:hselasky2014-05-251-11/+5
| | | | | | | | - Fix a bug where the TLBPC value was forced to being odd for IN direction isochronous transfers. - Remove setting of fields which does not belong to the respective TRBs. These fields are currently set as zero and this is more a cosmetic change.
* MFC r265358, r265427, r265777, r265783,hselasky2014-05-236-738/+1316
| | | | | | | | | | r265806, r265872, r266012 and r266394: - Multiple DWC OTG host mode related fixes, improvements and optimisations. - Add full support for ISOCHRONOUS transfers to the DWC OTG driver. - Use the interrupt filter to handle basic USB FIFO interrupts. - Fixed unbalanced unlock in case of "dwc_otg_init_fifo()" failure. - Add common spinlock to the USB bus structure.
* MFC 264977:ian2014-05-171-1/+1
| | | | | | Stop calling imx51_ccm_foo() clock functions from imx6 code. Instead define a few imx_ccm_foo() functions that are implemented by the imx51 or imx6 ccm code.
OpenPOWER on IntegriCloud