]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
8 years agoDon't rely on $ntpd_enable to periodically fetch the latest
cy [Wed, 1 Jun 2016 04:37:43 +0000 (04:37 +0000)]
Don't rely on $ntpd_enable to periodically fetch the latest
leapfile.

Suggested by: cperciva
MFC after: 1 week

8 years agoTurn off nfsv4acls for arm/armv6 builds, which has an impact
gjb [Wed, 1 Jun 2016 04:18:55 +0000 (04:18 +0000)]
Turn off nfsv4acls for arm/armv6 builds, which has an impact
on performance, especially with SD cards on certain SoCs.

Requested by: trasz
Discussed with: ian, kientzle

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

8 years ago[ath_hal] implement shared PA handling checks, based on ath9k.
adrian [Wed, 1 Jun 2016 03:49:22 +0000 (03:49 +0000)]
[ath_hal] implement shared PA handling checks, based on ath9k.

These are apparently conditional on there being a shared PA/LNA, which
at least on AR9462/QCA9535 devices I have isn't a thing.

I'm .. not yet sure which devices it /is/ a thing, so I'll come back
to that.

Tested:

* QCA9565 STA + bluetooth

Obtained from: Linux ath9k

8 years agoUpdate zfs(8) and zpool-features(7) man pages with new hashing algorithms
allanjude [Wed, 1 Jun 2016 03:36:31 +0000 (03:36 +0000)]
Update zfs(8) and zpool-features(7) man pages with new hashing algorithms

Sponsored by: ScaleEngine Inc.

8 years ago[ath_hal] add MCI bits from ath9k for QCA9565
adrian [Wed, 1 Jun 2016 03:27:33 +0000 (03:27 +0000)]
[ath_hal] add MCI bits from ath9k for QCA9565

* Add extra debugging - the weights debugging is really useful to ensure
  things are programmed into the wlan coexistence table.  The weights are
  what traffic priority each of the various modes get (tx, tx-high-priority,
  rx-beacon, etc) if they're all zero, things work very poorly.

* Add in coex init routines from ath9k for AR9462 and QCA9565 1ANT and 2ANT.
  This control things like beacon stomping, ACK handling, antennas, PA/LNA
  shared, etc.

* Some ancillary bits.

TODO:

* There's some conditional stuff around MCI_ANT_ARCH_PA_LNA_SHARED() in ath9k
  which doesn't always enable force-on LNA.  That'll have to be examined
  and merged in as appropriate.

Obtained from: linux ath9k

8 years ago[ath_hal] add support for QCA9565 for configuring the bluetooth antenna LNA diversity.
adrian [Wed, 1 Jun 2016 03:24:53 +0000 (03:24 +0000)]
[ath_hal] add support for QCA9565 for configuring the bluetooth antenna LNA diversity.

Notably, this also sets AR_BTCOEX_WL_LNADIV to FORCE_ON, so LNA diversity
is always enabled and under control of the wifi chip.

Tested:

* QCA9565, STA + bluetooth mode

Obtained from: Linux ath9k

8 years ago[ath_hal] Allow the BT antenna diversity option to be enabled for QCA9565.
adrian [Wed, 1 Jun 2016 03:21:23 +0000 (03:21 +0000)]
[ath_hal] Allow the BT antenna diversity option to be enabled for QCA9565.

Obtained from: Linux ath9k

8 years ago[ath_hal] add QCA9565 bluteooth antenna control.
adrian [Wed, 1 Jun 2016 03:20:55 +0000 (03:20 +0000)]
[ath_hal] add QCA9565 bluteooth antenna control.

This configures the LNA antenna diversity control, which should be on
if wlan owns the LNA for bluetooth coexistence.  Otherwise, make sure
it's off.

I think this is eventually intended to allow 1-antenna bluetooth +
wifi setups for QCA9565, but I'm not sure where that's actually configured
in ath9k.

Obtained from: Linux ath9k

8 years ago[ath_hal] add extra debugging for MCI interrupts.
adrian [Wed, 1 Jun 2016 03:17:36 +0000 (03:17 +0000)]
[ath_hal] add extra debugging for MCI interrupts.

8 years agomkimg: Indicate that input file pages are unlikely to be reused.
markj [Wed, 1 Jun 2016 02:30:06 +0000 (02:30 +0000)]
mkimg: Indicate that input file pages are unlikely to be reused.

