]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoClean up more usb related files when MK_USB == no when dealing with
Enji Cooper [Wed, 4 Feb 2015 11:43:19 +0000 (11:43 +0000)]
Clean up more usb related files when MK_USB == no when dealing with
manpages, libraries, and binaries

MFC after: 1 week
X-MFC with: r278135
Sponsored by: EMC / Isilon Storage Division

9 years agoRegen src.conf(5)
Enji Cooper [Wed, 4 Feb 2015 10:29:53 +0000 (10:29 +0000)]
Regen src.conf(5)

9 years agoAdd MK_FILE to control whether or not to build file(1), libmagic(3), etc
Enji Cooper [Wed, 4 Feb 2015 10:24:40 +0000 (10:24 +0000)]
Add MK_FILE to control whether or not to build file(1), libmagic(3), etc

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

9 years agoAdd the following options to enable/disable several features in the base system
Enji Cooper [Wed, 4 Feb 2015 10:19:32 +0000 (10:19 +0000)]
Add the following options to enable/disable several features in the base system

WITHOUT_BOOTPARAMD - bootparamd
WITHOUT_BOOTPD - bootpd
WITHOUT_FINGER - finger, fingerd
WITHOUT_FTP - ftp, ftpd
WITHOUT_INETD - inetd
WITHOUT_RBOOTD - rbootd
WITHOUT_TCP_WRAPPERS - tcpd, et al
WITHOUT_TFTP - tftp, tftp-server
WITHOUT_TIMED - timed

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

9 years agoAdd interface to derive a TSC frequency from the pvclock
Bryan Venteicher [Wed, 4 Feb 2015 08:33:04 +0000 (08:33 +0000)]
Add interface to derive a TSC frequency from the pvclock

This can later use this to determine the TSC frequency like is done with
VMware, instead of using a DELAY loop that is not always accurate in an VM.

MFC after: 1 month

9 years agoGeneralized parts of the XEN timer code into a generic pvclock
Bryan Venteicher [Wed, 4 Feb 2015 08:26:43 +0000 (08:26 +0000)]
Generalized parts of the XEN timer code into a generic pvclock

KVM clock shares the same data structures between the guest and the host
as Xen so it makes sense to just have a single copy of this code.

Differential Revision: https://reviews.freebsd.org/D1429
Reviewed by: royger (eariler version)
MFC after: 1 month

9 years agoConditionalize building radius support into libpam, ppp, etc via
Enji Cooper [Wed, 4 Feb 2015 06:53:45 +0000 (06:53 +0000)]
Conditionalize building radius support into libpam, ppp, etc via
MK_RADIUS_SUPPORT

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoTest the return of fetchParseURL(3)
Baptiste Daroussin [Wed, 4 Feb 2015 00:18:06 +0000 (00:18 +0000)]
Test the return of fetchParseURL(3)

CID: 1125811
MFC after: 1 week

9 years agoPlug resources leak
Baptiste Daroussin [Wed, 4 Feb 2015 00:10:57 +0000 (00:10 +0000)]
Plug resources leak

CID: 1125813
CID: 1125807
CID: 1125808
MFC after: 1 week

9 years agoMFV r266995:
Pedro F. Giffuni [Tue, 3 Feb 2015 20:06:30 +0000 (20:06 +0000)]
MFV r266995:

4767 dtrace_probe() always has the timestamp

Reference:
https://illumos.org/issues/4767

Obtained from: Illumos
MFC after: 2 weeks

9 years agoMFV r266993:
Pedro F. Giffuni [Tue, 3 Feb 2015 19:39:53 +0000 (19:39 +0000)]
MFV r266993:

4469 DTrace helper tracing should be dynamic

Reference:
https://illumos.org/issues/4469

Obtained from: Illumos
Phabric: D1551
Reviewed by: markj
MFC after: 2 weeks

