summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2015-01-28drm/radeon: fix VGT_GS_INSTANCE_CNT registerjsg4-4/+4
From Dave Airlie b7bc799903bbae16795cb15705ddcab80c8f17f1 in mainline linux
2015-01-27Ignore buttons for which _STA indicates they're not present, enabled orkettenis1-17/+10
functioning. Fixes suspend/resume on a Dell PowerEdge T20. ok mlarkin@, sthen@
2015-01-27Vommiting errors about failed reset or stall clear are not usefull tompi1-10/+12
the user and do not give enough informations to debug a problem. Only print such messages in DEBUG mode.
2015-01-27remove #include <sys/workq.h>. it wont exist anymore soon.dlg1-2/+1
2015-01-27i forgot to fix ipw when i removed the second task argument.dlg1-7/+7
poke from deraadt@
2015-01-27remove the second void * argument on tasks.dlg38-186/+181
when workqs were introduced, we provided a second argument so you could pass a thing and some context to work on it in. there were very few things that took advantage of the second argument, so when i introduced pools i suggested removing it. since tasks were meant to replace workqs, it was requested that we keep the second argument to make porting from workqs to tasks easier. now that workqs are gone, i had a look at the use of the second argument again and found only one good use of it (vdsp(4) on sparc64 if you're interested) and a tiny handful of questionable uses. the vast majority of tasks only used a single argument. i have since modified all tasks that used two args to only use one, so now we can remove the second argument. so this is a mechanical change. all tasks only passed NULL as their second argument, so we can just remove it. ok krw@
2015-01-27Rewrite receive filter handling and ioctl bits.brad1-54/+34
2015-01-26Set PCIe max read request size to 2K to help with TX performance.brad2-3/+24
From FreeBSD Tested with 8168C, 8168D and 8168G.
2015-01-26Update the Samsung SSD controller comment.brad1-3/+4
2015-01-25Correct a bit test for DDR2 CAS Latency and recognise CL7 and CL6.jsg1-3/+3
While the spec only mentions bits for CL5->CL2 with the other bits being marked 'TBD' it seems likely they are used now. From David Vasek.
2015-01-24Use bus_dmamem_alloc_range(9) to make sure the ring descriprtors can bekettenis1-3/+4
accessed by the device. ok deraadt@, stsp@
2015-01-24Remove a comment that is no longer true with MCLGETI and jumbos onbrad1-7/+1
some revisions of the chipsets.
2015-01-23break after return is useless.dlg1-2/+1
2015-01-22Replace some obvious '$OpenBSD' and '$OpenBSD:' typos with '$OpenBSD$'.krw2-2/+2
Pointed out by dickman@. ok sthen@ phessler@
2015-01-22Reduce the number of intermediate buffers by pre-allocating DMA buffersmpi3-50/+61
in the report functions instead of letting the stack do it magically for us. Reviewed and tested by David Higgs, thanks!
2015-01-22Use correct error type and remove unused interface pointer.mpi1-5/+3
From Fabian Raetz.
2015-01-21Do not try to stop and reset endpoints if USB transfers are abortedmpi1-2/+4
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.brad1-1/+13
2015-01-21Use the RL_FLAG_AUTOPAD flag when trying to determine whenbrad1-4/+4
to pad short frames.
2015-01-20Make ix(4) work on strict alignment architectures. The Intel networkingkettenis1-22/+17
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.ratchov1-17/+35
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 thedlg1-22/+32
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.brad1-2/+2
From FreeBSD
2015-01-20Remove use of the link change interrupt handling, not all controllersbrad2-12/+5
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.brad1-5/+3
2015-01-20And the variable too.brad1-3/+1
2015-01-20Back out a chunk of rev 1.34 that wasn't supposed to go in with thebrad1-11/+1
capitalization corrections.
2015-01-20printf wasn't supposed to go in.brad1-2/+1
2015-01-20#include <sys/syslimits.h> to allow operation without requiring the noisederaadt1-1/+2
of <sys/param.h>
2015-01-19`wellspring' Apple keyboards found on Macbook Air need slightly differentmiod1-9/+66
processing for Fn-key chords. From William Orr <will@worrbase.com>
2015-01-19Remove dead store causing clang to warn; dhillmiod1-2/+1
2015-01-19use SYMLOOP_MAX rather than MAXSYMLINKSderaadt1-2/+2
2015-01-18Do not trust the content of event TRBs coming from the hardware andmpi3-15/+23
maintain a list of possibly submitted commands.
2015-01-18Complete synchronous abort method modeled after the existing ones.mpi2-8/+85
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 clownmpi1-8/+12
might eat you.
2015-01-18Since we are no longer resetting rings when a Babble or Stall conditionmpi2-42/+32
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 inmpi1-30/+48
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...deraadt1-2/+3
2015-01-16Move to using PATH_MAXderaadt1-3/+3
ok millert guenther
2015-01-15Remove a variable no longer used in re_tick().brad1-3/+1
From Fabian Raetz <fabian dot raetz at gmail dot com>
2015-01-15Fix subtle breakage for polled commands introduced during iopool conversion.miod1-4/+4
2015-01-15Define a new wscons mouse type for Synaptics clickpad devices that lackjsg4-6/+102
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 beeingmpi1-9/+11
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.jsg1-1/+2
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.stsp1-2/+2
2015-01-12regenjsg2-26/+76
2015-01-12add some E5 v3 PCIE and Bay Trail idsjsg1-17/+27
2015-01-12When setting up advanced TX descriptor use m_getptr to locate the IPmikeb1-4/+18
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() callsderaadt1-3/+4
2015-01-12Some fixes and tidying up of the receive filter handling bits.brad1-10/+5