mkimg(1) uses a swap file to back input file chunks. When the output file
is being written out, blocks of the swap file are mapped and their contents
copied. This causes the backing VM pages to enter the active queue, and when
the output file is large relative to system memory (as is generally the
case), can result in a shortfall of inactive memory. This causes the
pagedaemon to aggressively scan the active queue and swap out process
memory in an attempt to meet the shortfall. Because mkimg's input files
are typically the intermediate result of some build process, there's no
need to push them all through the active queue. Use madvise(2) to indicate
that the backing pages may be reclaimed in preference to active pages. In
the case of the swap file, these pages will be freed as soon as mkimg
exits anyway.

When using mkimg on a desktop-class system with large amounts of dirty
process memory, this change substantially improves mkimg runtime and
reduces swap usage.

Reviewed by: marcel
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D6654

8 years ago[ath_hal] add extra MCI definitions used by the later chips (QCA9565/Aphrodite).
adrian [Wed, 1 Jun 2016 01:43:46 +0000 (01:43 +0000)]
[ath_hal] add extra MCI definitions used by the later chips (QCA9565/Aphrodite).

Obtained from: Linux ath9k

8 years agoWITH_META_MDE: Fix machine/include and x86/include issues.
bdrewery [Tue, 31 May 2016 23:40:21 +0000 (23:40 +0000)]
WITH_META_MDE: Fix machine/include and x86/include issues.

- Fixes 'ln: File exists' errors.
- Fixes creating include directories in the source directory as well.

Sponsored by: EMC / Isilon Storage Division

8 years agoCoverity fixes for r300906
asomers [Tue, 31 May 2016 23:26:45 +0000 (23:26 +0000)]
Coverity fixes for r300906

lib/libdevdctl/consumer.cc
In Consumer::DisconnectFromDevd, don't close the socket if it's
already closed.

cddl/usr.sbin/zfsd/case_file.cc
lib/libdevdctl/consumer.h
Delete dead code leftover from before devd(8) gained SOCK_SEQPACKET
support

Reported by: Coverity
CID: 13561551356169
Sponsored by: Spectra Logic Corp

8 years agoDefine SYSDIR earlier since the defined(FIRMWS) block depends on it.
bdrewery [Tue, 31 May 2016 23:14:15 +0000 (23:14 +0000)]
Define SYSDIR earlier since the defined(FIRMWS) block depends on it.

It uses it in a dependency, which won't work if it is not yet defined.

Sponsored by: EMC / Isilon Storage Division

8 years agoAdd missed updates for r301079 and r301084.
bdrewery [Tue, 31 May 2016 23:12:43 +0000 (23:12 +0000)]
Add missed updates for r301079 and r301084.

8 years agoWITH_META_MODE: Resolve SYSDIR to avoid changed build commands.
bdrewery [Tue, 31 May 2016 23:08:43 +0000 (23:08 +0000)]
WITH_META_MODE: Resolve SYSDIR to avoid changed build commands.

Sponsored by: EMC / Isilon Storage Division

8 years agoWITH_META_MODE: Require filemon(4) be loaded.
bdrewery [Tue, 31 May 2016 22:37:11 +0000 (22:37 +0000)]
WITH_META_MODE: Require filemon(4) be loaded.

Since META_MODE is being sold and used as a working incremental build, it won't
make much sense if filemon data is excluded.  There is no way to recover
from that in a subsequent build.

Sponsored by: EMC / Isilon Storage Division

8 years agoFix a crash while iterating compat strings when no match is found.
jmcneill [Tue, 31 May 2016 21:58:09 +0000 (21:58 +0000)]
Fix a crash while iterating compat strings when no match is found.

Spotted by: ian

8 years agoMake RLIM_INFINITY usable without including <stdint.h>.
ed [Tue, 31 May 2016 21:34:02 +0000 (21:34 +0000)]
Make RLIM_INFINITY usable without including <stdint.h>.

By using __uint64_t instead of uint64_t, this constant can also be used
if <sys/resource.h> is included on its own.

8 years agozfsd: Remove a redundant semicolon,
pfg [Tue, 31 May 2016 21:23:57 +0000 (21:23 +0000)]
zfsd: Remove a redundant semicolon,

8 years agoWITH_META_MODE: Mitigate switching from without to with META_MODE.
bdrewery [Tue, 31 May 2016 21:22:19 +0000 (21:22 +0000)]
WITH_META_MODE: Mitigate switching from without to with META_MODE.

Adding .META to targets-to-build will ensure that they will rebuild if there
is no .meta file.

Adding it to all SUFFIXES and objects ensures that at least objects will
rebuild if there is no .meta file.

This will be reverted if bmake's behavior changes to rebuild on missing .meta
files.

Sponsored by: EMC / Isilon Storage Division

8 years agoRemove mentions that PTHREAD_PROCESS_SHARED is not supported from man pages.
jilles [Tue, 31 May 2016 21:16:34 +0000 (21:16 +0000)]
Remove mentions that PTHREAD_PROCESS_SHARED is not supported from man pages.