9 years agoSilence a coverity warning about ignoring a return value. We do, but
Warner Losh [Tue, 3 Feb 2015 18:59:52 +0000 (18:59 +0000)]
Silence a coverity warning about ignoring a return value. We do, but
we also know that it "can't fail" given the single-threaded nature of
device enumeration. Go ahead and check it just in case, but add a
comment.

CID: 1009393
Sponsored by: Netflix, Inc

9 years agoBring some more order into iSCSI portal group tags support.
Alexander Motin [Tue, 3 Feb 2015 16:17:54 +0000 (16:17 +0000)]
Bring some more order into iSCSI portal group tags support.

While ctld(8) still does not allow multiple portal groups per target
to be configured, kernel should now be able to handle it.

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

9 years agoscanblnl: drop extra braces.
Pedro F. Giffuni [Tue, 3 Feb 2015 16:16:52 +0000 (16:16 +0000)]
scanblnl: drop extra braces.

Pointed out by: bde

9 years agoRemove duplicate intel_fbc_enabled prototype
Ed Maste [Tue, 3 Feb 2015 15:41:09 +0000 (15:41 +0000)]
Remove duplicate intel_fbc_enabled prototype

Fixed upstream in Linux commit 7ff0ebcc1e30e3216c8c62ee71f59ac830b10364

Differential Revision: https://reviews.freebsd.org/D1762
Reviewed by: hselasky, kib
Sponsored by: The FreeBSD Foundation

9 years agoReduce confusion in scalbnl() family of functions.
Pedro F. Giffuni [Tue, 3 Feb 2015 14:17:29 +0000 (14:17 +0000)]
Reduce confusion in scalbnl() family of functions.

The changes unrelated to the bug in r277948 made
the code very difficult to understand to both
coverity and regular humans so take a step back
to something that is much easier to understand
for both and follows better the original code.

CID: 126799212679931267994
Discussed with: kargl

9 years agoIf the vm_page_alloc_contig() failed in the ttm page allocators, do
Konstantin Belousov [Tue, 3 Feb 2015 13:45:06 +0000 (13:45 +0000)]
If the vm_page_alloc_contig() failed in the ttm page allocators, do
what other callers of vm_page_alloc_contig() do, retry after
vm_pageout_grow_cache().

Sponsored by: The FreeBSD Foundation

9 years agoDo not access gmbus_ports array past its end.
Konstantin Belousov [Tue, 3 Feb 2015 13:43:03 +0000 (13:43 +0000)]
Do not access gmbus_ports array past its end.

Reported and tested by: hselasky
Sponsored by: The FreeBSD Foundation

9 years agoRemove duplicated assignment.
Konstantin Belousov [Tue, 3 Feb 2015 12:09:48 +0000 (12:09 +0000)]
Remove duplicated assignment.

CID: 1267988
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

9 years agoFollowup to r278147. Two more sign errors.
Konstantin Belousov [Tue, 3 Feb 2015 11:34:18 +0000 (11:34 +0000)]
Followup to r278147.  Two more sign errors.

Noted by: hps
Sponsored by: The FreeBSD Foundation

9 years agoFix sign for the error code returned from the driver-specific code.
Konstantin Belousov [Tue, 3 Feb 2015 10:46:07 +0000 (10:46 +0000)]
Fix sign for the error code returned from the driver-specific code.

Noted by: hps
Sponsored by: The FreeBSD Foundation

9 years agoDo not attach to the unsupported chipsets, unless magic tunable is
Konstantin Belousov [Tue, 3 Feb 2015 10:30:41 +0000 (10:30 +0000)]
Do not attach to the unsupported chipsets, unless magic tunable is
frobbed.

Sponsored by: The FreeBSD Foundation

9 years agoFix use after free in pipe_dtor(). PIPE_NAMED flag must be tested
Konstantin Belousov [Tue, 3 Feb 2015 10:29:40 +0000 (10:29 +0000)]
Fix use after free in pipe_dtor().  PIPE_NAMED flag must be tested
before pipeclose() is called, since for !PIPE_NAMED case, when peer is
already closed, the pipe pair memory is freed.

