summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2015-01-12stash the softc in the memory allocated for setting up a task fordlg1-9/+14
creating sensors.
2015-01-11Tolerate checksum errors in ACPI tables (but complain about them). Apparentlykettenis1-5/+5
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 isochronousmpi1-2/+2
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 namederaadt1-8/+8
seen my mlarkin, ok miod
2015-01-11use mallocarray(), then set the size afterwards. Prefer if people learnderaadt1-4/+5
and use this idiom everywhere, it is always safest.
2015-01-11use mallocarray()deraadt1-2/+2
2015-01-11mallocarray() for the rx_buffer memoryderaadt1-4/+5
2015-01-11use mallocarray() when reallocating the mux tablederaadt1-3/+3
2015-01-11KUE_MCFILTCNT() is non-constant, so use mallocarray()deraadt1-2/+2
2015-01-11unnecessary castderaadt1-2/+2
2015-01-10Get the MAC address from the PCI ROM on systems without Open Firmware. Codekettenis1-3/+141
largely stolen from cas(4), but with a few tweaks.
2015-01-10Disable (most) interrupts when the interface goes down.kettenis1-1/+6
2015-01-10A few more loose ends.kettenis1-22/+20
2015-01-10Remove debug printfs.kettenis1-54/+1
2015-01-10Hook up nep(4).kettenis1-1/+6
2015-01-10Add support for promiscuous mode and multicase.kettenis1-20/+95
2015-01-10Properly stop DMA and tear down the rings when taking the interface down.kettenis1-1/+97
2015-01-10Remove pointless empty 64bit support code stubs from bwi(4).stsp1-105/+3
It seems no 64bit bus space support is forthcoming. Nothing has happened in DragonflyBSD for several years and FreeBSD has a different driver for 64bit chips called bwn(4). ok mpi@ some time ago
2015-01-10Merge two bwi(4) fixes from FreeBSD:stsp1-2/+5
------------------------------------------------------------------------ r192306 | imp | 2009-05-18 17:31:26 +0200 (Mon, 18 May 2009) | 10 lines Fix a typo from the original driver. We need to write ctrl2 into RF register 0x52, not ctrl1. This appears to be a mistake in the bcm reverse engineering page, and has been corrected there. Tracing through the code, this is more in keeping with the "documented" register. Sephe thinks it looks interesting and may be worth fixing. :) Submitted by: ddkprog at yahoo com Reviewed by: Sepherosa Ziehau ------------------------------------------------------------------------ r192042 | nwhitehorn | 2009-05-13 16:25:55 +0200 (Wed, 13 May 2009) | 4 lines Add a short delay after programming PHY registers to give some time for the engine to catch up. This prevents a machine check exception from illegal memory requests with a BCM4318. ------------------------------------------------------------------------ No regressions observed by myself, miod@, and Vesa Norrman (vesbula at gmail).
2015-01-09The "SunMicro Virtual Eth Device" found on Oracle's more recent SPARC systemskettenis1-3/+6
claims to support both RNDIS and CDC Ethernet. However, RNDIS doesn't seem to work, at least not with our driver. So blacklist it here such that cdce(4) takes over. ok miod@, armani@ (both a while back)
2015-01-09regenkettenis2-4/+9
2015-01-09SunMicro Virtual Eth Devicekettenis1-1/+2
2015-01-09Properly unwind from a failure in usbd_dma_contig_alloc(). Callingkettenis1-14/+16
bus_dmamap_unload(9) on a map that failed to load is a bad idea and causes panics on some architectures (such as sparc64). ok mpi@
2015-01-09Always check for DMA buffer overrun, not just for some specific xfers.mpi1-26/+8
2015-01-09Correctly report memory allocation failure in uhidev_set_report_async().mpi1-2/+2
2015-01-09Add an asynchronous version of uhidev_get_report(), from David Higgsmpi4-10/+90
with some tweaks. Nothing use it for the moment, but upcoming upd(4) improvements need it.
2015-01-09Add support DIOC{G,S}CACHE to mfi(4). Cache of disk on mfi(4) willyasuoka2-6/+108
be enabled by default. Also if the controller doesn't have any RAM, the cache on the physical disk will be enabled. discuss with jsg tsubai ok dlg
2015-01-09regenjsg2-4/+14
2015-01-09add rate matching hubs seen on a C610 systemjsg1-1/+3
2015-01-09match on C610jsg2-2/+18
2015-01-09regenjsg2-2/+702
2015-01-09Add some Intel Xeon E5 v3 and C610/X99 ids.jsg1-1/+141
2015-01-09implement mfii_scsi_cmd_io for handling actual io. previously i gotdlg1-11/+58
away with being lazy and just passing everything to the vanilla scsi cdb path. sending io via the cdb path with chained sgls seems to trigger a firmware fault on the new invader boards. sending the same io via the ldio path works fine though. tested on invader and thunderbolt boards: mfii0 at pci1 dev 0 function 0 "Symbios Logic MegaRAID SAS3108" rev 0x02: msi mfii0: "PERC H730 Mini", firmware 25.2.1.0037, 1024MB cache mfii0 at pci1 dev 0 function 0 "Symbios Logic MegaRAID SAS2208" rev 0x05: msi mfii0: "PERC H710 Mini", firmware 21.3.0-0009, 512MB cache ok jmatthew@
2015-01-08Use the correct config registers for the RTL8139 family. Unlike the RTL8169brad3-28/+66
and RTL8168 family, the RTL8139 has different register map for config registers. From FreeBSD WoL bits reviewed and tested by stsp@
2015-01-07Only MS IntelliMouse have a Z axis, prevent a false positive triggeredmpi1-8/+4
by -Wuninitialized reported by jsg@. ok stsp@
2015-01-07use the same trick as mpii for posting the request descriptor withdlg1-4/+13
a single 64bit write on lp64 archs, instead of two sequenced 32bit writes. cos the 64bit store is atomic, we dont need the mutex around it either.
2015-01-07Fix impi(4) to make watchdog work and not to panic.yasuoka2-18/+37
diff from uebayasi jsg ok uebayasi
2015-01-07replace bcopy with memcpy. still cant see the bug im looking for.dlg1-5/+5
2015-01-07i may as well turn bzero into memset while i am busy not havingdlg1-7/+7
luck finding my bug.
2015-01-06We do not support freeing memory using reqbufs with a zero size soarmani1-3/+9
return EINVAL in this case. Also change an easily triggerable panic by a printf and return EINVAL. Reminded by brad@, one typo spotted by sthen@ and ok mpi@
2015-01-06Support for MEDION S4222 which needs another funky umass quirk. Frommpi1-2/+26
Ingo Feinerer.
2015-01-06regenmpi2-4/+21
2015-01-06MediaTek Inc. from Ingo Feinerer.mpi1-1/+6
2015-01-06Always enable the receive filter. It was being enabled via sis_init()brad1-4/+5
but not if calling sis_iff() via sis_ioctl().
2015-01-05there's already three different types of chips in this family ofdlg1-8/+53
controllers. the flags used in sgls on the first gen (thunderbolt) are different to the ones used on the second and third gens (fury and invader). this creates an mfii_iop struct to store differences between these chips, and uses them to set the flags on the sgls we generate for the chip. this solves lockups caused by stuck io on the following chips: mfii0 at pci1 dev 0 function 0 "Symbios Logic MegaRAID SAS3108" rev 0x02: msi mfii0: "PERC H730 Mini", firmware 25.2.1.0037, 1024MB cache and mfii0 at pci1 dev 0 function 0 "Symbios Logic MegaRAID SAS3008" rev 0x02: msi mfii0: "PERC H330 Mini", firmware 25.2.1.0037 ive also tested this diff on: mfii0 at pci10 dev 0 function 0 "Symbios Logic MegaRAID SAS2208" rev 0x05: msi mfii0: "PERC H810 Adapter", firmware 21.2.0-0007, 1024MB cache and mfii0 at pci1 dev 0 function 0 "Symbios Logic MegaRAID SAS2208" rev 0x05: msi mfii0: "PERC H710 Mini", firmware 21.3.0-0009, 512MB cache Hrvoje Popovski reported the bug and verified the fix on his hardware.
2015-01-05Prevent a race condition upon resume by adding a supplementary delay.mpi1-1/+5
This is a workaround needed at least by Renesas controllers. I didn't find any documentation about this issue and I guess other open source xHCI implementations do not see this race because they do much more work upon resume. Thanks to Remi Locherer for reporting this issue on bugs@.
2015-01-04Only set the status of a completed xfer just before giving it back tompi1-13/+12
the stack. This will allow stricter checks when aborting transfers. While here update a comment about short transfer and multi-TRB TD since bulk transfers can also use a chain now.
2015-01-04return 0 for success in ucycom_param() instead of uninitialised memoryjsg1-3/+2
2015-01-04Fix error handling for re_encap() within re_start() and some tidying up.brad1-21/+19
2015-01-03Implement BMAC support; ports 2 & 3 work now as well.kettenis1-20/+150