]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
7 years agohyperv/storvsc: The max channel in PDU actually means the max sub-chans.
sephe [Wed, 21 Dec 2016 03:09:07 +0000 (03:09 +0000)]
hyperv/storvsc: The max channel in PDU actually means the max sub-chans.

Use proper name for local variables. PDU fields' name was not changed yet.
While I'm here, make # of usable channels tunable. This eases further
testing.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8851

7 years agoAdd amdmi3 to ports-secteam
feld [Wed, 21 Dec 2016 01:48:54 +0000 (01:48 +0000)]
Add amdmi3 to ports-secteam

Approved by: swills

7 years agobuild: Unbreak LINT
sephe [Wed, 21 Dec 2016 01:39:11 +0000 (01:39 +0000)]
build: Unbreak LINT

Sponsored by: Microsoft

7 years ago[iMX6] Fix SDMA driver build
gonzo [Wed, 21 Dec 2016 01:38:44 +0000 (01:38 +0000)]
[iMX6] Fix SDMA driver build

- Place const modifiers where required
- Make sure sdma device is attahched before consumers like SSI

Reviewed by: br
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D8874

7 years ago[iMX6] Fix build for SSI driver and add dependency for SDMA driver
gonzo [Wed, 21 Dec 2016 01:32:19 +0000 (01:32 +0000)]
[iMX6] Fix build for SSI driver and add dependency for SDMA driver

- Pass correct pointer to OF_getencprop
- Check the size of "dmas" property
- Add dependency on sdma driver

Reviewed by: br
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D8873

7 years agobhnd(4): Use a stable sort key to produce deterministic nvram_map_gen.awk
landonf [Wed, 21 Dec 2016 00:50:21 +0000 (00:50 +0000)]
bhnd(4): Use a stable sort key to produce deterministic nvram_map_gen.awk
output.

When ordering SROM layout entries, we now use the unique (var_id,
rev_start, rev_end) tuple as the sort key; this fixes the previously
non-deterministic output when sorting entries with overlapping var_ids.

PR: 215422
Reported by: emaste
Reviewed by: emaste
Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D8859

7 years agoFollow-up to r310340: Add missing "Intel" to description
cem [Tue, 20 Dec 2016 22:47:09 +0000 (22:47 +0000)]
Follow-up to r310340: Add missing "Intel" to description

Reported by: rpokala@

7 years agoAdd Braswell PCI IDs for Intel Cherryview
cem [Tue, 20 Dec 2016 22:08:36 +0000 (22:08 +0000)]
Add Braswell PCI IDs for Intel Cherryview

Submitted by: Johannes Lundberg <yohanesu75 at gmail.com>
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D8861

7 years agoBump specifications support to SAM-6/SPC-5.
mav [Tue, 20 Dec 2016 21:58:43 +0000 (21:58 +0000)]
Bump specifications support to SAM-6/SPC-5.

7 years agoTurn on FC-Tape by default in the isp(4) driver.
ken [Tue, 20 Dec 2016 21:17:07 +0000 (21:17 +0000)]
Turn on FC-Tape by default in the isp(4) driver.

FC-Tape provides additional link level error recovery, and is
highly recommended for tape devices.  It will only be turned on for
a given target if the target supports it.

Without this setting, we default to whatever FC-Tape setting is in
NVRAM on the card.

This can be overridden by setting the following loader tunable, for
example for isp0:

hint.isp.0.nofctape=1

sys/conf/options:
Add a new kernel config option, ISP_FCTAPE_OFF, that
defaults the FC-Tape configuration to off.

sys/dev/isp/isp_pci.c:
If ISP_FCTAPE_OFF is defined, turn off FC-Tape.  Otherwise,
turn it on if the card supports it.

share/man/man4/isp.4:
Add a description of FC-Tape to the isp(4) man page.

Add descriptions of the fctape and nofctape options, as well as the
ISP_FCTAPE_OFF kernel configuration option.

Add the ispfw module and kernel drivers to the suggested
configurations at the top of the man page so that users are less
likely to leave it out.  The driver works well with the included
firmware, but may not work at all with whatever firmware the user
has flashed on their card.

MFC after: 3 days
Sponsored by: Spectra Logic

7 years agoFix memory leak.
glebius [Tue, 20 Dec 2016 20:11:16 +0000 (20:11 +0000)]
Fix memory leak.

CID: 1367751
Reviewed by: jhb

7 years agoDon't spin in pause() during early boot for kthreads other than thread0.
jhb [Tue, 20 Dec 2016 19:44:44 +0000 (19:44 +0000)]
Don't spin in pause() during early boot for kthreads other than thread0.

pause() uses a spin loop to simulate a sleep during early boot.  However,
we only need this for thread0 to get far enough in the boot process to
enable timers (at which point pause() can sleep).  For other kthreads,
sleeping in pause() is ok as the callout will be scheduled and will
eventually fire once thread0 initializes timers.

Tested by:  Steven Kargl
Sleuthing by: markj
MFC after: 1 week
Sponsored by: Netflix

