cy [Thu, 21 Jul 2016 19:27:04 +0000 (19:27 +0000)]
Update leap-seconds to leap-seconds.
3676752000.
As per https://datacenter.iers.org/web/guest/eop/-/somos/5Rgv/latest/16:
UTC TIME STEP
on the 1st of January 2017
A positive leap second will be introduced at the end of December 2016.
The sequence of dates of the UTC second markers will be:
2016 December 31, 23h 59m 59s
2016 December 31, 23h 59m 60s
2017 January 1, 0h 0m 0s
The difference between UTC and the International Atomic Time TAI is:
from 2015 July 1, 0h UTC, to 2017 January 1 0h UTC : UTC-TAI = - 36s
from 2017 January 1, 0h UTC, until further notice : UTC-TAI = - 37s
Obtained from: ftp://tycho.usno.navy.mil/pub/ntp/leap-seconds.
3676752000
See also: https://www.iers.org/SharedDocs/News/EN/BulletinC.html
https://datacenter.iers.org/web/guest/eop/-/somos/5Rgv/latest/16
MFC after: 1 week
Relnotes: yes
emaste [Thu, 21 Jul 2016 18:47:51 +0000 (18:47 +0000)]
libmd: strip local absolute symbols (to link with lld)
Old versions of gas produce an invalid section index. That is ignored by
old versions of ld, but prevents a link with lld.
Submitted by: Rafael Ávila de Espíndola (earlier version)
Reviewed by: allanjude
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D6789
emaste [Thu, 21 Jul 2016 18:20:35 +0000 (18:20 +0000)]
libcxxrt: add padding in __cxa_allocate_* to fix alignment
The addition of the referenceCount to __cxa_allocate_exception put the
unwindHeader at offset 0x58 in __cxa_exception, but it requires 16-byte
alignment. In order to avoid changing the current __cxa_exception ABI
(and thus breaking its consumers), add explicit padding in the
allocation routines (and account for it when freeing).
This is intended as a lower-risk change for FreeBSD 11. A "more correct"
fix should be prepared for upstream and -CURRENT.
Reviewed by: dim
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D7271
emaste [Thu, 21 Jul 2016 18:12:39 +0000 (18:12 +0000)]
Remove duplicate symbols from libroken version-script.map
Upstream commit r24759 (efed563) prefixed some symbols with rk_, but
introduced 6 duplicate symbols in the version script (because the
rk_-prefixed versions of the symbols were already present).
kib [Thu, 21 Jul 2016 17:59:30 +0000 (17:59 +0000)]
Hide counted_warning(9) under #ifdef _KERNEL braces, to allow building
subr_prf.c in userspace for libsbuf.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
kib [Thu, 21 Jul 2016 17:07:06 +0000 (17:07 +0000)]
Declare aio requests on files from local filesystems safe.
Two notes:
- I allow AIO on reclaimed vnodes, since it is deterministically terminated
fast.
- devfs mounts are marked as MNT_LOCAL, but device vnodes have type
VCHR, so the slow device io is not allowed.
Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D7273
kib [Thu, 21 Jul 2016 16:58:53 +0000 (16:58 +0000)]
Remove spurious but harmless double-quote.
Noted by: jhb
kib [Thu, 21 Jul 2016 16:34:56 +0000 (16:34 +0000)]
Provide counter_warning(9) KPI which allows to issue limited number of
warnings for some kernel events, mostly intended for the use of
obsoleted or otherwise undersired interfaces.
This is an abstracted and race-expelled code from compat pty driver.
Requested and reviewed by: jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D7270
adrian [Thu, 21 Jul 2016 15:48:41 +0000 (15:48 +0000)]
[mx25l] add new device id.
Tested:
* (submitter) TP-Link TL-WR1043nd v3
Submitted by: tj@enoti.me
pfg [Thu, 21 Jul 2016 15:26:21 +0000 (15:26 +0000)]
binutils: fix "Bad value" error in bfd for MIPS when using -Bsymbolic.
From OpenBSD's log:
Inspired by https://sourceware.org/ml/binutils/2010-08/msg00333.html,
but expressed differently so there are no GPLv3 issues.
Obtained from: OpenBSD (CVS rev. 1.7)
MFC after: 1 month
pfg [Thu, 21 Jul 2016 14:17:36 +0000 (14:17 +0000)]
sed(1): Appease older GCC.
manu [Thu, 21 Jul 2016 13:28:07 +0000 (13:28 +0000)]
axp209 needs aw_nmi so attach a bit earlier
Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D7081
manu [Thu, 21 Jul 2016 13:26:39 +0000 (13:26 +0000)]
We need the GIC to be attached so attach later at BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE
Reviewed by: andrew
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D7080
andrew [Thu, 21 Jul 2016 13:01:35 +0000 (13:01 +0000)]
Fix the build:
* Add acpi_if.h to the SRC list in the uart module
* Only include new acpi headers when they are needed
Obtained from: ABT Systems Ltd
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
ache [Thu, 21 Jul 2016 12:53:36 +0000 (12:53 +0000)]
1) GLOB_BRACE was somewhat broken. First it repeatedly calls glob0() in
globexp1() recursive calls, but glob0() was not supposed to be called
repeatedly in the original code. It finalize results by possible adding
original pattern for no match case, may return GLOB_NOMATCH error and
by sorting all things. Original pattern adding or GLOB_NOMATCH error
can happens each time glob0() called repeatedly, and sorting happens
for one item only, all things are never sorted. Second, f.e. "a{a"
pattern does not match "a{a" file but match "a" file instead
(just one example, there are many). Third, some errors (f.e. for limits
or overflow) can be ignored by GLOB_BRACE code because it forces return (0).
Add non-finalizing flag to glob0() and make globexp0() wrapper around
recursively called globexp1() to finalize things like glob0() does.
Reorganize braces code to work correctly.
2) Don't allow MB_CUR_MAX * strlen overallocation hits GLOB_LIMIT_STRING
(ARG_MAX) limit, use final string length, not malloced space for it.
3) Revive DEBUG-ifdefed section.
kib [Thu, 21 Jul 2016 09:37:17 +0000 (09:37 +0000)]
Improve typesetting.
Reviewed by: bapt
No objections from: emaste
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D7261
andrew [Thu, 21 Jul 2016 09:32:55 +0000 (09:32 +0000)]
Add support for arm64 to uart_dev_acpi by using the _HID property to find
the uart class to use in a similar way as the fdt driver.
Obtained from: ABT Systems Ltd
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D7248
trasz [Thu, 21 Jul 2016 08:22:25 +0000 (08:22 +0000)]
Add documentation for "ctld -u", the UCL configuration file format.
Submitted by: jceel@
Reviewed by: wblock@
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D7222
sephe [Thu, 21 Jul 2016 06:09:47 +0000 (06:09 +0000)]
hyperv: hv_vmbus_channel -> vmbus_channel
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D7260
bdrewery [Thu, 21 Jul 2016 06:06:11 +0000 (06:06 +0000)]
Add LOCAL_XTOOL_DIRS to add into cross-tools.
Sponsored by: EMC / Isilon Storage Division
sephe [Thu, 21 Jul 2016 05:46:26 +0000 (05:46 +0000)]
hyperv/vmbus: Shuffle function declaration and macro definition.
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D7259
sephe [Thu, 21 Jul 2016 05:38:05 +0000 (05:38 +0000)]
hyperv/vmbus: Reorder channel fields.
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D7258
sephe [Thu, 21 Jul 2016 05:30:31 +0000 (05:30 +0000)]
hyperv/vmbus: Save event flag location and evet flag mask.
This avoids unnecessary access to the vmbus_softc struct on sending path.
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D7257
imp [Thu, 21 Jul 2016 03:11:39 +0000 (03:11 +0000)]
Actually import nvme_sim so the CAM attachment for NVME (nda) actually
works.
MFC after: 1 week
imp [Thu, 21 Jul 2016 03:11:37 +0000 (03:11 +0000)]
Remove some bogus comments and printfs. Also, we can't
cam_periph_releaes_locked() at the end of nvme_probe_start because we
hit an assertion which may be bogus. Instead, leak a periph until we
sort it out. Since these devices don't arrive and depart often, so
this is the lessor of two evils.
MFC after: 1 week
imp [Thu, 21 Jul 2016 03:11:36 +0000 (03:11 +0000)]
Fix mismerge and add NVME xport support to devstat (or rather, exclude
it from SCSI).
MFC after: 1 week
imp [Thu, 21 Jul 2016 03:11:35 +0000 (03:11 +0000)]
Fix mismerge and include the nvme support.
Also, print out the name of any CCB's functions that's not supported.
MFC after: 1 week
cem [Thu, 21 Jul 2016 00:53:14 +0000 (00:53 +0000)]
Mirror r303120 to gcore
Sponsored by: EMC / Isilon Storage Division
cem [Wed, 20 Jul 2016 22:51:33 +0000 (22:51 +0000)]
imgact_elf: Rename the segment iterator to match reality
The each_writable_segment routine evaluates segments on a slightly little more
nuanced metric than simply "writable" or not. Rename the function to more
closely match its behavior (each_dumpable_segment).
Suggested by: jhb
Sponsored by: EMC / Isilon Storage Division
gjb [Wed, 20 Jul 2016 22:49:33 +0000 (22:49 +0000)]
Create a /usr/home -> /home symlink for the arm images to
avoid /usr/home confusingly being created as a directory.
Reported by: Russell Haley
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
cem [Wed, 20 Jul 2016 22:46:56 +0000 (22:46 +0000)]
ANSI-fy imgact_elf.c
Sponsored by: EMC / Isilon Storage Division
avos [Wed, 20 Jul 2016 22:05:44 +0000 (22:05 +0000)]
urtwn: fix A-MSDU tx aggregation when encryption is used.
Clear unused (undocumented) CAM bytes while setting a key;
without that, hardware does weird things when A-MSDU bit in QoS header
is set.
Tested with RTL8188CUS (AP) -> RTL8188EU (STA) (A-MSDU transmit).
Reported by: many
Obtained from: https://github.com/s3erios/urtwm
MFC after: 5 days
cem [Wed, 20 Jul 2016 22:03:45 +0000 (22:03 +0000)]
Add extended segment support to gcore
A follow-up to r303099, D7255. Basically, apply the exact same change, with
the exact same rationale, to gcore. gcore's elfcore.c is largely a clone of
the kernel imgact_elf coredump facility.
Reviewed by: emaste (earlier version, not substantially different)
Requested by: jhb
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D7265
mav [Wed, 20 Jul 2016 20:18:52 +0000 (20:18 +0000)]
Cross-link some SMBus controller drivers man pages.
Some compatibility cases are not obvious.
mav [Wed, 20 Jul 2016 20:10:37 +0000 (20:10 +0000)]
Document list of supported chipsets.
sbruno [Wed, 20 Jul 2016 19:21:11 +0000 (19:21 +0000)]
Remove uneeded parens.
MFC after: 1 day
jhb [Wed, 20 Jul 2016 18:41:47 +0000 (18:41 +0000)]
Update crashinfo to work with newer gdb from ports.
If gdb from ports is installed, use it instead of the base system gdb
to extract variables from a kernel. Note that base gdb and ports gdb
do not support the same options for invoking a single command in batch
mode, so a wrapper shell function is used. In addition, prefer kgdb
from ports when generating a backtrace if present.
PR: 193335
Reviewed by: emaste
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D7218
zeising [Wed, 20 Jul 2016 18:16:58 +0000 (18:16 +0000)]
Change wording to use function rather than system call in the description
as well.
Reviewed by: brooks
MFC after: 5 days
cem [Wed, 20 Jul 2016 18:11:22 +0000 (18:11 +0000)]
Fix DEBUG build on 64-bit arch after r303099
Reported by: Larry Rosenman <ler at lerctr.org>
brooks [Wed, 20 Jul 2016 18:02:07 +0000 (18:02 +0000)]
Update to reflect the fact that pipe() is a wrapper around the pipe2()
system call.
Reviewed by: jhb, wblock
MFC after: 5 days
Sponsored by: DAPRA, AFRL
Differential Revision: https://reviews.freebsd.org/D6948
brooks [Wed, 20 Jul 2016 18:00:22 +0000 (18:00 +0000)]
Minor wording improvements to the note about pipe(2) removal.
MFC after: 5 days
Sponsored by: DARPA, AFRL
andrew [Wed, 20 Jul 2016 17:46:33 +0000 (17:46 +0000)]
Mark the Designware MMC and USB OTG drivers as FDT only. These are normally
found on arm64 devices that use FDT.
Obtained from: ABT Systems Ltd
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
alc [Wed, 20 Jul 2016 17:20:22 +0000 (17:20 +0000)]
Add a comment describing the 'fast path' that was introduced in r270011.
Reviewed by: kib
MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division
andrew [Wed, 20 Jul 2016 17:19:47 +0000 (17:19 +0000)]
We will be switching to a new arm64 uart cpu driver that handles both FDT
and ACPI. As such pull out what will be the common parts of the FDT cpu
detection to a new function that can be shared between them.
Reviewed by: manu
Obtained from: ABT Systems Ltd
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D7262
cem [Wed, 20 Jul 2016 16:59:36 +0000 (16:59 +0000)]
Extend ELF coredump to support more than 65535 segments
The ELF e_phnum field is only 16 bits wide. To support more than 65535 segments
(program headers), Sun's "Linker and Libraries Guide" table 7-7 (or 12-7,
depending on document version) prescribes a special first section header where
sh_info represents the real number of program headers.
Test code to follow, when it is ready.
Reference: http://docs.oracle.com/cd/E18752_01/pdf/817-1984.pdf
Reviewed by: emaste, markj
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D7255
glebius [Wed, 20 Jul 2016 16:48:25 +0000 (16:48 +0000)]
Redo the r302894: the very new value for a non-scheduled callout is -1.
This was recently added in r290664.
Noticed by: hselasky
Tested by: Larry Rosenman <ler lerctr.org>
PR: 210884
nwhitehorn [Wed, 20 Jul 2016 16:46:13 +0000 (16:46 +0000)]
Add myself to MAINTAINERS.
glebius [Wed, 20 Jul 2016 16:44:22 +0000 (16:44 +0000)]
Revert r303037. It re-introduces the panic with TCP timers.
Agreed by: rrs, re (gjb)
ache [Wed, 20 Jul 2016 15:59:37 +0000 (15:59 +0000)]
Continuation lines with comments badly affects gprof, it is excluded from
build on amd64 f.e.
asomers [Wed, 20 Jul 2016 15:00:05 +0000 (15:00 +0000)]
Fix camdd for host-aware and host-managed SMR disks.
This should've gone in as part of r300207
Reviewed by: ken
MFC after: 3 days
Sponsored by: Spectra Logic Corp
kib [Wed, 20 Jul 2016 14:40:56 +0000 (14:40 +0000)]
Ensure that the UFS directory vnode' vm_object is properly sized
before UFS_BALLOC() is called. I do not believe that this caused any
real issue on FreeBSD because the exclusive vnode lock is held over
the balloc/resize, the change is to make formally correct KPI use.
Based on: the Matthew Dillon' patch from DragonFly BSD
PR: 93942
Reviewed by: mckusick
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
ache [Wed, 20 Jul 2016 12:46:21 +0000 (12:46 +0000)]
In addition to r303074 case 1, search for protected L'/' too in globtilde()
manu [Wed, 20 Jul 2016 11:23:06 +0000 (11:23 +0000)]
Add support for the SID (Security ID Module) on Allwinner A10 and A20.
The rootkey is burnt at production and can't be changed, thus is can be used
as a device unique ID or to generate a MAC address (This is was u-boot does).
The rootkey is exposed as a sysctl (dev.aw_sid.<unit>.rootkey).
Reviewed by: jmcneill
Differential Revision: https://reviews.freebsd.org/D6383
avg [Wed, 20 Jul 2016 11:15:32 +0000 (11:15 +0000)]
MFV r303083: 7164 zdb should be able to open the root dataset
Note: conversion of the manual page change from roff to mdoc is mine.
illumos/illumos-gate@
b702644a6eb66615d67b492fd73ecd9efa11fc7d
https://github.com/illumos/illumos-gate/commit/
b702644a6eb66615d67b492fd73ecd9efa11fc7d
https://www.illumos.org/issues/7164
If the pool/dataset command-line argument is specified with a trailing
slash, for example, "tank/", we should interpret it as the topmost
dataset (rather than the whole pool)
Reviewed by: Pavel Zakharov <pavel.zakharov@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Tim Chase <tim@chase2k.com>
PR: 204661
MFC after: 1 week
Relnotes: yes
mav [Wed, 20 Jul 2016 11:04:49 +0000 (11:04 +0000)]
Remove outdated list of supported chipsets, generalizing it.
avg [Wed, 20 Jul 2016 10:06:56 +0000 (10:06 +0000)]
MFV r303082: 6391 Override default SPA config location via environment
illumos/illumos-gate@
ae24175b2b25e9fb4bfd9ac0648b57e0735b6651
https://github.com/illumos/illumos-gate/commit/
ae24175b2b25e9fb4bfd9ac0648b57e0735b6651
https://www.illumos.org/issues/6391
When using zdb with non-default SPA config file it is not convenient
to add -U <non-default-config-file-path> all the time. This commit
introduces support for setting/overriding SPA config location via
environment variable 'SPA_CONFIG_PATH'.
If -U flag is specified in the command line it will override any other
value as usual.
https://github.com/zfsonlinux/zfs/commit/
64d7b6cf75e52a4698d9bdec61745573c39d2e5a
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: Richard Yao <ryao@gentoo.org>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Will Andrews <will@freebsd.org>
Reviewed by: George Wilson <george.wilson@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Cyril Plisko <cyril.plisko@mountall.com>
MFC after: 1 week
royger [Wed, 20 Jul 2016 09:29:39 +0000 (09:29 +0000)]
vesa: fix panic on suspend
Fix the following panic seen when migrating a FreeBSD guest on Xen:
panic: mtx_lock() of destroyed mutex @ /usr/src/sys/dev/fb/vesa.c:541
cpuid = 0
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe001d2fa4f0
vpanic() at vpanic+0x182/frame 0xfffffe001d2fa570
kassert_panic() at kassert_panic+0x126/frame 0xfffffe001d2fa5e0
__mtx_lock_flags() at __mtx_lock_flags+0x15b/frame 0xfffffe001d2fa630
vesa_bios_save_restore() at vesa_bios_save_restore+0x78/frame 0xfffffe001d2fa680
vga_suspend() at vga_suspend+0xa3/frame 0xfffffe001d2fa6b0
isavga_suspend() at isavga_suspend+0x1d/frame 0xfffffe001d2fa6d0
bus_generic_suspend_child() at bus_generic_suspend_child+0x44/frame
[...]
This is caused because vga_sub_configure (which is called if the VGA adapter
is attached after VESA tried to initialize), points to vesa_configure, which
doesn't initialize the VESA mutex. In order to fix it, make sure
vga_sub_configure points to vesa_load, so that all the needed vesa
components are properly initialized.
Sponsored by: Citrix Systems R&D
MFC after: 3 days
PR: 209203
Reviewed by: dumbbell
Differential revision: https://reviews.freebsd.org/D7196
ache [Wed, 20 Jul 2016 07:30:44 +0000 (07:30 +0000)]
1) Per POSIX (and glibc) GLOB_NOCHECK should return original pattern,
unmodified, if no matches found. But our original code strips all '\'
returning it. Rewrite the code to allow to reconstruct exact the
original pattern with backslashes for this case.
2) Prevent to use truncated pattern if MAXPATHLEN exceeded, return
GLOB_NOMATCH instead.
3) Fix few end loop conditions filling Char arrays with mbrtowc(),
MB_CUR_MAX is unneeded in two places and condition is less by one
in other place.
4) Prevent to use truncated filenames match if MAXPATHLEN exceeded,
skip such directory entries.
5) Don't end *pathend with L'/' in glob3() if limit is reached, this
change will be not visible since error is returned.
6) If error happens in (*readdirfunc)(), do the same GLOB_ABORTED
processing as for g_opendir() as POSIX requires.
tuexen [Wed, 20 Jul 2016 06:29:26 +0000 (06:29 +0000)]
Fix a bug in deferred stream reset processing which results
in using a length field before it is set.
Thanks to Taylor Brandstetter for reporting the issue and
providing a fix.
MFC after: 3 days
sephe [Wed, 20 Jul 2016 06:12:32 +0000 (06:12 +0000)]
hyperv/vmbus: Save MNF trigger location instead of MNF trigger index.
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D7246
sephe [Wed, 20 Jul 2016 06:00:27 +0000 (06:00 +0000)]
hyperv/vmbus: Hide channel struct definition.
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D7245
sephe [Wed, 20 Jul 2016 05:48:52 +0000 (05:48 +0000)]
hyperv/vmbus: Deprecate the device private data in channel struct
They are neither flexible nor extensible.
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D7244
sephe [Wed, 20 Jul 2016 05:34:28 +0000 (05:34 +0000)]
hyperv/vmbus: Pass channel as the first argument for channel callback
The prepares to kill device private fields in channel struct, which
are not flexible and extensible.
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D7243
sephe [Wed, 20 Jul 2016 05:26:04 +0000 (05:26 +0000)]
hyperv/vmbus: Channel struct field rename
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D7242
sephe [Wed, 20 Jul 2016 05:16:23 +0000 (05:16 +0000)]
hyperv/vmbus: Move IC register definition to Hyper-V utilities
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D7241
sephe [Wed, 20 Jul 2016 05:03:04 +0000 (05:03 +0000)]
hyperv/vmbus: Get rid of unnecessary definition.
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D7240
stevek [Wed, 20 Jul 2016 04:25:09 +0000 (04:25 +0000)]
Add myself (stevek) as a src committer and mentor (sjg) to committers-src.dot
Approved by: sjg (mentor)
pfg [Wed, 20 Jul 2016 03:52:04 +0000 (03:52 +0000)]
MFV r298167, r300962, r303048:
openresolv: update to version 3.8.1.
Among the new features it attempts to support alternative init systems.
MFC after: 1 month
emaste [Wed, 20 Jul 2016 03:13:02 +0000 (03:13 +0000)]
libunwind: Properly align _Unwind_Exception.
_Unwind_Exception is required to be double word aligned. GCC has
interpreted this to mean "use the maximum useful alignment for the
target" so follow that lead.
Obtained from: LLVM review D22543
markj [Wed, 20 Jul 2016 01:01:50 +0000 (01:01 +0000)]
Release the second critical section in uma_zfree_arg() slightly earlier.
It is only needed when removing a full bucket from the per-CPU cache. The
bucket cache (uz_buckets) is protected by the zone mutex and thus the
critical section can be released before inserting into that list.
MFC after: 1 week
markj [Wed, 20 Jul 2016 00:09:22 +0000 (00:09 +0000)]
Make vm_pageout_wakeup_thresh a u_int rather than an int.
It's a threshold for v_free_count, which is of type u_int. This also lets
us get rid of a cast in vm_paging_needed().
Reviewed by: alc
MFC after: 1 week
bdrewery [Wed, 20 Jul 2016 00:06:03 +0000 (00:06 +0000)]
Only build makewhatis(1)/apropos(1) with MAN_UTILS.
This is what src.conf(5) documents and is what the older non-mandoc
versions respected.
Sponsored by: EMC / Isilon Storage Division
markj [Wed, 20 Jul 2016 00:02:10 +0000 (00:02 +0000)]
Merge {amd64,i386}/instr_size.c into x86_instr_size.c.
Also reduce the diff between us and upstream: the input data model will
always be DATAMODEL_NATIVE because of a bug (p_model is never set but is
always initialized to 0), so we don't need to override the caller anyway.
This change is also necessary to support the pid provider for 32-bit
processes on amd64.
MFC after: 2 weeks
pfg [Tue, 19 Jul 2016 22:56:40 +0000 (22:56 +0000)]
sed(1): Assorted cleanups and simplifications.
Const-ify several variables, make it build cleanly with WARNS level 5.
Submitted by: mi
PR: 195929
MFC after: 1 month
pfg [Tue, 19 Jul 2016 20:22:13 +0000 (20:22 +0000)]
libc: tag the Rune initialization function prototypes visibility as hidden.
It is good practice to export as few symbols as possible from your shared
libraries, so use the GCC visibility attribute in this case, matching what
Apple's libc does.
Reference:
https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/CppRuntimeEnv/Articles/SymbolVisibility.html
Hinted by: Apple's libc 1082.20.4
MFC after: 1 week
emaste [Tue, 19 Jul 2016 20:11:50 +0000 (20:11 +0000)]
arch.7: correct MIPS endianness transcription error
Submitted by: Nikolai Lifanov <lifanov@mail.lifanov.com>
emaste [Tue, 19 Jul 2016 19:50:30 +0000 (19:50 +0000)]
arch.7: we also use 1M page mappings on armv6
Submitted by: alc
cem [Tue, 19 Jul 2016 19:20:47 +0000 (19:20 +0000)]
Increase vt(4) framebuffer maximum size
And rename "DEFAULT" constants to the more accurate "MAX."
PR: 210382
Submitted by: Felix <felixphew0 at gmail.com>
Reviewed by: wblock, cem
Tested by: Dave Cottlehuber <dch at skunkwerks.at>
scottl [Tue, 19 Jul 2016 19:19:03 +0000 (19:19 +0000)]
Remove unused variable from last commit.
rene [Tue, 19 Jul 2016 19:13:01 +0000 (19:13 +0000)]
erwin stepped down from portmgr, update the graph.
scottl [Tue, 19 Jul 2016 19:09:23 +0000 (19:09 +0000)]
Supporting flushing the dump before returning, and simplify/combine the
logic. Switch to a 5us delay since most NVME devices can easily do 200,000
iops.
Submitted by: imp
MFC after: 3 days
Sponsored by: Netflix, Inc.
manu [Tue, 19 Jul 2016 19:00:22 +0000 (19:00 +0000)]
Do not use TERM_EMU on arm and arm64 as it doesn't behave well with serial console.
Reviewed by: andrew, emaste
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D6783
emaste [Tue, 19 Jul 2016 18:40:54 +0000 (18:40 +0000)]
makefs: sync NetBSD IDs with upstream for changes that we already have
May 22 21:51:39 2011 +0000 (christos):
From Nathan Whitehorn (nwhitehorn at freebsd dot org):
Add code to generate bootable ISOs on Powermac and CHRP systems.
Synthesize some partition maps (APM and MBR, respectively) pointing
to (a) the whole disk, and (b) relevant El Torito boot images that
have been added by other code. These partition maps are a little
bit funny looking, but they seem to work. FreeBSD has been using
this successfully in their release generation on powerpc, as well
as generating all non-SPARC install media. SPARC support could
probably be added as an extension of this patch.
makefs.8 1.33
Tue Aug 23 17:09:11 2011 +0000 (christos):
PR/45285: Martin Matuska: makefs does not properly convert ISO level 1 and 2
filenames (buffer overflow)
makefs does not properly verify the maximum filename length in the
special "." case for both ISO level 1 and ISO level 2 filename
conversion. This creates broken images or causes a buffer overflow
(ISO level 2).
ISO level 1:
If a filename contains only dots or up to 8 characters followed by
dots the 8+3 limit check doesn't work.
ISO level 2:
If a filename contains a dot in the first 30 characters and a dot
on the 30th character, the length limit check doesn't work and the
buffer is overflowed.
$ mkdir level1
$ touch level1/12345............
$ makefs -t cd9660 -o isolevel=1 test.iso level1
$ mkdir level2
$ touch level2/
1234567890.
2345678901234567.....
34567890123456789012345
$ makefs -t cd9660 -o isolevel=2 test.iso level2
cd9660.c 1.32
Sun Oct 9 21:33:43 2011 +0000 (christos):
add support for setting the ufs label. (Nathan Whitehorn)
ffs.c 1.45
ffs.h 1.2
mkfs.c 1.22
makefs.8 1.37
Obtained from: NetBSD
rrs [Tue, 19 Jul 2016 18:31:19 +0000 (18:31 +0000)]
This reverts out Gleb's changes and adds three small
fixes that I think closes up the races Gleb was
looking for. This is running quite nicely in Netflix and
now no longer causes TCP-tcb leaks.
Differential Revision: 7135
emaste [Tue, 19 Jul 2016 18:15:22 +0000 (18:15 +0000)]
makefs: reorder 'usage' alphabetically
From NetBSD, Mon Aug 15 14:45:01 2011 +0000 (wiz)
Re-order `usage' alphabetically;
rename option arguments in the manpage's `SYNOPSIS' section to
match those from `usage' (not the other way around; the `usage'-line
(and other parts of makefs.c) contain the correct names);
minor punctuation improvements.
From Snader_LB.
makefs.8 1.36
makefs.c 1.30
Obtained from: NetBSD
markm [Tue, 19 Jul 2016 18:07:47 +0000 (18:07 +0000)]
Random bit generator (RBG) driver for RPi and RPi2.
Summary:
This driver supports the following methods to trigger gathering random bits from the hardware:
1. interrupt when the FIFO is full (default) fed into the harvest queue
2. callout (when BCM2835_RNG_USE_CALLOUT is defined) every second if hz is less than 100, otherwise hz / 100, feeding the random bits into the harvest queue
If the kernel is booted with verbose enabled, the contents of the registers will be dumped after the RBG is started during the attach routine.
Author: hackagadget_gmail.com (Stephen J. Kiernan)
Test Plan: Built RPI2 kernel and booted on board. Tested the different methods to feed the harvest queue (callout, interrupt) and the interrupt driven approach seems best. However, keeping the other method for people to be able to experiment with.
Reviewed By: adrian, delphij, markm
Differential Revision: https://reviews.freebsd.org/D6888
emaste [Tue, 19 Jul 2016 18:05:25 +0000 (18:05 +0000)]
Include makewhatis in ITOOLS when MK_MAN_UTILS is true
Previously it was conditional on MK_MAN. It's possible to build
FreeBSD with man pages but without man page tools. MK_MAN_UTILS
is the conditional used in share/man/Makefile for determining whether
makewhatis is executed at install time, so it is the proper one for
ITOOLS as well.
PR: 210142
MFC after: 1 week
emaste [Tue, 19 Jul 2016 17:46:09 +0000 (17:46 +0000)]
add an arch.7 man page with architecture-specific details
Based on details collected on the wiki, at
https://wiki.freebsd.org/EdMaste/ArchitectureSpecifics
Further details to be added over time.
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D7096
sbruno [Tue, 19 Jul 2016 17:31:48 +0000 (17:31 +0000)]
Fixup DA cable detection routines to not set the cable type to
unknown if they do not match one of two cable types.
PR: 150249
Submitted by: borjam@sarenet.es
Reviewed by: erj
MFC after: 3 days
emaste [Tue, 19 Jul 2016 17:15:07 +0000 (17:15 +0000)]
clang++: Always use --eh-frame-hdr on FreeBSD, even for -static
FreeBSD uses LLVM's libunwind on FreeBSD/arm64 today (and we expect to
use it more widely in the future) and it requires the EH frame segment
in static binaries.
Reviewed by: dim
Obtained from: Clang commit r266123
MFC after: 3 days
Relnotes: yes
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D7250
gjb [Tue, 19 Jul 2016 16:55:16 +0000 (16:55 +0000)]
Fix the previous commit to the family tree file. It is too early
to list 11.0, and we do not list -CURRENT here.
Submitted by: maxim
Sponsored by: The FreeBSD Foundation
gjb [Tue, 19 Jul 2016 16:34:49 +0000 (16:34 +0000)]
Belatedly add FreeBSD 11.0 and 12.0 to the family tree file.
Submitted by: des (a while back)
Sponsored by: The FreeBSD Foundation
andrew [Tue, 19 Jul 2016 16:02:07 +0000 (16:02 +0000)]
Add missing flags from acpidump. These are defined in the header, but not
printed. The HW_REDUCED flag is useful as it should be set on arm64 to
comply with the ARM Server Base Boot Requirements.
Obtained from: ABT Systems Ltd
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
tuexen [Tue, 19 Jul 2016 11:16:44 +0000 (11:16 +0000)]
Use correct order of conditions to avoid NULL deref.
MFC after: 3 days
X-MFC with: r302935
tuexen [Tue, 19 Jul 2016 09:48:08 +0000 (09:48 +0000)]
netstat and sockstat expect the IPv6 link local addresses to
have an embedded scope. So don't recover.
MFC after: 3 days
sephe [Tue, 19 Jul 2016 07:51:22 +0000 (07:51 +0000)]
hyperv/vmbus: Rename laundered vmbus channel code
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D7232
sephe [Tue, 19 Jul 2016 06:04:44 +0000 (06:04 +0000)]
hyperv/vmbus: Temp/internal variable/function rename
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D7231
sephe [Tue, 19 Jul 2016 05:57:19 +0000 (05:57 +0000)]
hyperv/vmbus: Function rename
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D7230
sephe [Tue, 19 Jul 2016 05:46:15 +0000 (05:46 +0000)]
hyperv/vmbus: Cleanup cpu based channel selection.
And create cpu to channel map at device attach time for storvsc(4).
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D7229
ae [Tue, 19 Jul 2016 05:36:21 +0000 (05:36 +0000)]
Use g_resize_provider() to change the size of GEOM_DISK provider,
when it is being opened. This should fix the possible loss of a resize
event when disk capacity changed.
PR: 211028
Reported by: Dexuan Cui <decui at microsoft dot com>
MFC after: 3 weeks