FreeBSD/src 344339projects/import-googletest-1.8.1/cddl/usr.sbin/zfsd Makefile, projects/import-googletest-1.8.1/lib/googletest/gmock Makefile

Sprinkle `${HAS_TESTS}` in Makefiles

While here, reindent `SUBDIR.${MK_TESTS}`

FreeBSD/src 344338projects/import-googletest-1.8.1/etc/mtree BSD.tests.dist

Add entries in BSD.tests.dist for the googletest test dirs

LLVM/llvm 354437llvm/trunk/include/llvm/Analysis DomTreeUpdater.h

[DTU] Refine the document of mutation APIs [NFC] (PR40528)

Summary:
It was pointed out in [[ https://bugs.llvm.org/show_bug.cgi?id=40528 | Bug 40528 ]] that 
it is not clear whether insert/deleteEdge can be used to perform multiple updates and [[ 
https://reviews.llvm.org/D57316#1388344 | a comment in D57316 ]] reveals that the 
difference between several ways to update the DominatorTree is confusing.

This patch tries to address issues above.

Reviewers: mkazantsev, kuhar, asbirlea, chandlerc, brzycki

Reviewed By: mkazantsev, kuhar, brzycki

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D57881

LLVM/llvm 354436llvm/trunk/lib/Target/X86 X86.td, llvm/trunk/test/CodeGen/X86 rdrand.ll mul-constant-result.ll

[X86] Remove FeatureSlowIncDec from Sandy Bridge and later Intel Core CPUs

Summary:
Inc and Dec were at one point slow on Intel CPUs due to their tendency to cause partial 
flag stalls on P6 derived CPU cores. This is because these instructions are defined to 
preserve the carry flag. This partial flag stall issue persisted until Sandy Bridge when 
flag merging was changed to be handled as a data dependency instead of as a stall until 
retirement. Sandy Bridge and later CPUs rename the C flag separately from OSPAZ so there 
is no flag merge needed on INC/DEC to preserve the C flag.

Given these improvements I don't know why INC/DEC was ever considered slow on Sandy 
Bridge. If anything they should have been disabled on the earlier CPUs instead.

Note after this patch, INC/DEC are still considered slow on Silvermont, Goldmont, Knights 
Landing and our generic "x86-64" CPU.

Reviewers: spatel, RKSimon, chandlerc

Reviewed By: chandlerc

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D58412

NetBSD/src d54Kh5vcommon/lib/libc/arch/mips/atomic atomic_cas.S

   Export atomic_cas_32_ni in a similar manner to its 64-bit counterpart.

   Compile test only, but seems trivial enough for me.

   Fix build error due to test/lib/libc/atomic/t_atomic_cas.

   Note that mips32 does not use atomic_cas.S.

NetBSD/src khAM2IXtests/lib/libc/sys t_ptrace_wait.c

   Add minor improvements in unrelated_tracer_sees_crash in t_ptrace_wait*

   Switch forkee commands with asserts to be aligned for the purpose of being
   used by forkees.
VersionDeltaFile
1.93+11-11tests/lib/libc/sys/t_ptrace_wait.c
+11-111 files

FreeBSD/src 344337head/usr.sbin/efivar efiutil.c

Add the unix path to the output of `efivar --load-option`

Reviewed by:    imp
Sponsored by:   Netflix
Differential Revision:  https://reviews.freebsd.org/D19242

NetBSD/src cO7Geb4sys/modules/compat_netbsd32_09 Makefile, sys/modules/compat_netbsd32_12 Makefile

   WARNS=3 for compat_netbsd32_* in order to appease sign-compare warnings
   for mips64, where NETBSD32_POINTER_TYPE is signed.

LLVM/llvm 354435cfe/trunk/test/Driver msan.c tsan.c

Limit new PM tests to X86 registered targets.

FreeBSD/ports 493406head/graphics/gpu-firmware-kmod pkg-plist distinfo

graphics/gpu-firmware-kmod: update to latest linux firmware state for amdgpu

This includes the firmwares for the newer picasso, raven2, vega12, and vega20
uarchs alongside updates to firmwares for raven and polaris generation uarchs.

NetBSD/src k1y2RREsys/dev/pci if_bge.c

Add BCM5717's another device ID support.
VersionDeltaFile
1.324+6-2sys/dev/pci/if_bge.c
+6-21 files

LLVM/llvm 354434llvm/trunk/test/Transforms/SLPVectorizer/X86 vect_copyable_in_binops.ll alternate-int.ll

Temporarily Revert "[X86][SLP] Enable SLP vectorization for 128-bit horizontal X86 
instructions (add, sub)"

As this has broken the lto bootstrap build for 3 days and is
showing a significant regression on the Dither_benchmark results (from
the LLVM benchmark suite) -- specifically, on the
BENCHMARK_FLOYD_DITHER_128, BENCHMARK_FLOYD_DITHER_256, and
BENCHMARK_FLOYD_DITHER_512; the others are unchanged.  These have
regressed by about 28% on Skylake, 34% on Haswell, and over 40% on
Sandybridge.

This reverts commit r353923.

LLVM/llvm 354433llvm/trunk/include/llvm/Support GenericDomTreeConstruction.h

[Dominators] Simplify and optimize path compression used in link-eval forest.

Summary:
* NodeToInfo[*] have been allocated so the addresses are stable. We can store them instead 
of NodePtr to save NumToNode lookups.
* Nodes are traversed twice. Using `Visited` to check the traversal number is expensive 
and obscure. Just split the two traversals into two loops explicitly.
* The check `VInInfo.DFSNum < LastLinked` is redundant as it is implied by 
`VInInfo->Parent < LastLinked`
* VLabelInfo PLabelInfo are used to save a NodeToInfo lookup in the second traversal.

Also add some comments explaining eval().

This shows a ~4.5% improvement (9.8444s -> 9.3996s) on

    perf stat -r 10 taskset -c 0 opt -passes=$(printf 
'%.0srequire<domtree>,invalidate<domtree>,' {1..1000})'require<domtree>' -disable-output 
sqlite-autoconf-3270100/sqlite3.bc

Reviewers: kuhar, sanjoy, asbirlea

Reviewed By: kuhar

Subscribers: brzycki, NutshellySima, kristina, jdoerfert, llvm-commits


    [3 lines not shown]

LLVM/llvm 354432cfe/trunk/test/Driver msan.c

Remove test on incompatible mpis target.

NetBSD/src TxxzFn9doc TODO.modules

   Add an entry to remind someone(tm) to review the need for WARNS=3 in
   more than 100 modules' Makefile.
VersionDeltaFile
1.19+8-1doc/TODO.modules
+8-11 files

OpenBSD/src 71s4Viosbin/ifconfig ifconfig.c

   avoid abbreviation "AF" when "address family" fits on the line; noted by Alfred Morgan
VersionDeltaFile
1.393+4-4sbin/ifconfig/ifconfig.c
+4-41 files

NetBSD/src orASyHesys/dev/pci pcidevs_data.h pcidevs.h

Regen.
VersionDeltaFile
1.1352+8,587-8,476sys/dev/pci/pcidevs_data.h
1.1353+41-2sys/dev/pci/pcidevs.h
+8,628-8,4782 files

NetBSD/src 4p6scjbsys/dev/pci pcidevs

Add some Broadcom Ethernet devices from {Open,Free}BSD.
VersionDeltaFile
1.1364+41-2sys/dev/pci/pcidevs
+41-21 files

OpenBSD/src satTpZCsys/dev/pci pcidevs

   fix the name of some BCM57417 and BCM57416 parts

   from msaitoh
VersionDeltaFile
1.1878+3-3sys/dev/pci/pcidevs
+3-31 files

FreeNAS/freenas 3b73e06src/freenas/etc find_alias_for_smtplib.py, src/middlewared/middlewared/plugins account.py

Merge pull request #2595 from freenas/issues/75532-11.2-75991

tkt-75991: Fix recursive dependency for aliases (by sonicaj)

LLVM/llvm 354431cfe/trunk/lib/CodeGen BackendUtil.cpp, cfe/trunk/test/Driver msan.c tsan.c

[NewPM] Add other sanitizers at O0

This allows for MSan and TSan to be used without optimizations required.

Differential Revision: https://reviews.llvm.org/D58424

NetBSD/src oNJ4znvexternal/mpl/bind/lib/libisc Makefile

   try using COPTS instead of CPPFLAGS

FreeNAS/freenas 4699ad7src/freenas/etc find_alias_for_smtplib.py, src/middlewared/middlewared/plugins account.py

Fix recursive dependency for aliases

This commit fixes a recursive dependency for aliases which resulted in an infinite loop.
Ticket: #75532

(cherry picked from commit 1ee916f7009ee771d9abe4f8be99cd189ed4ccd6)

FreeNAS/freenas 5e39a1bsrc/freenas/etc find_alias_for_smtplib.py, src/middlewared/middlewared/plugins account.py

Merge pull request #2585 from freenas/issues/75532

tkt-75532: Fix recursive dependency for aliases

LLVM/llvm 354430llvm/trunk/lib/Target/RISCV RISCVInstrFormats.td RISCVInstrInfo.td, llvm/trunk/lib/Target/RISCV/AsmParser RISCVAsmParser.cpp

[RISCV] Implement pseudo instructions for load/store from a symbol address.

Summary:
Those pseudo-instructions are making load/store instructions able to
load/store from/to a symbol, and its always using PC-relative addressing
to generating a symbol address.

Reviewers: asb, apazos, rogfer01, jrtc27

Differential Revision: https://reviews.llvm.org/D50496

FreeBSD/ports 493405head/graphics/xpdf4 Makefile

Sort USE_QT.

FreeBSD/ports 493404head/graphics/xpdf4 Makefile pkg-plist, head/graphics/xpdf4/files patch-xpdf_CMakeLists.txt patch-cmake-config.txt

Update 4.00 --> 4.01.

As of this release the option of not depending on Qt5 and therefore not
installing xpdf is no longer supported.

OpenBSD/src 2TLAstYsys/dev/pci pcidevs.h pcidevs_data.h

   regen
VersionDeltaFile
1.1870+2-2sys/dev/pci/pcidevs.h
1.1865+1-1sys/dev/pci/pcidevs_data.h
+3-32 files

OpenBSD/src 3fhVB9jsys/dev/pci pcidevs

   the broadcom BCM57811_VF device id should be 0x163f, not 0x16ef

   technically 0x16ef is for "BCM57416 NetXtreme-E RDMA Partition".

   from msaitoh
   ok jmatthew@
VersionDeltaFile
1.1877+2-2sys/dev/pci/pcidevs
+2-21 files

FreeBSD/src 344336projects/import-googletest-1.8.1/lib/googletest Makefile tests, projects/import-googletest-1.8.1/lib/googletest/tests Makefile

Add glue Makefile for tests under lib/googletest/...

FreeBSD/src 344335head/stand/uboot/common main.c

Fix the handling of legacy-format devices in the u-boot loaderdev variable.
When I added support for the standard loader(8) disk0s2a: type formats,
the parsing of legacy format was broken because it also contains a colon,
but it comes before the slice and partition. That would cause disk_parsedev()
to return success with the slice and partition set to wildcard values.

This change examines the string first, and if it contains spaces, dots, or
a colon at any position other than the end, it must be a legacy-format
string and we don't even try to use disk_parsedev() on it.

Reported by:    Manuel Stuhn

FreeBSD/src 344334head/sys/fs/fuse fuse_ipc.h fuse_internal.h

Fuse: whitespace and style(9) cleanup

Take a pass through fixing some of the most egregious whitespace issues in
fs/fuse.  Also fix some style(9) warts while here.  Not 100% cleaned up, but
somewhat less painful to look at and edit.

No functional change.

FreeBSD/src 344333head/sys/fs/fuse fuse_vnops.c fuse_file.c

fuse: add descriptions for remaining sysctls

(Except reclaim revoked; I don't know what that goal of that one is.)

OpenBSD/ports gQByMnGsysutils/diffoscope Makefile distinfo, sysutils/diffoscope/pkg PLIST

   Update to diffoscope-112

ZFS on Linux/src bb1be77module/zfs dmu_objset.c, tests/runfiles linux.run

Prevent user accounting on readonly pool

Trying to mount a dataset from a readonly pool could inadvertently start
the user accounting upgrade task, leading to the following failure:

VERIFY3(tx->tx_threads == 2) failed (0 == 2)
PANIC at txg.c:680:txg_wait_synced()
Showing stack for process 2541
CPU: 2 PID: 2541 Comm: z_upgrade Tainted: P           O  3.16.0-4-amd64 #1 Debian 
3.16.51-3
Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
Call Trace:
 [<0>] ? dump_stack+0x5d/0x78
 [<0>] ? spl_panic+0xc9/0x110 [spl]
 [<0>] ? dnode_next_offset+0x1d4/0x2c0 [zfs]
 [<0>] ? dmu_object_next+0x77/0x130 [zfs]
 [<0>] ? dnode_rele_and_unlock+0x4d/0x120 [zfs]
 [<0>] ? txg_wait_synced+0x91/0x220 [zfs]
 [<0>] ? dmu_objset_id_quota_upgrade_cb+0x10f/0x140 [zfs]
 [<0>] ? dmu_objset_upgrade_task_cb+0xe3/0x170 [zfs]
 [<0>] ? taskq_thread+0x2cc/0x5d0 [spl]
 [<0>] ? wake_up_state+0x10/0x10
 [<0>] ? taskq_thread_should_stop.part.3+0x70/0x70 [spl]
 [<0>] ? kthread+0xbd/0xe0
 [<0>] ? kthread_create_on_node+0x180/0x180

    [10 lines not shown]

FreeBSD/src 344332head/sys/x86/x86 mp_x86.c

Fix hangs in r341810 waiting for AP startup.

idle_td is dereferenced without thread-locking it to make its contents is
invariant, and was accessed without telling the compiler that its contents
is invariant.  Some compilers optimized accesses to the supposedly invariant
contents by moving the critical checks for changes outside of the loop that
waits for changes.  Fix this using atomic ops.

This bug only showed up for the following configuration: a Turion2
system, amd64 kernels, compiled by gcc, and SCHED_4BSD.  clang fails
to do the optimization with all CFLAGS that I tried, because it doesn't
fully optimize the '__asm __volatile' for cpu_spinwait() although this
asm has no memory clobber.  gcc only does the optimization with most
CFLAGS.  I mostly used -Os with all compilers.  i386 works because gcc
-m32 -Os only moves 1 or the 2 accesses outside of the loop.
Non-Turion2 systems and SCHED_ULE worked due to different timing (when
all APs start before the BP checks them outside of the loop).

Reviewed by:    kib

ZFS on Linux/src 75d6b7dtests/zfs-tests/tests/functional/features/large_dnode cleanup.ksh large_dnode_001_pos.ksh

Add missing copyright notice to large_dnode tests

Missing copyright notices were noticed during the Illumos
RTI process. Add LLNS 2016 copyright based on original merge
date.

Reviewed-by: Giuseppe Di Natale <guss80 at gmail.com>
Reviewed-by: Alek Pinchuk <apinchuk at datto.com>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Ned Bass <bass6 at llnl.gov>
Closes #8435 

LLVM/llvm 354429llvm/trunk/include/llvm/Support GenericDomTreeConstruction.h

[Dominators] Delete UpdateLevelsAfterInsertion in edge insertion of depth-based search for 
release builds

Summary:
After insertion of (From, To), v is affected iff
depth(NCD)+1 < depth(v) && path P from To to v exists where every w on P s.t. depth(v) <= 
depth(w)

All affected vertices change their idom to NCD.

If a vertex u has changed its depth, it must be a descendant of an
affected vertex v. Its depth must have been updated by UpdateLevel()
called by setIDom() of the first affected ancestor.

So UpdateLevelsAfterInsertion and its bookkeeping variable VisitedNotAffectedQueue are 
redundant.
Run them only in debug builds as a sanity check.

Reviewers: kuhar

Reviewed By: kuhar

Subscribers: kristina, llvm-commits

Tags: #llvm

    [2 lines not shown]

LLVM/llvm 354428lld/trunk/ELF Writer.cpp SyntheticSections.h

ELF: Remove field for .interp in InStruct. NFC.

This field is unreferenced outside of createSyntheticSections.

Differential Revision: https://reviews.llvm.org/D58422

LLVM/llvm 354427llvm/trunk/lib/Target/PowerPC PPCInstr64Bit.td P9InstrResources.td, llvm/trunk/test/CodeGen/PowerPC maddld.ll

[PowerPC] exploit P9 instruction maddld.
Differential Revision: https://reviews.llvm.org/D58364

LLVM/llvm 354426llvm/trunk/include/llvm/Object Wasm.h, llvm/trunk/lib/Object WasmObjectFile.cpp

[WebAssembly] Generalize section ordering constraints

Summary:
Changes from using a total ordering of known sections to using a
dependency graph approach. This allows our tools to accept and process
binaries that are compliant with the spec and tool conventions that
would have been previously rejected. It also means our own tools can
do less work to enforce an artificially imposed ordering. Using a
general mechanism means fewer special cases and exceptions in the
ordering logic.

Reviewers: aheejin, dschuff

Subscribers: sbc100, jgravelle-google, hiraditya, sunfish, jdoerfert, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D58312

FreeBSD/src 344331head/sys/teken teken_subr.h

Attempt to complete fixing programmable function keys for syscons.

The flag for the driver capability of supporting the fix is independent
of the flag for cons25 mode so that it can be managed independently, but
I forget to preserve it when resetting the terminal.

OpenZFS on OS X/zfs 5b11631tests/zfs-tests/bin xattrtest, tests/zfs-tests/cmd/xattrtest xattrtest.c

Port xattrtest, large_dnode tests

FreeBSD/ports 493403head/biology/pbseqan Makefile

biology/pbseqan: Mark deprecated

Upstream was merged into the SeqAn project represented by biology/seqan.

LLVM/llvm 354425lldb/trunk/lit/Reproducer/Modules TestModuleCXX.test

[TestModuleCXX] Use UNSUPPORTED instead of REQUIRES

The requires value turns out to be bogus and the test gets skipped on
macOS.

LLVM/llvm 354424lldb/trunk/include/lldb/Utility ReproducerInstrumentation.h

[Instrumentation] Make API logging unconditional

We should always log API calls in addition to logging whether the call
was recorded as part of the reproducer. Since we already have the macro
we might as well put that logic there.

LLVM/llvm 354423lldb/trunk/lit/tools/lldb-instr TestInstrumentationRegister.test, lldb/trunk/tools/lldb-instr Instrument.cpp

[lldb-instr] Group RECORD macros

Group LLDB_RECORD macros per input file.

LLVM/llvm 354422lld/trunk/ELF Options.td

ELF: Fix typo in --build-id option description

Reviewers: ruiu, espindola

Reviewed By: ruiu

Subscribers: emaste, arichardson, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D58265

FreeBSD/ports 493402head/biology/unanimity pkg-plist Makefile, head/biology/unanimity/files patch-src_CMakeLists.txt patch-meson.build

biology/unanimity: Upgrade to 3.4.0

Switch from cmake to new meson build system
Tests disabled for now pending work on unbundling googletest

HardenedBSD/hardenedbsd a425149sys/dev/drm mga_ucode.h, sys/dev/drm2/i915 intel_display.c i915_gem.c

Merge remote-tracking branch 'origin/hardened/current/master' into 
hardened/current/unstable

* origin/hardened/current/master: (26 commits)
  Simplify the code. No functional changes.
  Simplify the code.
  Correct typo in the comment.
  Change assertion to log the incorrect io_type we've got.
  Grabage-collect no longer used variable.
  The way ZFS searches for its vdevs is the following: first it looks for a vdev that has 
the same name as the one stored in metadata and that has all VDEV labels in place. If it 
cannot find a GEOM provider with the given name and all VDEV labels it will scan all GEOM 
providers for the best match (the most VDEV labels available), but here the name is 
ignored.
  Fix sed script to insert Amazon NTP server into ntp.conf once rather than twice.
  In the vdev_geom_open_by_path() function we assume that vdev path starts with "/dev/". 
Make sure this is the case.
  Make `server_cat(..)` handle short receives
  Place an upper bound on the number of iterations for REP.
  Add missing __unused attributes to unused function arguments.
  Limit the number of entries allocated for a REPORT_ZONES command.
  sh: Send normal output from bind builtin to stdout
  Impose a limit on the number of GEOM_CTL arguments.
  Remove drm from LINT kernels
  Minor cleanup for mkuzip(8) man page.

    [6 lines not shown]