7 years agoo Unmute headphones on Imgtec CI20 board.
br [Tue, 20 Dec 2016 18:47:02 +0000 (18:47 +0000)]
o Unmute headphones on Imgtec CI20 board.
o Add some delay between codec initialization procedures.

Sponsored by: DARPA, AFRL

7 years agoAdd jz4780 AIC (Audio Interface Controller) driver.
br [Tue, 20 Dec 2016 18:27:53 +0000 (18:27 +0000)]
Add jz4780 AIC (Audio Interface Controller) driver.

Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D8808

7 years agoAvoid modifying the object string table when patching USDT probes.
markj [Tue, 20 Dec 2016 18:25:41 +0000 (18:25 +0000)]
Avoid modifying the object string table when patching USDT probes.

dtrace converts pairs of consecutive underscores in a probe name to dashes.
When dtrace -G processes relocations corresponding to USDT probe sites, it
performs this conversion on the corresponding symbol names prior to looking
up the resulting probe names in the USDT provider definition. However, in
so doing it would actually modify the input object's string table, which
breaks the string suffix merging done by recent binutils. Because we don't
care about the symbol name once the probe site is recorded, just perform the
probe lookup using a temporary copy.

Reported by: hrs, swills
MFC after: 3 weeks

7 years agoAdd jz4780 PDMA controller driver.
br [Tue, 20 Dec 2016 18:09:59 +0000 (18:09 +0000)]
Add jz4780 PDMA controller driver.

Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D8817

7 years agoAdd xDMA -- the DMA abstraction layer, initial verison.
br [Tue, 20 Dec 2016 18:02:07 +0000 (18:02 +0000)]
Add xDMA -- the DMA abstraction layer, initial verison.

xDMA is a DMA framework designed to abstract the interaction
between device drivers and DMA engines.

Project wiki: https://wiki.freebsd.org/xdma

Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D8807

7 years agoAdd a 'force' option for non-interactive crontab removal
cem [Tue, 20 Dec 2016 17:12:17 +0000 (17:12 +0000)]
Add a 'force' option for non-interactive crontab removal

Add a '-f' option to force crontab '-r' to be non-interactive.

Submitted by: Sam Gwydir <sam at samgwydir.com>
Reviewed by: me, wblock (previous version)
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D8815

7 years agoRemove stray debugging code from r310180
asomers [Tue, 20 Dec 2016 15:45:53 +0000 (15:45 +0000)]
Remove stray debugging code from r310180

Reported by: rstone
Pointy hat to: asomers
MFC after: 3 weeks
X-MFC-with: 310180
Sponsored by: Spectra Logic Corp

7 years agohyperv/ic: Rename cleaned up files.
sephe [Tue, 20 Dec 2016 09:46:14 +0000 (09:46 +0000)]
hyperv/ic: Rename cleaned up files.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8850

7 years agoEscape punctuation characters.
hrs [Tue, 20 Dec 2016 08:49:13 +0000 (08:49 +0000)]
Escape punctuation characters.

7 years agohyperv/ic: Cleanup driver glue.
sephe [Tue, 20 Dec 2016 07:34:44 +0000 (07:34 +0000)]
hyperv/ic: Cleanup driver glue.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8849

7 years agohyperv/ic: Rname cleaned up file.
sephe [Tue, 20 Dec 2016 07:14:24 +0000 (07:14 +0000)]
hyperv/ic: Rname cleaned up file.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8848

7 years agoConsistently print D variable indices in decimal when disassembling.
markj [Tue, 20 Dec 2016 05:45:52 +0000 (05:45 +0000)]
Consistently print D variable indices in decimal when disassembling.

MFC after: 1 week

7 years agohyperv/ic: Inclusion cleanup
sephe [Tue, 20 Dec 2016 05:39:00 +0000 (05:39 +0000)]
hyperv/ic: Inclusion cleanup

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8847

7 years agohyperv/ic: Rename cleaned up header file.
sephe [Tue, 20 Dec 2016 05:26:38 +0000 (05:26 +0000)]
hyperv/ic: Rename cleaned up header file.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8846

7 years agohyperv/ic: Cleanup common struct and functions.
sephe [Tue, 20 Dec 2016 05:07:12 +0000 (05:07 +0000)]
hyperv/ic: Cleanup common struct and functions.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8845

7 years agohyperv/ic: Factor out function to send IC response
sephe [Tue, 20 Dec 2016 04:51:14 +0000 (04:51 +0000)]
hyperv/ic: Factor out function to send IC response

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8844

7 years agoAdd a NULL check.
hrs [Tue, 20 Dec 2016 04:05:21 +0000 (04:05 +0000)]
Add a NULL check.

7 years agoAdd a default socket bound to *:514 when no -b option is specified.
hrs [Tue, 20 Dec 2016 03:41:40 +0000 (03:41 +0000)]
Add a default socket bound to *:514 when no -b option is specified.
This was accidentally removed at r309933.

Spotted by: Michael Butler

