Commit Graph

135169 Commits

Author SHA1 Message Date
uwe 084859f23d Move deallocation of shstrsz inside the block where it is allocated. 2017-04-18 06:39:54 +00:00
ozaki-r 2620e166df Convert IPSEC_ASSERT to KASSERT or KASSERTMSG
IPSEC_ASSERT just discarded specified message...
2017-04-18 05:26:41 +00:00
ozaki-r b4d2d2c260 Remove __FreeBSD__ and __NetBSD__ switches
No functional changes (except for a debug printf).

Note that there remain some __FreeBSD__ for sysctl knobs which counerparts
to NetBSD don't exist. And ipsec_osdep.h isn't touched yet; tidying it up
requires actual code changes.
2017-04-18 05:25:32 +00:00
msaitoh a607c0a0a4 Enable PCIe's interrupt as much as possilbe in ppb(4) to detect and count
status change event. HotPlug function itself have not implemented yet.

 - Interrupt and each event are counted by evcnt(9). Example:

   ppb0 Interrupt                                                0    0 intr
   ppb0 Attention Button Pressed                                 0    0 misc
   ppb0 Power Fault Detected                                     0    0 misc
   ppb0 MRL Sensor Changed                                       0    0 misc
   ppb0 Presence Detect Changed                                  0    0 misc
   ppb0 Command Completed                                        0    0 misc
   ppb0 Data Link Layer State Changed                            0    0 misc

 - Print message if ppb_printevent is not zero. The default vaule is 0.
   The output messages:

   Attention Button Pressed
   Power Fault Detected
   MRL Sensor Changed
   Presence Detect Changed
   Command Completed
   Data Link Layer State Changed

 - Remove workaround code to disable interrupt (ppb.c rev. 1.35).

 Tested with Dell Latitude 2120 without if_bge.c rev. 1.304's workaround.
dmesg when bge's device timeout occured:

   ppb3: Presence Detect Changed
   ppb3: Data Link Layer State Changed
   ppb3: Presence Detect Changed

vmstat -e |grep ppb

   ppb3 Interrupt                                             2    0 intr
   ppb3 Presence Detect Changed                               2    0 misc
   ppb3 Data Link Layer State Changed                         1    0 misc
2017-04-18 05:21:34 +00:00
nat c65925dd1f Improved mixing function - more expensive in cycles though.
hw.driverN.saturate is no longer needed and has been removed.

Mixing function thanks to jmcneill@.
2017-04-17 22:40:06 +00:00
nat fda69a13cf hw.driverN.saturate bool->integer (default 16).
This means for a greater number than 16 (or user set value) the saturate
function is turned off.  Results in better listening if a large number of
channels are in use.
2017-04-17 20:17:08 +00:00
uwe 49bc163dcc Section at index 0 is SHN_UNDEF. When searching for symbol sections
skip it and start with index 1.
2017-04-17 18:06:30 +00:00
uwe 936554cd90 Don't hide first = 1 assignment inside for(), that just obscures the
loop.  Same object code is generated.
2017-04-17 17:44:48 +00:00
riastradh c4a41aa8cd IPL_SOFTUSB suffices here to synchronize with usb xfer callback. 2017-04-17 16:42:07 +00:00
riastradh d7f92c3035 Follow my own locking rules. 2017-04-17 15:43:40 +00:00
skrll 18f3f67857 Perform icache syncs for ARM_MMU_EXTENDED as well. This helps the PT_STEP
code in pr/52119 and probably other things.
2017-04-17 14:52:52 +00:00
bouyer e547f1273c Disable MULTIPROCESSOR for dom0. The dom0 support code is not MP-safe
(see xen_shm_machdep.c for example, but there are probably others).
2017-04-17 09:54:59 +00:00
msaitoh d081c6306b Use macro. No functional change. 2017-04-17 09:33:00 +00:00
riastradh 9388cbcd35 Tweak locking rule. Fix broken unlocked rmw. 2017-04-17 09:16:13 +00:00
riastradh b0dc3be1fb regen 2017-04-17 09:03:50 +00:00
riastradh 4299c62826 New rndsource driver for Araneus Alea II TRNG USB devices.
Disabled by default in x86/GENERIC and usbdevices.config pending
review and testing without rump ugenhc in the way, but enabled in
x86/ALL for compile-testing.

