Commit Graph

249901 Commits

Author SHA1 Message Date
nat 6c84530b88 Increase the priority of the mixing thread to improve performace under
load.

This should address PR kern/52098.
2017-04-12 14:21:12 +00:00
nat bdb36270f0 Insert silence into the mix ring if there is no audio (or audio cannot
keep up) from the channels.

Addresses PR kern/34647.
2017-04-12 14:15:50 +00:00
hannken e08a8c4104 Switch vfs_getvfs(), dounmount() and vfs_mountroot() to mountlist iterator.
Add a helper to retrieve a mount with "highest generation < arg" and
use it from vfs_unmount_forceone() and vfs_unmountall1().
2017-04-12 10:35:10 +00:00
hannken 6058fea9b5 Switch veriexec_dump() and veriexec_flush() to mountlist iterator. 2017-04-12 10:30:02 +00:00
hannken a315c73868 Switch do_sys_sync() and do_sys_getvfsstat() to mountlist iterator. 2017-04-12 10:28:39 +00:00
hannken 3137e0cee1 Switch vfs_vnode_lock_print() and printlockedvnodes() to _mountlist_next().
Switch sched_sync() and sysctl_kern_vnode() to mountlist iterator.
2017-04-12 10:26:33 +00:00
hannken 5ff843c227 Switch fstrans_dump() to _mountlist_next(). 2017-04-12 10:23:35 +00:00
martin c3c564b370 Make the non-DIAGNOSTIC version compile 2017-04-12 06:43:56 +00:00
msaitoh 92a8537b4b Add a workaround for BCM57780 to prevent device timeout. This change prevent
L1PM feature do wrongy. Tested with Dell latitude 2120.
2017-04-12 06:22:16 +00:00
msaitoh 44790b71a1 Fix a bug that BCM5785 write wrongly to the PCI config area. 2017-04-12 06:04:34 +00:00
msaitoh 6d4127c9b8 Add counters for spurious interrupts. 2017-04-12 05:59:43 +00:00
msaitoh 56d0e2153c Detach sysctl and event counters in bge_release_resources(). 2017-04-12 05:50:52 +00:00
knakahara c053c2614b improve comments about the difference between legacy/msi and msix.
pointed out by msaitoh@n.o.
2017-04-12 05:08:00 +00:00
jmcneill b36f0941dd Make tegra_mc_intr static to match prototype 2017-04-12 00:39:28 +00:00
nat 8d470a9b91 audioclear needs first channel in the queue not 0 (fixes panic).
Ignore the interrupt completely (audio_[pr]int) if not open.
2017-04-11 23:49:17 +00:00
jmcneill 760a6ac1d6 Remove a test that prevents tuning from happening on eMMC devices. 2017-04-11 23:26:33 +00:00
christos d8c52c37b1 use a different root vnode variable to appease the rump gods. 2017-04-11 21:15:57 +00:00
jmcneill 4d3af4e0f2 Now that FAT+FFS images include the BSD partition in the MBR partition
table, install the disklabel after setting up MBR partitions. This moves
the disklabel to the BSD partition from the start of the disk, avoiding
a conflict with the ODROID-C1 bootloader.
2017-04-11 21:06:30 +00:00
roy 9ceca8afd6 Cast sizeof to socklen_t as pointed out by kre@ 2017-04-11 18:20:03 +00:00
jmcneill efb61fccf8 Improvements and fixes for FAT+FFS images:
- Add a "NETBSD" volume label to the MSDOS file-system.
 - Explicitly initialize boot sector.
 - Correct an issue where the MSDOS file-system was larger than the
   partition table entry.
 - Add NetBSD partition to the MBR partition table.