Also add support for process-shared synchronization objects to the HISTORY
sections where they already exist.

8 years agoFix typo ESRC -> ESRCH in pthread man pages.
jilles [Tue, 31 May 2016 21:09:42 +0000 (21:09 +0000)]
Fix typo ESRC -> ESRCH in pthread man pages.

8 years agosfxge(4): avoid code duplication in SW events definition
arybchik [Tue, 31 May 2016 20:54:42 +0000 (20:54 +0000)]
sfxge(4): avoid code duplication in SW events definition

Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days
Differential Revision:  https://reviews.freebsd.org/D6662

8 years agoAdd missing dependency on <machine/param.h>.
ed [Tue, 31 May 2016 19:24:32 +0000 (19:24 +0000)]
Add missing dependency on <machine/param.h>.

The SHMLBA definition provided by this header file is defined as
PAGE_SIZE. PAGE_SIZE is only available when <machine/param.h> is
included.

8 years agoAttach the generic USB OHCI driver to the arm64 build.
andrew [Tue, 31 May 2016 19:19:21 +0000 (19:19 +0000)]
Attach the generic USB OHCI driver to the arm64 build.

Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation

8 years agodpcpu_init should have also passed in the calculated cpuid, not the
andrew [Tue, 31 May 2016 19:17:32 +0000 (19:17 +0000)]
dpcpu_init should have also passed in the calculated cpuid, not the
devicetree ID.

Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation

8 years agoImprove POSIX conformance of <signal.h>.
ed [Tue, 31 May 2016 19:05:41 +0000 (19:05 +0000)]
Improve POSIX conformance of <signal.h>.

- This header file has always depended on pthread_t, pthread_attr_t,
  struct timespec, size_t and uid_t. Only as of POSIX 2008, these
  dependencies have been states explicitly. They should now be defined.

- In our implementation, struct sigevent::sigev_notify_attributes has
  type "void *" instead of "pthread_attr_t *". My guess is that this was
  done to prevent pulling in the pthread types, but this can easily be
  avoided by using the underlying structure types.

8 years agoAllow the kernel to boot on a CPU where the devicetree has numbered it with
andrew [Tue, 31 May 2016 18:45:52 +0000 (18:45 +0000)]
Allow the kernel to boot on a CPU where the devicetree has numbered it with
a non-zero ID. To do this we increment the cpuid of any CPUs with a smaller
devicetree ID by one to stop them conflicting with the boot CPU.

Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation

8 years agoFor EILSEQ case in mbsnrtowcs() and wcsnrtombs() update src to point to
ache [Tue, 31 May 2016 18:44:33 +0000 (18:44 +0000)]
For EILSEQ case in mbsnrtowcs() and wcsnrtombs() update src to point to
the character after the one this conversion stopped at.

PR:     209907
Submitted by: Roel Standaert <roel@abittechnical.com> (partially)
MFC after:      3 days

8 years agoFix indentation in dhclient rc.d script
vangyzen [Tue, 31 May 2016 18:40:47 +0000 (18:40 +0000)]
Fix indentation in dhclient rc.d script

8 years agosfxge(4): move definition of the SW events to sfxge.h
arybchik [Tue, 31 May 2016 18:34:39 +0000 (18:34 +0000)]
sfxge(4): move definition of the SW events to sfxge.h

Tx flush done event is defined and Rx-specific header is not a good
place for it.

Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days

8 years agoFix prototype of dbm_open().
ed [Tue, 31 May 2016 18:32:57 +0000 (18:32 +0000)]
Fix prototype of dbm_open().

The last argument of dbm_open() should be a mode_t according to POSIX;
not an int.

Reviewed by: pfg, kib
Differential Revision: https://reviews.freebsd.org/D6650

8 years agosfxge(4): zero should be used as RxQ label in SW event
arybchik [Tue, 31 May 2016 18:31:17 +0000 (18:31 +0000)]
sfxge(4): zero should be used as RxQ label in SW event

The buggy code was using the rxq index but should use the evq label
associated with the rxq. It was missed in r298735.

Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days
Differential Revision:  https://reviews.freebsd.org/D6661

8 years agoDocument r300240, net.inet.tcp.ecn.enable now is a three way setting
skreuzer [Tue, 31 May 2016 18:30:33 +0000 (18:30 +0000)]
Document r300240, net.inet.tcp.ecn.enable now is a three way setting

Approved by: re (gjb, implicit, relnotes)