(Hi gson!  Finally found a round tuit in my pocket, next to a certain
rectangular one.)
2017-04-17 08:59:37 +00:00
hannken fa1558d33f Welcome to 7.99.70 2017-04-17 08:34:58 +00:00
hannken bd152b56b5 Add vfs_trybusy() and mountlist_iterator_trynext() and use it for the syncer. 2017-04-17 08:34:27 +00:00
hannken eb8533a8b6 No need to keep a not yet visible mount busy. Move vfs_busy()
from vfs_mountalloc() to vfs_rootmountalloc().

XXX: Do we really need to vfs_busy() for vfs_mountroot?
2017-04-17 08:32:55 +00:00
hannken 20bb034f5b Remove unused argument "nextp" from vfs_busy() and vfs_unbusy().
Remove argument "keepref" from vfs_unbusy() and add vfs_ref() where needed.
2017-04-17 08:32:00 +00:00
hannken ebb8f73b4b Add vfs_ref(mp) and vfs_rele(mp) to add or remove a reference to
struct mount.  Rename vfs_destroy(mp) to vfs_rele(mp) and replace
incrementing mp->mnt_refcnt with vfs_ref(mp).
2017-04-17 08:31:01 +00:00
hannken 256581e1f9 Cleanup after mountlist iterator:
- remove now unused field mnt_list.
- rename mount_list to mountlist and make it local to vfs_mount.c.
- make mountlist_lock local to vfs_mount.c.

Change pstat.c to retrieve vnodes by lru lists.
2017-04-17 08:29:58 +00:00
maya 59550b6772 Uncomment MULTIPROCESSOR in dom0 kernels 2017-04-17 07:19:28 +00:00
riastradh ee1810e5f9 Fix bulk xfer buffer with usedma = false. 2017-04-17 07:13:30 +00:00
ozaki-r 0d3ed86269 Accept AH with NULL algorithm of zero-length key 2017-04-17 05:48:18 +00:00
riastradh ebe393339f Fix order of outputs in rumpuser_open call.
Now ugenhc works again after a four-year hiatus...
2017-04-17 05:11:05 +00:00
jmcneill 1819be0892 Set cpu_cc_freq when changing frequencies. 2017-04-17 00:43:42 +00:00
jmcneill c983b58bbf Fix previous; pci_intr_setattr takes a pci_intr_handle_t not the driver's
opaque handle.
2017-04-16 22:38:04 +00:00
jmcneill fa7f7f0ebb Add support for PCI_INTR_MPSAFE 2017-04-16 18:05:35 +00:00
jmcneill 998172e3e0 Add function ptr for pci_intr_setattr to struct arm32_pci_chipset 2017-04-16 18:02:50 +00:00
riastradh e67dab8d81 Can't destroy pb until we're done using it. 2017-04-16 17:45:12 +00:00
riastradh 629022bd8f regen to confirm no functional change 2017-04-16 17:18:54 +00:00
riastradh f2ed57297a Count vnode arguments correctly.
Don't count arguments that have WILLRELE/WILLPUT; count arguments
that are struct vnode *.

No functional change currently because it happens that every released
or put vnode argument comes first or after other ones.
2017-04-16 17:18:28 +00:00
riastradh d08e9ec7c8 regen 2017-04-16 16:49:25 +00:00
riastradh 6f8a4faacd Back out previous.
Breaks file systems for which VOP_UNLOCK doesn't work on a reclaimed
vnode.

