summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2015-01-21Do not try to stop and reset endpoints if USB transfers are abortedMartin Pieuchot
because the HC has been shut down (during suspend/hibernate) or removed (PCIe card). In both cases the hardware wont complete the commands, resulting in timeouts. Instead just do the software part of the abort process. Unbreak suspend/resume with USB a device connected to xhci(4) as reported by Fabian Raetz on bugs@.
2015-01-21Add a comment above the autopad checking.Brad Smith
2015-01-21Use the RL_FLAG_AUTOPAD flag when trying to determine whenBrad Smith
to pad short frames.
2015-01-20Make ix(4) work on strict alignment architectures. The Intel networkingMark Kettenis
hardware is fairly retarded. While it allows receive buffers with an ETHER_ALIGN offset, it only allows the size of the buffers to be specified in multiples of 1K. This means that if we want to use standard mbuf clusters we will waste 1024 - ETHER_ALIGN bytes per cluster, which is a lot for the 2K clusters we use now. Compromise a bit by using 4K clusters on strict alignment architectures and tell the hardware to use 3K of those, reducing the spillage a bit. While this isn't optimal, at least on sparc64 where we have 8K pages, the pool page allocation overhead should be the same as on amd64/i386 where we have 4K pages and continue to use 2K mbuf clusters. ok mikeb@, dlg@
2015-01-20Check for out-of-range indices when searching the default dac and adc.Alexandre Ratchov
Fix from Alexey Suslikov <alexey.suslikov at gmail.com>. Thanks! tested by many, ok armani
2015-01-20rework the audio key handling to allocate a message to send to theDavid Gwynne
task, rather than abusing task arguments to carry long values around. this is unreliable, but so was the previous mechanism, just in a different way. if you're so low on memory that you cant change the volume, you probably have other more important problems going on too. tested by jim smith
2015-01-20Fix size of the bcopy when extracting the MAC address.Brad Smith
From FreeBSD
2015-01-20Remove use of the link change interrupt handling, not all controllersBrad Smith
support this interrupt. Link state changes are noticed via the PHY status change callback or via the timeout for re_tick(). From FreeBSD
2015-01-20Some fixes for handling link state changes.Brad Smith
2015-01-20And the variable too.Brad Smith
2015-01-20Back out a chunk of rev 1.34 that wasn't supposed to go in with theBrad Smith
capitalization corrections.
2015-01-20printf wasn't supposed to go in.Brad Smith
2015-01-20#include <sys/syslimits.h> to allow operation without requiring the noiseTheo de Raadt
of <sys/param.h>
2015-01-19`wellspring' Apple keyboards found on Macbook Air need slightly differentMiod Vallat
processing for Fn-key chords. From William Orr <will@worrbase.com>
2015-01-19Remove dead store causing clang to warn; dhillMiod Vallat
2015-01-19use SYMLOOP_MAX rather than MAXSYMLINKSTheo de Raadt
2015-01-18Do not trust the content of event TRBs coming from the hardware andMartin Pieuchot
maintain a list of possibly submitted commands.
2015-01-18Complete synchronous abort method modeled after the existing ones.Martin Pieuchot
Because our USB stack wants the aborted xfer to be removed from the pipe during abort(), we have to sleep in the abort function. Regarding the xHCI process, when a TD is being aborted, we simply stop the endpoint and then move the dequeue pointer past its last TRB. This is fairly simple for the moment since only one xfer can be pending on a given pipe.
2015-01-18Do not try to free xfers before aborting the pipes, otherwise a clownMartin Pieuchot
might eat you.
2015-01-18Since we are no longer resetting rings when a Babble or Stall conditionMartin Pieuchot
is detected, simply keep track of the faulty xfer instead of completing all the pending ones. Fix a race condition where we could end up aborting a freshly enqueued xfer when two different threads are submitting control transfers (i.e. usbdevs(8) and a kernel driver).
2015-01-17Split the consumer & producer logic into two different functions inMartin Pieuchot
order to read last TRB of the event ring. Fix a bug introduced in r1.1.
2015-01-17resume_randomness() before spinning up other cpus...Theo de Raadt
2015-01-16Move to using PATH_MAXTheo de Raadt
ok millert guenther
2015-01-15Remove a variable no longer used in re_tick().Brad Smith
From Fabian Raetz <fabian dot raetz at gmail dot com>
2015-01-15Fix subtle breakage for polled commands introduced during iopool conversion.Miod Vallat
2015-01-15Define a new wscons mouse type for Synaptics clickpad devices that lackJonathan Gray
physical buttons. This will be used if the acpi pnpid for the mouse matches a list provided by Synaptics found in Linux. Combined with the xenocara changes this will remove the need for an xorg config file for the x240/t440/t540 generation of thinkpads. ok matthieu@ shadchin@ kettenis@
2015-01-13Always allow abort tasks to be scheduled, even if the device is beeingMartin Pieuchot
detached, in order to prevent a deadlock situation. This situation can occur if the thread detaching a device is sleeping, waiting for all submitted transfers to finish, and the device's pipes have not yet been aborted. This can happen when a USB Ethernet device is being detached while a userland program is doing an ioctl(2). Abort tasks need to be able to run in such case since timed out transfers rely on them to be properly completed. ok deraadt@
2015-01-13Enable snooping on Bay Trail HD Audio.Jonathan Gray
Fixes audio problems on an Asus J1800I-C reported by Jan Stary.
2015-01-12Fix axen(4) build with AXEN_DEBUG defined. From Fabien Raetz.Stefan Sperling
2015-01-12regenJonathan Gray
2015-01-12add some E5 v3 PCIE and Bay Trail idsJonathan Gray
2015-01-12When setting up advanced TX descriptor use m_getptr to locate the IPMike Belopuhov
or IPv6 header instead of assuming contiguousness of the target buffer across Ethernet and IP/IPv6 headers. Tested by Kapetanakis Giannis <bilias at edu ! physics ! uoc ! gr>, thanks! Problem analysis and initial diff by dlg@.
2015-01-12pretty up some malloc() callsTheo de Raadt
2015-01-12Some fixes and tidying up of the receive filter handling bits.Brad Smith
2015-01-12stash the softc in the memory allocated for setting up a task forDavid Gwynne
creating sensors.
2015-01-11Tolerate checksum errors in ACPI tables (but complain about them). ApparentlyMark Kettenis
there are machines out there with broken BIOSen with such checksum errors in thier RSDT tables. Windows runs fine on these machines, so it probably does not check. Linux ignores checksum errors as well (and prints a warning). ok deraadt@, krw@
2015-01-11There's no simple way so check for DMA buffer overrun with isochronousMartin Pieuchot
transfers, so skip the check for such xfers for the moment. Issue reported by Ingo Feinerer and fix confirmed by Jan Stary.
2015-01-11global "list" is not the nicest variable nameTheo de Raadt
seen my mlarkin, ok miod
2015-01-11use mallocarray(), then set the size afterwards. Prefer if people learnTheo de Raadt
and use this idiom everywhere, it is always safest.
2015-01-11use mallocarray()Theo de Raadt
2015-01-11mallocarray() for the rx_buffer memoryTheo de Raadt
2015-01-11use mallocarray() when reallocating the mux tableTheo de Raadt
2015-01-11KUE_MCFILTCNT() is non-constant, so use mallocarray()Theo de Raadt
2015-01-11unnecessary castTheo de Raadt
2015-01-10Get the MAC address from the PCI ROM on systems without Open Firmware. CodeMark Kettenis
largely stolen from cas(4), but with a few tweaks.
2015-01-10Disable (most) interrupts when the interface goes down.Mark Kettenis
2015-01-10A few more loose ends.Mark Kettenis
2015-01-10Remove debug printfs.Mark Kettenis
2015-01-10Hook up nep(4).Mark Kettenis
2015-01-10Add support for promiscuous mode and multicase.Mark Kettenis