Submitted by: luke.tw@gmail.com
PR: 197246
Tested by: pho
MFC after: 3 days

9 years agoAvoid hard-coding a path to ksh in scripts that are executed directly by
Mark Johnston [Tue, 3 Feb 2015 06:22:46 +0000 (06:22 +0000)]
Avoid hard-coding a path to ksh in scripts that are executed directly by
the test harness. This is a problem in many of the *.ksh test scripts as
well, but those scripts are executed using a shell whose path is specified
in dtest.pl, so there's no need to modify them.

MFC after: 1 week

9 years agoUse a MIME type of text/plain for a couple of shell scripts with a file
Mark Johnston [Tue, 3 Feb 2015 06:16:18 +0000 (06:16 +0000)]
Use a MIME type of text/plain for a couple of shell scripts with a file
extension of ".exe".

MFC after: 1 week

9 years agoContinue to handle the case where state is NULL, though this currently
Mark Johnston [Tue, 3 Feb 2015 06:04:16 +0000 (06:04 +0000)]
Continue to handle the case where state is NULL, though this currently
cannot happen on FreeBSD. r278136 overlooked the fact that a destructor
registered with devfs_set_cdevpriv(9) is invoked even in the case of an
error.

X-MFC-With: r278136

9 years agoDiff reduction with illumos, in preparation for merging r266993 from the
Mark Johnston [Tue, 3 Feb 2015 05:38:52 +0000 (05:38 +0000)]
Diff reduction with illumos, in preparation for merging r266993 from the
vendor branch. No functional change.

MFC after: 1 week

9 years ago- Remove more files when MK_USB == no
Dmitry Marakasov [Tue, 3 Feb 2015 03:14:17 +0000 (03:14 +0000)]
- Remove more files when MK_USB == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_UNBOUND == no
Dmitry Marakasov [Tue, 3 Feb 2015 03:13:16 +0000 (03:13 +0000)]
- Remove more files when MK_UNBOUND == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_TEXTPROC == no
Dmitry Marakasov [Tue, 3 Feb 2015 03:11:24 +0000 (03:11 +0000)]
- Remove more files when MK_TEXTPROC == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_TESTS == no
Dmitry Marakasov [Tue, 3 Feb 2015 03:10:23 +0000 (03:10 +0000)]
- Remove more files when MK_TESTS == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_TCSH == no
Dmitry Marakasov [Tue, 3 Feb 2015 03:05:06 +0000 (03:05 +0000)]
- Remove more files when MK_TCSH == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_SYSCONS == no
Dmitry Marakasov [Tue, 3 Feb 2015 03:02:41 +0000 (03:02 +0000)]
- Remove more files when MK_SYSCONS == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_SSP == no
Dmitry Marakasov [Tue, 3 Feb 2015 02:59:47 +0000 (02:59 +0000)]
- Remove more files when MK_SSP == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_QUOTAS == no
Dmitry Marakasov [Tue, 3 Feb 2015 02:57:50 +0000 (02:57 +0000)]
- Remove more files when MK_QUOTAS == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_PORTSNAP == no
Dmitry Marakasov [Tue, 3 Feb 2015 02:56:25 +0000 (02:56 +0000)]
- Remove more files when MK_PORTSNAP == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_PMC == no
Dmitry Marakasov [Tue, 3 Feb 2015 02:54:54 +0000 (02:54 +0000)]
- Remove more files when MK_PMC == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_PF == no
Dmitry Marakasov [Tue, 3 Feb 2015 00:19:50 +0000 (00:19 +0000)]
- Remove more files when MK_PF == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_OPENSSH == no
Dmitry Marakasov [Tue, 3 Feb 2015 00:17:49 +0000 (00:17 +0000)]
- Remove more files when MK_OPENSSH == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years agoUse ifconfig_DEFAULT="" instead of hard-coding vtnet(4)
Glen Barber [Tue, 3 Feb 2015 00:10:48 +0000 (00:10 +0000)]
Use ifconfig_DEFAULT="" instead of hard-coding vtnet(4)