The only case in tree right now is sys/fs/union -- most file systems
use genfs_unlock, which does work on a reclaimed vnode.

Maybe we can work around this -- and still enable VOP_RECLAIM's
callees to assert lock ownership -- by having VOP_RECLAIM unlock the
vnode instead.
2017-04-16 16:48:08 +00:00
jmcneill 67f4fe25f5 Adapt for clock domain support 2017-04-16 15:52:43 +00:00
jmcneill 9d68f27c55 Init array no longer required 2017-04-16 15:52:16 +00:00
jmcneill 85435f6258 typo fix 2017-04-16 15:49:26 +00:00
jmcneill 156a4eed15 Disable SDR104 until the Tegra K1 custom tuning method is implemented.
This is required to work around errata that describes periodic data CRC
errors after autotuning has completed.
2017-04-16 13:27:19 +00:00
jmcneill 443b940393 Add fclock(4) 2017-04-16 12:29:40 +00:00
jmcneill d374aef866 Add support for simple fixed-rate clock source bindings. 2017-04-16 12:29:20 +00:00
jmcneill e69bfca1e7 Add support for multiple clock domains in clk API. 2017-04-16 12:28:21 +00:00
jmcneill 92da0dd801 Remove list of init devices 2017-04-16 12:27:47 +00:00
jmcneill ad4ceac9f3 get cpu pll clock from devicetree 2017-04-16 12:26:04 +00:00
jmcneill 757d874dfd Attach devices in order of "phandle" property inserted by DTC. 2017-04-16 12:24:57 +00:00
jmcneill cf7b339f47 Get DC clock parent from devicetree 2017-04-16 12:22:18 +00:00
riastradh 5a3d793f2a regen to confirm no functional change 2017-04-15 23:21:46 +00:00
riastradh ce1c68db98 Keep vnode locked during VOP_RECLAIM.
No bump because it wouldn't have been possible to acquire the lock in
VOP_RECLAIM anyway -- instant deadlock because vn_lock waits to
transition out of the RECLAIMING state first.  Benefit is that we can
now assert ownership of the lock in any operations called by
VOP_RECLAIM.

Discussed on tech-kern:

https://mail-index.netbsd.org/tech-kern/2017/04/01/msg021751.html
2017-04-15 23:16:53 +00:00
christos 3d6520b363 cosmetic fixes:
- __func__ in printfs
	- no space after sizeof
	- eliminate useless casts
	- u_intX_t -> uintX_t
2017-04-15 22:01:57 +00:00
kamil 0c8a82569b Build without installation example lua kernel module: luareadhappy 2017-04-15 18:22:35 +00:00
riastradh c8bcfc34de No need for membar_datadep_consumer here.
PSLIST_READER_FOREACH takes care of it already.
PSLIST_WRITER_FOREACH is exclusive so doesn't need it.
2017-04-15 17:06:45 +00:00
kamil 502c2ed2ba Add new example kernel module in Lua luareadhappy
This example presents a C module with its device (/dev entry) and its
content generator with algorithm defined in Lua state. The Lua state can
be changed dynamically from userland, without interruption of read(2) over
the device.

This is an example how to call Lua code from C.
2017-04-15 04:27:30 +00:00
jmcneill a1e104d5ce Replace early init node name list with a list of compatible strings. 2017-04-15 00:35:12 +00:00
jmcneill 2a9f65654c Change order in which nodes in the devicetree are processed.
1. Attach all known busses.
2. Attach all "early init" devices (by compatible string).
3. Finally, attach all other devices.
2017-04-15 00:34:29 +00:00
jmcneill 899026e63c Remove simplebus driver and allow fdtbus to attach directly to itself. 2017-04-14 22:55:06 +00:00
christos 4a345c3145 PR/52161: Ryota Ozaki: Fix AH tunnel ipsec for ipv6. Compute plen right,
don't forget to subtract the ipv6 header length.
2017-04-14 22:35:05 +00:00
christos def487d659 - fix old refactoring which zeroed the wrong part of the buffer.
- simplify.
2017-04-14 22:29:17 +00:00
christos 1c33db60e4 change into __func__ 2017-04-14 18:06:11 +00:00
jmcneill 5c16178e92 Add GPU gating clock 2017-04-14 09:50:56 +00:00
knakahara 200097fdf5 disable msi/msix when the system doesn't detect ioapic. This would fix PR kern/52111.
Some system does not detect ioapic when "boot -1", disable acpi, and so on.
In such cases, msi/msix doesn't work, so disable them.

