]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agotdelete(3): don't delete the node we are about to return.
pfg [Thu, 5 Feb 2015 23:02:43 +0000 (23:02 +0000)]
tdelete(3): don't delete the node we are about to return.

CID: 272528
Obtained from: NetBSD (CVS rev. 1.4)
MFC after: 2 weeks

9 years agogetdiskbyname(): plug resource leak
pfg [Thu, 5 Feb 2015 22:54:31 +0000 (22:54 +0000)]
getdiskbyname(): plug resource leak

Variable cq going out of scope leaks the storage it points to.

CID: 270511
Phabric: D1775
Reviewed by: imp
Obtained from: NetBSD (CVS rev. 1.34)
MFC after: 2 weeks

9 years agoExpose the constants for internal new-bus device flags to userland. The
jhb [Thu, 5 Feb 2015 22:42:44 +0000 (22:42 +0000)]
Expose the constants for internal new-bus device flags to userland.  The
flag value is already exposed via dv_flags, just not the meaning of the
flags themselves.  Use these constants to annotate devices that are
disabled or suspended in devinfo output.

9 years agoFix two clang 3.6.0 warnings in usr.sbin/syslogd:
dim [Thu, 5 Feb 2015 22:28:00 +0000 (22:28 +0000)]
Fix two clang 3.6.0 warnings in usr.sbin/syslogd:

usr.sbin/syslogd/syslogd.c:1023:10: error: address of array 'f->f_prevline' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                    f->f_prevline && !strcmp(msg, f->f_prevline) &&
                    ~~~^~~~~~~~~~