MFC after: 2 weeks
X-MFC-with: r277458, r277536, r277606, r277609,
r277836, r278118
Sponsored by: The FreeBSD Foundation

9 years agoMove service_enable="YES" rc.conf(5) additions to
Glen Barber [Tue, 3 Feb 2015 00:07:54 +0000 (00:07 +0000)]
Move service_enable="YES" rc.conf(5) additions to
VM_RC_LIST and deduplicate.

Evaluate if firstboot_freebsd_update should be enabled
based on UNAME_r, because it is not supported for the
-CURRENT or -STABLE branches.

MFC after: 2 weeks
X-MFC-with: r277458, r277536, r277606, r277609,
r277836
Sponsored by: The FreeBSD Foundation

9 years agoFix bug in idr_pre_get where it doesn't handle 'need' correctly.
Navdeep Parhar [Mon, 2 Feb 2015 23:41:43 +0000 (23:41 +0000)]
Fix bug in idr_pre_get where it doesn't handle 'need' correctly.

Obtained from: Chelsio Communications' internal repository.

9 years agoOverhaul the relnotes page to reorganize the sections.
Glen Barber [Mon, 2 Feb 2015 21:09:26 +0000 (21:09 +0000)]
Overhaul the relnotes page to reorganize the sections.

With the previous layout, the majority of the release
notes were categorized under one main "What's New"
section, which in addition to making the page difficult
to parse relevant bits, also had a few rendering issues,
such as 'Note' blocks visually not appearing as if they
pertain to a particular change.

This change removes the "What's New" section, integrating
it with the introduction.  In addition, each section now
provides a brief description of its contents, broken down
further into a subsection for each "topic", making it much
easier to find a specific topic in the page.

MFC after: 3 days
X-MFC-Note: direct commit, not a merge
Sponsored by: The FreeBSD Foundation

9 years agoMove the 'Upgrading from Previous Releases of FreeBSD'
Glen Barber [Mon, 2 Feb 2015 21:09:23 +0000 (21:09 +0000)]
Move the 'Upgrading from Previous Releases of FreeBSD'
section to the top of the file, following the introduction.

Sponsored by: The FreeBSD Foundation

9 years agoLet the standard deviation of the empty set be 0. This is consistent with
Mark Johnston [Mon, 2 Feb 2015 20:48:31 +0000 (20:48 +0000)]
Let the standard deviation of the empty set be 0. This is consistent with
the behaviour for averages, and fixes a crash that can occur when attempting
to print a stddev aggregation containing no elements:

    dtrace:::BEGIN { @ = stddev(0); clear(@); printa("%@d", @); }

PR: 197260
MFC after: 2 week

9 years agoRetry indefinitely on SCSI BUSY status from VMware disks and CDs.
Alexander Motin [Mon, 2 Feb 2015 20:23:05 +0000 (20:23 +0000)]
Retry indefinitely on SCSI BUSY status from VMware disks and CDs.

VMware returns BUSY status when storage has transient connectivity issues.
It is often better to wait and let VM admin fix the problem then crash.

Discussed with: ken
MFC after: 1 week

9 years agoBelatedly add the clang patch corresponding to r277423.
Dimitry Andric [Mon, 2 Feb 2015 20:05:52 +0000 (20:05 +0000)]
Belatedly add the clang patch corresponding to r277423.

9 years agoRegister the GPIO controller device reference on xref table for FDT systems.
Luiz Otavio O Souza [Mon, 2 Feb 2015 19:22:34 +0000 (19:22 +0000)]
Register the GPIO controller device reference on xref table for FDT systems.

9 years agoRevert the change of flowid output format. [1]
Vsevolod Stakhov [Mon, 2 Feb 2015 19:00:18 +0000 (19:00 +0000)]
Revert the change of flowid output format. [1]

Reverse the sorting order of the interfaces addresses familise so it should be
the same as getifaddrs(3) order. [2]

Suggested by: hrs [1], bz [2]
Approved by: hrs, bapt