This patch is implemented by nonaka@n.o, I just commit by proxy, thanks.
2017-04-14 09:34:46 +00:00
kamil 97ccec3243 x86: Export fpu_save, fpu_save_size, xsave_features to dedicated sysctl nodes
Add new defines:
 - CPU_FPU_SAVE (15)
   int: FPU Instructions layout
   * to use this, CPU_OSFXSR must be true
   * 0: FSAVE
   * 1: FXSAVE
   * 2: XSAVE
   * 3: XSAVEOPT
 - CPU_FPU_SAVE_SIZE (16)
   int: FPU Instruction layout size
 - CPU_XSAVE_FEATURES (17)
   quad: FPU XSAVE features

Bump CPU_MAXID from 15 to 18.

These values were prepared originally to be exported without ASCIIZ name to
be used as handler. These values are useful to get FPU accessors in a
debugger easier to implement on x86 (PT_SETFPREG, PT_GETFPREG).

This interface handles all supported x86 targets. In the older (i386) and
less featured CPUs check first osfxsr (OS uses FXSAVE/FXRSTOR).

According to sys/arch/x86/include/cpu.h r.1.65 this was prepared to be
exported beyond simple CTL_CREATE node.

Sponsored by <The NetBSD Foundation>
2017-04-14 04:43:47 +00:00
ozaki-r 469c0f099a Rumpify netipsec
Note that we should modularize netipsec and reduce reverse symbol references
(referencing symbols of netipsec from net, netinet and netinet6) though,
the task needs lots of code changes. Prior to doing so, rumpifying it and
having ATF tests should be useful.
2017-04-14 02:43:27 +00:00
jmcneill 030df65867 Only route USB ports to XHCI controller after the firmware is loaded
successfully. This gives us working USB (via USB2 controllers) until the
tegra-firmware package is installed.
2017-04-14 00:19:34 +00:00
nat 0e007aeed4 Increase the priority of the mixing thread yet again.
Ensure that there is data in the mix ring.

Addresses PR kern/52098.
2017-04-14 00:05:46 +00:00
jmcneill 498820abda Allow devices to attach to nodes without a "compatible" property, but only
print "not configured" messages for nodes with one.
2017-04-13 22:27:07 +00:00
jmcneill de49aef46f Print the full DT node path in "not configured" autoconf messages.
Before:  clock at fdt2 not configured
After:   /clocks/clock@0 at fdt2 not configured
2017-04-13 22:12:53 +00:00
jmcneill 15c628a0dd DT ode path to i2c controller with ams3722 has changed from /i2c@0,7000d000
to /i2c@7000d000 in newer dts files. Support both paths for cpufreq
scaling.
2017-04-13 21:20:44 +00:00
skrll 6af63bc7d1 PR/52154: xHCI Slot Context Not Include in configure endpoint process
eXtensible Host Controller Interface Specification(rev 1.1), 4.6.6:

