summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2014-11-18dc_init() calls dc_stop() and dc_reset() so remove some redundant callsbrad1-6/+2
to those functions before dc_init() within dc_watchdog() and dc_intr(). ok deraadt@
2014-11-18move arc4random prototype to systm.h. more appropriate for most codetedu19-53/+19
to include that than rdnvar.h. ok deraadt dlg
2014-11-18Use pa_device to ensure each MAC address of a multi port boardbrad1-1/+2
is unique; as done by hme(4). ok deraadt@
2014-11-17Add quirks for the "Realtek ALC885" found on MacMini3.1, unmutes thelandry1-1/+3
internal speaker, line input and hp output. Tested on i386/amd64. hints/help & ok ratchov@
2014-11-16Two fixes to make Qemu and VMware xHCI implementations work:mpi1-5/+12
1. Always unmask the slot context for the "Set Address" command. 2. Use the right spl when submitting a transfer to prevent from setting up a timer on an already completed xfer. Analyzed with and ok jsg@
2014-11-16Replace a plethora of historical protection options with justderaadt8-35/+35
PROT_NONE, PROT_READ, PROT_WRITE, and PROT_EXEC from mman.h. PROT_MASK is introduced as the one true way of extracting those bits. Remove UVM_ADV_* wrapper, using the standard names. ok doug guenther kettenis
2014-11-16Allow the driver to be able to retrieve the MAC address from the ROMbrad1-3/+9
for NS Saturn based boards. From NetBSD ok deraadt@
2014-11-15regenbrad2-2/+7
2014-11-15Add Intel QS77 LPC.brad1-2/+3
2014-11-14regenmpi2-2/+27
2014-11-14Some BayTrail IDs, including xhci(4), found in inframare's dmesg on bugs@.mpi1-1/+6
2014-11-14add some more sdtemp devicesjsg2-2/+12
2014-11-12Remove SIOCSIFMTU handling and misuse of if_mtu values for MRUmikeb2-39/+13
Since there's now no way to select maximum receive unit size the hardware is programmed to accept frame sizes up to 9216 which is now the maximum (down from 15.5K since this is supposed to work in all advanced configurations and gives slightly better flow control watermark ranges) and split all frames larger 2K into multiple fragments (code was already there but wasn't enabled). Tested on 82599 (SFP+) and X540 (10GBaseT). With input from dlg@.
2014-11-11When a bus is explored, do not probe the ports which status hasn'tmpi2-17/+34
changed. This saves a lot of I/O when attaching/detaching devices and might help with some timing related problems. Has been in snap for ten days, committing now so that people testing xhci(4) test the same thing w/ snapshots and their own kernel.
2014-11-11Stop athn(4) from attaching to AR9300 devices for now. There are unresolvedstsp1-3/+2
bugs that panic the kernel and it's unclear if any such device works at all. Anyone in possession of a working AR9300 device that stops working with this commit please talk to me. I've only seen evidence of this code not working. ok kirby@ mpi@ phessler@ dcoppa@
2014-11-11Do not reset the base address of the control endpoint's ring whenmpi1-2/+3
the second "Set Address" command is issued. This would lead the HC to reprocess TRBs corresponding to completed transfers. This was the cause of the "xhci0: NULL xfer pointer" message that could be seen after attaching a device and reported by naddy@.
2014-11-10add an additional error check into the ixgbe_handle_msfmikeb1-3/+6
2014-11-10remove pointless timeout_del/add dance in the interrupt handlermikeb1-5/+2
2014-11-10Inadvertent ampersand has made the check to always yield truthmikeb1-2/+2
This change fixes up SFP+ module detection during "ifconfig up" after the machine has been booted without the modules plugged in.
2014-11-10Gather full statistics only when IX_DEBUG is definedmikeb1-3/+7
since most of them can't be retrieved otherwise. This comes with a slight but measurable performance increase as well. Also since the hardware has a single counter for missed packets including those caused by the insufficient DMA buffers available, this makes it hard to decipher actual errors when used with Rx ring length limiting mechanisms like if_rxr or mclgeti.
2014-11-10don't try to update the link status every secondmikeb1-2/+1
2014-11-10remove ixgbe_sfp_probe since it's not called anywaysmikeb2-51/+3
2014-11-10Support USB 1.x devices below external hubs.mpi2-6/+32
This code is violating various layers of abstraction, just like ehci(4) does. Transaction translators need a bit more love.
2014-11-10Add some fields needed for TT support.mpi2-5/+8
2014-11-10Apparently xhci(4) also needs a hook to set the address of a device.mpi1-41/+85
Some Low/Full speed devices do not like to get a SET_ADDRESS command before we have read (some bits of) their device descriptor. So change the attach logic to issue two "Device Address" command with a BSR dance. This should fix the "device problem, disabling port" error seen on root hubs with some Low/Full speed devices, reported by miod@.
2014-11-10Remove USB locators. They are currently unused and this wont change duempi2-79/+7
to the way USB buses are discovered.
2014-11-09When a pipe is closed, clear the memory of the corresponding enpointmpi1-2/+2
context, not the whole array of endpoints. Yeah, pointers are hard. Fix a panic reported by Dimitris Papastamos on tech@
2014-11-08If resuming from sleep (zzz/ZZZ) and the lid is still closed, go back tomlarkin3-3/+29
sleep. This prevents accidental lid flex or slight opening in a backpack from waking the machine up and leaving it resumed (powered on). ok deraadt@
2014-11-07Document how the Slot States transitions described in section 4.5.3 ofmpi1-39/+64
xHCI specification r1.1 are handled in this implementation. This is a bit tricky because our bus interface is pipe-oriented. Hopefully this will help other people squash the remaining bugs in this area.
2014-11-07Prevent a race when submitting a command by using the appropriate splmpi1-9/+13
protection. Fix a panic reported by Patrick Wildt.
2014-11-07Give Super-Speed hubs a chance to route USB 3.0 transfers.mpi4-4/+34
Without knowing their depth, hubs couldn't find the bits correspdonding to their downstream port in the route-string. Now USB 3.0 devices just work(tm) anywhere in your hub chain. This commit would not have been possible without the cheese provided by miod@ at #HAMoween.
2014-11-06Cleanup whitespace and add 5 series comments.doug1-50/+54
ok mlarkin@
2014-11-06Add the required includes for the conditional parts ofjsg3-4/+28
struct vga_pci_softc in vga_pcivar.h Original diff from guenther@ changed to incorporate feedback from kettenis@ and myself.
2014-11-05Implement yet another workaround for the k1 em(4)'s. This time forclaudio2-4/+103
the i218 which is used in many modern laptops like the X240. This seems to stop the watchdog timeouts triggered by heavy traffic on such systems. Tested by myself, phessler, blambert and Donovan Watteau OK deraadt, brad
2014-11-05Functions that say they return void should not try to return something.daniel2-4/+5
ok deraadt@ "Even though I admire the chutzpah of return(void), I agree". ok krw@
2014-11-04shuffle when the cid is set on submission queue entries so its afterdlg1-3/+2
when the caller fills the entry.
2014-11-04when reading the completion queue, it helps to write where we've read updlg1-2/+2
to to the completion queue head doorbell instead of the submission queue tail doorbell. this lets us submit more than one command to the chip.
2014-11-04Commit a missing chunk of the diff I had sent out to recognize somebrad1-2/+2
newer Yukon chipsets. Pointed out by jsg@
2014-11-01Use the correct default MaxPacketSize for Full Speed devices and make themmpi1-3/+3
work with xhci(4).
2014-11-01fix the build when SDMMC_DEBUG is definedjsg2-3/+4
2014-11-01Remove the port status argument from usbd_reset_port(). We don't dompi4-32/+25
anything with it and it simplifies this mess in order to implement warm reset.
2014-11-01Super-Speed port feature definitions.mpi1-17/+52
2014-11-01Use usbd_set_port_feature() instead of rerolling it.mpi1-15/+3
2014-11-01Make it clear that dma buffers are link to xfers, no functional change.mpi1-8/+5
2014-10-31If an event is dequeued just/right after a device is detached, its pipesmpi1-2/+11
might be NULL. Prevent from crashing in this case 8)
2014-10-31atheros ub94 support, from Matt Markforttedu1-1/+3
2014-10-31regentedu2-4/+9
2014-10-31add atheros ub94. from Matt Markforttedu1-1/+2
2014-10-31Enable timeouts, just in case(tm).mpi1-30/+7
Even if it's very handy to know where a thread is sleeping in order to debug HC drivers, users might not like to have to restart their machine if a transfer timed and nothing will wakeup the discovery thread. Note that I still haven't seen any hardware timeout in all my tests.
2014-10-31Even in interrupt context curproc is not NULL.mpi1-9/+2
ok miod@