dim [Sat, 14 Jan 2017 22:16:01 +0000 (22:16 +0000)]
Merge compiler-rt release_40 branch r292009.
dim [Sat, 14 Jan 2017 22:12:13 +0000 (22:12 +0000)]
Merge llvm, clang, lld and lldb release_40 branch r292009. Also update
build glue.
dim [Sat, 14 Jan 2017 15:38:48 +0000 (15:38 +0000)]
Vendor import of compiler-rt release_40 branch r292009:
https://llvm.org/svn/llvm-project/compiler-rt/branches/release_40@292009
dim [Sat, 14 Jan 2017 15:37:50 +0000 (15:37 +0000)]
Vendor import of llvm release_40 branch r292009:
https://llvm.org/svn/llvm-project/llvm/branches/release_40@292009
dim [Wed, 11 Jan 2017 21:05:13 +0000 (21:05 +0000)]
Merge ^/head r311812 through r311939.
mav [Wed, 11 Jan 2017 20:23:45 +0000 (20:23 +0000)]
Pretend we support some IOCTLs to not scary upper layers.
MFC after: 2 weeks
dim [Wed, 11 Jan 2017 20:00:24 +0000 (20:00 +0000)]
Use proper prototypes in struct boot_module_t
With clang 4.0.0, we are getting the following warnings about struct
boot_module_t in efi's boot_module.h:
In file included from sys/boot/efi/boot1/ufs_module.c:41:
sys/boot/efi/boot1/boot_module.h:67:14: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
void (*init)();
^
void
sys/boot/efi/boot1/boot_module.h:92:16: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
void (*status)();
^
void
sys/boot/efi/boot1/boot_module.h:95:24: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
dev_info_t *(*devices)();
^
void
3 errors generated.
Fix this by adding 'void' to the parameter lists. No functional change.
Reviewed by: emaste, imp, smh
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D9144
dim [Wed, 11 Jan 2017 19:59:27 +0000 (19:59 +0000)]
Make EFI_RESERVED_SERVICE a proper prototype
With clang 4.0.0, the EFI API header causes the following warning:
In file included from sys/boot/efi/loader/bootinfo.c:43:
In file included from sys/boot/efi/loader/../include/efi.h:52:
sys/boot/efi/include/efiapi.h:534:32: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
(EFIAPI *EFI_RESERVED_SERVICE) (
^
Add VOID to make it into a real prototype.
Reviewed by: imp, emaste, tsoome
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D9132
sbruno [Wed, 11 Jan 2017 19:29:33 +0000 (19:29 +0000)]
Restore v6 offload caps for igb(4) class devices.
Reported by: tuxen
dumbbell [Wed, 11 Jan 2017 19:29:28 +0000 (19:29 +0000)]
committers-ports.dot: Add myself
Approved by: antoine (mentor)
Differential Revision: https://reviews.freebsd.org/D9143
dim [Wed, 11 Jan 2017 18:47:00 +0000 (18:47 +0000)]
Don't include <errno.h> in reloc_elf.c, as it includes <stand.h> just
after it, which has a conflicting definition of errno. This leads to
the following warning with clang 4.0.0:
In file included from sys/boot/common/reloc_elf32.c:6:
In file included from sys/boot/common/reloc_elf.c:37:
/usr/obj/usr/src/tmp/usr/include/stand.h:155:12: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
extern int errno;
^
sys/sys/errno.h:46:26: note: expanded from macro 'errno'
#define errno (* __error())
^
MFC after: 3 days
asomers [Wed, 11 Jan 2017 16:09:25 +0000 (16:09 +0000)]
Fix build of usr.bin/tail with GCC
Submitted by: pluknet
Reported by: pluknet
MFC after: 27 days
X-MFC-with: 311895
Sponsored by: Spectra Logic Corp
ngie [Wed, 11 Jan 2017 10:20:35 +0000 (10:20 +0000)]
Consolidate __NetBSD__ #ifdef
MFC after: 3 days
ngie [Wed, 11 Jan 2017 09:51:34 +0000 (09:51 +0000)]
Import testcase updates with code contributed back to NetBSD
This also (inadvertently) contains an update to
contrib/netbsd-tests/lib/libc/sys/t_wait.c (new testcases).
MFC after: 2 weeks
In collaboration with: christos@NetBSD.org
ngie [Wed, 11 Jan 2017 09:34:42 +0000 (09:34 +0000)]
Fix whitespace in comment
MFC after: 3 days
ngie [Wed, 11 Jan 2017 08:43:58 +0000 (08:43 +0000)]
Add acpi_if.h and opt_acpi.h to Makefile to unbreak "make depend" with
sys/modules/sdhci_acpi
MFC after: 6 days
X-MFC with: r311911
Reported by: Jenkins
ngie [Wed, 11 Jan 2017 07:22:21 +0000 (07:22 +0000)]
Partially revert r311236
There's no sense in trying to close a file descriptor from the negative cases
with unlink_test; it's best to ignore these cases.
The mkfifo case does make sense to keep though.
MFC after: 3 days
hrs [Wed, 11 Jan 2017 07:21:59 +0000 (07:21 +0000)]
Add more #ifdef INET and INET6.
ngie [Wed, 11 Jan 2017 07:17:03 +0000 (07:17 +0000)]
Fix up r311227
Check for creat returning a value != -1, not a non-zero value
MFC after: 3 days
Pointyhat to: ngie
Reported by: Coverity
CID: 1368366
delphij [Wed, 11 Jan 2017 05:49:39 +0000 (05:49 +0000)]
MFV r311913:
Fix multiple OpenSSH vulnerabilities.
Submitted by: des
Approved by: so
jhibbits [Wed, 11 Jan 2017 02:21:34 +0000 (02:21 +0000)]
Force all TOC references in asm to include '@toc'
This reportedly fixes one problem with booting a clang kernel.
PR: kern/215819
Submitted by: Mark Millard <markmi AT dsl-only.net>
MFC after: 2 weeks
gonzo [Wed, 11 Jan 2017 01:53:54 +0000 (01:53 +0000)]
[sdhci] Add ACPI platform support for SDHCI driver
- Create ACPI version of SDHCI attach/detach/accessors logic. Some
platforms (e.g. BayTrail-based Minnowboard) expose SDHCI devices
via ACPI, not PCI
- Add sdchi_acpi kernel module
Reviewed by: ian, imp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D9112
markj [Wed, 11 Jan 2017 01:18:06 +0000 (01:18 +0000)]
Have DTrace handle faults when dereferencing a lock object pointer.
MFC after: 1 week
markj [Wed, 11 Jan 2017 01:15:55 +0000 (01:15 +0000)]
Ignore LC_SLEEPABLE when testing whether a mutex is adaptive.
MFC after: 1 week
ian [Wed, 11 Jan 2017 00:14:47 +0000 (00:14 +0000)]
Follow r311103: add "pool" to the keywords that rc.d/ntpdate examines to
find a server address in ntp.conf.
Submitted by: Ronald Klop <ronald@klop.ws>
Pointy hat to: ian
cem [Wed, 11 Jan 2017 00:02:51 +0000 (00:02 +0000)]
Revert r311843, r311667
As jkim@ points out, it isn't needed.
dim [Tue, 10 Jan 2017 22:13:44 +0000 (22:13 +0000)]
Update various libclang_rt Makefiles.
mm [Tue, 10 Jan 2017 22:01:37 +0000 (22:01 +0000)]
Build libarchive tests missing in r311899
MFC after: 1 week
X-MFC with: r311899
mm [Tue, 10 Jan 2017 21:59:35 +0000 (21:59 +0000)]
MFV r311899:
Sync libarchive with vendor.
Vendor bugfixes:
#691: Support for SCHILY.xattr extended attributes
#854: Spelling fixes
Multiple fixes in ACL code:
- prefer acl_set_fd_np() to acl_set_fd()
- if acl_set_fd_np() fails, do no fallback to acl_set_file()
- do not warn if trying to write ACLs to a filesystem without ACL support
- fix id handling in archive_acl_(from_to)_text*() for NFSv4 ACLs
MFC after: 1 week
X-MFC with: r310866
markj [Tue, 10 Jan 2017 21:52:48 +0000 (21:52 +0000)]
Coalesce TLB shootdowns of global PTEs in pmap_advise() on x86.
We would previously invalidate such entries individually, resulting in more
IPIs than necessary.
Reviewed by: alc, kib
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D9094
markj [Tue, 10 Jan 2017 21:41:28 +0000 (21:41 +0000)]
Do not set BIO_DONE if the BIO specifies a completion handler.
biowait() will otherwise race with completions of such BIOs. In-tree code
only calls biowait() on BIOs that do not specify a handler, so this change
should not have any functional impact.
Reviewed by: mav
MFC after: 1 month
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D9070
sbruno [Tue, 10 Jan 2017 21:21:00 +0000 (21:21 +0000)]
Set CFLAGS correctly for sys/modules/em
Unbreak gcc sparc64 builds (or any gcc build that uses em(4)).
Reported by: lidl@freebsd.org
mm [Tue, 10 Jan 2017 21:18:32 +0000 (21:18 +0000)]
Update vendor/libarchive to git
22f2d190639e6bd496a3b82f70c01fba0d38b40a
Vendor changes:
#691: Support for SCHILY.xattr extended attributes
#854: Spelling fixes
Multiple fixes in ACL code:
- prefer acl_set_fd_np() to acl_set_fd()
- if acl_set_fd_np() fails, do no fallback to acl_set_file()
- do not warn if trying to write ACLs to a filesystem without ACL support
- fix id handling in archive_acl_(from_to)_text*() for NFSv4 ACLs
mjg [Tue, 10 Jan 2017 21:10:20 +0000 (21:10 +0000)]
sparc64: add atomic_fcmpset
Tested on hardware provided by feld.
Reviewed by: marius
mav [Tue, 10 Jan 2017 20:52:44 +0000 (20:52 +0000)]
Add checks for received mode page length.
If our buffer is too small, we may receive part of the page, and should
not try read/write past the end of the buffer.
Reported by: Coverity
CID: 1368374, 1368375
MFC after: 1 week
pfg [Tue, 10 Jan 2017 20:44:31 +0000 (20:44 +0000)]
Remove unused __gnu_inline() attribute.
This was meant to be used by a future FORTIFY_SOURCE implementation.
Probably for good, FORTIFY_SOURCE and this particular GCCism were never
well supported by clang or other compilers. Furthermore, the technology
has long since been replaced by either static checkers, sanitizers, or
even just the strong stack protector that was enabled by default.
Drop __gnu_inline to avoid cluttering the headers.
MFC after: 5 days
asomers [Tue, 10 Jan 2017 20:43:32 +0000 (20:43 +0000)]
Fix memory leaks during "tail -r" of an irregular file
* Rewrite r_buf to use standard tail queues instead of a hand-rolled
circular linked list. Free dynamic allocations when done.
* Remove an optimization for the case where the file is a multiple of 128KB
in size and there is a scarcity of memory.
* Add ATF tests for "tail -r" and its variants.
Reported by: Valgrind
Reviewed by: ngie
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D9067
asomers [Tue, 10 Jan 2017 20:37:44 +0000 (20:37 +0000)]
Fix typo from change 310985 in ObsoleteFiles.inc
MFC after: 16 days
X-MFC-With: 310803
Sponsored by: Spectra Logic Corp
asomers [Tue, 10 Jan 2017 20:35:09 +0000 (20:35 +0000)]
ATFify the geom gate tests.
This ensures their cleanup routines will be run even if they should timeout.
tests/sys/geom/class/gate/ggate_test.sh
tests/sys/geom/class/gate/Makefile
Add an ATF test with three testcases, one for each TAP test. Use
ATF-style cleanup functions, and convert sleeps to polling loops.
ObsoleteFiles.inc
tests/sys/geom/class/gate/conf.sh
tests/sys/geom/class/gate/1_test.sh
tests/sys/geom/class/gate/2_test.sh
tests/sys/geom/class/gate/3_test.sh
Delete TAP test files
Reviewed by: ngie
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D8891
mav [Tue, 10 Jan 2017 20:16:16 +0000 (20:16 +0000)]
Do not wait for HA thread shutdown if scheduler is stopped.
This wait loop made system hang on panic instead of reboot.
MFC after: 1 week
gonzo [Tue, 10 Jan 2017 20:15:24 +0000 (20:15 +0000)]
[efi] Build EFI bits with -fPIC on ARM
clang 3.9.0 without -fPIC generates absolute jump table for
switch/case statement which trips boot1.efi and loader.efi
on ARM platform.
Reviewed by: andrew
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D9108
gonzo [Tue, 10 Jan 2017 20:12:07 +0000 (20:12 +0000)]
[efi] Fix .rel.data.* being erroneously merged into .data on ARM
Fix section pattern code to exclude .rel.data.* sections from being
merged into .data. Otherwise relocations in those sections are lost
in final binary
Reviewed by: andrew
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D9108
gonzo [Tue, 10 Jan 2017 20:08:21 +0000 (20:08 +0000)]
[efi] Fix off-by-one error in ARM .bss zeroing code in loader's _start
__bss_end should not be included in .bss zeroing code. Otherwise first 4
bytes of the section that follows .bss (in loader's case it's .sdata) are
overwritten by zero.
Reviewed by: andrew
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D9108
pluknet [Tue, 10 Jan 2017 19:28:40 +0000 (19:28 +0000)]
Fix build without IEEE80211_DEBUG.
Reported by: many
kib [Tue, 10 Jan 2017 19:26:55 +0000 (19:26 +0000)]
Fix acquisition of nested write compat rtld locks.
Obtaining compat rtld lock in write mode sets process signal mask to
block all signals. Previous mask is stored in the global variable
oldsigmask. If a lock is write-locked while another lock is already
write-locked, oldsigmask is overwritten by the total mask and on the
last unlock, all signals except traps appear to be blocked.
Fix this by counting the write-lock nested level, and only storing to
oldsigmask/restoring from it at the outermost level.
Masking signals disables involuntary preemption for libc_r, and there
could be no voluntary context switches in the locked code
(dl_iterate_phdr(3) keeps a lock around user callback, but it was
added long after libc_r was renounced). Due to this, remembering the
level in the global variable after the lock is obtained should be
safe, because no two libc_r threads can acquire different write locks
in parallel.
PR: 215826
Reported by: kami
Tested by: yamagi@yamagi.org (previous version)
To be reviewed by: kan
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
lwhsu [Tue, 10 Jan 2017 18:46:40 +0000 (18:46 +0000)]
Replace using of objdump with elfdump
In-tree objdump is too old to dump new ELF headers. But for example if we
use: `make CROSS_TOOLCHAIN=riscv64-gcc TARGET_ARCH=riscv64` and do not specify
CROSS_BINUTILS_PREFIX in env, embed_mfs.sh cannot find the correct objdump.
This patch just replaces using of objdump with elfdump to collect needed
information.
Later we may also put an ELFDUMP in CROSSENV and use it in embed_mfs.sh .
Reviewed by: emaste, br
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D9062
np [Tue, 10 Jan 2017 18:39:53 +0000 (18:39 +0000)]
The iw_cxgb and iw_cxgbe drivers should not use a FreeBSD device_t where
a linuxkpi style device is expected. If OFED/linuxkpi actually starts
using this field then we'll have to figure out whether to create fake
devices for these drivers or have linuxkpi deal with NULL device.
This mismatch was first reported as part of D6585.
kib [Tue, 10 Jan 2017 17:05:34 +0000 (17:05 +0000)]
Use ANSI C definitions, update comment.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
arybchik [Tue, 10 Jan 2017 16:25:39 +0000 (16:25 +0000)]
sfxge(4): avoid unnecessary mbuf data prefetch
Unnecessary prefetch just loads HW prefetcher and displaces other
cache entries (which could be really useful).
If we parse mbuf for TSO early and use firmware-assisted TSO, we do not
expect mbuf data access when we compose firmware-assisted TSO (v1 or v2)
option descriptors. If packet header needs to be linearized or finally
FATSO cannot be used because of, for example, too big header, we do not
care about a bit more performance degradation because of prefetch
absence (it is better to optimize more common case).
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
MFC after: 2 days
Differential Revision: https://reviews.freebsd.org/D9120
bz [Tue, 10 Jan 2017 14:40:30 +0000 (14:40 +0000)]
Teach crunchide about EM_S390 to make bootstrapping from future
releases easier unless someone will fix the PR properly.
MFC after: 3 days
PR: 215940
andrew [Tue, 10 Jan 2017 13:36:33 +0000 (13:36 +0000)]
Add acpi_if.h to SRCS so we have it when building ahci_generic.c with ACPI.
Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation
andrew [Tue, 10 Jan 2017 10:56:33 +0000 (10:56 +0000)]
Add an ACPI attachment to the existing ahci_generic driver. This is used
in some arm64 hardware, for example the AMD Opteron A1100.
Reviewed by: mav
Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D8852
mav [Tue, 10 Jan 2017 10:33:36 +0000 (10:33 +0000)]
Fix malloc(M_WAITOK) under mutex, introduced at r311787.
MFC after: 13 days
ngie [Tue, 10 Jan 2017 10:27:09 +0000 (10:27 +0000)]
Diff reduce with upstream by removing signal.h #include
MFC after: 3 days
ngie [Tue, 10 Jan 2017 10:16:59 +0000 (10:16 +0000)]
Merge ^/vendor/NetBSD/tests/dist@r311868
This is the vendor accepted version of ^/head@r311245
MFC after: 3 days
ngie [Tue, 10 Jan 2017 10:12:36 +0000 (10:12 +0000)]
Merge the grammar fix for lib/libc/gen/raise_test:raise_stress
MFC after: 3 days
adrian [Tue, 10 Jan 2017 07:50:21 +0000 (07:50 +0000)]
[net80211] add VHT mediatype initialisation and update helper functions.
adrian [Tue, 10 Jan 2017 07:24:29 +0000 (07:24 +0000)]
[net80211] Add default parameters for 11ac.
I doubt TDMA code will ever work for 11ac, but you never know, someone
may one day make it happen.
adrian [Tue, 10 Jan 2017 07:21:07 +0000 (07:21 +0000)]
[net80211] add VHT action frame placeholders for when it's time to implement.
ler [Tue, 10 Jan 2017 05:37:53 +0000 (05:37 +0000)]
Add my birthday to calendar.freebsd
Approved by: adamw (Mentor)
Differential Revision: https://reviews.freebsd.org/D9119
adrian [Tue, 10 Jan 2017 05:33:34 +0000 (05:33 +0000)]
[net80211] add missing VHTCAP declaration changes.
These are required for the recent ieee80211_vht.[ch] changes -
they make things start to work with MS() / SM() macros.
adrian [Tue, 10 Jan 2017 05:32:30 +0000 (05:32 +0000)]
[net80211] add CHAN_VHT2G/CHAN_VHT5G macros.
adrian [Tue, 10 Jan 2017 05:32:02 +0000 (05:32 +0000)]
[net80211] add VHT EDCA parameters for WME/QoS mode.
adrian [Tue, 10 Jan 2017 05:30:15 +0000 (05:30 +0000)]
[net80211] create a helper function to calculate the station facing VHT capabilities.
This is needed for two reasons:
* Drivers will need to know what the negotiated set of VHT capabilities
and rates are in order to configure (and reconfigure for opmode/chanwidth
changes) how to speak to a given peer; and
* Because some vendors are "special", we should be careful in what we announce
to them during peer association.
This isn't the complete solution, as I still need to make sure that when
sending out probe requests before we know what we want, we don't limit
the capabilities being announced. This is important for IBSS/mesh work
later on as probe request/response exchanges are the first hint at what
a peer supports. I'll look at adding that to the API soon.
sbruno [Tue, 10 Jan 2017 04:50:26 +0000 (04:50 +0000)]
Add copywrite notices, 2-clause BSD.
Reported by: jmallett
adamw [Tue, 10 Jan 2017 04:49:59 +0000 (04:49 +0000)]
As much as I've enjoyed being listed as emeritus for the last 10+ years,
it's probably time to admit that I am an active committer.
ler [Tue, 10 Jan 2017 04:31:56 +0000 (04:31 +0000)]
Add myself to committers-ports.dot
Approved by: adamw (mentor)
Differential Revision: https://reviews.freebsd.org/D9117
mjg [Tue, 10 Jan 2017 04:17:53 +0000 (04:17 +0000)]
cd9660: fix up compilation on sparc after r311665
Reported by: linimon
ian [Tue, 10 Jan 2017 03:53:38 +0000 (03:53 +0000)]
Use the post-reset hook to force the controller to host mode. This will
make both usb ports work on imx6 systems (the OTG port of course will only
work in host mode).
sbruno [Tue, 10 Jan 2017 03:23:22 +0000 (03:23 +0000)]
Migrate e1000 to the IFLIB framework:
- em(4) igb(4) and lem(4)
- deprecate the igb device from kernel configurations
- create a symbolic link in /boot/kernel from if_em.ko to if_igb.ko
Devices tested:
- 82574L
- I218-LM
- 82546GB
- 82579LM
- I350
- I217
Please report problems to freebsd-net@freebsd.org
Partial review from jhb and suggestions on how to *not* brick folks who
originally would have lost their igbX device.
Submitted by: mmacy@nextbsd.org
MFC after: 2 weeks
Relnotes: yes
Sponsored by: Limelight Networks and Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D8299
np [Tue, 10 Jan 2017 01:36:50 +0000 (01:36 +0000)]
cxgbe(4): Attach to the 2x25 debug card. This is for internal use only.
MFC after: 3 days
bms [Tue, 10 Jan 2017 01:31:26 +0000 (01:31 +0000)]
Allow udbp(4) to claim Belkin "Windows Easy Transfer Cable" for Netgraph use.
These have been tested back-to-back with Linux 3.x and a similar attachment
at the other end; a CDC EEM-like encapsulation can be used for emulated
Ethernet over udbp(4) with ng_ether.
np [Tue, 10 Jan 2017 01:30:41 +0000 (01:30 +0000)]
cxgbe(4): Refresh t4_msg.h, mainly for definitions related to the crypto
engine.
Obtained from: Chelsio Communications
MFC after: 2 weeks
Sponsored by: Chelsio Communications
avos [Tue, 10 Jan 2017 01:09:39 +0000 (01:09 +0000)]
rtwn_pci(4): fix possible race while accessing 'matched_chip' variable.
bms [Tue, 10 Jan 2017 00:28:01 +0000 (00:28 +0000)]
Add PID for Belkin F5U258 "Windows Easy Transfer Cable", a udbp-like device.
cem [Tue, 10 Jan 2017 00:03:43 +0000 (00:03 +0000)]
Adjust ACPI_EXPORT_SYMBOL for AcpiGetTableWithSize
Suggested by: jbeich@
cem [Mon, 9 Jan 2017 23:56:45 +0000 (23:56 +0000)]
cd9660: typedef cd_ino_t in preference to #define
Suggested by: kib@
cem [Mon, 9 Jan 2017 23:51:31 +0000 (23:51 +0000)]
cd9660: Add a prototype for cd9660_vfs_hash_cmp
GCC warns (and errors, with -Werror) about it otherwise. Clang doesn't care.
Introduced in r311665.
Reported by: np@
sbruno [Mon, 9 Jan 2017 23:45:40 +0000 (23:45 +0000)]
White space cleanup from an cut-n-paste.
Submitted by: mmacy@nextbsd.org
avos [Mon, 9 Jan 2017 23:42:02 +0000 (23:42 +0000)]
rtwn_usb(4): do not try to modify global static structure.
Use a local copy for modifications instead.
Tested with RTL8821AU (AP) + RTL8188EU (STA).
Reported by: hselasky
sbruno [Mon, 9 Jan 2017 23:41:10 +0000 (23:41 +0000)]
Remove unused mtx_held() macro.
dim [Mon, 9 Jan 2017 22:49:35 +0000 (22:49 +0000)]
Merge compiler-rt trunk r291476.
dim [Mon, 9 Jan 2017 22:46:47 +0000 (22:46 +0000)]
Update the libc++ Makefile to be more like the other llvm and clang
Makefiles.
dim [Mon, 9 Jan 2017 22:41:53 +0000 (22:41 +0000)]
Merge libc++ trunk r291476, update Makefile, ObsoleteFiles.inc and
OptionalObsoleteFiles.inc.
dim [Mon, 9 Jan 2017 22:32:19 +0000 (22:32 +0000)]
Merge llvm, clang, lld and lldb trunk r291476.
np [Mon, 9 Jan 2017 22:20:09 +0000 (22:20 +0000)]
cxgbe(4): Enable automatic cidx flush for all control queues.
MFC after: 3 days
np [Mon, 9 Jan 2017 22:18:08 +0000 (22:18 +0000)]
cxgbe(4): The wraparound logic in start_wrq_wr() should not get involved
in work requests that end at the end of the descriptor ring, even though
the pidx wraps around to 0.
MFC after: 3 days
adrian [Mon, 9 Jan 2017 21:46:24 +0000 (21:46 +0000)]
[rsu] add support for the "green" rsu NICs.
They're still a 1T2R NIC, so reuse the same rfconfig and
nstream configuration.
Submitted by: Idwer Vollering <vidwer@gmail.com>
dim [Mon, 9 Jan 2017 21:23:31 +0000 (21:23 +0000)]
Vendor import of compiler-rt trunk r291476:
https://llvm.org/svn/llvm-project/compiler-rt/trunk@291476
dim [Mon, 9 Jan 2017 21:23:21 +0000 (21:23 +0000)]
Vendor import of clang trunk r291476:
https://llvm.org/svn/llvm-project/cfe/trunk@291476
dim [Mon, 9 Jan 2017 21:23:09 +0000 (21:23 +0000)]
Vendor import of llvm trunk r291476:
https://llvm.org/svn/llvm-project/llvm/trunk@291476
marius [Mon, 9 Jan 2017 20:51:51 +0000 (20:51 +0000)]
In dummynet(4), random chunks of memory are casted to struct dn_*,
potentially leading to fatal unaligned accesses on architectures with
strict alignment requirements. This change fixes dummynet(4) as far
as accesses to 64-bit members of struct dn_* are concerned, tripping
up on sparc64 with accesses to 32-bit members happening to be correctly
aligned there. In other words, this only fixes the tip of the iceberg;
larger parts of dummynet(4) still need to be rewritten in order to
properly work on all of !x86.
In principle, considering the amount of code in dummynet(4) that needs
this erroneous pattern corrected, an acceptable workaround would be to
declare all struct dn_* packed, forcing compilers to do byte-accesses
as a side-effect. However, given that the structs in question aren't
laid out well either, this would break ABI/KBI.
While at it, replace all existing bcopy(9) calls with memcpy(9) for
performance reasons, as there is no need to check for overlap in these
cases.
PR: 189219
MFC after: 5 days
kib [Mon, 9 Jan 2017 20:14:18 +0000 (20:14 +0000)]
Forcibly remove the cached items from pseudofs vncache on module unload.
If some process' nodes were accessed using procfs and the process
cannot exit properly at the time modunload event is reported to the
pseudofs-backed filesystem, the assertion in pfs_vncache_unload() is
triggered. Assertion is correct, the cache should be cleaned.
Approved by: des (pseudofs maintainer)
Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
dim [Mon, 9 Jan 2017 19:42:22 +0000 (19:42 +0000)]
Merge ^/head r311808 through r311811.
dim [Mon, 9 Jan 2017 19:39:35 +0000 (19:39 +0000)]
Avoid taking the address of a packed struct member in mfiutil
Fix a clang 4.0.0 warning about taking the address of a packed member of
struct mfi_evt in mfiutil:
usr.sbin/mfiutil/mfi_evt.c:583:30: error: taking address of packed
member 'members' of class or structure 'mfi_evt' may result in an
unaligned pointer value [-Werror,-Waddress-of-packed-member]
if (parse_locale(optarg, &filter.members.locale) < 0) {
^~~~~~~~~~~~~~~~~~~~~
Use a local variable instead, and copy that into the struct.
Reviewed by: jhb
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D9069
dim [Mon, 9 Jan 2017 19:37:17 +0000 (19:37 +0000)]
Add additional libc++ 4.0.0 headers.
dim [Mon, 9 Jan 2017 19:25:49 +0000 (19:25 +0000)]
Merge ^/head r311692 through r311807.
dim [Mon, 9 Jan 2017 19:22:29 +0000 (19:22 +0000)]
Add recently added libc++ headers to OptionalObsoleteFiles.inc.
MFC after: 3 days
dim [Mon, 9 Jan 2017 19:12:41 +0000 (19:12 +0000)]
After r311565, also remove llvm-ranlib from ObsoleteFiles.inc.
mav [Mon, 9 Jan 2017 18:18:15 +0000 (18:18 +0000)]
Rewrite CTL statistics in more simple and scalable way.
Instead of collecting statistics for each combination of ports and logical
units, that consumed ~45KB per LU with present number of ports, collect
separate statistics for every port and every logical unit separately, that
consume only 176 bytes per each single LU/port. This reduces struct
ctl_lun size down to just 6KB.
Also new IOCTL API/ABI does not hardcode number of LUs/ports, and should
allow handling of very large quantities.
MFC after: 2 weeks (probably keeping old API enabled for some time)