summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2015-05-13Get rid of the last "#if NTRUNK" by overwriting trunk ports' outputMartin Pieuchot
function. ok claudio@, reyk@
2015-05-13Remove useless "bridge.h" include.Martin Pieuchot
ok miod@
2015-05-13Define END() to set ELF symbol size.Masao Uebayashi
OK miod@
2015-05-13Having the same settings on the same phy across multiple boards is justJonathan Gray
asking too much in the arm world. Translate the fec parameters from the novena dtb to set a different clock skew to the same micrel phy used on sabre lite. The novena dtb sets txd[0-3]-skew-ps to 3000, the sabre lite sets them to 0. When run through the shifting/oring process from the micrel phy driver in FreeBSD this ends up being a write of 0xffff on the novena and 0x0000 on sabre lite when writing to TX_DATA_PAD_SKEW. This change resolves the stability problems djm was seeing with imxenet on novena. ok djm@
2015-05-12Make sure the rx ring lwm is set to at least 4. As far as we know, allMark Kettenis
hardware variants need at least 4 descriptors on the rx ring to be able to receive packets. Should fix the issue reported by Christian Schulte on bugs@. ok mikeb@, sthen@
2015-05-12remove the sc->isopen flag, as sc->flags already hold theAlexandre Ratchov
same information.
2015-05-12store byte count in a size_t and switch from uiomovei() to uiomove()Alexandre Ratchov
2015-05-12Remove unused code & definitions: midi_attach(), midi_unit_count(),Alexandre Ratchov
midi_getinfo(), midi_writebytes(). They were "used" by the sequencer interface which we removed years ago.
2015-05-12Don't hold the audio mutex when calling uiomove(), as uiomove()Alexandre Ratchov
may sleep in case of a page fault
2015-05-12Remove references to (deleted) auconv.h and mulaw.h files. FixesAlexandre Ratchov
i386 build. Found by Mark Patruck <mark at wrapped.cx>, thanks!
2015-05-12Fixup potential use after free and a memory leak.Mike Belopuhov
Found by Maxime Villard <max at m00nbsd ! net> with the Brainy Code Scanner, thanks!
2015-05-12This file is only compiled when "pseudo-device bridge" is included inMartin Pieuchot
your kernel configuration, no need for a #if NBRIDGE > 0 dance.
2015-05-12MPLS also needs a definition for etherip_output(), fix build withoutMartin Pieuchot
bridge.
2015-05-12Merge various urtwn(4) fixes from FreeBSD:Stefan Sperling
Match additional devices (RTL8188CU_3, DWA123D1, DWA125D1). Fix efuse reading (fixes potential error in MAC address read from efuse). Replace some magic numbers with macros. Based on FreeBSD r270191, r273589, r281918, r281592, r282119, and r282623 via Mikhail mp39590@gmail on tech@ ok sthen@
2015-05-12Fix definition of R92C_USTIME_TSF.Stefan Sperling
from FreeBSD r282623 via Mikhail mp39590@gmail on tech@
2015-05-12regenStefan Sperling
2015-05-12usbdevs_data.hStefan Sperling
2015-05-12Add 4 additional urtwn(4) device IDs.Stefan Sperling
from FreeBSD via Mikhail mp39590@gmail on tech@
2015-05-12Drop and reacquire the kernel lock in the vfs_shutdown and "cold"Mike Belopuhov
portions of msleep and tsleep to give interrupts a chance to run on other CPUs. Tweak and OK kettenis
2015-05-12imxiic is known to be broken don't try attaching it on utiliteJonathan Gray
2015-05-12Raise VM_PHYSSEG_MAX to two and load an additional physical memoryJonathan Gray
segment if u-boot reports it. Needed for the utilite where u-boot reports two 1GB segments of physical memory. From Patrick Wildt in bitrig with some additional sanity checks added.
2015-05-12Add missing braces.Jonathan Gray
Tested by and ok djm@
2015-05-12The i211 does not support an external EEPROM only a OTPJonathan Gray
Internal Non-Volatile Memory (iNVM). Add support for reading words out of it instead of an EEPROM. From Patrick Wildt with some more offsets added.
2015-05-11regenJasper Lievisse Adriaanse
2015-05-11add id for virtio rngJasper Lievisse Adriaanse
ok sf@
2015-05-11Make softraid(4) compile with SR_DEBUG by fixing __kprintf__ specifiers.Martin Pelikan
ok jsing krw
2015-05-11fix a potential use-after-free in pf_state_rm_src_nodeHenning Brauer
found by jsg; ok jsg mikeb
2015-05-11Refresh sensor values asynchronously.Martin Pieuchot
From David Higgs.
2015-05-11Take trunk(4) out of ether_input().Martin Pieuchot
Each physical interface of a trunk now gets a specific ifih (interface input handler) that runs before ether_input(). Tested by sthen@, dlg@, Theo Buehler and <mxb AT alumni.chalmers DOT se> ok sthen@, dlg@
2015-05-11Remove support for ADPCM encoding which isn't used nowadays andAlexandre Ratchov
not available to programs anyway.
2015-05-11Remove all audio format conversion code from the kernel (btw holdingAlexandre Ratchov
the kernel_lock), as we already do better conversions in user-mode. Yet, no need for every single driver to fiddle with the conversion code as they are done transparently by common MI code. With help from armani and miod, support from mpi ok armani@
2015-05-11Convert from uiomovei() to uiomove() to prevent short tranfersPhilip Guenther
diff from natano@bitrig
2015-05-11Convert from uiomovei() to uiomove() to prevent short tranfersPhilip Guenther
diff from natano@bitrig, with some additional format and cast tweaks
2015-05-10Set POLLHUP even if no valid events were specified as per POSIX.Todd C. Miller
Since we use the poll backend for select(2), care must be taken not to set the fd's bit in writefds in this case. A kernel-only flag, POLLNOHUP, is used by selscan() to tell the poll backend not to return POLLHUP on EOF. This is currently only used by fifo_poll(). The fifofs regress now passes. OK guenther@
2015-05-10Fix urtwn(4) 11b performance for RTL8188EU devices.Stefan Sperling
With 11b APs the firmware retries excessively unless we force it into 11b-only mode instead of mixed b/g. Perhaps a firmware bug, perhaps a bug in our code elsewhere. For now, this makes it work. ok kettenis
2015-05-10VM_MAX_KERNEL_ADDRESS is the end of the kva range not the end ofJonathan Gray
addressable virtual memory space but arm ports were using a value of 0xffffffff for this. Instead of using a shared VM_MAX_KERNEL_ADDRESS define add md VM_KERNEL_SPACE_SIZE defines based on the KERNEL_VM_SIZE values from the respective machdep.c files. djm's novena was hitting "panic: bufinit: can't reserve VM for buffers" without a similiar change. ok miod@
2015-05-10My commit adding RTL8188EU did introduce a regression after all.Stefan Sperling
Repair firmware reset on RTL8188CUS devices (and perhaps others) by restoring the proper register write order in the non-8188EU code path. Fixes "urtwn0: timeout waiting for firmware readiness" after device reset.
2015-05-10limit physical memory to (paddr_t)-PAGE_SIZE (0xfffff000)Jonathan Gray
novena has 4GB of physical memory and it's u-boot tells us memstart: 0x10000000 memsize: 0xf0000000 which would previously cause an overflow leading to "panic: initarm: out of memory" tweak from and ok miod@
2015-05-09Cleanup/rejig GPT code to be more readable, support different endianKenneth R Westerback
archs and different sized disk sectors. Make MBR have higher priority than GPT. Add many paranoia checks and associated DPRINTF's to make further development easier. Keep everything hidden behind #ifdef GPT. Tested and ok doug@ mpi@. Nothing bad seen by millert@.
2015-05-09Fix an occurance of mtx_enter() that should have been mtx_leave().Jonathan Gray
This line was originally an splx() before being converted to a mutex. ok ratchov@
2015-05-08Need explicit <sys/kcore.h> include now.Miod Vallat
2015-05-08When changing screen saver parameters with wsconsctl (or any other way toMiod Vallat
perform ioctls), check the flags of the currently displayed screen in order to decide whether the screen saver needs to be retriggered, rather than the flags of the device we are issuing the ioctl on. wsconsctl will always use ttyC0, while the X server may run on another virtual screen (such as ttyC4), and the kernel screen saver would then be reenabled behind the X server's back. While there, apply this `should the screen burner get reenabled or disabled?' logic at the end of every virtual screen switch. The screen burner will now get reenabled when switching from X11 to a virtual text console, and disabled when switching back to X.
2015-05-08Fix the indentation. While originally I thought this was an if statementJonathan Gray
with missing braces ratchov checked the specs to see the current behaviour is correct, just poorly formatted. ok ratchov@
2015-05-08Add missing sabresd case statements. As sabresd_devs[] includes imxgpioJonathan Gray
an attempt to boot on sabresd would have tried to deref NULL function pointers.
2015-05-08Add initial board specific parts of novena support, tested by djm@Jonathan Gray
While novena has it's own board id it's u-boot does not set it. "setenv machid 10ad" in u-boot will set the novena board id (0x10ad/4269).
2015-05-07msleep(9) must prevent kernel from attempting a context switchMike Belopuhov
during autoconf and after panics. Tweak and OK guenther, OK miod
2015-05-07Include the timestamp TCP option in keep alive packets as well.Mike Belopuhov
According to RFC 7323 "once TSopt has been successfully negotiated, ... [it] MUST be sent in every non-<RST> segment for the duration of the connection." Which means that keep alives which are just ACK packets must include that too. Pointed out and tested by Lauri Tirkkonen <lotheac at iki ! fi>, thanks! ok mpi
2015-05-07Pass a thread pointer instead of its file descriptor table to getvnode(9).Martin Pieuchot
Input and ok millert@
2015-05-07remove badly indented printf and it's preceeding testJonathan Gray
as suggested by miod@
2015-05-07fix indentationJonathan Gray
ok miod@