9 years agoSeparate out detection of prevent and allow medium removal quirk.
Hans Petter Selasky [Mon, 2 Feb 2015 18:20:10 +0000 (18:20 +0000)]
Separate out detection of prevent and allow medium removal quirk.

PR: 185747
MFC after: 1 week

9 years agoThe linux driver code for the MDIO bus does a read-after-write
Sean Bruno [Mon, 2 Feb 2015 17:33:00 +0000 (17:33 +0000)]
The linux driver code for the MDIO bus does a read-after-write
which seems to be required on MIPS74k platforms for correct
behaviour.

Reviewed by: adrian

9 years agoThe flowid and hashtype should be copied from the originating packet
Hans Petter Selasky [Mon, 2 Feb 2015 17:32:50 +0000 (17:32 +0000)]
The flowid and hashtype should be copied from the originating packet
when fragmenting IP packets to preserve the order of the packets in a
stream. Else the resulting fragments can be sent out of order when the
hardware supports multiple transmit rings.

Reviewed by: glebius @
MFC after: 1 week
Sponsored by: Mellanox Technologies

9 years agoAdd a toc.section.depth=3 parameter to use the same ToC depth as DocBook
Hiroki Sato [Mon, 2 Feb 2015 16:10:03 +0000 (16:10 +0000)]
Add a toc.section.depth=3 parameter to use the same ToC depth as DocBook
DSSSL stylesheet.

Reported by: gjb

9 years agorpc: Uninitialized pointer read
Pedro F. Giffuni [Mon, 2 Feb 2015 16:07:07 +0000 (16:07 +0000)]
rpc: Uninitialized pointer read

Initialize *xprt to avoid exposing a random value
in cleanup_svc_vc_create.
This is the kernel counterpart of r278041.

CID: 1007340

9 years agoMissed addition to r278098.
Alexander Motin [Mon, 2 Feb 2015 16:06:23 +0000 (16:06 +0000)]
Missed addition to r278098.

MFC after: 1 week

9 years agoAdd some fields and constants from RFC7144.
Alexander Motin [Mon, 2 Feb 2015 15:59:17 +0000 (15:59 +0000)]
Add some fields and constants from RFC7144.

MFC after: 1 week

9 years ago- Remove more files when MK_NTP == no
Dmitry Marakasov [Mon, 2 Feb 2015 14:59:55 +0000 (14:59 +0000)]
- Remove more files when MK_NTP == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_NS_CACHING == no
Dmitry Marakasov [Mon, 2 Feb 2015 14:58:41 +0000 (14:58 +0000)]
- Remove more files when MK_NS_CACHING == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_NLS_CATALOGS == no
Dmitry Marakasov [Mon, 2 Feb 2015 14:57:45 +0000 (14:57 +0000)]
- Remove more files when MK_NLS_CATALOGS == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_NLS == no
Dmitry Marakasov [Mon, 2 Feb 2015 14:56:39 +0000 (14:56 +0000)]
- Remove more files when MK_NLS == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_NETGRAPH_SUPPORT == no
Dmitry Marakasov [Mon, 2 Feb 2015 14:55:24 +0000 (14:55 +0000)]
- Remove more files when MK_NETGRAPH_SUPPORT == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_NETGRAPH == no
Dmitry Marakasov [Mon, 2 Feb 2015 14:54:28 +0000 (14:54 +0000)]
- Remove more files when MK_NETGRAPH == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_MAN_UTILS == no
Dmitry Marakasov [Mon, 2 Feb 2015 14:52:38 +0000 (14:52 +0000)]
- Remove more files when MK_MAN_UTILS == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_MAN == no
Dmitry Marakasov [Mon, 2 Feb 2015 14:51:26 +0000 (14:51 +0000)]
- Remove more files when MK_MAN == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_MAKE == no
Dmitry Marakasov [Mon, 2 Feb 2015 14:50:14 +0000 (14:50 +0000)]
- Remove more files when MK_MAKE == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_MAIL == no
Dmitry Marakasov [Mon, 2 Feb 2015 14:48:05 +0000 (14:48 +0000)]
- Remove more files when MK_MAIL == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_LOCALES == no
Dmitry Marakasov [Mon, 2 Feb 2015 14:45:17 +0000 (14:45 +0000)]
- Remove more files when MK_LOCALES == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_LIBCPLUSPLUS == no
Dmitry Marakasov [Mon, 2 Feb 2015 14:43:07 +0000 (14:43 +0000)]
- Remove more files when MK_LIBCPLUSPLUS == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_HTML == no
Dmitry Marakasov [Mon, 2 Feb 2015 14:40:42 +0000 (14:40 +0000)]
- Remove more files when MK_HTML == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_GROFF == no
Dmitry Marakasov [Mon, 2 Feb 2015 14:38:47 +0000 (14:38 +0000)]
- Remove more files when MK_GROFF == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years agoStyle(9) fixes.
Vsevolod Stakhov [Mon, 2 Feb 2015 14:37:45 +0000 (14:37 +0000)]
Style(9) fixes.

