summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2014-11-18move arc4random prototype to systm.h. more appropriate for most codeTed Unangst
to include that than rdnvar.h. ok deraadt dlg
2014-11-18Use pa_device to ensure each MAC address of a multi port boardBrad Smith
is unique; as done by hme(4). ok deraadt@
2014-11-17Add quirks for the "Realtek ALC885" found on MacMini3.1, unmutes theLandry Breuil
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:Martin Pieuchot
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 justTheo de Raadt
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 ROMBrad Smith
for NS Saturn based boards. From NetBSD ok deraadt@
2014-11-15regenBrad Smith
2014-11-15Add Intel QS77 LPC.Brad Smith
2014-11-14regenMartin Pieuchot
2014-11-14Some BayTrail IDs, including xhci(4), found in inframare's dmesg on bugs@.Martin Pieuchot
2014-11-14add some more sdtemp devicesJonathan Gray
2014-11-12Remove SIOCSIFMTU handling and misuse of if_mtu values for MRUMike Belopuhov
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'tMartin Pieuchot
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 unresolvedStefan Sperling
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 whenMartin Pieuchot
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_msfMike Belopuhov
2014-11-10remove pointless timeout_del/add dance in the interrupt handlerMike Belopuhov
2014-11-10Inadvertent ampersand has made the check to always yield truthMike Belopuhov
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 definedMike Belopuhov
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 secondMike Belopuhov
2014-11-10remove ixgbe_sfp_probe since it's not called anywaysMike Belopuhov
2014-11-10Support USB 1.x devices below external hubs.Martin Pieuchot
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.Martin Pieuchot
2014-11-10Apparently xhci(4) also needs a hook to set the address of a device.Martin Pieuchot
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 dueMartin Pieuchot
to the way USB buses are discovered.
2014-11-09When a pipe is closed, clear the memory of the corresponding enpointMartin Pieuchot
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 toMike Larkin
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 ofMartin Pieuchot
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 splMartin Pieuchot
protection. Fix a panic reported by Patrick Wildt.
2014-11-07Give Super-Speed hubs a chance to route USB 3.0 transfers.Martin Pieuchot
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.Doug Hogan
ok mlarkin@
2014-11-06Add the required includes for the conditional parts ofJonathan Gray
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 forClaudio Jeker
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.Daniel Dickman
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 afterDavid Gwynne
when the caller fills the entry.
2014-11-04when reading the completion queue, it helps to write where we've read upDavid Gwynne
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 someBrad Smith
newer Yukon chipsets. Pointed out by jsg@
2014-11-01Use the correct default MaxPacketSize for Full Speed devices and make themMartin Pieuchot
work with xhci(4).
2014-11-01fix the build when SDMMC_DEBUG is definedJonathan Gray
2014-11-01Remove the port status argument from usbd_reset_port(). We don't doMartin Pieuchot
anything with it and it simplifies this mess in order to implement warm reset.
2014-11-01Super-Speed port feature definitions.Martin Pieuchot
2014-11-01Use usbd_set_port_feature() instead of rerolling it.Martin Pieuchot
2014-11-01Make it clear that dma buffers are link to xfers, no functional change.Martin Pieuchot
2014-10-31If an event is dequeued just/right after a device is detached, its pipesMartin Pieuchot
might be NULL. Prevent from crashing in this case 8)
2014-10-31atheros ub94 support, from Matt MarkfortTed Unangst
2014-10-31regenTed Unangst
2014-10-31add atheros ub94. from Matt MarkfortTed Unangst
2014-10-31Enable timeouts, just in case(tm).Martin Pieuchot
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.Martin Pieuchot
ok miod@
2014-10-31Use understandable messages when the per-xfer poison value is incorrect.Martin Pieuchot
Prodded by a comment from stsp@.