| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PCIe allows for MSI-X BAR to be either dedicated, or MSI-X Table may
be co-located in some functional BAR. In the later case xhci(4) is
unable to allocate active resource for the table because BAR is
already activated.
Handle it by checking for this special case, and not try to alloc
resource if MSI-X BAR is IO.
Reported and tested by: emaste
Reviewed by: emaste, hselasky
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D26913
Notes:
svn path=/head/; revision=366978
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The newer hardware revisions of the Raspberry Pi 4 removed the ability of
the VIA VL805 xhci controller to load its own firmware. Instead the
firmware must be installed at the appropriate time by the VideoCore
coprocessor.
Submitted by: Robert Crowston <crowston_protonmail.com>
Differential Revision: https://reviews.freebsd.org/D25261
Notes:
svn path=/head/; revision=363795
|
|
|
|
|
|
|
|
|
| |
Differential Revision: https://reviews.freebsd.org/D23564
MFC after: 1 week
Sponsored by: Mellanox Technologies
Notes:
svn path=/head/; revision=357726
|
|
|
|
|
|
|
|
|
| |
Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after: 1 week
Sponsored by: Mellanox Technologies
Notes:
svn path=/head/; revision=350675
|
|
|
|
|
|
|
|
|
| |
Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after: 1 week
Sponsored by: Mellanox Technologies
Notes:
svn path=/head/; revision=345633
|
|
|
|
|
|
|
|
|
| |
Submitted by: Greg V <greg@unrelenting.technology>
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D15398
Notes:
svn path=/head/; revision=336225
|
|
|
|
| |
Notes:
svn path=/head/; revision=334293
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
through a SYSCTL instead of a compile time define.
Add quirk by default for all LynxPoint XHCI controllers.
PR: 227602
MFC after: 3 days
Sponsored by: Mellanox Technologies
Notes:
svn path=/head/; revision=333100
|
|
|
|
|
|
|
|
|
| |
A follow-up to r327094.
Sponsored by: Dell EMC Isilon
Notes:
svn path=/head/; revision=327364
|
|
|
|
|
|
|
| |
MFC after: 2 weeks
Notes:
svn path=/head/; revision=327094
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.
The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.
Notes:
svn path=/head/; revision=326255
|
|
|
|
|
|
|
|
|
| |
While there, polish some old AHCI ones, since they are still reused.
MFC after: 1 week
Notes:
svn path=/head/; revision=322308
|
|
|
|
| |
Notes:
svn path=/head/; revision=320178
|
|
|
|
| |
Notes:
svn path=/head/; revision=318276
|
|
|
|
|
|
|
| |
MFC after: 1 month
Notes:
svn path=/head/; revision=314345
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
sure the XHCI controller is reset after halting it. The problem is
clearly a BIOS bug as the suspend and resume is failing without
loading the XHCI driver. The same happens when using Linux and the
XHCI driver is not loaded.
Submitted by: Yanko Yankulov <yanko.yankulov@gmail.com>
PR: 216261
MFC after: 1 week
Notes:
svn path=/head/; revision=312424
|
|
|
|
| |
Notes:
svn path=/head/; revision=308464
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When detaching device trees parent devices must be detached prior to
detaching its children. This is because parent devices can have
pointers to the child devices in their softcs which are not
invalidated by device_delete_child(). This can cause use after free
issues and panic().
Device drivers implementing trees, must ensure its detach function
detaches or deletes all its children before returning.
While at it remove now redundant device_detach() calls before
device_delete_child() and device_delete_children(), mostly in
the USB controller drivers.
Tested by: Jan Henrik Sylvester <me@janh.de>
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D8070
MFC after: 2 weeks
Notes:
svn path=/head/; revision=307518
|
|
|
|
|
|
|
| |
MFC after: 2 weeks
Notes:
svn path=/head/; revision=298983
|
|
|
|
|
|
|
| |
MFC after: 2 weeks
Notes:
svn path=/head/; revision=297387
|
|
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=297049
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
available. As with MSI interrupts these can be disabled by setting
hw.usb.xhci.msix to 0 in the loader.
MSI-X interrupts are needed on some hardware, for example the Cavium
ThunderX only supports them, and with this we don't fall back to polling.
PR: 204378
Reviewed by: hselasky, jhb
MFC after: 1 week (after r292669)
Sponsored by: ABT Systems Ltd
Differential Revision: https://reviews.freebsd.org/D4698
Notes:
svn path=/head/; revision=292683
|
|
|
|
|
|
|
|
|
| |
Submitted by: philipp.maechler@mamo.li
PR: 203650
MFC after: 1 week
Notes:
svn path=/head/; revision=289560
|
|
|
|
|
|
|
|
|
|
| |
Fresco Logic hosts advertise MSI, but fail to actually generate MSI
interrupts. We have to disable MSI use.
Reviewed by: hselasky
Notes:
svn path=/head/; revision=289030
|
|
|
|
|
|
|
|
| |
Submitted by: Gary Jennejohn <gj@freebsd.org>
MFC after: 1 week
Notes:
svn path=/head/; revision=289029
|
|
|
|
|
|
|
|
|
|
|
|
| |
There is an issue with interrupts at the moment, but it works with
polling mode set (hw.usb.xhci.use_polling=1).
Reviewed by: hselasky
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3665
Notes:
svn path=/head/; revision=287825
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
MFC after: 3 days
Notes:
svn path=/head/; revision=285914
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
'BUS_PROBE_DEFAULT'. This allows bhyve's 'ppt' driver to claim ownership
of the device and pass it through to the guest.
In the common case where there are no competing drivers for USB controllers
this change is a no-op.
Reviewed by: hselasky
MFC after: 2 weeks
Notes:
svn path=/head/; revision=281499
|
|
|
|
|
|
|
|
| |
MFC after: 3 days
Submitted by: Gary Jennejohn <gljennjohn@gmail.com>
Notes:
svn path=/head/; revision=279563
|
|
|
|
|
|
|
|
| |
Requested by: Gary Jennejohn <gljennjohn@gmail.com>
MFC after: 3 days
Notes:
svn path=/head/; revision=279544
|
|
|
|
|
|
|
|
|
|
| |
- Fix some comments and whitespace while at it.
MFC after: 1 month
Submitted by: marius@
Notes:
svn path=/head/; revision=276717
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Simplify MSI allocation to what is actually needed for a single one.
- Release the MSI and the corresponding bus resource as appropriate when
either the interrupt resource cannot be allocated or setting up the
interrupt fails.
- Error out when interrupt allocation or setup fails and polling is
disabled.
- Release the MSI after the corresponding bus resource so the former is
not leaked on detach.
- Remove a redundant softc member.
MFC after: 3 days
Notes:
svn path=/head/; revision=276321
|
|
|
|
|
|
|
|
| |
PR: 195793
MFC after: 1 week
Notes:
svn path=/head/; revision=275624
|
|
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=275101
|
|
|
|
|
|
|
|
| |
Tested on the BayTrail E3845 platform.
Reviewed by: hselasky
Notes:
svn path=/head/; revision=273376
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 after: 3 days
Tested by: Huang Wen Hui <huanghwh@gmail.com>
Notes:
svn path=/head/; revision=268735
|
|
|
|
|
|
|
|
|
|
| |
the port routing bits like done in Linux.
MFC after: 1 week
Tested by: Tur-Wei Chan <twchan@singnet.com.sg>
Notes:
svn path=/head/; revision=268354
|
|
|
|
|
|
|
|
|
|
| |
LynxPoint USB 3.0 controllers found in MacBookPro 2013's.
MFC after: 2 days
Tested by: Huang Wen Hui <huanghwh@gmail.com>
Notes:
svn path=/head/; revision=265015
|
|
|
|
|
|
|
|
|
| |
PR: usb/186811
MFC after: 1 week
Submitted by: Philipp Maechler <philipp.maechler@mamo.li>
Notes:
svn path=/head/; revision=261981
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
routing if we get certain errors. Poll for command completion upon
command timeouts. The XHCI error events might not generate interrupts.
MFC after: 1 week
Reported by: Daniel Gerzo <danger@rulez.sk>, Antonis Anastasiadis <anastasiadis@datalive.gr>
PR: usb/181159
Approved by: re (gjb)
Notes:
svn path=/head/; revision=255768
|
|
|
|
|
|
|
|
|
| |
Requested and tested by: delphij
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Notes:
svn path=/head/; revision=253398
|
|
|
|
|
|
|
|
|
|
| |
Reviewed by: jhb
Tested by: dchagin
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Notes:
svn path=/head/; revision=253094
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the regular interrupt handler is not working properly or
in case of MSI interrupts which are not yet supported.
Remove interrupt setup code for FreeBSD versions older
than 700031.
MFC after: 1 week
PR: usb/179342
Notes:
svn path=/head/; revision=251499
|
|
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=249336
|
|
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=239617
|
|
|
|
|
|
|
|
|
| |
capability and reroute USB 2.0 ports to the xHCI controller.
Reviewed by: hselasky
Notes:
svn path=/head/; revision=238551
|
|
|
|
|
|
|
| |
MFC after: 3 days
Notes:
svn path=/head/; revision=238015
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch should remove the need for kldunload of USB
controller drivers at suspend and kldload of USB controller
drivers at resume.
This patch also fixes some build issues in avr32dci.c
MFC after: 2 weeks
Notes:
svn path=/head/; revision=228483
|
|
|
|
|
|
|
|
| |
Suggested by: jhb @ and marius @
MFC after: 1 week
Notes:
svn path=/head/; revision=227849
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
one. Interestingly, these are actually the default for quite some time
(bus_generic_driver_added(9) since r52045 and bus_generic_print_child(9)
since r52045) but even recently added device drivers do this unnecessarily.
Discussed with: jhb, marcel
- While at it, use DEVMETHOD_END.
Discussed with: jhb
- Also while at it, use __FBSDID.
Notes:
svn path=/head/; revision=227843
|