7 years agosdhci/mmc: Minor whitespace cleanups
cem [Tue, 20 Dec 2016 03:38:14 +0000 (03:38 +0000)]
sdhci/mmc: Minor whitespace cleanups

No functional change.

Submitted by: Johannes Lundberg <yohanesu75 at gmail.com>

7 years agoAdd support for Ingenic JZ4780 LCD controller and enable framebuffer
jmcneill [Tue, 20 Dec 2016 01:51:09 +0000 (01:51 +0000)]
Add support for Ingenic JZ4780 LCD controller and enable framebuffer
console support.

Reviewed by: kan
Differential Revision: https://reviews.freebsd.org/D8827

7 years agoChoose the closes matching divider instead of one that results in a
jmcneill [Tue, 20 Dec 2016 01:37:00 +0000 (01:37 +0000)]
Choose the closes matching divider instead of one that results in a
frequency >= target. Fix inverted rounding logic for CLK_SET_ROUND_UP/DOWN.

Reviewed by: kan
Differential Revision: https://reviews.freebsd.org/D8784

7 years agoSplit the DesignWare HDMI-specific code from imx6_hdmi.c into a separate
jmcneill [Tue, 20 Dec 2016 01:34:29 +0000 (01:34 +0000)]
Split the DesignWare HDMI-specific code from imx6_hdmi.c into a separate
file and add a generic DT binding that takes advantage of the extres
framework for setting up clocks.

Reviewed by: gonzo
Differential Revision: https://reviews.freebsd.org/D8826

7 years agoMerge r92c_init_rf_common() into r92c_init_rf(). In r88eu_attach.c, we could
kevlo [Tue, 20 Dec 2016 01:13:11 +0000 (01:13 +0000)]
Merge r92c_init_rf_common() into r92c_init_rf().  In r88eu_attach.c, we could
use r92c_init_rf() rather than r92c_init_rf_common() when sc_init_rf()
callback is invoked.

While here, constantly use RF chain instead of RF path in comment.

Reviewed by: avos

7 years agoMerge bmake-20161212
sjg [Mon, 19 Dec 2016 23:38:07 +0000 (23:38 +0000)]
Merge bmake-20161212

7 years agoDo not clear KN_INFLUX when not owning influx state.
kib [Mon, 19 Dec 2016 22:18:36 +0000 (22:18 +0000)]
Do not clear KN_INFLUX when not owning influx state.

For notes in KN_INFLUX|KN_SCAN state, the influx bit is set by a
parallel scan.  When knote() reports event for the vnode filters,
which require kqueue unlocked, it unconditionally sets and then clears
influx to keep note around kqueue unlock.  There, do not clear influx
flag if a scan set it, since we do not own it, instead we prevent scan
from executing by holding knlist lock.

The knote_fork() function has somewhat similar problem, it might set
KN_INFLUX for scanned note, drop kqueue and list locks, and then clear
the flag after relock.  A solution there would be different enough, as
well as the test program, so close the reported issue first.

Reported and test case provided by: yjh0502@gmail.com
PR: 214923
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

7 years agotag bmake-20161212
sjg [Mon, 19 Dec 2016 21:51:13 +0000 (21:51 +0000)]
tag bmake-20161212

7 years agoImport bmake-20161212
sjg [Mon, 19 Dec 2016 21:50:59 +0000 (21:50 +0000)]
Import bmake-20161212

From ChangeLog
2016-12-12  Simon J. Gerraty  <sjg@bad.crufty.net>

* Makefile (_MAKE_VERSION): 20161212
  Merge with NetBSD make, pick up
          o main.c: look for obj.${MACHINE}-${MACHINE_ARCH} too.

2016-12-09  Simon J. Gerraty  <sjg@bad.crufty.net>

* Makefile (_MAKE_VERSION): 20161209
  Merge with NetBSD make, pick up
  o main.c: cleanup setting of .OBJDIR
  o parse.c: avoid coredump from (var)=val

2016-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>

* Makefile (_MAKE_VERSION): 20161126
  Merge with NetBSD make, pick up
  o make.c: Make_OODate: report src node name if path not set

2016-09-26  Simon J. Gerraty  <sjg@bad.crufty.net>

* Makefile (_MAKE_VERSION): 20160926
  Merge with NetBSD make, pick up
  o support for .DELETE_ON_ERROR: (remove targets that fail)

2016-09-26  Simon J. Gerraty  <sjg@bad.crufty.net>

* Makefile MAN: tweak .Dt to match ${PROG}

mk/ChangeLog

2016-12-12  Simon J. Gerraty  <sjg@bad.crufty.net>

* install-mk (MK_VERSION): 20161212

* meta2deps.py: set pid_cwd[pid] when we process 'C'hdir,
rather than when we detect pid change.

2016-12-07  Simon J. Gerraty  <sjg@bad.crufty.net>

* install-mk (MK_VERSION): 20161207

* meta.stage.mk: add stage_as_and_symlink for staging packages.
  We build foo.tgz stage_as foo-${VERSION}.tgz but want to be able
  to use foo.tgz to reference the latest staged version - so we
  make foo.tgz a symlink to it.
  Using a target to do both operations ensures we stay in sync.