usr.sbin/syslogd/syslogd.c:1178:16: error: address of array 'f->f_prevline' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
        } else if (f->f_prevline) {
               ~~  ~~~^~~~~~~~~~

In both cases, the f_prevline field of struct filed is a char array, so
it can never be null.  Remove the checks.

Reviewed by: jilles
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D1716

9 years agoSet and clear the DF_SUSPENDED flag on the child device being manipulated
jhb [Thu, 5 Feb 2015 22:24:22 +0000 (22:24 +0000)]
Set and clear the DF_SUSPENDED flag on the child device being manipulated
rather than on the parent.

9 years agoapparently MAN was misspelled, fix..
jmg [Thu, 5 Feb 2015 21:56:23 +0000 (21:56 +0000)]
apparently MAN was misspelled, fix..

Submitted by: ngie

9 years agoAdd the device ID for the AMT serial port on my Thinkpad T400.
jhb [Thu, 5 Feb 2015 21:50:51 +0000 (21:50 +0000)]
Add the device ID for the AMT serial port on my Thinkpad T400.

MFC after: 1 week

9 years agoUse FILES+= idiom instead of _inetd when referencing inetd rc.d script
ngie [Thu, 5 Feb 2015 20:45:50 +0000 (20:45 +0000)]
Use FILES+= idiom instead of _inetd when referencing inetd rc.d script

This was a discrepancy between ^/projects/building-blocks and ^/head that I
didn't resolve before committing the change to ^/head

Pointyhat to: me
Reported by: jhb
MFC after: 20 days
X-MFC with: r278249
Sponsored by: EMC / Isilon Storage Division

9 years agoadd a quick testing program I wrote for adrian...
jmg [Thu, 5 Feb 2015 20:23:36 +0000 (20:23 +0000)]
add a quick testing program I wrote for adrian...

9 years agoImport VCHI driver for Broadcom's VideoCore IV GPU
gonzo [Thu, 5 Feb 2015 19:54:03 +0000 (19:54 +0000)]
Import VCHI driver for Broadcom's VideoCore IV GPU

Differential Revision: D1753

9 years agovtvga: improve the device description.
rpaulo [Thu, 5 Feb 2015 19:36:29 +0000 (19:36 +0000)]
vtvga: improve the device description.

9 years agoRemove splvm(). It is no longer in the tree.
jkim [Thu, 5 Feb 2015 19:17:37 +0000 (19:17 +0000)]
Remove splvm().  It is no longer in the tree.

9 years agoPrint IPv6 address in log message instead of address of pointer.
ae [Thu, 5 Feb 2015 16:29:26 +0000 (16:29 +0000)]
Print IPv6 address in log message instead of address of pointer.

MFC after: 1 week

9 years agoBump copyright year.
gjb [Thu, 5 Feb 2015 16:00:34 +0000 (16:00 +0000)]
Bump copyright year.

Sponsored by: The FreeBSD Foundation

9 years agoSecurity Advisory information is included on several
gjb [Thu, 5 Feb 2015 15:46:01 +0000 (15:46 +0000)]
Security Advisory information is included on several
pages in the release notes.  Rather than duplicating
the information between various files, add two new
files to include in all pages that currently display
the information.

Sponsored by: The FreeBSD Foundation

9 years agoFix IP_FW_NAT44_LIST_NAT size calculation.
melifaro [Thu, 5 Feb 2015 14:54:53 +0000 (14:54 +0000)]
Fix IP_FW_NAT44_LIST_NAT size calculation.

Found by: lev
Sponsored by: Yandex LLC

9 years agoAdd an entity to use to link to SAs and ENs.
gjb [Thu, 5 Feb 2015 14:08:57 +0000 (14:08 +0000)]
Add an entity to use to link to SAs and ENs.
Prefer https:// for other URLs.
While here, update release.prev.stable entity to
9.3-RELEASE.

Sponsored by: The FreeBSD Foundation

9 years agoRetrieve counters from kernel if rule timstamping is requested.
melifaro [Thu, 5 Feb 2015 14:08:33 +0000 (14:08 +0000)]
Retrieve counters from kernel if rule timstamping is requested.

PR: kern/197271
Submitted by: lev
Sponsored by: Yandex LLC

9 years ago* Make sure table algorithm destroy hook is always called without locks
melifaro [Thu, 5 Feb 2015 13:49:04 +0000 (13:49 +0000)]
* Make sure table algorithm destroy hook is always called without locks
* Explicitly lock freeing interface references in ta_destroy_ifidx
* Change ipfw_iface_unref() to require UH lock
* Add forgotten ipfw_iface_unref() to destroy_ifidx_locked()

PR: kern/197276
Submitted by: lev
Sponsored by: Yandex LLC

9 years agoPartially revert r277922, avoid sleeping and do flush if we a awaken,
kib [Thu, 5 Feb 2015 13:00:27 +0000 (13:00 +0000)]
Partially revert r277922, avoid sleeping and do flush if we a awaken,
instead of waiting for the FLUSH_* flags.  Also, when requesting
flush, do the wakeups unconditionally even when FLUSH_CLEANUP flag was
already set.

Reported and tested by: dim,
"Lundberg, Johannes" <johannes@brilliantservice.co.jp>
Bisected by: dim
MFC after: 2 weeks

9 years agosfxge: Add statistics for partially dropped TSO packets
arybchik [Thu, 5 Feb 2015 12:10:23 +0000 (12:10 +0000)]
sfxge: Add statistics for partially dropped TSO packets

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agosfxge: using 64-bit access for x86-64
arybchik [Thu, 5 Feb 2015 12:08:25 +0000 (12:08 +0000)]
sfxge: using 64-bit access for x86-64

Submitted by:   Artem V. Andreev <Artem.Andreev at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agoHonor the following flags for items that can be conditionalized out of the
ngie [Thu, 5 Feb 2015 11:42:59 +0000 (11:42 +0000)]
Honor the following flags for items that can be conditionalized out of the
build/install without disrupting other dependent services (see r278249, et
al):

- MK_LOCATE
- MK_MAN
- MK_NLS
- MK_OPENSSL
- MK_PKGBOOTSTRAP
- MK_SENDMAIL

Additional flags need to be handled in etc/Makefile, but it requires
refactoring the relevant scripts in etc/rc.d/*

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

9 years agosfxge: make lock names unique
arybchik [Thu, 5 Feb 2015 11:39:15 +0000 (11:39 +0000)]
sfxge: make lock names unique

Lock name should include interface name.
Tx queue and event queue lock name should include queue number.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agoHonor the following flags with the following rc.d scripts for services that can
ngie [Thu, 5 Feb 2015 11:38:29 +0000 (11:38 +0000)]
Honor the following flags with the following rc.d scripts for services that can
be easily decoupled from the boot process without disrupting other services

- MK_APM && MK_ACPI: powerd
- MK_BOOTPARAMD: bootparams
- MK_FTP: ftpd
- MK_INETD: inetd
- MK_LEGACY_CONSOLE: moused, syscons
- MK_MAIL: othermta
- MK_NS_CACHING: nscd
- MK_NTP: ntpd (ntpdate is required by other services and can't be easily
                conditionalized -- yet..)
- MK_ROUTED: routed
- MK_SENDMAIL: sendmail
- MK_TIMED: timed
- MK_VI: virecover

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

9 years agosfxge: access statistics buffers under port lock
arybchik [Thu, 5 Feb 2015 11:37:07 +0000 (11:37 +0000)]
sfxge: access statistics buffers under port lock

Allow access to statistics data not only from sysctl handlers.

Submitted by:   Boris Misenov <Boris.Misenov at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agocxgbe(4): reserve id for iSCSI upper layer driver.
np [Thu, 5 Feb 2015 08:52:20 +0000 (08:52 +0000)]
cxgbe(4): reserve id for iSCSI upper layer driver.

9 years agoturn GEOM_UNCOMPRESS_DEBUG into a proper option so it can be specified
jmg [Thu, 5 Feb 2015 07:51:38 +0000 (07:51 +0000)]
turn GEOM_UNCOMPRESS_DEBUG into a proper option so it can be specified
in kernel config files..

put VERBOSE_SYSINIT in it's own option header so the one file,
init_main.c, can use it instead of requiring an entire kernel recompile
to change one file..

9 years agoDon't call callout_drain() with iscsi mutex held; this fixes a warning
trasz [Thu, 5 Feb 2015 07:46:34 +0000 (07:46 +0000)]
Don't call callout_drain() with iscsi mutex held; this fixes a warning
that was introduced recently.  While here, don't try to access is_terminating
without lock.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoThe connection_new() routine was taking an absurd number of parameters; fix it.
trasz [Thu, 5 Feb 2015 07:32:24 +0000 (07:32 +0000)]
The connection_new() routine was taking an absurd number of parameters; fix it.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoEFI: print more information about EFI Tables.
rpaulo [Thu, 5 Feb 2015 07:19:30 +0000 (07:19 +0000)]
EFI: print more information about EFI Tables.

This adds the GUIDs for DXE, HOB, Memory Type Information and Debug
Image Info.

9 years agoFix error handling.
trasz [Thu, 5 Feb 2015 07:16:45 +0000 (07:16 +0000)]
Fix error handling.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoMake it possible to set (via iscsi.conf(5)) and query (via iscsictl -v)
trasz [Thu, 5 Feb 2015 06:37:59 +0000 (06:37 +0000)]
Make it possible to set (via iscsi.conf(5)) and query (via iscsictl -v)
initiator iSCSI offload.  Pass maximum data segment size supported by
chosen offload module to iscsid(8), and make iscsid(8) not try to negotiate
anything larger than that.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agopowerpc64 csu needs to be built by gcc, so enforce that.
jhibbits [Thu, 5 Feb 2015 03:56:49 +0000 (03:56 +0000)]
powerpc64 csu needs to be built by gcc, so enforce that.

With this change, world is one step closer to being clang-able.

MFC after: 2 weeks

9 years agoInitialize ticks so that it wraps 10 minutes after boot to increase the
peter [Thu, 5 Feb 2015 01:43:21 +0000 (01:43 +0000)]
Initialize ticks so that it wraps 10 minutes after boot to increase the
chances of finding problems related to wraparound sooner.

This comes from P4 change 167856 on 2009/08/26 around when we had problems
with the TCP stack with ticks after 24 days of uptime.

9 years agoAdd -fwrapv to CFLAGS for the kernel. This essentially un-reverts r259045.
peter [Thu, 5 Feb 2015 01:36:53 +0000 (01:36 +0000)]
Add -fwrapv to CFLAGS for the kernel.  This essentially un-reverts r259045.

The C standard undefines behavior when signed integers overflow. The
compiler toolchain has become more adept at detecting this and taking
advantage of faster undefined behavior.  At the current time this has the
unfortunate effect of the clock stopping after 24 days of uptime.

clang makes no distinction between -fwrapv and -fno-strict-overflow.  gcc
does treat them differently but -fwrapv is mature in gcc and is the
behavior are actually expecting.

Obtained from: kib

9 years agoAdd support for probing the SCSI VPD Extended Inquiry page (0x86).
ken [Thu, 5 Feb 2015 00:12:21 +0000 (00:12 +0000)]
Add support for probing the SCSI VPD Extended Inquiry page (0x86).

This VPD page is effectively an extension of the standard Inquiry
data page, and includes lots of additional bits.

This commit includes support for probing the page in the SCSI probe code,
and an additional request type for the XPT_DEV_ADVINFO CCB.  CTL already
supports the Extended Inquiry page.

Support for querying this page in the sa(4) driver will come later.

sys/cam/scsi/scsi_xpt.c:
Probe the Extended Inquiry page, if the device supports it, and
return it in response to a XPT_DEV_ADVINFO CCB if it is requested.

sys/cam/scsi/cam_ccb.h:
Define a new advanced information CCB data type, CDAI_TYPE_EXT_INQ.

sys/cam/cam_xpt.c:
Free the extended inquiry data in a device when the device goes
away.

sys/cam/cam_xpt_internal.h:
Add an extended inquiry data pointer and length to struct cam_ed.

sys/sys/param.h
Bump __FreeBSD_version for the addition of the new
CDAI_TYPE_EXT_INQ advanced information type.

Sponsored by: Spectra Logic
MFC after: 1 week

9 years agoFollowup to r278223, by only using -stdlib=libc++ when the compiler is
dim [Wed, 4 Feb 2015 21:48:50 +0000 (21:48 +0000)]
Followup to r278223, by only using -stdlib=libc++ when the compiler is
clang; not even recent versions of gcc support the -stdlib flag.

Noticed by: ngie

9 years agoFor now, add -stdlib=libc++ to the flags for building clang, since that
dim [Wed, 4 Feb 2015 21:00:29 +0000 (21:00 +0000)]
For now, add -stdlib=libc++ to the flags for building clang, since that
makes it easier to build head on stable/9, where libstdc++ is still the
default.  We can revisit this when somebody will try to build base with
gcc 4.8.1 or higher, and its included libstdc++.

Reported by: rpaulo

9 years agoMark typedefs for manually implementing _Static_assert() as unused, so
dim [Wed, 4 Feb 2015 20:55:21 +0000 (20:55 +0000)]
Mark typedefs for manually implementing _Static_assert() as unused, so
they won't show up unecessarily for -Wunused-local-typedefs.

MFC after: 3 days

9 years agosfxge: Add macros to init, destroy, acquire, release and assert locks
arybchik [Wed, 4 Feb 2015 20:03:57 +0000 (20:03 +0000)]
sfxge: Add macros to init, destroy, acquire, release and assert locks

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agosfxge: Implement EFSYS_MEM_READ_BARRIER()
arybchik [Wed, 4 Feb 2015 19:58:54 +0000 (19:58 +0000)]
sfxge: Implement EFSYS_MEM_READ_BARRIER()

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agoFix a bug where an interrupt could be masked unintentionally when
loos [Wed, 4 Feb 2015 18:35:49 +0000 (18:35 +0000)]
Fix a bug where an interrupt could be masked unintentionally when
bus_config_intr() is called with the same interrupt type and polarity that
is already set.

Pointy hat: loos

9 years agoAdd GPIO interrupt support for BCM2835 (Raspberry pi).
loos [Wed, 4 Feb 2015 18:15:28 +0000 (18:15 +0000)]
Add GPIO interrupt support for BCM2835 (Raspberry pi).

With this commit any of the GPIO pins can now be programmed to act as an
interrupt source for GPIO devices (i.e. limited to devices directly
attached to gpiobus - at least for now).

Differential Revision: https://reviews.freebsd.org/D1000

9 years agoSort and remove unnecessary includes.
loos [Wed, 4 Feb 2015 17:23:02 +0000 (17:23 +0000)]
Sort and remove unnecessary includes.

9 years agoRemove stale comments about the issues with HS mode.
loos [Wed, 4 Feb 2015 16:36:51 +0000 (16:36 +0000)]
Remove stale comments about the issues with HS mode.

Remove a previous workaround to limit the minimum sdhci frequency that
isn't needed anymore.

9 years agoRemove some duplicate calls to bus_release_resource() and destroy the mutex
loos [Wed, 4 Feb 2015 16:21:45 +0000 (16:21 +0000)]
Remove some duplicate calls to bus_release_resource() and destroy the mutex
on error cases.

While here remove unnecessary includes.

9 years agoFix typo
imp [Wed, 4 Feb 2015 16:19:31 +0000 (16:19 +0000)]
Fix typo

Submitted by: matteo@

9 years agoAdd comment about why checking for 0xff is OK. There's two bits in the
imp [Wed, 4 Feb 2015 15:59:51 +0000 (15:59 +0000)]
Add comment about why checking for 0xff is OK. There's two bits in the
ISR that are normally clear. RST is one, though in some overflow cases
it can be set. RDC is only set when a remote DMA is finished from the
memory mapped memory to the transmit rings, which we poll fore in the
code with ED_LOCK around the operation that would set it.

9 years agoAdd ddb command 'show clocksource' to display state of the per-cpu
kib [Wed, 4 Feb 2015 14:49:47 +0000 (14:49 +0000)]
Add ddb command 'show clocksource' to display state of the per-cpu
clock events.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoBump copyright after r277458.
gjb [Wed, 4 Feb 2015 11:55:32 +0000 (11:55 +0000)]
Bump copyright after r277458.

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

9 years agoSort the entries by build knob, then MACHINE_ARCH like other areas of the tree
ngie [Wed, 4 Feb 2015 11:48:33 +0000 (11:48 +0000)]
Sort the entries by build knob, then MACHINE_ARCH like other areas of the tree

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

9 years agoClean up more usb related files when MK_USB == no when dealing with
ngie [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)
ngie [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
ngie [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
ngie [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
bryanv [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
bryanv [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
ngie [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)
bapt [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
bapt [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:
pfg [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:
pfg [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
imp [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.
mav [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.
pfg [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
emaste [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.
pfg [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
kib [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.
kib [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.
kib [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.
kib [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.
kib [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
kib [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
kib [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
markj [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
markj [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
markj [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
markj [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
amdmi3 [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
amdmi3 [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
amdmi3 [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
amdmi3 [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
amdmi3 [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
amdmi3 [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
amdmi3 [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
amdmi3 [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
amdmi3 [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
amdmi3 [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
amdmi3 [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
amdmi3 [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)
gjb [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
gjb [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.
np [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.
gjb [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'
gjb [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
markj [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.
mav [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.
dim [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.
loos [Mon, 2 Feb 2015 19:22:34 +0000 (19:22 +0000)]
Register the GPIO controller device reference on xref table for FDT systems.