"A0 shall be set to 1 and refer to section 6.2.2.2 for the Slot Context fields
used by the Configure Endpoint Command."
2017-04-13 19:54:22 +00:00
christos 62446aa148 Redo the statistics through an indirection array and put the definitions
of the arrays in pfkeyv2.h so that they are next to the index definitions.
Remove "bogus" comment about compressing the statistics which is now fixed.
2017-04-13 16:38:31 +00:00
christos 2f20de3155 bump to 59: mountiterator changes/vnode stuff make the tmpfs module crash. 2017-04-13 16:32:00 +00:00
knakahara 54559a2194 wm(4) can disable msi/msix by build option and ddb command.
suggested by nonaka@n.o.
reviewed by msaitoh@n.o and nonaka@n.o.
2017-04-13 10:37:36 +00:00
hannken 4f91c8bb19 Switch lfs_flush() and lfs_writerd() to mountlist iterator. 2017-04-13 09:57:28 +00:00
hannken 769f0c92c9 Switch procfs_domounts() to mountlist iterator. 2017-04-13 09:54:18 +00:00
hannken cb023de545 Change command mountdump to evaluate mountlist_entry. 2017-04-13 09:52:18 +00:00
hannken d177c6cd5a Switch compat_20_netbsd32_getfsstat() to mountlist iterator. 2017-04-13 09:46:59 +00:00
hannken 7ca0d1e255 Switch NdisOpenFile() to mountlist iterator.
XXX: Do we need a function or variable to retrieve the root mount or NULL?
2017-04-13 09:44:48 +00:00
hannken 8fd5bc95f8 Switch compat_20_sys_getfsstat() to mountlist iterator. 2017-04-13 09:41:28 +00:00
msaitoh 233ee5301d Add forgotten BGE_EVCNT_INCR() for spurious interrupt. 2017-04-13 09:25:33 +00:00
hannken e0818a4b75 Switch ultrix_sys_getmnt() to mountlist iterator.
Really skip "start" items instead of a useless loop.
Compile tested only.
2017-04-13 09:18:18 +00:00
hannken 819b8261d6 Switch osf1_sys_getfsstat() to mountlist iterator.
Compile tested only.
2017-04-13 09:17:55 +00:00
skrll 070497e366 Paranoia... keep vmspace reference while doing pmap_procwr 2017-04-13 07:58:45 +00:00
msaitoh b734e166a9 - Read chip ID correctly on BCM57782 and BCM57786.
- Add BXCM57766 A0 string.
- Add comment for BCM5776[56]'s workaround.
2017-04-13 04:27:46 +00:00
msaitoh 414cfa3e2c regen. 2017-04-13 04:04:39 +00:00
msaitoh 490bdb899e Add Broadcom BCM577x5 SDMMC, Memstic and xD. 2017-04-13 04:04:13 +00:00
ozaki-r 61c284b0f0 Fix that ah_algorithm_lookup and esp_algorithm_lookup don't handle some algorithms
Unrelated upper limit values, AH_ALG_MAX and ESP_ALG_MAX, prevented some
algorithms from being looked up.
2017-04-13 01:32:57 +00:00
ozaki-r 7654585ce6 Fix usage of MD5Final/SHA1Final
Passing NULL as the digest parameter is wrong.
2017-04-13 01:24:34 +00:00
maya 48b3001c8d if MGETHDR fails, don't try to copy to single mbuf and deref null.
reduce ifdefs.
2017-04-13 00:47:33 +00:00
knakahara d5d260eb06 l2tp(4) support when hashinit() cannot allocate requried hash size.
pointed out by s-yamaguchi@IIJ
2017-04-13 00:12:10 +00:00
christos cd306a0c3c use opt_kmem.h for the KMEM_ variables. 2017-04-12 20:05:54 +00:00
kamil 12cbcbd04f Add new macro PTRACE_BREAKPOINT_ASM in <sys/ptrace.h> MD part
This macro ships with a MD-specific assembly instruction triggering
a software breakpoint.

Missing instruction for powerpc targets.

This code is used in ATF tests (lib/libc/sys/t_ptrace_wait).

Original patch by Nick Hudson, thanks!
2017-04-12 18:17:59 +00:00
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 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
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
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 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
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
jdolecek a11ceffedb just do not autoload scsiverbose module, it causes deadlock if it happens
while root fs is being mounted