2016-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>

* install-mk (MK_VERSION): 20161126

* dirdeps.mk: set DIRDEPS_CACHE before we include local.dirdeps.mk
  so it can add dependencies.

2016-10-10  Simon J. Gerraty  <sjg@bad.crufty.net>

* dirdeps.mk: set DEP_* before we expand .MAKE.DEPENDFILE_PREFERENCE
  do that they can influence the result correctly.

* dirdeps.mk (${DIRDEPS_CACHE}): make sure we pass on TARGET_SPEC

* dirdeps.mk: Add ONLY_TARGET_SPEC_LIST and NOT_TARGET_SPEC_LIST
  similar to ONLY_MACHINE_LIST and NOT_MACHINE_LIST

2016-10-05  Simon J. Gerraty  <sjg@bad.crufty.net>

* dirdeps.mk: remove dependence on jot (normal situations anyway).
  Before we read another Makefile.depend* set DEP_* vars from
  _DEP_TARGET_SPEC in case it uses any of them with :=
  When bootstrapping, trim any ,* from extention of chosen _src
  Makefile.depend* to get the machine value we subst for.

2016-09-30  Simon J. Gerraty  <sjg@bad.crufty.net>

* dirdeps.mk: use TARGET_SPEC_VARS to qualify components added to
  DEP_SKIP_DIR and DEP_DIRDEPS_FILTER

* sys.mk: extract some bits to sys.{debug,vars}.mk
  for easier re-use by others.

2016-09-23  Simon Gerraty  <sjg@sjg-mba13>

* lib.mk: Use ${PICO} for extension for PIC objects.
  default to .pico (like NetBSD) safe on case insensitive filesystem.

2016-08-19  Simon J. Gerraty  <sjg@bad.crufty.net>

* meta.sys.mk (META_COOKIE_TOUCH): use ${.OBJDIR}/${.TARGET:T} as default

7 years agoImprove error handling when I/O split between several BIOs.
mav [Mon, 19 Dec 2016 21:27:18 +0000 (21:27 +0000)]
Improve error handling when I/O split between several BIOs.

If we get several error codes, handle one with lowest offset.

MFC after: 2 weeks

7 years agobhnd(4): NVRAM serialization support.
landonf [Mon, 19 Dec 2016 20:34:05 +0000 (20:34 +0000)]
bhnd(4): NVRAM serialization support.

This adds support for:

- Serializing an bhnd_nvram_plist (as exported from bhnd_nvram_store, etc) to
  an arbitrary NVRAM data format.
- Generating a serialized representation of the current NVRAM store's state
  suitable for writing back to flash, or re-encoding for upload to a
  FullMAC device.

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D8762

7 years agobhnd(4): Add support for exporting all (or a subtree) of NVRAM
landonf [Mon, 19 Dec 2016 20:31:27 +0000 (20:31 +0000)]
bhnd(4): Add support for exporting all (or a subtree) of NVRAM
properties backed by an NVRAM store.

This will be used to support:

- Serializing the current NVRAM state for writing back to flash.
- Exporting subsidiary device paths for serialization and upload to fullmac
  chipsets.

Additionally, this includes an improvement to BCM-RAW format detection
to avoid matching on BCM-TEXT NVRAM data.

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D8761

7 years agobhnd(4): NVRAM device path support.
landonf [Mon, 19 Dec 2016 20:28:27 +0000 (20:28 +0000)]
bhnd(4): NVRAM device path support.

Implements bhnd_nvram_store support for parsing and operating over NVRAM
device paths, and device path aliases, as well as tracking per-path NVRAM
variable writes.

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D8760

7 years agobhnd(4): add support for wrapping arbitrary pointers in an NVRAM I/O
landonf [Mon, 19 Dec 2016 20:26:10 +0000 (20:26 +0000)]
bhnd(4): add support for wrapping arbitrary pointers in an NVRAM I/O
context.

Approved by: adrian (mentor)
Differential Revision:  https://reviews.freebsd.org/D8759