Approved by: bapt, ae
X-MFC-With: r278080

9 years agoReorganize the list of addresses associated with an interface and group them
Vsevolod Stakhov [Mon, 2 Feb 2015 13:03:04 +0000 (13:03 +0000)]
Reorganize the list of addresses associated with an interface and group them
based on the address family. This should help to recognize interfaces with
multiple AF (e.g. ipv4 and ipv6) with many aliases or additional addresses. The
order of addresses inside a single group is strictly preserved.

Improve the scope_id output for AF_INET6 families, as the
current approach uses hexadecimal string that is basically the ID of an
interface, whilst this information is already depicted by getnameinfo(3) call.
Therefore, now ifconfig just prints the scope of address as it is defined in
2.4 of RFC 2373.

PR: 197270
Approved by: bapt
MFC after: 2 weeks

9 years agoOptimise allocation of USB DMA structures. By default don't double map
Hans Petter Selasky [Mon, 2 Feb 2015 11:32:15 +0000 (11:32 +0000)]
Optimise allocation of USB DMA structures. By default don't double map
allocations if only one element should be allocated per page
cache. Make one allocation per element compile time configurable. Fix
a comment while at it.

Suggested by: ian @
MFC after: 1 week

9 years agoSection 3.2.9 in the XHCI specification about control transfers says
Hans Petter Selasky [Mon, 2 Feb 2015 11:06:41 +0000 (11:06 +0000)]
Section 3.2.9 in the XHCI specification about control transfers says
that we should use a normal-TRB if there are more TRBs extending the
data-stage TRB. Add a dedicated state bit to the internal USB transfer
flags to handle this case.

Reported by: Kohji Okuno <okuno.kohji@jp.panasonic.com>
MFC after: 1 week

9 years agoRemove duplicate MK_ISCSI block and sort the conditional blocks so this error
Enji Cooper [Mon, 2 Feb 2015 10:31:35 +0000 (10:31 +0000)]
Remove duplicate MK_ISCSI block and sort the conditional blocks so this error
won't crop up again in the future

Reported by: gjb
MFC after: 1 week

9 years agoam335x_clk_pruss_activate(): use the L3F clock.
Rui Paulo [Mon, 2 Feb 2015 08:01:10 +0000 (08:01 +0000)]
am335x_clk_pruss_activate(): use the L3F clock.

The DISP DPLL clock is slower and was making the PRU programs slower
on FreeBSD than on Linux.

Submitted by: Manuel Stuehn <freebsdnewbie at freenet.de>
MFC after: 1 week

9 years agoRemove hostapd and wpa_supplicant from FILES so they're installed conditionally
Enji Cooper [Mon, 2 Feb 2015 05:41:17 +0000 (05:41 +0000)]
Remove hostapd and wpa_supplicant from FILES so they're installed conditionally
if MK_WIRELESS != no

MFC after: 3 days
X-MFC with: r277740