8 years agoDocument r300906, ZFS fault management daemon
skreuzer [Tue, 31 May 2016 18:15:18 +0000 (18:15 +0000)]
Document r300906, ZFS fault management daemon

Approved by: re (gjb, implicit, relnotes)

8 years agoarm_gic_map is a mask not the CPUs ID, there is no need to shift it.
andrew [Tue, 31 May 2016 18:05:17 +0000 (18:05 +0000)]
arm_gic_map is a mask not the CPUs ID, there is no need to shift it.

Pointy-hat to: andrew
Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation

8 years agosfxge(4): regenerate MCDI headers from firmwaresrc .yml
arybchik [Tue, 31 May 2016 18:04:16 +0000 (18:04 +0000)]
sfxge(4): regenerate MCDI headers from firmwaresrc .yml

Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week

8 years agoBin interrupts to the correct CPU when we boot on a non-zero CPU.
andrew [Tue, 31 May 2016 17:49:47 +0000 (17:49 +0000)]
Bin interrupts to the correct CPU when we boot on a non-zero CPU.

Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation

8 years agoifconfig(8) now supports some output formatting options
allanjude [Tue, 31 May 2016 17:30:08 +0000 (17:30 +0000)]
ifconfig(8) now supports some output formatting options

specified by the -f flag or IFCONFIG_FORMAT environment variable, the user
can request that inet4 subnet masks be printed in CIDR or dotted-quad
notation, in addition to the traditional hex output.
inet6 prefixes can be printed in CIDR as well.

For more documentation see the ifconfig(8) man page.

PR: 169072
Requested by: seanc, marcel, brd, many others
Reviewed by: gnn, jhb (earlier version)
Relnotes: yes
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D2856

8 years agoUpdate the Security Team member list with the actual
remko [Tue, 31 May 2016 17:23:27 +0000 (17:23 +0000)]
Update the Security Team member list with the actual
members.

Discussed with: glebius

8 years agoFix kernel stack disclosures in the Linux and 4.3BSD compat layers.
glebius [Tue, 31 May 2016 16:56:30 +0000 (16:56 +0000)]
Fix kernel stack disclosures in the Linux and 4.3BSD compat layers.

Submitted by: CTurt
Security: SA-16:20
Security: SA-16:21

8 years agoEnable setting BF_COHERENT on DMA tags. This allows the kernel to start
andrew [Tue, 31 May 2016 16:28:56 +0000 (16:28 +0000)]
Enable setting BF_COHERENT on DMA tags. This allows the kernel to start
using the cache handling functions.

Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation

8 years ago[ath_hal] rename the MCI state info routine.
adrian [Tue, 31 May 2016 16:08:06 +0000 (16:08 +0000)]
[ath_hal] rename the MCI state info routine.

It's not /really/ "get state".

8 years ago[ath_hal] add support for setting the azimuth timestamp in the outgoing TX payload.
adrian [Tue, 31 May 2016 16:07:15 +0000 (16:07 +0000)]
[ath_hal] add support for setting the azimuth timestamp in the outgoing TX payload.

FYI: This is an unsupported/deprecated feature of the 11n hardware.

8 years ago[ath_hal] reserve a HAL_TXDESC_ bit for azimuth TX timestamp requests.
adrian [Tue, 31 May 2016 16:05:54 +0000 (16:05 +0000)]
[ath_hal] reserve a HAL_TXDESC_ bit for azimuth TX timestamp requests.

8 years agoCosmetics - add missing space after ellipses in shutdown messages.
trasz [Tue, 31 May 2016 15:27:33 +0000 (15:27 +0000)]
Cosmetics - add missing space after ellipses in shutdown messages.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoAdd support for simplex USB MIDI devices, which only provide BULK or
hselasky [Tue, 31 May 2016 15:05:50 +0000 (15:05 +0000)]
Add support for simplex USB MIDI devices, which only provide BULK or
INTERRUPT endpoints for moving data in one direction, like the KeyRig
49 from M-Audio.

Requested by: Ivan Klymenko <fidaj@ukr.net>
MFC after: 1 week

8 years agoMake CMSG_*() work without having NULL available.
ed [Tue, 31 May 2016 13:32:33 +0000 (13:32 +0000)]
Make CMSG_*() work without having NULL available.

The <sys/socket.h> is not supposed to declare NULL, according to POSIX.
Our implementation complies with that, meaning that we need to make sure
that CMSG_*() doesn't use it.

8 years agoImplement _ALIGN() using internal integer types.
ed [Tue, 31 May 2016 13:31:19 +0000 (13:31 +0000)]
Implement _ALIGN() using internal integer types.

