summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2013-05-17Don't leak information to userland in case the actual transfer length ismpi2-2/+8
smaller than the requested one. From ws@NetBSD via miod@. This problem can only occur when the USBD_SHORT_XFER_OK flag is set, otherwise completed transfers with a length smaller than the one submitted are treated as errors. ok miod@
2013-05-16burner supportkettenis3-10/+33
2013-05-16attach to new RTL8188RU id, from Sigi Rudziosthen1-1/+2
2013-05-16syncsthen2-4/+9
2013-05-16add another RTL8188 id, from Sigi Rudziosthen1-1/+2
2013-05-15remove unused variableratchov1-2/+2
2013-05-15sync the list of pre haswell intel video devices with linuxjsg2-4/+21
ok kettenis@
2013-05-15regenjsg2-2/+17
2013-05-15add some more Intel video devicesjsg1-1/+4
ok kettenis@
2013-05-15Introduce a global interrupt-aware mutex protecting dataratchov37-588/+720
structures (including sound-card registers) from concurent access by syscall and interrupt code-paths. Since critical sections remain the same, calls to splraise/spllower can be safely replaced by calls to mtx_enter/mtx_leave with two exceptions: (1) mutexes are not reentrant (the inner splraise is thus removed), and (2) we're not allowed to sleep with a mutex (either msleep is used or the mutex is released before sleeping). ok and help from kettenis, a lot of work from armani
2013-05-15Add support for Intel E7221 integrated graphics.kettenis1-1/+2
ok jsg@
2013-05-12In wsdisplay_switchtoconsole(), make sure we really are the console beforekettenis1-2/+2
attempting to switch screens. On amd64/i386 the glass console gets initialised early even if a serial console has been set up by the bootloader. To add insult to injury, the glass console isn't properly "detached" and the MI wsdisplay(4) driver continues to believe it is the console. This should really be fixed, but is a nasty can of worms. ok miod@
2013-05-12Handle big (a.k.a. >2TB) disks by adding logic to handle the 12 and 16krw1-2/+20
byte scsi read/write commands. Issue pointed out by John Morrissey via bugs@. Problem reproduced and fix tested by sf@ on vioblk. ok sf@ kettenis@
2013-05-12fix use after free in case the mbuf needs defragmentationsf1-2/+5
This fixes a panic found by Matthieu Herrb. OK mikeb@
2013-05-11Another small tweak to get things close to Linux.kettenis1-5/+5
2013-05-11whitespacekettenis1-2/+2
2013-05-11Remove some #ifdef 0'd code that we're never going to use again.kettenis1-15/+1
2013-05-10bail if device_lookup doesn't find anything; brings vscsi(4)mikeb1-3/+17
in line with other drivers. ok matthew
2013-05-09- use NETGEAR vendor ID for NETGEAR products, not LINKSYS.miod1-5/+9
- add NETGEAR FA410TXC with 00:13:46 manufacturer part of the Ethernet address; tested by Riccardo Mottola, thanks!
2013-05-09A few more changes to reduce the diffs to the Linux code.kettenis1-22/+34
2013-05-09Add a #define such that we can say "struct drm_i915_private" to reduce thekettenis2-5/+6
diffs with Linux.
2013-05-08The "locking" in i915_gem_object_move_to_inactive() makes no sense. Get ridkettenis2-19/+4
of it. It's implemented using "simple" locks anyway, which are no-ops.
2013-05-08Move reset commands from that attach path to an own function.mglocker1-8/+20
Reset device on detach (required for planed usb device claiming). Tested with my uthum(4) device "TEMPer sensor(0x660c), Ten X Technology, Inc.(0x1130)". ok yuo@, mpi@
2013-05-08Maxime Villard reported an uninitialised variable access injsg1-2/+2
intel_ddi_prepare_link_retrain(), turns out this is already fixed upstream by Syam Sidhardhan so take their patch. ok dcoppa@
2013-05-08fix some leaks in error pathsjsg1-3/+7
ok fgsch@ krw@ kettenis@
2013-05-08re-commit uthum_activate() removal, now that uhidev(4) can handle it.sthen1-18/+2
testing by myself and mglocker@, ok mpi@
2013-05-07When deactivating child devices do not panic if their driver doesmpi2-9/+3
not implement an *activate() function. This could receive more love but is good enough for the moment to start cleaning useless *activate() functions. While here remove unused sc_dying argument. Tested by and ok mglocker@
2013-05-07fix a double free in an error pathjsg1-3/+3
reminded of this diff by a report from Arto Jonsson ok krw@ fgsch@
2013-05-06syncbcallah2-6/+6
2013-05-06Revert Cavium Networks back to Cavium - it was right in the first place.bcallah1-3/+3
Drop "Network Processor" off of OCTEON Plus CN50XX Network Processor, we don't need the extra characters. noticed by brad@ and jsg@
2013-05-06syncbcallah2-4/+9
2013-05-06Add OCTEON Plus CN50XX Network Processor id.bcallah1-2/+3
Rename Cavium to Cavium Networks. ok jasper@
2013-05-05Add nonblocking argument to i915_gem_object_pin() andkettenis7-31/+34
i915_gem_object_bind_to_gtt().
2013-05-05Remove a supefluous check.kettenis1-5/+1
2013-05-05With KMS, the inteldrm_quiesce dance isn't needed anymore. Zap the code.kettenis3-76/+4
2013-05-05Remove some #ifdef'ed out code that's never going to get used again.kettenis1-11/+1
2013-05-04revert uthum_activate removal, it is needed in the detach path as found thesthen1-2/+18
hard way by mglocker@
2013-05-04In i915_alloc_ifp() and i965_alloc_ifp() use extent_alloc_subregion() to makekettenis1-7/+11
sure we allocate outside the Legacy Address Range. Gets rid of the "no ifp" warning on the x41.
2013-05-04- remove unused DPRINTFN, simple DPRINTF is enoughsthen1-24/+4
- sc_dying is unused, remove it and the uthum_activate() function suggested by mpi (for ugold, but applicable here too), ok mpi
2013-05-03break out the battery status into excruciating detail. makes it harder fordlg3-19/+88
$VENDOR to complain about a lack of diagnostic material from their crappy mgmt tools if you're not running an operating system they support.
2013-05-02always attach the battery sensor if the adapter lets us query it.dlg1-3/+2
newly replaced batteries dont show up immediately.
2013-05-01provide a sensor for the battery backup unit (bbu) on mfi boards thatdlg3-8/+75
support it. now i can tell (a bit better) why io might be slow on some of my boxes.
2013-05-01there's some extra bits for the bbu status that freebsd dont have. providedlg1-1/+19
a %b thing for them too. now i just have to figure out how to represent this nicely: mfi0: fw_status 0xc00<REPLACE_PACK,CAPACITY_LOW> :(
2013-05-01provide a couple of %b things for mfi_hw_present and mfi_adapter_ops cosdlg1-5/+17
im somehow too lazy to read a %x and look for a couple of bits set, but not lazy enough to not write a %b thing.
2013-05-01dont need to walk alldevs during sensor creation looking for the logicaldlg1-16/+2
disk scsibus when we record that in mfi_attach. also happens to get rid of a logic error that let it come out of the loop on alldevs with a reference to something that wasnt the logical disk scsibus and use that.
2013-04-30Clear the right pixels when scrolling backwards.kettenis1-5/+5
Fixes issue reported by tedu@
2013-04-30white space tweakdlg1-2/+2
2013-04-30white space fixesdlg1-23/+23
2013-04-30use MR_DCMD consistently. some MD_DCMD was in there somehow.dlg2-11/+11
2013-04-30pull in BBU bits from freebsddlg1-1/+96