2017-04-11 18:04:08 +00:00
abhinav bf08a0975f Use more markup for `struct timespec`
Use Xr to refer to timespec(3)
Add timespec(3) to SEE ALSO
2017-04-11 17:59:23 +00:00
jmcneill 43bbd720db Increase the size of the boot partition and remove the 'd' part from the
disklabel.
2017-04-11 17:30:17 +00:00
sjg 624bde60ca Str_Match: allow [^a-z] to behave as expected. 2017-04-11 17:30:13 +00:00
jmcneill b3048c4121 Disable interrupts before returning from isr, and re-enable them when the
soft interrupt handler returns. Fixes an interrupt storm on Tegra K1.
ok christos@
2017-04-11 17:27:54 +00:00
flxd 117684898e Add PCI devices for vlpci(4). 2017-04-11 17:27:49 +00:00
riastradh 6d3ccf9762 Simplify: eliminate a now-needless unlock/lock cycle. 2017-04-11 14:45:46 +00:00
christos b23251f1fa return EPERM like the other failures. 2017-04-11 14:37:07 +00:00
christos efe6ce389d Put back module_autoload code; the module_autoload code now checks that
root is mounted.
2017-04-11 14:32:43 +00:00
christos e85d5cbc14 Don't try to autoload modules before root is mounted. 2017-04-11 14:31:55 +00:00
riastradh b7fb52a55b regen to confirm no functional change 2017-04-11 14:30:33 +00:00
riastradh d20cc14aa7 Eliminate now-unused WILLUNLOCK vop flag. 2017-04-11 14:29:32 +00:00
roy 08bcff5614 Use RO_MSGFILTER. 2017-04-11 14:29:23 +00:00
riastradh 2b4f5f70bd regen 2017-04-11 14:26:13 +00:00
riastradh 87fb32292e Make VOP_INACTIVE preserve vnode lock on return.
Discussed on tech-kern:
https://mail-index.netbsd.org/tech-kern/2017/04/01/msg021751.html

Ride 7.99.68, a bumpy bus of incremental vfs improvements!
2017-04-11 14:24:59 +00:00
roy f2128fd5cf Use RO_MSGFILTER. 2017-04-11 14:15:08 +00:00
roy ce570b4d13 Use recvmsg(2) to read route(4) messages.
Use a shim function for this which can grow it's buffer when needed.
2017-04-11 14:13:01 +00:00
christos 9c32add5f8 Bye gnu!
christos
2017-04-11 14:05:35 +00:00
christos 7c333c1d16 don't descend into gnu 2017-04-11 14:04:15 +00:00
roy 5135ab1948 Add RO_MSGFILTER socket option to PF_ROUTE to filter out
un-wanted route(4) messages.

Inspired by the ROUTE_MSGFILTER equivalent in OpenBSD,
but with an API which allows the full range of potential message types.
2017-04-11 13:55:54 +00:00
jmcneill 314c2fae0e Hide debug messages with TEGRA_XUSBPAD_DEBUG 2017-04-11 11:32:51 +00:00
abhinav 3b14f403c3 s/Sets/Set: Use style consistent with the other sentences in that list.
Add .Pp before next sentence.
2017-04-11 11:06:39 +00:00
jmcneill e15f855fc1 Set SDHC_FLAG_NO_HS_BIT for Tegra sdhc. No noticeable impact on performance
and it seems to get rid of the spurious data transfer timeouts.
2017-04-11 11:06:02 +00:00
hannken 228d72edde Field "layerm_vfs" of "struct layer_mount" got superseded by "mnt_lower".
Adapt consumers and remove the now unused field.

Ride 7.99.68
2017-04-11 07:51:37 +00:00
hannken 2f4fa4f94f Add an iterator over the currently mounted file systems.
Ride 7.99.68
2017-04-11 07:46:37 +00:00
skrll 31e8296f1f Trailing whitespace 2017-04-11 07:45:36 +00:00
riastradh 4de868a56e New diagnostic functions vn_locked, vn_anylocked.
For use only within KASSERT.

vn_locked asserts exclusive lock, as most operations require.
vn_anylocked asserts exclusive or shared lock.

No effect unless VV_LOCKSWORK.  This will reduce the visual cost of
sprinkling lock ownership assertions throughout kern/vfs_*.
2017-04-11 06:47:25 +00:00
riastradh 666f39d910 Fix non-DIAGNOSTIC build by using vp outside KASSERT too. 2017-04-11 06:01:03 +00:00
riastradh aba083eab6 Sprinkle lock ownership assertions. 2017-04-11 05:48:04 +00:00
riastradh 74180a5176 Use a spin lock -- we take this in interrupt context.
The nv_wait is a busy-wait, so holding a spin lock over it is OK.

Found, fixed, and tested by maya.  Cosmetically tweaked by me.
2017-04-11 04:43:12 +00:00
christos 8984fca3dd add more dc, sort 2017-04-11 01:22:13 +00:00