263659 Commits

Author SHA1 Message Date
sevan
861b7e9a71 Spelling 2018-12-08 14:55:53 +00:00
bouyer
c0f69c43f3 Don't try to handle interrupts for a detached device. Should fix
panic on shutdown reported by Stefan Hertenberger on current-users.
2018-12-08 13:31:31 +00:00
wiz
e1f1a9870c Improve man page. 2018-12-08 12:18:37 +00:00
mlelstv
7165232755 Add machdep.cpu.frequency.available node to support estd.
While the RPI can run at many intermediate clock frequencies,
this is sufficient for estd and is known to work with every
firmware revision.
2018-12-08 06:53:11 +00:00
sevan
23472bf8b1 Include ztest(1) in builds. 2018-12-08 01:47:21 +00:00
sevan
ee544a8d7f Add a draft manual for ztest(1), based on the comments from zfstest.c (WIP). 2018-12-08 01:28:27 +00:00
jdolecek
639fa15b19 add optional hook for intr establish when active port is attached, export
ahci_intr_port() in form suitable for interrupt hanlder, and probe for GHC
MRSM flag as courtesy for use by the intr hook

towards multi-vector MSI/MSI-X support
2018-12-07 22:22:12 +00:00
jdolecek
1d8d40bf6e save some notes from my two years old hacking on ext3/ext4 support with
our ext2fs
2018-12-07 21:28:03 +00:00
jakllsch
719b9b8549 Add speeds B500000 to B4000000 in increments of 500000.
Motivated by picocom checking for the existance of these at compile
time, and therefor previously not being able able to use picocom to
access the consoles of modern Rockchip SoCs (for example RK3399) running
at B1500000.
2018-12-07 19:01:11 +00:00
ryo
60c9286434 add simple stack overflow checker for debugging 2018-12-07 18:46:27 +00:00
jakllsch
c2323eb1dc reindent "standard speeds" in preparation for 7-digit bauds 2018-12-07 18:45:13 +00:00
ryo
0d469143b3 modifying curlwp->l_md_ktf, curlwp->l_md_cpacr, and curlwp should be protected by a critical section. 2018-12-07 18:27:03 +00:00
sevan
874c81780f Continuing with ZFS 2018-12-07 17:58:29 +00:00
kamil
d249bd0470 Add new entry in TODO.sanitizers for NetBSD tar(1) enhancement request
Added:
 - NetBSD tar: handle character escaping in file names (\\ \), needed in
   check-lld (lld::reproduce-backslash.s)
2018-12-07 17:57:22 +00:00
jakllsch
20fc3148e0 fix a paste-o in a panic message 2018-12-07 17:56:41 +00:00
sevan
0a2c5d1e09 Add some ZFS related acronyms.
While here, replace spaces with a tab for ZFS entry.
2018-12-07 16:36:30 +00:00
maxv
ac147c2a99 Add an option to have a static kernel memory layout. This option is
disabled by default - that is to say, KASLR remains enabled by default.
2018-12-07 15:47:11 +00:00
mlelstv
40d825b97a interlock isn't taken when cleaning up. 2018-12-07 14:59:19 +00:00
roy
9aebb96254 inet6: match NS nonce to any interface
This allows the same address to exist on many interfaces on the same
prefix, matching the inet behaviour.
2018-12-07 14:47:24 +00:00
msaitoh
0d6a6f842d - defflag PPB_USEINTR
- Print "interrupting at "
2018-12-07 09:36:26 +00:00
ozaki-r
60afc5cb5b tests: check error messages strictly 2018-12-07 09:29:01 +00:00
ozaki-r
fba119d2aa tests: reduce repeated phrases... (NFC) 2018-12-07 09:28:31 +00:00
knakahara
d2e69c9963 ipsecif(4) should not increment drop counter by errors not related to if_snd. Pointed out by ozaki-r@n.o, thanks. 2018-12-07 09:11:04 +00:00
msaitoh
7dae133993 No functional change. OK'd by nonaka:
- Use correct macro.
- Don't use magic number.
2018-12-07 08:52:43 +00:00
msaitoh
b8bb37ebaf xHCI uses BAR0 to map memory space. If a chip has MSI-X capability and it
points to BAR0, reserve the space. Almost the same as nvme_pci.c.

XXX Is it possible to make a nice API?
2018-12-07 08:28:44 +00:00
knakahara
c9c343de7f ipsecif(4) support input drop packet counter. 2018-12-07 05:09:39 +00:00
tih
138c67b5ef Summary: Align softfloat float128 with libgcc.
While libgcc adapts its float128 data structure to the endianness of
the architecture, the softfloat code in libc didn't.  With both of
them handling the same values, softfloat must follow the toolchain.