The existing version depends on register_t and uintptr_t, which are only
available when including headers such as <sys/types.h>. As this macro is
used by <sys/socket.h>, for example, it should be written in such a way
that it doesn't depend on those types.

8 years agoMake strfmon_l() work without requiring the use of <xlocale.h>.
ed [Tue, 31 May 2016 12:29:21 +0000 (12:29 +0000)]
Make strfmon_l() work without requiring the use of <xlocale.h>.

The strfmon_l() function provided by <xlocale/_monetary.h> is also part
of POSIX 2008's <monetary.h>, so it should be exposed by default.

Change the check used in <monetary.h> to be similar to the one that's
part of <wchar.h>, where we both test for __POSIX_VISIBLE and
_XLOCALE_H_.

8 years agoSet oldfp so the check for fp == oldfp works as expected.
andrew [Tue, 31 May 2016 11:32:09 +0000 (11:32 +0000)]
Set oldfp so the check for fp == oldfp works as expected.

Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation

8 years agoAdd "iscsictl -e". Among other things, it makes it possible to perform
trasz [Tue, 31 May 2016 11:32:07 +0000 (11:32 +0000)]
Add "iscsictl -e".  Among other things, it makes it possible to perform
discovery without attaching to the targets ("iscsictl -Ad ... -e off"),
and then attach to selected ones ("iscsictl -Mi ... -e on").

PR: 204129
MFC after: 1 month
Relnotes: yes
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D6633

8 years agoMove a device_printf under bootverbose where it should have been.
andrew [Tue, 31 May 2016 09:24:16 +0000 (09:24 +0000)]
Move a device_printf under bootverbose where it should have been.

Reported by: bz
Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation

8 years agoMark the ThunderX and generic PCI drivers as cache-coherent when we know
andrew [Tue, 31 May 2016 09:15:21 +0000 (09:15 +0000)]
Mark the ThunderX and generic PCI drivers as cache-coherent when we know
this to be the case. This will mean we don't try and handle the cache in
bus_dmamap_sync when it is not needed.

Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D6605

8 years agoAdd missing dependency on <machine/_limits.h>.
ed [Tue, 31 May 2016 08:38:24 +0000 (08:38 +0000)]
Add missing dependency on <machine/_limits.h>.

In r227474, this header file was changed to define SIG_ATOMIC_{MIN,MAX}
in terms of LONG_{MIN,MAX}. Unlike all of the definitions in this header
file, LONG_{MIN,MAX} is provided by <limits.h>. Remove the dependency on
<limits.h> by using __LONG_{MIN,MAX} instead and including
<machine/_limits.h>.

This change is needed to make SIG_ATOMIC_{MIN,MAX} work without
including any other header files.

8 years agoAdd missing dependency on <machine/_limits.h>.
ed [Tue, 31 May 2016 08:36:39 +0000 (08:36 +0000)]
Add missing dependency on <machine/_limits.h>.

This header uses __INT_MIN and __INT_MAX, which is provided by
<machine/_limits.h>. This is needed to make <stdint.h>'s WCHAR_MIN and
WCHAR_MAX work without including other headers as well.

8 years agoCosmetics: add missing space after the ':' in etc/rc.d/random.
trasz [Tue, 31 May 2016 08:31:34 +0000 (08:31 +0000)]
Cosmetics: add missing space after the ':' in etc/rc.d/random.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agor169386 (PR 112515) was incomplete: it treated 307 as an error except
des [Tue, 31 May 2016 08:27:39 +0000 (08:27 +0000)]
r169386 (PR 112515) was incomplete: it treated 307 as an error except
in verbose mode, and did not handle 308 at all.

r241840 (PR 172451) added support for 308, but with the same bug.

Correctly handle both by recognizing them as redirects in all places
where we check the HTTP result code.

PR: 112515 173451 209546
Submitted by: novel@
MFC after: 1 week

8 years agoLet <sched.h> define struct timespec.
ed [Tue, 31 May 2016 08:07:40 +0000 (08:07 +0000)]
Let <sched.h> define struct timespec.

POSIX 2004 doesn't require that this header defines struct timespec, but
does allow it. For FreeBSD, we would at least need a forward declaration
for sched_rr_get_interval().

POSIX 2008 is a bit more demanding, as it now requires that it is
declared. Remove the old forward declaration and include the _timespec.h
header. This should conform to both POSIX 2004 and 2008 now.

8 years agoMake iscsictl(8) error messages more consistent.
trasz [Tue, 31 May 2016 07:49:59 +0000 (07:49 +0000)]
Make iscsictl(8) error messages more consistent.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoStop using the non-standard basename_r() function.
ed [Tue, 31 May 2016 06:45:19 +0000 (06:45 +0000)]
Stop using the non-standard basename_r() function.