adresses second part of PR kern/52147 by Michael van Elst, thank you
2017-04-10 21:53:37 +00:00
jdolecek 6ef596151b rename allow_fuadpo to allow_dpofua, so it's the same order as the SCSI flag 2017-04-10 21:36:05 +00:00
jdolecek 75f6d4fd1a improve performance of journal writes by parallelizing the I/O - use 4 bufs
by default, add sysctl vfs.wapbl.journal_iobufs to control it

this also removes need to allocate iobuf during commit, so it
might help to avoid deadlock during memory shortages like PR kern/47030
2017-04-10 21:34:37 +00:00
jdolecek 946ca69f6d change b_wapbllist to TAILQ, to preserve the LRU order 2017-04-10 19:52:38 +00:00
jdolecek ce9e7213cd execute the cache page MODE SENSE with XS_CTL_SILENT; it's pretty normal
for e.g. USB sticks thus showing error is not really useful, and the pretty
printing triggers autoload of scsiverbose module and immediate deadlock when
the DIOCGCACHE call is made by WAPBL during root mount

adresses PR kern/52147 by Michael van Elst
2017-04-10 18:20:43 +00:00
dholland d4f30a5920 Return value pointers should be the last argument. 2017-04-10 15:04:32 +00:00
christos b12f0138d5 PR/52150: Ryota Ozaki: ipsec: kernel panic on adding a key with an invalid
length.
2017-04-10 14:19:22 +00:00
ozaki-r 51b95f5900 Fix assertion failure in in6_lookup_multi via key_ismyaddr
in6_lookup_multi was forgotten to be migrated to in6_multi_group.
Also psz should be changed to psz/psref because in6_multi_group is
sleepable.

Fix PR kern/52151
2017-04-10 14:02:25 +00:00
christos 6cc95957aa move vers.c evaluation before we use ${SRCS} 2017-04-09 22:50:02 +00:00
christos 7e85a3e3e4 move .for generated rules after OBJS have been set. 2017-04-09 20:51:55 +00:00
christos 0b98b0bb96 no need fo clean vers.c
fix typo
2017-04-09 18:46:55 +00:00
riastradh ed48053224 Simplify various logic: replace an ad hoc condvar by callout_halt. 2017-04-09 16:40:42 +00:00
christos 06949d0fb3 Put back KLINK_MACHINE 2017-04-09 16:29:46 +00:00
christos ba7d1bac8e one typedef for fenv_t is enough. 2017-04-09 15:15:34 +00:00
christos 6f3dbe105c Fix typo 2017-04-09 14:52:14 +00:00
christos 2bd88831c8 make this work again. 2017-04-09 14:51:52 +00:00
dholland 492367a1e1 speed limit 80 2017-04-09 00:02:30 +00:00
christos 1f1b1925f3 adjust flag. 2017-04-08 23:46:39 +00:00
scole a8da0966b9 Fix a possible infinite loop in pmap_kremove() 2017-04-08 20:59:27 +00:00
christos 169a1fef7d Add makefile snippet for vers.c building. 2017-04-08 19:53:54 +00:00
christos cb5e99c661 centralize vers.c building for standalone programs. 2017-04-08 19:53:19 +00:00
christos 15545435eb - modernize: use getopts/usage/true/false variables
- if ${MKREPRO_TIMESTAMP} is used, synthesize all the information, instead
  of eliding it.
2017-04-08 18:24:09 +00:00
scole 9e1de6e8d7 Add #ifdef so ski emulator won't crash. This change probably wouldn't
hurt other archs, but just apply to ia64 to be safe.
2017-04-08 18:10:43 +00:00
scole b9ac323c78 Attempted port over from FreeBSD with suggestions from <chs>. Still
more work needed, but at least now the ski simulator and hardware die
at the same place.
2017-04-08 18:08:33 +00:00