9 years ago- Remove more files when MK_GPIO == no
Dmitry Marakasov [Mon, 2 Feb 2015 02:56:29 +0000 (02:56 +0000)]
- Remove more files when MK_GPIO == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_DMAGENT == no and move the chunk into its alphabetical...
Dmitry Marakasov [Mon, 2 Feb 2015 02:53:52 +0000 (02:53 +0000)]
- Remove more files when MK_DMAGENT == no and move the chunk into its alphabetical place

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_BSNMP == no
Dmitry Marakasov [Mon, 2 Feb 2015 02:51:22 +0000 (02:51 +0000)]
- Remove more files when MK_BSNMP == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_BSD_CPIO == no
Dmitry Marakasov [Mon, 2 Feb 2015 02:49:54 +0000 (02:49 +0000)]
- Remove more files when MK_BSD_CPIO == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_BOOT == no
Dmitry Marakasov [Mon, 2 Feb 2015 02:49:01 +0000 (02:49 +0000)]
- Remove more files when MK_BOOT == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_BLUETOOTH == no
Dmitry Marakasov [Mon, 2 Feb 2015 02:47:37 +0000 (02:47 +0000)]
- Remove more files when MK_BLUETOOTH == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_BINUTILS == no
Dmitry Marakasov [Mon, 2 Feb 2015 02:44:27 +0000 (02:44 +0000)]
- Remove more files when MK_BINUTILS == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years agorpc: Uninitialized pointer read
Pedro F. Giffuni [Mon, 2 Feb 2015 00:21:34 +0000 (00:21 +0000)]
rpc: Uninitialized pointer read

Initialize *xprt to avoid exposing a random value
in cleanup_svc_vc_create.

CID: 1018723
Phabric: D1749
Reviewed by: alfred

9 years agoPrevent inlining txg_quiesce
Steven Hartland [Mon, 2 Feb 2015 00:17:36 +0000 (00:17 +0000)]
Prevent inlining txg_quiesce

This allows dtrace to monitor the calls to txg_quiesce which can be really
helpful.

Also standardise __noinline order for arc_kmem_reap_now.

Sponsored by: Multiplay

9 years agoResource leak
Pedro F. Giffuni [Sun, 1 Feb 2015 23:19:06 +0000 (23:19 +0000)]
Resource leak

CID: 1016703
Reviewed by: alfred

9 years agottyname_r(): Return actual error, not always [ENOTTY].
Jilles Tjoelker [Sun, 1 Feb 2015 22:50:33 +0000 (22:50 +0000)]
ttyname_r(): Return actual error, not always [ENOTTY].

Adjust the test that used to fail because of this bug.

PR: 191936
MFC after: 1 week

9 years agoCTL LUN mapping rewrite.
Alexander Motin [Sun, 1 Feb 2015 21:50:28 +0000 (21:50 +0000)]
CTL LUN mapping rewrite.

Replace iSCSI-specific LUN mapping mechanism with new one, working for any
ports.  By default all ports are created without LUN mapping, exposing all
CTL LUNs as before.  But, if needed, LUN mapping can be manually set on
per-port basis via ctladm.  For its iSCSI ports ctld does it via ioctl(2).
The next step will be to teach ctld to work with FibreChannel ports also.

Respecting additional flexibility of the new mechanism, ctl.conf now allows
alternative syntax for LUN definition.  LUNs can now be defined in global
context, and then referenced from targets by unique name, as needed.  It
allows same LUN to be exposed several times via multiple targets.

While there, increase limit for LUNs per target in ctld from 256 to 1024.
Some initiators do not support LUNs above 255, but that is not our problem.

Discussed with: trasz
MFC after: 2 weeks
Relnotes: yes
Sponsored by: iXsystems, Inc.

9 years agoAdd a quirk to limit AHCI MSI vectors to one
Steven Hartland [Sun, 1 Feb 2015 20:00:08 +0000 (20:00 +0000)]
Add a quirk to limit AHCI MSI vectors to one