This change makes the code use the POSIX basename() function. It has the
advantage that (if implemented correctly), it also imposes no restrict
on the pathname length.

Notice that I haven't added any error handling to the strdup() call. It
looks like none of the other calls to strdup() and malloc() performed by
this utility do it either.

Reviewed by: hrs
Differential Revision: https://reviews.freebsd.org/D6626

8 years agoAdd missing libc includes to fix -Wimplicit-function-declaration warnings
ngie [Tue, 31 May 2016 06:24:09 +0000 (06:24 +0000)]
Add missing libc includes to fix -Wimplicit-function-declaration warnings

MFC after: 2 weeks
Reported by: clang
Sponsored by: EMC / Isilon Storage Division

8 years agohyperv/kvp: Use if_xname.
sephe [Tue, 31 May 2016 06:00:18 +0000 (06:00 +0000)]
hyperv/kvp: Use if_xname.

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

8 years agohyperv: Move guid2str from vmbus file to hyperv file
sephe [Tue, 31 May 2016 05:43:59 +0000 (05:43 +0000)]
hyperv: Move guid2str from vmbus file to hyperv file

- Use uint8_t for GUID byte array.
- Define GUID string length.
- Break long lines.
- Nuke unnecessary stack variable.

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

8 years agohyperv/vmbus: White space cleanup
sephe [Tue, 31 May 2016 05:34:46 +0000 (05:34 +0000)]
hyperv/vmbus: White space cleanup

No functional changes

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

8 years agohyperv/vmbus: Redefine SynIC message.
sephe [Tue, 31 May 2016 05:18:55 +0000 (05:18 +0000)]
hyperv/vmbus: Redefine SynIC message.

- Avoid unnecessary indirection.
- Avoid bit fields.
- Use __packed.

Reviewed by: Jun Su <junsu microsoft com>
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D6636

8 years agohyperv/vmbus: Move global vmbus id array to stack.
sephe [Tue, 31 May 2016 05:10:20 +0000 (05:10 +0000)]
hyperv/vmbus: Move global vmbus id array to stack.

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

8 years agohyperv/vmbus: Indentation cleanup
sephe [Tue, 31 May 2016 05:01:43 +0000 (05:01 +0000)]
hyperv/vmbus: Indentation cleanup

No functional changes.

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

8 years ago[ath_hal] add QCA9565 and MCI related registers.
adrian [Tue, 31 May 2016 04:59:00 +0000 (04:59 +0000)]
[ath_hal] add QCA9565 and MCI related registers.

This is required for upcoming MCI fixes.

Obtained from: Linux ath9k

8 years agohyperv/vmbus: Rename ISR functions
sephe [Tue, 31 May 2016 04:47:53 +0000 (04:47 +0000)]
hyperv/vmbus: Rename ISR functions

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

8 years ago[ath_hal] migrate the bluetooth definitions out from ah.h / ar9300_freebsd_inc.h.
adrian [Tue, 31 May 2016 04:44:00 +0000 (04:44 +0000)]
[ath_hal] migrate the bluetooth definitions out from ah.h / ar9300_freebsd_inc.h.

The eventual MCI driver side of things needs the MCI bits to live
in the HAL API so we can get to them.

Tested:

* QCA9565, STA mode + bluetooth

8 years ago[ath_hal] add bluetooth coexistence definitions for both legacy and MCI.
adrian [Tue, 31 May 2016 04:35:26 +0000 (04:35 +0000)]
[ath_hal] add bluetooth coexistence definitions for both legacy and MCI.

The legacy bits are just from ah.h; the MCI bits are from the ar9300
HAL "freebsd" extras.

A subsequent commit will include ah_btcoex.h into ah.h and remove
the older defintions.

8 years ago[ath] ensure the right methods / options get overridden for MCI bluetooth coex
adrian [Tue, 31 May 2016 04:17:17 +0000 (04:17 +0000)]
[ath] ensure the right methods / options get overridden for MCI bluetooth coex

It turns out that the srev checks can't be done in the early attach
in ar9300_freebsd.c, because the poweron and srev check hasn't yet
happened.

So:

* Re-add the MCI overrides in attach
* Add QCA9565 (Aphrodite) check for the LNA diversity stuff.

Tested:

* QCA9565, STA mode + bluetooth

8 years agoBump __FreeBSD_version for ZFS's support for SHA-512t256 and Skein
allanjude [Tue, 31 May 2016 04:12:55 +0000 (04:12 +0000)]
Bump __FreeBSD_version for ZFS's support for SHA-512t256 and Skein

