summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-06-19add pool_setipl on all pools.David Gwynne
ok tedu@ visa@
2016-06-18KTRPOINT() is only useful in the kernel, so move it behind #ifdef _KERNELPhilip Guenther
ok mpi@ kettenis@
2016-06-18Make the 1 Gbps SGMII settings the default to define a consistent set ofVisa Hankala
parameters even if a link is down.
2016-06-18Fix PCS block size.Visa Hankala
2016-06-18Add net.inet.{tcp,udp}.rootonly sysctl, to mark which portsVincent Gross
cannot be bound to by non-root users. Ok millert@ bluhm@
2016-06-18Stop setting the 4-bit mode capability flag for now.Jonathan Gray
Writing to the bbb emmc (but not reading) gives errors otherwise. This does not occur with an sd card on bbb but apparently does on panda.
2016-06-18Add a new AUDIO_GETSTATUS ioctl to get various audio driver variables.Alexandre Ratchov
It's intended for use with diagnostic tools (like audioctl) and is of no use to audio programs.
2016-06-18Plug some memory leaks in error paths of iwm(4).Stefan Sperling
Patch by Imre Vadasz.
2016-06-18Dynamically attach ommmc with fdt. Offset the start of the memory regionJonathan Gray
by 0x100 for nodes compatible with "ti,omap4-hsmmc" to get the same offsets as omap3. Handle both the nintr 1 (omap3/am335x) and nintr 3 (omap4) cases in attach. Ideally the "interrupts" property will be handled by the interrupt controller drivers directly in future.
2016-06-17urtwn device now needs rtwn.c, even if rtwn device isn't builtPhilip Guenther
ok mpi@ jca@ mglocker@
2016-06-17Merge a lot of code from urtwn(4) into rtwn(4). Both drivers now share codeStefan Sperling
in the file sys/dev/ic/rtwn.c. This reduces kernel bloat and will make it easier to have both drivers benefit from future enhancements. ok mpi@
2016-06-17pool_setipl on all uvm pools.David Gwynne
ok kettenis@ visa@
2016-06-17Replace tsleep/wakeup by usbd_ref_incr/decr/wait to wait for the kthreadMarcus Glocker
to finish on close. Tested and ok Patrick Keshishian ok mpi
2016-06-16Replace uvm_km_valloc(9) with a km_alloc(9) call that doesn't allocate anyMark Kettenis
physical pages. Recent canges to uvm_map(9) mean that we now assume that memory in interrupt safe maps is not pageable, and while we made sure all mappings were backed by physical pages, a mapping allocated with uvm_km_valloc(9) appears to pageable and triggered an assertion. ok miod@
2016-06-16enable suspend/hibernate fn keysGiovanni Bechis
ok mlarkin@
2016-06-15Add umb(4) - a driver for the Mobile Broadband Interface Model (MBIM)Gerhard Roth
The umb(4) driver provides support for USB MBIM devices. Those devices establish connections via celluar networks such as GPRS, UMTS, and LTE. ok mpi@ sthen@ additional feedback from deraadt@ jmc@ stsp@ kettenis@
2016-06-15Fix typo from rebase : extra parentheseVincent Gross
2016-06-15Move the cmsg handling code on top of udp_output(), to makeVincent Gross
IP_SENDSRCADDR introduction easier. Ok jca@
2016-06-15With the introduction of ip6_output_ipsec_lookup() we didn't exit theFlorian Obser
loop when we worked out that no IPsec is needed which led to a NULL de-ref on the next iteration. Fix this by making the code more similar to the IPv4 case. Found the hard way by me, OK mpi@
2016-06-15Kill nd6_output(), it doesn't do anything since the resolution logicMartin Pieuchot
has been moved to nd6_resolve(). ok visa@, millert@, florian@, sthen@
2016-06-15No need for a special DVACT_DEACTIVATE hook, autoconf(9) knows howMartin Pieuchot
to deactivate our children. ok mglocker@
2016-06-15There's no need to convert values returned by arc4random to the networkMike Belopuhov
byte order. Spotted by Gleb Smirnoff (glebius@FreeBSD.org), thanks! ok tedu
2016-06-14Don't hardcode vlan/queue priority for pppoe packets; inherit it from theStuart Henderson
new "llprio" setting on the pppoe(4) interface instead. Tested by Daniel Gillen and myself, ok mikeb
2016-06-14Prevent a round to zero in the timeout_add_...() functions. GettingAlexander Bluhm
an immediate timeout if a positive value is specified is unexpected behavior. Defer calling the handler for at least one tick. Do not change that timeout_add(0) gives you an immediate timeout. OK millert@ uebayasi@ tedu@
2016-06-14If the FDT node has a "non-removable" property, return 1 from the cardMark Kettenis
detect function. Remove the board-specific return 1 cases as they all match the case of a "non-removable" property. Note that this introduces a sdmmc0: can't enable card message on the CuBox-i as is has the internal eMMC controller enabled in its device tree even though there is no eMMC soldered onto the board. ok jsg@
2016-06-14Make sure OF_getprop() returns the proper length for a synthesised "name"Mark Kettenis
property. From Tom Cosgrove.
2016-06-14provide splraise on landiskDavid Gwynne
splraise is a wrapper around the sh _cpu_intr_raise(), and all the splfoo macros are now defined as calling splraise(IPL_FOO). tested on my landisk box
2016-06-14Make fdt_node_property() return -1 if the requested property can't be foundMark Kettenis
such that we can distinguish between non-existing properties and zero-length properties. This brings the FDT code in line with the real OFW implementations. ok jsg@
2016-06-14Pass the configured ``ifa'' to rt_sendaddrmsg() instead of getting it viaMartin Pieuchot
``rt->rt_ifa'' later.
2016-06-14Store the source address associated with a route in its own chunk ofMartin Pieuchot
memory. This will allow to unlink 'sruct rtentry' and 'struct ifaddr' to be able to add route entries without needing an address. ok sthen@, visa@, florian@
2016-06-14imxdog* at fdt? here too.Mark Kettenis
2016-06-14Add missing line feed to DPRINTF makes debug reading easier.Marcus Glocker
2016-06-14Convert the links between art data structures used during lookups into srps.Jonathan Matthew
art_lookup and art_match now return an active srp_ref, which the caller must leave when it's done with the returned route (if any). This allows lookups to be done without holding any locks. The art_table and art_node garbage collectors are still responsible for freeing items removed from the routing table, so they now use srp_finalize to wait out any active references, and updates are done using srp_swap operations. ok dlg@ mpi@
2016-06-13rename raiseipl to splraise()David Gwynne
another step toward making splraise an MI api. ok aoyama@
2016-06-13Dynamically attach imxdog(4) using the FDT.Mark Kettenis
2016-06-13On localhost a user program may create a socket splicing loop.Alexander Bluhm
After writing data into this loop, it was spinning forever causing a kernel hang. Detect the loop by counting how often the same mbuf is spliced. If that happens 128 times, assume that there is a loop and abort the splicing with ELOOP. Bug found by tedu@; OK tedu@ millert@ benno@
2016-06-13Remove tracking of endpoints in utvfu_{as,vs}_iface structs as theseMarcus Glocker
are constants; save two more ints. From Patrick Keshishian ok mpi
2016-06-13Ensure expected video endpoint has wMaxPacketSize > 0 duringMarcus Glocker
utvfu_match(). From Patrick Keshishian ok mpi
2016-06-13* Start/stop audio bulk thread as consumer opens/closes device.Marcus Glocker
And as a result get rid of a few defines/flags. * Fix _as_close() to and audio bulk thread exit. * Change sc->sc_as_running into a flag; save an int. From Patrick Keshishian ok mpi
2016-06-13make sure attrflag is initialized. from clang via david hillTed Unangst
2016-06-13In uvm_map(), call uvm_unmap_detach_intrsafe() if we have an interrupt-safeMark Kettenis
map, to avoid grabbing the kernel lock when pool_get() needs to allocate a new pool page. Hopefully this really is the last case where we might grab the kernel lock for interrupt-safe pools. ok mpi@
2016-06-13Use "bus-width" property to determine whether 4-bit and 8-bit mode areMark Kettenis
supported.
2016-06-13Remove the restriction for the usbd_ref_* functions to work just in caseMarcus Glocker
of dev->dying. With this we also can use them on device closing, not just detaching. ok mpi
2016-06-13Move the ioctl(2) logic of in{,6}_control() into two new functionsMartin Pieuchot
in{,6}_ioctl() that do not deal with sockets. This will allow to automagically configure interface addresses in the kernel without too many layer violations. Required by upcoming umb(4).
2016-06-13Do not execute the callback if the device is beeing detached.Martin Pieuchot
Should prevent a race triggering a use-after-free reported by martijn@ on bugs@
2016-06-13rename _splraise to splraiseDavid Gwynne
gets us a bit closer to an MI splraise api.
2016-06-13rework sparc64 splfoo functions to be more consistent with other archsDavid Gwynne
this also moves us toward having an MI splraise(). sparc64 (and sparc) are different to the other archs because they have macros that build templates. each spl uses that macro to create an instance of an inline function specific to that spl call. this moves it to having a single splraise inline that the spl api is defined with. eg, #define splfoo() _splraise(IPL_FOO). ok kettenis@
2016-06-12Fix format string in ddb show socket.Alexander Bluhm
2016-06-12Use OF_getpropintarray().Mark Kettenis
2016-06-12Dynamically attach fec(4) using the FDT.Mark Kettenis
ok jsg@, patrick@