summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2015-02-07Let a volume key event unmute. This makes the software state follow theMark Kettenis
hardware behaviour on Thinkpads making it harder for software state and hardware state get out of sync. ok deraadt@
2015-02-07New framework that allows hibernate to pass in entropy from it's freshTheo de Raadt
boot. ok mlarkin
2015-02-07remove linux int types in the drm headerJonathan Gray
kdump includes all headers with ioctls and the v4l videoio.h already defines these. Found the hard way by deraadt. The types will be patched out of future libdrm updates.
2015-02-06Add bpf(4) support to iwm(4). Makes tcpdump -i iwm0 work. Based on iwn(4).Stefan Sperling
ok deraadt
2015-02-06Add new definitions from libdrm 2.4.59Jonathan Gray
2015-02-06Add iwm(4), a new driver for Intel 7260 wifi cards.Stefan Sperling
Based on iwn(4) and Linux iwlwifi (which is dual BSD/GPLv2 licenced). Created by Fixup Software Ltd. for genua mbh, who then passed on the code base to the OpenBSD project. The genua version of this driver was written for OpenBSD 5.4; ported to -current by myself, phessler@, and deraadt@. So far, we've done semantic and stylistic cleanup without functional changes. The driver is functional but has some known issues which will be worked on in-tree. Requires iwm firmware which is available in ports thanks to sthen@. ok deraadt@ phessler@
2015-02-06Handle hibernate button in the same way as suspend does: send anDavid Coppa
APM_USER_HIBERNATE_REQ event so apmd(8) can get it if it's running. ok mlarkin@, deraadt@, miod@
2015-02-06Fix a hibernate crash on some machines due to unmapping a page thatMike Larkin
may not have been mapped previously (in the failure to hibernate case). Also ensure that the lowmem ptp is mapped in all cases (not just MP). ok kettenis
2015-02-05Do what the comments suggest and check for port-[ab]-ignore-cd properties,Miod Vallat
and if so, force soft carrier mode.
2015-02-04Kill annoying comments about ether_input()Martin Pieuchot
2015-01-31regenJonathan Gray
2015-01-31Add some more Intel 5th gen Core ids and the xHCI id used inJonathan Gray
VMware virtual hardware version 11.
2015-01-28- Add PCH2 and PCH LPT to the list of chips capable of only 9K jumbos.Brad Smith
- Updated PBA values for the 82574 controller (20KB) and ICH9/10 with jumbos (14KB). Tested by a few on 82574, ICH9 and PCH LPT From FreeBSD
2015-01-28drm/radeon: allow geom rings to be setup on r600/r700 (v2)Jonathan Gray
From Dave Airlie 7c4c62a04a2a80e3feb5d6c97aca1e413b11c790 in mainline linux
2015-01-28drm/radeon: fix VGT_GS_INSTANCE_CNT registerJonathan Gray
From Dave Airlie b7bc799903bbae16795cb15705ddcab80c8f17f1 in mainline linux
2015-01-27Ignore buttons for which _STA indicates they're not present, enabled orMark Kettenis
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 toMartin Pieuchot
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.David Gwynne
2015-01-27i forgot to fix ipw when i removed the second task argument.David Gwynne
poke from deraadt@
2015-01-27remove the second void * argument on tasks.David Gwynne
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.Brad Smith
2015-01-26Set PCIe max read request size to 2K to help with TX performance.Brad Smith
From FreeBSD Tested with 8168C, 8168D and 8168G.
2015-01-26Update the Samsung SSD controller comment.Brad Smith
2015-01-25Correct a bit test for DDR2 CAS Latency and recognise CL7 and CL6.Jonathan Gray
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 beMark Kettenis
accessed by the device. ok deraadt@, stsp@
2015-01-24Remove a comment that is no longer true with MCLGETI and jumbos onBrad Smith
some revisions of the chipsets.
2015-01-23break after return is useless.David Gwynne
2015-01-22Replace some obvious '$OpenBSD' and '$OpenBSD:' typos with '$OpenBSD$'.Kenneth R Westerback
Pointed out by dickman@. ok sthen@ phessler@
2015-01-22Reduce the number of intermediate buffers by pre-allocating DMA buffersMartin Pieuchot
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.Martin Pieuchot
From Fabian Raetz.
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).