8 years agoConnect the SHA-512t256 and Skein hashing algorithms to ZFS
allanjude [Tue, 31 May 2016 04:12:14 +0000 (04:12 +0000)]
Connect the SHA-512t256 and Skein hashing algorithms to ZFS

Support for the new hashing algorithms in ZFS was introduced in r289422
However it was disconnected because FreeBSD lacked implementations of
SHA-512 (truncated to 256 bits), and Skein.

These implementations were introduced in r300921 and r300966 respectively

This commit connects them to ZFS and enabled these new checksum algorithms

This new algorithms are not supported by the boot blocks, so do not use them
on your root dataset if you boot from ZFS.

Relnotes: yes
Sponsored by: ScaleEngine Inc.

8 years agohyperv/vmbus: Process event timer before checking events
sephe [Tue, 31 May 2016 04:10:15 +0000 (04:10 +0000)]
hyperv/vmbus: Process event timer before checking events

And update comment.

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

8 years ago[ath] add BTCOEX debug section; modify DPRINTF() to take a no-arg format string.
adrian [Tue, 31 May 2016 04:09:17 +0000 (04:09 +0000)]
[ath] add BTCOEX debug section; modify DPRINTF() to take a no-arg format string.

Tested:

* QCA9565, STA mode

8 years agoClarify the explanations for the hostname and FQDN entries.
wblock [Tue, 31 May 2016 00:23:29 +0000 (00:23 +0000)]
Clarify the explanations for the hostname and FQDN entries.

MFC after: 1 week

8 years agoAdd and correct MIPS relocation types
emaste [Mon, 30 May 2016 20:51:51 +0000 (20:51 +0000)]
Add and correct MIPS relocation types

The correct names for R_MIPS_GOT_HI16 and R_MIPS_GOT_LO16 have a _
after GOT. The nonstandard names (R_MIPS_GOTHI16, R_MIPS_GOTLO16) in the
FreeBSD elf_common.h header also had incorrect values and were not used
in the tree, so just remove them.

Add other MIPS relocation types found in FreeBSD/mips64 object files.

Reviewed by: imp, jmallett
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D6561

8 years agokeyserv(1): drop useless comparison.
pfg [Mon, 30 May 2016 20:41:55 +0000 (20:41 +0000)]
keyserv(1): drop useless comparison.

Comparing a character array against NULL serves no purpose. In any case
we are always asigning a value just before using the value so obviate
the comparison altogether.

Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D6651

CID: 1008422

8 years agoFix circular dependency created after r287197 between ldconfig and mountcritremote
ngie [Mon, 30 May 2016 19:59:51 +0000 (19:59 +0000)]
Fix circular dependency created after r287197 between ldconfig and mountcritremote

ldconfig is already required by mountcritremote indirectly, as noted by rcorder:

> rcorder: Circular dependency on provision `mountcritremote' in file `ldconfig'.

Having mountcritremote REQUIRE ldconfig breaks dependency ordering.

Making the ldconfig hints be conditionally regenerated from mountcritremote when
remote filesystems are mounted is done after this change, similar to cleanvar
being conditionally called after the change.

Differential Revision: https://reviews.freebsd.org/D6621
PR: 202726
Reviewed by: jilles
Sponsored by: EMC / Isilon Storage Division

8 years agozfsd: minor spelling fix.
pfg [Mon, 30 May 2016 19:32:56 +0000 (19:32 +0000)]
zfsd: minor spelling fix.

8 years agoshare/misc/organization.dot: list myself as the new portmgr-secretary
rene [Mon, 30 May 2016 19:30:41 +0000 (19:30 +0000)]
share/misc/organization.dot: list myself as the new portmgr-secretary

8 years agolibdevdctl: minor spelling fixes.
pfg [Mon, 30 May 2016 19:25:00 +0000 (19:25 +0000)]
libdevdctl: minor spelling fixes.

8 years agoAdd PR_CONNREQUIRED for SOCK_STREAM sockets using SCTP.
tuexen [Mon, 30 May 2016 18:24:23 +0000 (18:24 +0000)]
Add PR_CONNREQUIRED for SOCK_STREAM sockets using SCTP.

This is required to signal connetion setup on non-blocking sockets
via becoming writable. This still allows for implicit connection
setup.

MFC after: 1 week

8 years agoLet dbm's datum::dptr use the right type.
ed [Mon, 30 May 2016 16:52:23 +0000 (16:52 +0000)]
Let dbm's datum::dptr use the right type.

According to POSIX, it should use void *, not char *. Unfortunately, the
dsize field also has the wrong type. It should be size_t. I'm not going
to change that, as that will break the ABI.

Reviewed by: pfg
Differential Revision: https://reviews.freebsd.org/D6647