7 years agobhnd(4): Add support for three new NVRAM value types; booleans,
landonf [Mon, 19 Dec 2016 20:23:19 +0000 (20:23 +0000)]
bhnd(4): Add support for three new NVRAM value types; booleans,
NULL (which we'll use to denote deleted values in bhnd_nvram_store), and
opaque data (aka octet-strings).

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D8758

7 years agobhnd(4): support direct conversion of bhnd_nvram_val
landonf [Mon, 19 Dec 2016 20:20:33 +0000 (20:20 +0000)]
bhnd(4): support direct conversion of bhnd_nvram_val

This adds support for bhnd_nvram_val_convert_init() and
bhnd_nvram_val_convert_new(), which may be used to perform value
format-aware encoding of an NVRAM value to a new target format/type.

This will be used to simplify converting to/from serialized
format-specific NVRAM value representations to common external
representations.

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D8757

7 years agobhnd(4): Implement a new bhnd_nvram_plist and bhnd_nvram_prop API for
landonf [Mon, 19 Dec 2016 20:11:48 +0000 (20:11 +0000)]
bhnd(4): Implement a new bhnd_nvram_plist and bhnd_nvram_prop API for
representing arbitrary Broadcom NVRAM key/value pairs.

This will be used to track pending changes in bhnd_nvram_store, and
provide support for exporting all or a device subpath for NVRAM (as
required by some fullmac wifi chipsets).

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D8756

7 years agobhnd(4): minor style(9) fixes
landonf [Mon, 19 Dec 2016 20:07:58 +0000 (20:07 +0000)]
bhnd(4): minor style(9) fixes

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D8755

7 years agoFix whitespace issues in pl011 uart driver
jchandra [Mon, 19 Dec 2016 19:40:11 +0000 (19:40 +0000)]
Fix whitespace issues in pl011 uart driver

Fix up trailing whitespace introduced by r310190. While there,
fix a couple of earlier whitespace errors as well.

7 years agoRemove a bogus KASSERT from nd6_prefix_unlink().
markj [Mon, 19 Dec 2016 19:21:28 +0000 (19:21 +0000)]
Remove a bogus KASSERT from nd6_prefix_unlink().

The caller may unlink a prefix before purging referencing addresses. An
identical assertion in nd6_prefix_del() verifies that the addresses are
purged before the prefix is freed.

PR: 215372
X-MFC With: r306829

7 years agoWhen reporting "Logical block address out of range" error, report the LBA
mav [Mon, 19 Dec 2016 19:00:03 +0000 (19:00 +0000)]
When reporting "Logical block address out of range" error, report the LBA
in sense data INFORMATION field.

MFC after: 2 weeks

7 years agoWhen writing fixed format sense data, set VALID bit only if provided value
mav [Mon, 19 Dec 2016 18:55:10 +0000 (18:55 +0000)]
When writing fixed format sense data, set VALID bit only if provided value
for INFORMATION field fit into available 4 bytes (has no non-zero bytes
except last 4), as explicitly required by SPC-5 specification.

MFC after: 2 weeks

7 years agonewvers.sh: consider as modified SVN mixed revision and other cases
emaste [Mon, 19 Dec 2016 17:31:34 +0000 (17:31 +0000)]
newvers.sh: consider as modified SVN mixed revision and other cases

The newvers -R option is intended to include build metadata (e.g. user,
host, time) if the build is from an unmodified VCS tree. For subversion
it considered a trailing 'M' as an indication of a modified tree, and
any other version string as modified.

Also include mixed revision checkouts (e.g. 123:126), switched (123S)
and partial (123P) working copies as modified: the revision number is
insufficient to uniquely determine which source was used for the build.

Reported by: gjb
Reviewed by: gjb
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D8853

7 years agoAdd a missing STAILQ_INSERT_TAIL() for allowaddr rule.
hrs [Mon, 19 Dec 2016 17:10:30 +0000 (17:10 +0000)]
Add a missing STAILQ_INSERT_TAIL() for allowaddr rule.

7 years agoFix typo in function name.
mav [Mon, 19 Dec 2016 15:49:59 +0000 (15:49 +0000)]
Fix typo in function name.

7 years agoAdd ld.debug to ObsoleteFiles.inc
emaste [Mon, 19 Dec 2016 15:23:24 +0000 (15:23 +0000)]
Add ld.debug to ObsoleteFiles.inc

After r293285 GNU ld is installed as /usr/bin/ld.bfd, and linked as
/usr/bin/ld.  The debug file is /usr/lib/debug/usr/bin/ld.bfd.debug.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

7 years agonewvers.sh: add -R option to include metadata only for unmodified src tree
emaste [Mon, 19 Dec 2016 15:19:44 +0000 (15:19 +0000)]
newvers.sh: add -R option to include metadata only for unmodified src tree

Sponsored by: The FreeBSD Foundation

7 years agoAdd new bits into Extended Inquiry VPD page.
mav [Mon, 19 Dec 2016 15:18:31 +0000 (15:18 +0000)]
Add new bits into Extended Inquiry VPD page.

MFC after: 2 weeks

7 years agoComment the RCSID.
gjb [Mon, 19 Dec 2016 15:09:30 +0000 (15:09 +0000)]
Comment the RCSID.

Sponsored by: The FreeBSD Foundation

7 years agoRestore missing comment in src.conf.5
emaste [Mon, 19 Dec 2016 15:05:46 +0000 (15:05 +0000)]
Restore missing comment in src.conf.5

I'm not sure how I managed to generate src.conf.5 without the comment;
add it manually while looking into that.

Reported by: gjb

7 years agosrc.conf.5: regen after r310268 (WITH_REPRODUCIBLE_BUILD)
emaste [Mon, 19 Dec 2016 14:54:06 +0000 (14:54 +0000)]
src.conf.5: regen after r310268 (WITH_REPRODUCIBLE_BUILD)

7 years agoBuild loaders reproducibly when WITH_REPRODUCIBLE_BUILD
emaste [Mon, 19 Dec 2016 14:45:59 +0000 (14:45 +0000)]
Build loaders reproducibly when WITH_REPRODUCIBLE_BUILD

When WITH_REPRODUCIBLE_BUILD=yes is set in src.conf(5), eliminate the
time, user, and host from the loader's version information.  This allows
builds to produce bit-for-bit identical output.

Reviewed by: bapt
MFC after: 1 month
Relnotes: yes
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D8842

7 years agoDeduplicate loader vers.c Makefile rules
emaste [Mon, 19 Dec 2016 14:40:59 +0000 (14:40 +0000)]
Deduplicate loader vers.c Makefile rules

The Makefile rule to create vers.c for loader version info was
previously duplicated in each of the various loader Makefiles.
Instead, share a common rule in Makefile.inc.

Reviewed by: bapt
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D8841

7 years agoAdd support for NUAR bit in Control mode page.
mav [Mon, 19 Dec 2016 14:19:52 +0000 (14:19 +0000)]
Add support for NUAR bit in Control mode page.

MFC after: 2 weeks

7 years agoAdd set of macros to simplify code access to mode pages fields.
mav [Mon, 19 Dec 2016 13:25:53 +0000 (13:25 +0000)]
Add set of macros to simplify code access to mode pages fields.

MFC after: 2 weeks

7 years agoFollowing SPC-5, make REQUEST SENSE report "Logical unit not supported"
mav [Mon, 19 Dec 2016 11:44:41 +0000 (11:44 +0000)]
Following SPC-5, make REQUEST SENSE report "Logical unit not supported"
in returned parameter data for not accessible LUNs.

MFC after: 2 weeks

7 years agoip[6]_tryforward does inbound and outbound packet firewall processing.
ae [Mon, 19 Dec 2016 11:02:49 +0000 (11:02 +0000)]
ip[6]_tryforward does inbound and outbound packet firewall processing.
This can lead to change of mbuf pointer (packet filter could do m_pullup(),
NAT, etc). Also in case of change of destination address, tryforward can
decide that packet should be handled by local system. In this case modified
mbuf can be returned to the ip[6]_input(). To handle this correctly, check
M_FASTFWD_OURS flag after return from ip[6]_tryforward. And if it is present,
update variables that depend from mbuf pointer and skip another inbound
firewall processing.

No objection from: #network
MFC after: 3 weeks
Sponsored by: Yandex LLC
Differential Revision: https://reviews.freebsd.org/D8764

7 years agoImprove support for informational exceptions.
mav [Mon, 19 Dec 2016 10:25:47 +0000 (10:25 +0000)]
Improve support for informational exceptions.

While CTL still has no real events to report in this way (like SMART),
it is possible to trigger false event by manually setting TEST bit in
Informational Exceptions Control mode page, that can be useful for
initiator testing.  This code supports all flavours of IE reporting:
UNIT ATTENTION, RECOVERED ERROR and NO SENSE sense keys, REQUEST SENSE
command and Informational Exceptions log page.

MFC after: 2 weeks
Sponsored by: iXsystems, Inc.

7 years agoDefer USB enumeration until the SI_SUB_KICK_SCHEDULER is executed to avoid
hselasky [Mon, 19 Dec 2016 09:28:12 +0000 (09:28 +0000)]
Defer USB enumeration until the SI_SUB_KICK_SCHEDULER is executed to avoid
boot panics in conjunction with the recently added EARLY_AP_STARTUP feature.
The panics happen due to using kernel facilities like callouts too early.

Tested by: jhb @
MFC after: 1 week

7 years agohyperv: Implement userspace gettimeofday(2) with Hyper-V reference TSC
sephe [Mon, 19 Dec 2016 07:40:45 +0000 (07:40 +0000)]
hyperv: Implement userspace gettimeofday(2) with Hyper-V reference TSC

This 6 times gettimeofday performance, as measured by
tools/tools/syscall_timing

Reviewed by: kib
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8789

7 years agoRenumber license clauses to avoid skipping #3
emaste [Sun, 18 Dec 2016 22:24:04 +0000 (22:24 +0000)]
Renumber license clauses to avoid skipping #3

7 years agoImprove vm_object_scan_all_shadowed() to also check swap backing objects.
kib [Sun, 18 Dec 2016 20:56:14 +0000 (20:56 +0000)]
Improve vm_object_scan_all_shadowed() to also check swap backing objects.

As noted in the removed comment, it is possible and not prohibitively
costly to look up the swap blocks for the given page index.  Implement
a swap_pager_find_least() function to do that, and use it to iterate
simultaneously over both backing object page queue and swap
allocations when looking for shadowed pages.

Testing shows that number of new succesful scans, enabled by this
addition, is small but non-zero.  When worked out, the change both
further reduces the depth of the shadow object chain, and frees unused
but allocated swap and memory.

Suggested and reviewed by: alc
Tested by: pho (previous version)
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

7 years agoAfter r310171, the kernel version of sscanf() has format string checking
dim [Sun, 18 Dec 2016 15:21:38 +0000 (15:21 +0000)]
After r310171, the kernel version of sscanf() has format string checking
enabled.  This results in a -Werror warning in mlx4ib:

    sys/dev/mlx4/mlx4_ib/mlx4_ib_sysfs.c:90:22: error: format specifies type 'unsigned long long *' but the argument has type 'u64 *' (aka 'unsigned long *') [-Werror,-Wformat]
            sscanf(buf, "%llx", &sysadmin_ag_val);
                         ~~~~   ^~~~~~~~~~~~~~~~

Change sysadmin_ag_val to unsigned long long to avoid the warning.

Reviewed by: hselasky
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D8831

7 years agoDon't treat informational exceptions (warnings and impending failures)
mav [Sun, 18 Dec 2016 15:02:50 +0000 (15:02 +0000)]
Don't treat informational exceptions (warnings and impending failures)
a.k.a. SCSI SMART events as errors.  Log them to console and continue.

MFC after: 2 weeks

7 years agoofw_spi: Parse property for the SPI mode and CS polarity.
manu [Sun, 18 Dec 2016 14:54:20 +0000 (14:54 +0000)]
ofw_spi: Parse property for the SPI mode and CS polarity.
As cs is stored in a uint32_t, use the last bit to store the
active high flag as it's unlikely that we will have that much CS.

Reviewed by: loos
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D8614

7 years agoDocument the fact that cldr tools are not working by default and should be
bapt [Sun, 18 Dec 2016 14:10:24 +0000 (14:10 +0000)]
Document the fact that cldr tools are not working by default and should be
rebuilt

7 years agoDisable timedef generation, cldr data are too far from freebsd extensions
bapt [Sun, 18 Dec 2016 14:04:17 +0000 (14:04 +0000)]
Disable timedef generation, cldr data are too far from freebsd extensions

7 years agoReduce boot loader version string duplication
emaste [Sun, 18 Dec 2016 13:57:23 +0000 (13:57 +0000)]
Reduce boot loader version string duplication

Instead of repeating "%s, Revision %s" "(%s %s)" in each loader, just
create the full version string in vers.c

Reviewed by: bapt
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D8823

7 years agoAdd virtio_pci to GENERIC arm64 conf
jchandra [Sun, 18 Dec 2016 11:15:31 +0000 (11:15 +0000)]
Add virtio_pci to GENERIC arm64 conf

virtio_pci was missing from the GENERIC arm64 configuration, while
other virtio devices are present. Adding it will allow us to boot
the GENERIC kernel on QEMU with virtio storage and networking.

7 years agoFix typo. Remove spurious blank line.
kib [Sun, 18 Dec 2016 09:32:23 +0000 (09:32 +0000)]
Fix typo.  Remove spurious blank line.

MFC after: 3 days

7 years agoInitialize GIC[DR]_IGROUPRn registers for GICv3
jchandra [Sun, 18 Dec 2016 08:31:01 +0000 (08:31 +0000)]
Initialize GIC[DR]_IGROUPRn registers for GICv3

In case where GICD_CTLR.DS is 1, the IGROUPR registers are RW in
non-secure state and has to be initialized to 1 for the
corresponding interrupts to be delivered as Group 1 interrupts.

Update gic_v3_dist_init() and gic_v3_redist_init() to initialize
GICD_IGROUPRn and GICR_IGROUPRn respectively to address this. The
registers can be set unconditionally since the writes are ignored
in non-secure state when GICD_CTLR.DS is 0.

This fixes the hang on boot seen when running qemu-system-aarch64
with machine virt,gic-version=3

7 years agoClean up parse_ip(..)
ngie [Sun, 18 Dec 2016 05:36:04 +0000 (05:36 +0000)]
Clean up parse_ip(..)

- Clean up trailing whitespace
- Fix variable alignment

MFC after: 1 week

7 years agoClean up trailing and leading whitespace
ngie [Sun, 18 Dec 2016 05:31:54 +0000 (05:31 +0000)]
Clean up trailing and leading whitespace

Fix variable type alignment in snmp_dialog(..)

MFC after: 1 week

7 years agoUpdate locales cldr to v30.0.3 and unicode to 9.0.0
bapt [Sun, 18 Dec 2016 04:17:13 +0000 (04:17 +0000)]
Update locales cldr to v30.0.3 and unicode to 9.0.0

MFC after: 1 month
Relnotes: yes

7 years agoIn order to prepare cldr v30.0.3 and unicode 9.0.0,
bapt [Sun, 18 Dec 2016 04:12:45 +0000 (04:12 +0000)]
In order to prepare cldr v30.0.3 and unicode 9.0.0,
more locales are removed from automatic mapping from unicode as their
encoding does not supports new characters available in unicode

7 years agoBetter handle posix names for locales
bapt [Sun, 18 Dec 2016 04:11:13 +0000 (04:11 +0000)]
Better handle posix names for locales

7 years agoSimplify extraction of static collation definition
bapt [Sun, 18 Dec 2016 02:02:33 +0000 (02:02 +0000)]
Simplify extraction of static collation definition

7 years agoPrepare import of CLDR v30.3 and unicode 9.0.0
bapt [Sun, 18 Dec 2016 01:52:16 +0000 (01:52 +0000)]
Prepare import of CLDR v30.3 and unicode 9.0.0

Upstream kk_Cyrl_KZ has been renamed kk_KZ
Upstream mn_Cyrl_MN has been renamed mn_MN

For ru_RU: the default currency for unicode is now ₽ which is not mapped to
other encoding, add charmaps entries to be able to generate them

7 years agoFix some minor typos with begemotBridgeTpLearnedEntryDiscards and
ngie [Sun, 18 Dec 2016 00:44:43 +0000 (00:44 +0000)]
Fix some minor typos with begemotBridgeTpLearnedEntryDiscards and
begemotBridgeTpMaxAddresses

Bump LAST-UPDATED for the MIB, per the change

MFC after: 1 week

7 years agoUpgrade our copies of clang, llvm, lld, lldb, compiler-rt and libc++ to
dim [Sat, 17 Dec 2016 22:34:19 +0000 (22:34 +0000)]
Upgrade our copies of clang, llvm, lld, lldb, compiler-rt and libc++ to
3.9.1 release.

Please note that from 3.5.0 onwards, clang, llvm and lldb require C++11
support to build; see UPDATING for more information.

Release notes for llvm, clang and lld will be available here:
<http://releases.llvm.org/3.9.1/docs/ReleaseNotes.html>
<http://releases.llvm.org/3.9.1/tools/clang/docs/ReleaseNotes.html>
<http://releases.llvm.org/3.9.1/tools/lld/docs/ReleaseNotes.html>

Relnotes: yes
MFC after: 2 weeks
X-MFC-with: r309124

7 years agoFix the handling of buffered messages in stream reset deferred handling.
tuexen [Sat, 17 Dec 2016 22:31:30 +0000 (22:31 +0000)]
Fix the handling of buffered messages in stream reset deferred handling.

Thanks to Eugen-Andrei Gavriloaie for reporting the issue and providing
substantial help in nailing down the issue.

MFC after: 1 week

7 years agoPut a tentative import date in ObsoleteFiles.inc and UPDATING.
dim [Sat, 17 Dec 2016 18:35:17 +0000 (18:35 +0000)]
Put a tentative import date in ObsoleteFiles.inc and UPDATING.

7 years agoMerge ^/head r310169 through r310190.
dim [Sat, 17 Dec 2016 18:33:41 +0000 (18:33 +0000)]
Merge ^/head r310169 through r310190.

7 years agoSimplify interrupt mask programming in pl011 uart
jchandra [Sat, 17 Dec 2016 18:04:59 +0000 (18:04 +0000)]
Simplify interrupt mask programming in pl011 uart

Remove unused fields from uart_pl011_softc. Add an interrupt mask
field to the softc and use it to set the interrupt mask register.

There should be no functional change introduced here except in the
grab and ungrab functions. In these functions, we now disable and
enable all interrupts rather than just the receive interrupt.

7 years agoFix sscanf() format string to match an argument. This also fixes kernel
skra [Sat, 17 Dec 2016 18:03:03 +0000 (18:03 +0000)]
Fix sscanf() format string to match an argument. This also fixes kernel
build after r310171.

MFC after: 1 weeks

7 years agoRemove lib/libelf's manpages if MK_TOOLCHAIN == no
ngie [Sat, 17 Dec 2016 03:41:16 +0000 (03:41 +0000)]
Remove lib/libelf's manpages if MK_TOOLCHAIN == no

Add a comment to help figure out which set is lib/libelf's and which set
is lib/libelftc's

MFC after: 1 week

7 years agoInstall the lib/libelftc manpages
ngie [Sat, 17 Dec 2016 03:34:51 +0000 (03:34 +0000)]
Install the lib/libelftc manpages

Some other manpages, e.g. c++filt reference these

MFC after: 1 week

7 years agoMFV r310115,310184:
mm [Sat, 17 Dec 2016 02:07:08 +0000 (02:07 +0000)]
MFV r310115,310184:

Sync libarchive with vendor.

Vendor bugfixes (relevant to FreeBSD):
PR 830, 831, 833: Spelling fixes
OSS-Fuzz 227, 230, 239: Fix possible memory leak in archive_read_free()
OSS-Fuzz 237: Fix heap buffer overflow when reading invalid ar archives

MFC after: 1 week

7 years agoAdd vendor/libarchive/dist files missing in r310115
mm [Sat, 17 Dec 2016 02:01:05 +0000 (02:01 +0000)]
Add vendor/libarchive/dist files missing in r310115

7 years agoIn swp_pager_meta_free_all(), fix type of the index variable. Style.
kib [Fri, 16 Dec 2016 23:33:37 +0000 (23:33 +0000)]
In swp_pager_meta_free_all(), fix type of the index variable.  Style.

Noted and reviewed by: alc (previous version)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week