OK: riastradh
2018-12-06 19:17:13 +00:00
sevan
3803d792b7 Document the source of load average figures. 2018-12-06 19:15:35 +00:00
sevan
d63ba803ad Add a statement about uptime's relation to w(1). 2018-12-06 19:01:53 +00:00
skrll
71f3288044 Expose CACHE_LINE_SIZE (and COHERENCY_UNIT) so that fstat can work 2018-12-06 18:36:06 +00:00
maxv
d8f47ae19f Simplify, use _pi instead of modulos, no real functional change. 2018-12-06 17:44:28 +00:00
maxv
40a776b886 Fix inconsistency, these are indexes and not types, no real functional
change.
2018-12-06 17:26:18 +00:00
ginsbach
a9b3f86f25 Add BUAG, DCIM (2x), and SDP 2018-12-06 14:22:48 +00:00
christos
41d7b1faa0 Typo fix (Geoff Wing) 2018-12-06 13:51:43 +00:00
msaitoh
22298f59a4 Apply FreeBSD ix-3.3.6.tar.gz's change to NetBSD. Tested on C3000 and X550-T1,
but not tested on Xeon D:
- Add firmware recovery mode for X550, X550A(Xeon D) and X550EM (C3000):
  - FreeBSD always set IXGBE_FEATURE_RECOVERY_MODE without checking the
    NVM image version. We compare it against 2.0 to not to make new callout and
    not to call extra atomic operations.
  - In some FreeBSD's sysctl functions, atomic_load_acq_int() is called
    before a null pointer check. We call it after null pointer check.
  - Before calling atomic_load_acq_uint(), check adapter->feat_en flags
    to save atomic operation call.
  - We don't check recovery_mode in ixgbe_set_sysctl_value() because this
    function doesn't touch any hardware register.
  - NetBSD don't have FreeBSD's atomic_load_acq_int()-like function, so do it
    with membar_sync(). Thanks riastradh@ for the advice.
- FreeBSD's ix-3.3.6 changed ixgbe_enable_aim from TRUE to FALSE, but we will
  keep it as TRUE because we have already fixed some bugs.
- Remove IXGBE_DEV_ID_82599_LS(0x154f) support again. I don't know why. This
  was added in ix-3.2.18.tar.gz(NetBSD: ixgbe_82599.c rev. 1.20) and removed in
  ix-3.3.6.tar.gz.
- On X550EMU, use ixgbe_identify_sfp_module_X550em() instead of
  ixgbe_identify_module_generic(). ixgbe_identify_sfp_module_X550em() has
  extra check (e.g. exclude 1G copper).
- if_sriov.c's change doesn't affect to NetBSD because we don't support
  SR-IOV PF function.
2018-12-06 13:25:02 +00:00
hannken
e9166d7318 We have component names as counted strings (cn_nameptr, cn_namelen) but
ZFS expects a null-terminated name.

Always create a copy with PNBUF_GET()/strlcpy()/PNBUF_PUT().

For LOOKUP use a small buffer on stack and allocate/free compomnent names
longer than 30 chars.
2018-12-06 10:00:40 +00:00
hannken
b4b8646326 Add missing ZFS_OBJ_HOLD_ENTER() / ZFS_OBJ_HOLD_EXIT() to zfs_zget_cleaner(). 2018-12-06 09:58:52 +00:00
kamil
cae5584ffc Correct handling of minval > maxval in strtonum(3)
The original implementation in OpenBSD returns "invalid" and avoids reading
the input string. The replaced behavior was interpreting the input string
ignoring the invalid arguments.
2018-12-06 06:29:56 +00:00
uwe
daa7ad8402 #ifdef _KERNEL_OPT 2018-12-06 01:42:20 +00:00
sevan
fd25e7cfc8 Document vmstat -w -1 is accepted.
via FreeBSD.
2018-12-05 23:42:23 +00:00
jmcneill
c3589be436 Add CPU performance counter support 2018-12-05 22:42:55 +00:00
jmcneill
7a021f31c8 Add needs-flag to tprof_armv8.c 2018-12-05 22:42:27 +00:00
kre
78cb4ed28f evert previous, linux build problem confirmed fixed by
update to mkinit.sh (to 1.10).

Or more correctly, revert & fix - turns out that there was an off by one
(failure to adjust for other changes -- in a value printed by debug mode
trace output).

NFC.
2018-12-05 22:25:38 +00:00
jmcneill
8f749d3752 Split armv7/armv8 tprof backend config logic from the fdt bus glue. 2018-12-05 21:43:33 +00:00
wiz
49bf433ea6 Remove trailing whitespace. Remove comma for better readability. 2018-12-05 21:15:20 +00:00
christos
0063e4e1c0 no more need for get_expose_address() here. 2018-12-05 19:56:49 +00:00
christos
dea5460561 As discussed in tech-kern:
- make sysctl kern.expose_address tri-state:
	0: no access
	1: access to processes with open /dev/kmem
	2: access to everyone
  defaults:
	0: KASLR kernels
	1: non-KASLR kernels

- improve efficiency by calling get_expose_address() per sysctl, not per
  process.

- don't expose addresses for linux procfs

- welcome to 8.99.27, changes to fill_*proc ABI
2018-12-05 18:16:51 +00:00
wiz
122244022d Remove trailing whitespace. 2018-12-05 14:45:59 +00:00
sevan
0bfe72a3d3 Add some performance related acronyms from Brendan Gregg's USE Method: Rosetta
Stone of Performance Checklists along with alternatives from IBM documentation
(CPC)
http://www.brendangregg.com/USEmethod/use-rosetta.html
2018-12-05 14:44:54 +00:00
bouyer
03a62583b8 There's no sensors for physical disks so don't try to detach them. 2018-12-05 10:38:22 +00:00