In 10.1-RELEASE the default number of MSI vectors used was changed from one
to as many vectors as the HW supports.

This change resulted in an ahci timeouts regression when running on AMD
SB7x0/SB8x0/SB9x0 hardware, so its now limited to 1 MSI by default using
this new quirk.

MFC after: 2 weeks
Sponsored by: Multiplay

9 years agoDo not skip setting the memory 'reg' property if the fdt data already
Ian Lepore [Sun, 1 Feb 2015 18:21:16 +0000 (18:21 +0000)]
Do not skip setting the memory 'reg' property if the fdt data already
contains one.  Published dts source often includes a minimal default
memory definition and expects it to be overridden by the bootloader after
determining the actual physical memory in the system.

9 years agoRemove a stale comment. The logic that deleted the map before other
Ian Lepore [Sun, 1 Feb 2015 17:19:57 +0000 (17:19 +0000)]
Remove a stale comment.  The logic that deleted the map before other
resources was removed long ago, but the comment stuck somehow.

9 years agoFreeBSD expects _Unwind_GetGR, _Unwind_SetGR, and _Unwind_SetIP to be
Andrew Turner [Sun, 1 Feb 2015 09:50:33 +0000 (09:50 +0000)]
FreeBSD expects _Unwind_GetGR, _Unwind_SetGR, and _Unwind_SetIP to be
symbols and not macros. Make this so. This fixes a few ports that try to
link against these functions but fail as they previously didn't exist.

9 years agoAllow this to work with disks greater than 4 GB and with names not beginning
Nathan Whitehorn [Sun, 1 Feb 2015 02:02:50 +0000 (02:02 +0000)]
Allow this to work with disks greater than 4 GB and with names not beginning
with "s".

9 years agoImport libcxxrt master 1cb607e89f6135bbc10f3d3b6fba1f983e258dcc.
Dimitry Andric [Sat, 31 Jan 2015 23:31:45 +0000 (23:31 +0000)]
Import libcxxrt master 1cb607e89f6135bbc10f3d3b6fba1f983e258dcc.

Interesting fixes:
1cb607e Correct gcc version check for __cxa_begin_catch() declaration
with or without throw()

MFC after: 3 days

9 years agoImport libcxxrt master 1cb607e89f6135bbc10f3d3b6fba1f983e258dcc.
Dimitry Andric [Sat, 31 Jan 2015 23:14:24 +0000 (23:14 +0000)]
Import libcxxrt master 1cb607e89f6135bbc10f3d3b6fba1f983e258dcc.

Interesting fixes:
1cb607e Correct gcc version check for __cxa_begin_catch() declaration
        with or without throw()

9 years agoFix mktemp(1) usage.
Mark Johnston [Sat, 31 Jan 2015 23:12:29 +0000 (23:12 +0000)]
Fix mktemp(1) usage.

MFC after: 1 week

9 years agoUse syscall::exit instead of the nonexistent syscall::rexit.
Mark Johnston [Sat, 31 Jan 2015 23:11:57 +0000 (23:11 +0000)]
Use syscall::exit instead of the nonexistent syscall::rexit.

MFC after: 1 week

9 years agoRevert r256642, not only to reduce diffs against upstream libcxxrt, but
Dimitry Andric [Sat, 31 Jan 2015 23:08:29 +0000 (23:08 +0000)]
Revert r256642, not only to reduce diffs against upstream libcxxrt, but
also because it is the wrong approach: comparing typeinfo names deeply
causes trouble if two loaded DSOs use independent types of the same
name.

In addition, this particular change was never merged to FreeBSD 10.x and
9.x, so let's get rid of it before it ends up in an 11.x release.

Discussed with: theraven, joerg@netbsd

9 years agoRemove hard-coded invocations of gcc; use cc(1) instead.
Mark Johnston [Sat, 31 Jan 2015 23:02:27 +0000 (23:02 +0000)]
Remove hard-coded invocations of gcc; use cc(1) instead.

MFC after: 1 week