8 years agoAdd missing va_list to <wchar.h>.
ed [Mon, 30 May 2016 16:26:34 +0000 (16:26 +0000)]
Add missing va_list to <wchar.h>.

It looks like va_list should always be defined when XSI is enabled. It
moved over to the POSIX base in the 2008 edition.

8 years agoFix the signature of the psignal() function.
ed [Mon, 30 May 2016 13:51:27 +0000 (13:51 +0000)]
Fix the signature of the psignal() function.

POSIX 2008 added the psignal() function which has already been part of
the BSDs for a long time. The only difference is, the POSIX version uses
an 'int' for the signal number, unlike our version which uses an
'unsigned int'. Fix up the function to use an 'int'. This should not
affect the ABI.

8 years agoAdd missing types and constants to <netdb.h>.
ed [Mon, 30 May 2016 13:37:11 +0000 (13:37 +0000)]
Add missing types and constants to <netdb.h>.

According to POSIX, the netdb.h header must also provide in_addr_t and
in_port_t. It should also provide IPPORT_RESERVED. Copy over the
necessary bits from <netinet/in.h> to achieve that.

8 years agoFix a byte order issue for the scope stored in the SCTP cookie.
tuexen [Mon, 30 May 2016 11:18:39 +0000 (11:18 +0000)]
Fix a byte order issue for the scope stored in the SCTP cookie.

MFC after: 1 week

8 years agohyperv/et: Allow Hyper-V event timer be disabled
sephe [Mon, 30 May 2016 09:44:17 +0000 (09:44 +0000)]
hyperv/et: Allow Hyper-V event timer be disabled

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

8 years agohyperv/et: Device renaming; consistent w/ other Hyper-V utils
sephe [Mon, 30 May 2016 09:35:36 +0000 (09:35 +0000)]
hyperv/et: Device renaming; consistent w/ other Hyper-V utils

While I'm here, prefix function names w/ vmbus, since unlike Hyper-V
timecounter, Hyper-V event timer will not work w/o vmbus.

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

8 years agohyperv: Move timer frequency definition to common place.
sephe [Mon, 30 May 2016 09:20:08 +0000 (09:20 +0000)]
hyperv: Move timer frequency definition to common place.

And cleanup event timer period settings.

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

8 years agoAdd missing restrict keywords to lio_listio().
ed [Mon, 30 May 2016 09:18:12 +0000 (09:18 +0000)]
Add missing restrict keywords to lio_listio().

8 years agoFix ig4 operation for certain machines
grembo [Mon, 30 May 2016 09:05:24 +0000 (09:05 +0000)]
Fix ig4 operation for certain machines

Some machine BIOSes use the I2C bus and leave it in a state that causes
interrupts to not work properly due to a pending interrupt having been
latched.

Refactor the code a bit to clear pending interrupts when I2C is enabled.
This fixes the primary problem.

Also fix a possible race condition in the interrupt handler where the
interrupt was being cleared after reading the status instead of before.

Reported by: pfg
Reviewed by: jhb
Approved by: jhb
Obtained from: DragonFly BSD
Differential Revision: https://reviews.freebsd.org/D6586

8 years agohyperv/et: Make sure only one event timer will be registered
sephe [Mon, 30 May 2016 08:50:33 +0000 (08:50 +0000)]
hyperv/et: Make sure only one event timer will be registered

This nullifies the need to use softc.

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

8 years agohyperv/vmbus: Move SINT settings to vmbus_var.h
sephe [Mon, 30 May 2016 08:42:35 +0000 (08:42 +0000)]
hyperv/vmbus: Move SINT settings to vmbus_var.h

While I'm here remove the event timer's dependency on hv_vmbus_priv.h

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

8 years agohyperv/et: Fix STIMER0 operations.
sephe [Mon, 30 May 2016 08:25:09 +0000 (08:25 +0000)]
hyperv/et: Fix STIMER0 operations.

- Make sure that STIMER0 is disabled before writting to it, since
  writing to an enabled STIMER will result in undefined behaviour.
- It is unnecessary to reconfigure STIMER0 upon each et_start().
- Make sure that MSR_HV_REF_TIME_COUNT will not return 0, since
  writing 0 to STIMER_COUNT will disable the target STIMER.

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

8 years agoAdd missing declaration of ino_t.
ed [Mon, 30 May 2016 07:50:57 +0000 (07:50 +0000)]
Add missing declaration of ino_t.

POSIX requires that <dirent.h> provides ino_t in the XSI case. In our
case, this wasn't being exposed, as d_ino is a macro that expands to
d_fileno that is an uint32_t, not an ino_t.