]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
10 years agoMFC r260310:
pfg [Sun, 12 Jan 2014 21:16:26 +0000 (21:16 +0000)]
MFC r260310:

libcpp: misc fixes from Apple's GCC.

Fixes some bugs detected by Apple:
  #error with unmatched quotes
  pragma mark

Obtained from: Apple GCC 4.2 - 5553

git-svn-id: svn://svn.freebsd.org/base/stable/10@260573 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259920:
pfg [Sun, 12 Jan 2014 20:09:17 +0000 (20:09 +0000)]
MFC r259920:

gcc: Implement -Wmost for compatibility with clang.

This is equivalent to -Wall -Wno-parentheses.

Obtained from: Apple GCC 4.2 - 5531

git-svn-id: svn://svn.freebsd.org/base/stable/10@260568 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260494:
dim [Sun, 12 Jan 2014 14:37:39 +0000 (14:37 +0000)]
MFC r260494:

Fix a braino with r259730: we cannot currently use CFLAGS.gcc or
CFLAGS.clang in sys/conf/Makefile.arm, since the main kernel build does
not use <bsd.sys.mk>.  So revert that particular change for now.

Pointy hat to: me
Noticed by: zbb

git-svn-id: svn://svn.freebsd.org/base/stable/10@260564 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260446
remko [Sat, 11 Jan 2014 23:10:59 +0000 (23:10 +0000)]
MFC r260446

  virtio-block does not exist, the correct name is virtio-blk.

  PR:     185573
  Submitted by:    Allan Jude
  Facilitated by: Snow B.V.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260558 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260184:
hselasky [Sat, 11 Jan 2014 08:21:13 +0000 (08:21 +0000)]
MFC r260184:
Minor correction for the XHCI reset logic.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260537 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260361:
pfg [Sat, 11 Jan 2014 01:44:22 +0000 (01:44 +0000)]
MFC r260361:

gcc: Fix optimization bug.

GCC-PR rtl-optimization/34628
* combine.c (try_combine): Stop and undo after the first combination
if an autoincrement side-effect on the first insn has effectively
been lost.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260528 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 259339
asomers [Fri, 10 Jan 2014 17:56:23 +0000 (17:56 +0000)]
MFC 259339
    sbin/devd/devd.cc
        Increase the size of devd's client socket's send buffer from the
        default (8k) to 128k.  This prevents clients from getting
        POLLHUPped during event storms.  For example, during zpool creation,
        the kernel emits a resource.fs.zfs.statechange event for every vdev
        in the pool.  A 128k buffer is large enough to hold the statechange
        events for a pool with nearly 800 drives.

MFC 259362
    sbin/devd/devd.cc
        Promoting the SIGINFO handler's log message from LOG_INFO to
        LOG_NOTICE, and promoting the "Processing event ..." message from
        LOG_DEBUG to LOG_INFO.  Setting the logfile to LOG_NOTICE with this
        change will have the same result as setting it to LOG_INFO without
        this change.  Setting it to LOG_INFO with this change will include
        the useful "Processing event ..." messages that were previously at
        LOG_DEBUG, without including useless messages like "Pushing table".

        The intent of this change is that one can log "Processing event ..."
        without logging "Pushing table" and related messages that are sent
        for every event.  The number of lines actually logged is reduced by
        about 75% by making this change and setting syslog to LOG_INFO vs
        setting syslog to LOG_DEBUG.

    etc/syslog.conf
        Changing the recommended loglevel to notice instead of info.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260519 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 259240
asomers [Fri, 10 Jan 2014 16:56:59 +0000 (16:56 +0000)]
MFC 259240
    sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
        When a da or ada device dissappears, outstanding IOs fail with
        ENXIO, not EIO.  The check for EIO was probably copied from Illumos,
        where that is indeed the correct errno.

        Without this change, pulling a busy drive from a zpool would usually
        turn it into UNAVAIL, even though pulling an idle drive would turn
        it into REMOVED.  With this change, it is REMOVED every time.

        Also, vdev_geom_io_intr shouldn't do zfs_post_remove, because that
        results in devd getting two resource.fs.zfs.removed events.  The
        comment said that the event had to be sent directly instead of
        through the async removal thread because "the DE engine is using
        this information to discard prevoius I/O errors".  However, the fact
        that vdev_geom_io_intr was never actually sending the events until
        now, and that vdev_geom_orphan never sent them at all, and that
        vdev_geom_orphan usually gets called about 2 seconds after the
        actual removal, means that FreeBSD's userland can cope with a late
        event just fine.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260517 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260151 (by adrian):
ae [Fri, 10 Jan 2014 09:45:28 +0000 (09:45 +0000)]
MFC r260151 (by adrian):
  Use an RLOCK here instead of an RWLOCK - matching all the other calls
  to lla_lookup().

  This drastically reduces the very high lock contention when doing parallel
  TCP throughput tests (> 1024 sockets) with IPv6.

MFC r260187:
  lla_lookup() does modification only when LLE_CREATE is specified.
  Thus we can use IF_AFDATA_RLOCK() instead of IF_AFDATA_LOCK() when doing
  lla_lookup() without LLE_CREATE flag.

MFC r260217:
  Add IF_AFDATA_WLOCK_ASSERT() in case lla_lookup() is called with
  LLE_CREATE flag.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260504 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259634:
ae [Fri, 10 Jan 2014 07:48:36 +0000 (07:48 +0000)]
MFC r259634:
  Prevent users from deactivating the last component of a mirror.

MFC r259929:
  Add an ability to stop gmirror and clear its metadata in one command.
  This fixes the problem, when gmirror starts again just after stop.

  The problem occurs when gmirror's component has geom label with equal size.
  E.g. gpt and gptid have the same size as partition, diskid has the same
  size as entire disk. When gmirror's geom has been destroyed, glabel
  creates its providers and this initiate retaste.

  Now "gmirror destroy" command is available. It destroys geom and also
  erases gmirror's metadata.

PR: 184985

git-svn-id: svn://svn.freebsd.org/base/stable/10@260503 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258357:
ae [Fri, 10 Jan 2014 07:43:40 +0000 (07:43 +0000)]
MFC r258357:
  Add "resize" verb to gmirror(8) and such functionality to geom_mirror(4).
  Now it is easy to expand the size of the mirror when all its components
  are replaced. Also add g_resize method to geom_mirror class. It will write
  updated metadata to new last sector, when parent provider is resized.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260502 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260358
wblock [Thu, 9 Jan 2014 23:51:47 +0000 (23:51 +0000)]
MFC r260358

Fix a cut and paste error.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260498 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260334:
dim [Thu, 9 Jan 2014 23:08:56 +0000 (23:08 +0000)]
MFC r260334:

Split the last gcc-specific flags off into CFLAGS.gcc.  This also
removes the need to use -Qunused-arguments for clang throughout the
tree.

MFC r260369:

Apply band-aid for 32-bit compat libs failures after r260334: put back
-Qunused-arguments for clang for now, until I can figure out a way to
make it unneeded in all scenarios.  Sorry about the breakage.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260497 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260102:
dim [Thu, 9 Jan 2014 22:40:51 +0000 (22:40 +0000)]
MFC r260102:

Similar to r260020, only use -fms-extensions with gcc, for all other
modules which require this flag to compile.  Use a GCC_MS_EXTENSIONS
variable, defined in kern.pre.mk, which can be used to easily supply the
flag (or not), depending on the compiler type.

MFC r260322:

In addition to r260102, also define GCC_MS_EXTENSIONS in bsd.sys.mk,
since kernel module builds do not use kern.pre.mk.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260495 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257064:
loos [Thu, 9 Jan 2014 18:28:58 +0000 (18:28 +0000)]
MFC r257064:

Add an OFW SPI compatible bus.  Fix the spibus probe to return
BUS_PROBE_GENERIC and not BUS_PROBE_SPECIFIC (0) so the OFW SPI bus can
attach when enabled.  Export the spibus devclass_t and driver_t
declarations.

Submitted by: ray
Approved by: adrian (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/10@260489 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258683:
mav [Thu, 9 Jan 2014 11:13:03 +0000 (11:13 +0000)]
MFC r258683:
Escape special XML chars, returned by some devices, confusing XML parsers.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260479 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258220, r258251:
mav [Thu, 9 Jan 2014 11:11:47 +0000 (11:11 +0000)]
MFC r258220, r258251:
Implement automatic live resize support for GEOM MULTIPATH class.

In "manual" mode just automatically resize provider in any direction.
In "automatic" mode allow growth (with new metadata write); in case of
shrinking check if there is already valid metadata found at the new
location.  This should allow easy transparent recovery if first resize
was done by mistake.

While there, unify metadata write code and fix minor memory leak.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260478 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257946:
mav [Thu, 9 Jan 2014 10:59:31 +0000 (10:59 +0000)]
MFC r257946:
Introduce seperate mutex lock to protect protect CTL I/O pools, slightly
reducing global CTL lock scope and congestion.

While there, simplify CTL I/O pools KPI, hiding implementation details.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260477 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r256995:
mav [Thu, 9 Jan 2014 10:50:20 +0000 (10:50 +0000)]
MFC r256995:
Remove 128KB bzero() call done for every block I/O data buffer.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260476 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r256547 (by smh):
mav [Thu, 9 Jan 2014 10:49:14 +0000 (10:49 +0000)]
MFC r256547 (by smh):
Added 4K quirks for Corsair Neutron GTX SSD's

git-svn-id: svn://svn.freebsd.org/base/stable/10@260475 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259197:
mav [Thu, 9 Jan 2014 10:44:27 +0000 (10:44 +0000)]
MFC r259197:
Do not DELAY() for P-state transition unless we want to see the result.

Intel manual says: "If a transition is already in progress, transition to
a new value will subsequently take effect. Reads of IA32_PERF_CTL determine
the last targeted operating point."  So seems it should be fine to just
trigger wanted transition and go.  Linux does the same.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260473 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260205:
kib [Thu, 9 Jan 2014 03:32:03 +0000 (03:32 +0000)]
MFC r260205:
Update the description for pmap_remove_pages() to match the modern
times.  Assert that the pmap passed to pmap_remove_pages() is only
active on current CPU.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260467 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260204:
kib [Thu, 9 Jan 2014 03:24:36 +0000 (03:24 +0000)]
MFC r260204:
Assert that accounting for the pmap resident pages does not underflow.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260464 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259873:
pfg [Wed, 8 Jan 2014 19:33:16 +0000 (19:33 +0000)]
MFC r259873:

gcc: small enhancements for the arm support.

fixes GCC-PR target/31152

Obtained from: gcc 4.3 (rev. r118461, 125973: GPLv2)

git-svn-id: svn://svn.freebsd.org/base/stable/10@260455 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoRevert MFC of r258821 - it was already handled by MFC of r239672.
peter [Wed, 8 Jan 2014 03:16:21 +0000 (03:16 +0000)]
Revert MFC of r258821 - it was already handled by MFC of r239672.

Pointy hat to: peter

git-svn-id: svn://svn.freebsd.org/base/stable/10@260434 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258893, r258956:
cperciva [Wed, 8 Jan 2014 02:19:39 +0000 (02:19 +0000)]
MFC r258893, r258956:
  Add a new sysctl / loader tunable kern.panic_reboot_wait_time which
  defaults to PANIC_REBOOT_WAIT_TIME (a long-existing kernel config
  setting).  Use this now-variable value in place of the defined constant
  to control how long the system waits after a panic before rebooting.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260431 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260257:
tuexen [Tue, 7 Jan 2014 23:51:41 +0000 (23:51 +0000)]
MFC r260257:

Fix several bugs in sctp_bindx():
* Set errno to EAFNOSUPPORT if an address is provided which is neither
  AF_INET nor AF_INET6.
* Don't modify the arguments.
* Don't smash the stack when provided with a non-zero port.
* Handle the case correctly where the first address provided is
  an IPv6 address.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260428 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259943:
tuexen [Tue, 7 Jan 2014 23:50:02 +0000 (23:50 +0000)]
MFC r259943:

Address some warnings which showed up on the userland version.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260426 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258821 - fix tcp simultaneous close
peter [Tue, 7 Jan 2014 23:00:58 +0000 (23:00 +0000)]
MFC r258821 - fix tcp simultaneous close

PR: kern/99188

git-svn-id: svn://svn.freebsd.org/base/stable/10@260417 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMerged r260415 from head.
edavis [Tue, 7 Jan 2014 22:59:33 +0000 (22:59 +0000)]
Merged r260415 from head.

Approved by: davidch

git-svn-id: svn://svn.freebsd.org/base/stable/10@260416 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260049:
trociny [Tue, 7 Jan 2014 21:23:41 +0000 (21:23 +0000)]
MFC r260049:

Add mibs for hastd(1) queue stats.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260412 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260403 (MFV r260399):
delphij [Tue, 7 Jan 2014 20:04:41 +0000 (20:04 +0000)]
MFC r260403 (MFV r260399):

Apply vendor commits:

197e0ea Fix for TLS record tampering bug.  (CVE-2013-4353).
3462896 For DTLS we might need to retransmit messages from the
previous session so keep a copy of write context in DTLS
retransmission buffers instead of replacing it after
sending CCS.  (CVE-2013-6450).
ca98926 When deciding whether to use TLS 1.2 PRF and record hash
algorithms use the version number in the corresponding
SSL_METHOD structure instead of the SSL structure.  The
SSL structure version is sometimes inaccurate.
Note: OpenSSL 1.0.2 and later effectively do this already.
(CVE-2013-6449).

Security: CVE-2013-4353
Security: CVE-2013-6449
Security: CVE-2013-6450

git-svn-id: svn://svn.freebsd.org/base/stable/10@260404 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260290:
pjd [Tue, 7 Jan 2014 19:46:17 +0000 (19:46 +0000)]
MFC r260290:

Bring back the old size of the kinfo_file structure to preserve ABI.
Keep only one uint64_t spare for further cap_rights_t expension.

Add a comment clarifying that if the size of this structure changes,
a new sysctl MIB has to be allocate for it and the old structure has
to be returned by the old sysctl MIB.

Requested by:   re

git-svn-id: svn://svn.freebsd.org/base/stable/10@260402 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260232:
mjg [Tue, 7 Jan 2014 19:28:10 +0000 (19:28 +0000)]
MFC r260232:
Don't check for fd limits in fdgrowtable_exp.

Callers do that already and additional check races with process
decreasing limits and can result in not growing the table at all, which
is currently not handled.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260400 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259841
pfg [Tue, 7 Jan 2014 18:32:31 +0000 (18:32 +0000)]
MFC r259841

gcc:  Add ability to generate DWARF pubtypes section if
DEBUG_PUBTYPES_SECTION is defined.

Obtained from: gcc 4.3 (rev. 118826; GPLv2)

git-svn-id: svn://svn.freebsd.org/base/stable/10@260395 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC Alexander Motin's direct dispatch, multi-queue, and finer-grained
scottl [Tue, 7 Jan 2014 01:51:48 +0000 (01:51 +0000)]
MFC Alexander Motin's direct dispatch, multi-queue, and finer-grained
locking support for CAM

r256826:
Fix several target mode SIMs to not blindly clear ccb_h.flags field of
ATIO CCBs.  Not all CCB flags there belong to them.

r256836:
Remove hard limit on number of BIOs handled with one ATA TRIM request.

r256843:
Merge CAM locking changes from the projects/camlock branch to radically
reduce lock congestion and improve SMP scalability of the SCSI/ATA stack,
preparing the ground for the coming next GEOM direct dispatch support.

r256888:
Unconditionally acquire periph reference on CCB allocation failure.

r256895:
Fix memory and references leak due to unfreed path.

r256960:
Move CAM_UNQUEUED_INDEX setting to the last moment and under the periph lock.
This fixes race condition with cam_periph_ccbwait(), causing use-after-free.

r256975:
Minor (mostly cosmetical) addition to r256960.

r257054:
Some microoptimizations for da and ada drivers:
 - Replace ordered_tag_count counter with single flag;
 - From da remove outstanding_cmds counter, duplicating pending_ccbs list;
 - From da_softc remove unused links field.

r257482:
Fix lock recursion, triggered by `smartctl -a /dev/adaX`.

r257501:
Make getenv_*() functions and respectively TUNABLE_*_FETCH() macros not
allocate memory and so not require sleepable environment.  getenv() has
already used on-stack temporary storage, so just use it more rationally.
getenv_string() receives buffer as argument, so don't need another one.

r257914:
Some CAM locks polishing:
 - Fix LOR and possible lock recursion when handling high-power commands.
Introduce new lock to protect left power quota and list of frozen devices.
 - Correct locking around xpt periph creation.
 - Remove seems never used XPT_FLAG_OPEN xpt periph flag.

Again, Netflix assisted with testing the merge, but all of the credit goes
to Alexander and iX Systems.

Submitted by: mav
Sponsored by: iX Systems

git-svn-id: svn://svn.freebsd.org/base/stable/10@260387 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC Alexander Motin's GEOM direct dispatch work:
scottl [Tue, 7 Jan 2014 01:32:23 +0000 (01:32 +0000)]
MFC Alexander Motin's GEOM direct dispatch work:

r256603:
Introduce new function devstat_end_transaction_bio_bt(), adding new argument
to specify present time.  Use this function to move binuptime() out of lock,
substantially reducing lock congestion when slow timecounter is used.

r256606:
Move g_io_deliver() out of the lock, as required for direct dispatch.
Move g_destroy_bio() out too to reduce lock scope even more.

r256607:
Fix passing uninitialized bio_resid argument to g_trace().

r256610:
Add unmapped I/O support to GEOM RAID.

r256830:
Restore BIO_UNMAPPED and BIO_TRANSIENT_MAPPING in biodonne() when unmapping
temporary mapped buffer.  That fixes double unmap if biodone() called twice
for the same BIO (but with different done methods).

r256880:
Merge GEOM direct dispatch changes from the projects/camlock branch.

When safety requirements are met, it allows to avoid passing I/O requests
to GEOM g_up/g_down thread, executing them directly in the caller context.
That allows to avoid CPU bottlenecks in g_up/g_down threads, plus avoid
several context switches per I/O.

r259247:
Fix bug introduced at r256607.  We have to recalculate bp_resid here since
sizes of original and completed requests may differ due to end of media.

Testing of the stable/10 merge was done by Netflix, but all of the credit
goes to Alexander and iX Systems.

Submitted by:   mav
Sponsored by:   iX Systems

git-svn-id: svn://svn.freebsd.org/base/stable/10@260385 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r256885:
mav [Sun, 5 Jan 2014 23:02:03 +0000 (23:02 +0000)]
MFC r256885:
Remove global device lock acquisition from dev_relthread(), replacing it
with atomics on per-device data.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260356 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r256614:
mav [Sun, 5 Jan 2014 23:00:38 +0000 (23:00 +0000)]
MFC r256614:
 - Take BIO lock in biodone() only when there is no completion callback set
and so we should wake up thread waiting in biowait().
 - Remove msleep() timeout from biowait().  It was added 11 years ago, when
there was no locks used, and it should not be needed any more.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260354 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258173:
mav [Sun, 5 Jan 2014 22:55:21 +0000 (22:55 +0000)]
MFC r258173:
Add few more minor parts of DevSleep support from AHCI 1.3.1 proposal.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260353 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258169:
mav [Sun, 5 Jan 2014 22:53:55 +0000 (22:53 +0000)]
MFC r258169:
Add ID for Intel Avoton SMBus controller.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260352 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258168, r258170:
mav [Sun, 5 Jan 2014 22:52:59 +0000 (22:52 +0000)]
MFC r258168, r258170:
Add some more Intel HDA controller and CODEC IDs.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260351 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258164:
mav [Sun, 5 Jan 2014 22:51:09 +0000 (22:51 +0000)]
MFC r258164:
Handle case when ACPI reports HPET device, but does not provide memory
resource for it.  In such case take the address range from the HPET table.

This fixes hpet(4) driver attach on Asrock C2750D4I board.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260350 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258162:
mav [Sun, 5 Jan 2014 22:49:54 +0000 (22:49 +0000)]
MFC r258162:
Add some more IDs for Intel ATA, AHCI and USB controllers.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260348 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257932:
mav [Sun, 5 Jan 2014 22:48:12 +0000 (22:48 +0000)]
MFC r257932:
Use relaxed (write-only) memory barriers when writing some of queue index
registers (for now on ISP2400+).  We never read those registers back and
AFAIK their semantics does not require any immediate reaction on write.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260347 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257930:
mav [Sun, 5 Jan 2014 22:47:12 +0000 (22:47 +0000)]
MFC r257930:
Some more registers access optimizations:
 - Process ATIO queue only if interrupt status tells so;
 - Do not update queue out pointers after each processed command, do it
only once at the end of the loop.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260346 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257916:
mav [Sun, 5 Jan 2014 22:45:46 +0000 (22:45 +0000)]
MFC r257916:
Save one more register read per command by not reading rqstoutrp register
every time.  The purpose of that register is unlikely output queue overflow
detection, so read it only when its last known (and probably stale now)
value signals overflow.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260345 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r256893:
mav [Sun, 5 Jan 2014 22:43:40 +0000 (22:43 +0000)]
MFC r256893:
Fix memory and references leak due to unfreed path.

Coverity CID:   1109815

git-svn-id: svn://svn.freebsd.org/base/stable/10@260344 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r256887:
mav [Sun, 5 Jan 2014 22:42:42 +0000 (22:42 +0000)]
MFC r256887:
Fix memory and references leak due to unfreed path.

Coverity CID:   1109817

git-svn-id: svn://svn.freebsd.org/base/stable/10@260343 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r256826:
mav [Sun, 5 Jan 2014 22:40:28 +0000 (22:40 +0000)]
MFC r256826:
Fix several target mode SIMs to not blindly clear ccb_h.flags field of
ATIO CCBs.  Not all CCB flags there belong to them.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260342 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r256705:
mav [Sun, 5 Jan 2014 22:38:44 +0000 (22:38 +0000)]
MFC r256705:
Optimize isp(4) to reduce CPU usage, especially in target mode:
 - Remove two excessive and slow register reads from isp_intr().  Instead
of rereading value every time, assume that registers contain what we have
written there.
 - Avoid sequential search through 4096 array elements when looking for
command tag.  Use hash of lists to store active tags separately from free
ones and so greatly speedup the searches.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260341 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259168:
mav [Sun, 5 Jan 2014 22:14:12 +0000 (22:14 +0000)]
MFC r259168:
Don't even try to read vdev labels from devices smaller then SPA_MINDEVSIZE
(64MB).  Even if we would find one somehow, ZFS kernel code rejects such
devices.  It is funny to look on attempts to read 4 256K vdev labels from
1.44MB floppy, though it is not very practical and quite slow.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260339 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258342:
mav [Sun, 5 Jan 2014 22:12:45 +0000 (22:12 +0000)]
MFC r258342:
Reenable vfs.zfs.zio.use_uma for amd64, disabled at r209261.

On machines with seveal CPUs and enough RAM this can easily twice improve
ZFS performance or twice reduce CPU usage.  It was disabled three years
ago due to memory and KVA exhaustion reports, but our VM subsystem got
improved a lot since that time, hopefully enough to make another try.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260338 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258137:
mav [Sun, 5 Jan 2014 22:09:18 +0000 (22:09 +0000)]
MFC r258137:
Introduce allocation cache to store LZ4 compression contexts without kicking
VM subsystem twice for every written record.

Tests on 24-core system show double reduction of CPU time spent on copying
single large well-compressed file.

This patch is not really needed on illumos (while not harm either) since
their memory allocator by default uses caching for all requests up to 128K.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260337 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258901:
sbruno [Sun, 5 Jan 2014 17:29:53 +0000 (17:29 +0000)]
MFC r258901:

svn r251516 resized the buf argument a bit too much. Pass a hardcoded
size of 6 to humanize_number() to resolve this.

PR: bin/184405
Submitted by: jhb

git-svn-id: svn://svn.freebsd.org/base/stable/10@260324 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoRevert MFC of r260102 for now, until I can merge the required fix from
dim [Sun, 5 Jan 2014 15:39:37 +0000 (15:39 +0000)]
Revert MFC of r260102 for now, until I can merge the required fix from
head.  This should fix building modules which require -fms-extensions to
compile them with gcc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260321 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMerge r260188 from head:
glebius [Sun, 5 Jan 2014 13:55:33 +0000 (13:55 +0000)]
Merge r260188 from head:
  Fix regression from r249894. Now we pass "gw" as argument to if_output
  method, thus for multicast case we need it to point at "dst".

PR: 185395

git-svn-id: svn://svn.freebsd.org/base/stable/10@260319 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258256, r258390:
mav [Sat, 4 Jan 2014 23:45:55 +0000 (23:45 +0000)]
MFC r258256, r258390:
Fix umastat build on present kernel.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260307 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258716:
mav [Sat, 4 Jan 2014 23:43:18 +0000 (23:43 +0000)]
MFC r258716:
 - Add bucket size column to `show uma` DDB command.
 - Add `show umacache` command to show alike stats for cache-only UMA zones.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260306 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258693:
mav [Sat, 4 Jan 2014 23:42:24 +0000 (23:42 +0000)]
MFC r258693:
Make UMA to not blindly force offpage slab header allocation for large
(> PAGE_SIZE) zones.  If zone is not multiple to PAGE_SIZE, there may
be enough space for the header at the last page, so we may avoid extra
header memory allocation and hash table update/lookup.

ZFS creates bunch of odd-sized UMA zones (5120, 6144, 7168, 10240, 14336).
This change gives good use to at least some of otherwise lost memory there.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260305 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258691:
mav [Sat, 4 Jan 2014 23:40:47 +0000 (23:40 +0000)]
MFC r258691:
Don't count bucket allocation failures for UMA zones as their own failures.
There are good reasons for this to happen, such as recursion prevention, etc.
and they are not fatal since buckets are just an optimization mechanism.
Real bucket allocation failures are any way counted by the bucket zones
themselves, and we don't need double accounting there.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260304 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258340, r258497:
mav [Sat, 4 Jan 2014 23:39:39 +0000 (23:39 +0000)]
MFC r258340, r258497:
Implement mechanism to safely but slowly purge UMA per-CPU caches.

This is a last resort for very low memory condition in case other measures
to free memory were ineffective.  Sequentially cycle through all CPUs and
extract per-CPU cache buckets into zone cache from where they can be freed.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260303 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258338:
mav [Sat, 4 Jan 2014 23:38:06 +0000 (23:38 +0000)]
MFC r258338:
Grow UMA zone bucket size also on lock congestion during item free.

Lock congestion is the same, whether it happens on alloc or free, so
handle it equally.  Now that we have back pressure, there is no problem
to grow buckets a bit faster.  Any way growth is much slower then in 9.x.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260302 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258337:
mav [Sat, 4 Jan 2014 23:37:01 +0000 (23:37 +0000)]
MFC r258337:
Add two new UMA bucket zones to store 3 and 9 items per bucket.

These new buckets make bucket size self-tuning more soft and precise.
Without them there are buckets for 1, 5, 13, 29, ... items.  While at
bigger sizes difference about 2x is fine, at smallest ones it is 5x and
2.6x respectively.  New buckets make that line look like 1, 3, 5, 9, 13,
29, reducing jumps between steps, making algorithm work softer, allocating
and freeing memory in better fitting chunks.  Otherwise there is quite a
big gap between allocating 128K and 5x128K of RAM at once.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260301 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258336:
mav [Sat, 4 Jan 2014 23:35:34 +0000 (23:35 +0000)]
MFC r258336:
Implement soft pressure on UMA cache bucket sizes.

Every time system detects low memory condition decrease bucket sizes for
each zone by one item.  As result, higher memory pressure will push to
smaller bucket sizes and so smaller per-CPU caches and so more efficient
memory use.

Before this change there was no force to oppose buckets growth as result
of practically inevitable zone lock conflicts, and after some run time
per-CPU caches could consume enough RAM to kill the system.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260300 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259232:
mav [Sat, 4 Jan 2014 23:31:34 +0000 (23:31 +0000)]
MFC r259232:
Create own free list for each of the first 32 possible allocation sizes.
In case of 4K allocation quantum that means for allocations up to 128K.

With growth of memory fragmentation these lists may grow to quite a large
sizes (tenths and hundreds of thousands items).  Having in one list items
of different sizes in worst case may require full linear list traversal,
that may be very expensive.  Having lists for items of single size means
that unless user specify some alignment or border requirements (that are
very rare cases) first item found on the list should satisfy the request.

While running SPEC NFS benchmark on top of ZFS on 24-core machine with
84GB RAM this change reduces CPU time spent in vmem_xalloc() from 8%
and lock congestion spinning around it from 20% to invisible levels.
And that all is by the cost of just 26 more pointers per vmem instance.

If at some point our kernel will start to actively use KVA allocations
with odd sizes above 128K, something may need to be done to bigger lists
also.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260299 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260112:
dim [Sat, 4 Jan 2014 23:12:01 +0000 (23:12 +0000)]
MFC r260112:

In sys/dev/sound/pci/maestro.c, #if 0 two unused static functions.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260298 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260111:
dim [Sat, 4 Jan 2014 23:00:56 +0000 (23:00 +0000)]
MFC r260111:

For sys/ofed/drivers/infiniband/hw/mlx4/mcg.c, disable warning about
unused variables for now.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260297 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260104:
dim [Sat, 4 Jan 2014 22:13:16 +0000 (22:13 +0000)]
MFC r260104:

For sys/ofed/drivers/infiniband/core/cm.c, disable warning about unused
functions for now.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260293 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260095:
dim [Sat, 4 Jan 2014 22:00:07 +0000 (22:00 +0000)]
MFC r260095:

For sys/boot/i386 and sys/boot/pc98, separate flags to be passed
directly to the linker (LD_FLAGS) from flags passed indirectly, via the
compiler driver (LDFLAGS).

This is because several Makefiles under sys/boot/i386 and sys/boot/pc98
use ${LD} directly to link, and the normal LDFLAGS value should not be
used in these cases.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260291 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260103:
dim [Sat, 4 Jan 2014 21:45:52 +0000 (21:45 +0000)]
MFC r260103:

In sys/amd64/amd64/pmap.c, remove static function pmap_is_current(),
which has been unused since r189415.

Reviewed by: alc

git-svn-id: svn://svn.freebsd.org/base/stable/10@260289 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260057:
dim [Sat, 4 Jan 2014 21:32:53 +0000 (21:32 +0000)]
MFC r260057:

In sys/dev/scc, remove unused static function scc_setmreg().  While
here, invoke scc_getmreg() in two more places where it can be used.

Reviewed by: marcel

git-svn-id: svn://svn.freebsd.org/base/stable/10@260287 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260056:
dim [Sat, 4 Jan 2014 21:23:49 +0000 (21:23 +0000)]
MFC r260056:

In sys/dev/vxge/vxgehal/vxgehal-ring.c, #if 0 an unused static function.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260286 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260055:
dim [Sat, 4 Jan 2014 21:18:54 +0000 (21:18 +0000)]
MFC r260055:

In sys/dev/usb/wlan/if_urtw.c, #if 0 a static const variable, which has
been unused since r198194.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260284 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMerge r258690 by mav from head:
glebius [Sat, 4 Jan 2014 19:51:57 +0000 (19:51 +0000)]
Merge r258690 by mav from head:
  Fix bug introduced at r252226, when udata argument passed to bucket_alloc()
  was used without making sure first that it was really passed for us.

  On some of my systems this bug made user argument passed by ZFS code to
  uma_zalloc_arg() unexpectedly block UMA per-CPU caches for those zones.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260280 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260054:
dim [Sat, 4 Jan 2014 19:13:25 +0000 (19:13 +0000)]
MFC r260054:

In sys/dev/tpm/tpm.c, #if 0 an unused static function.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260279 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260048:
dim [Sat, 4 Jan 2014 19:04:53 +0000 (19:04 +0000)]
MFC r260048:

In sys/netgraph/netflow, use __FBSDID() instead of old-style rcs_id[].

git-svn-id: svn://svn.freebsd.org/base/stable/10@260278 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260042:
dim [Sat, 4 Jan 2014 18:58:18 +0000 (18:58 +0000)]
MFC r260042:

Remove superfluous old-style rcsid[] from if_my.c.  There is already an
__FBSDID() at the top of the file.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260277 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260040:
dim [Sat, 4 Jan 2014 18:53:31 +0000 (18:53 +0000)]
MFC r260040:

In sys/dev/mcd/mcd.c, mark the static const COPYRIGHT string as __used,
so it ends up in the object file, and no warnings are emitted about it
being actually unused.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260276 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260038:
dim [Sat, 4 Jan 2014 18:48:29 +0000 (18:48 +0000)]
MFC r260038:

In sys/dev/en/midway.c, #if 0 an unused static function.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260275 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260039:
dim [Sat, 4 Jan 2014 18:33:28 +0000 (18:33 +0000)]
MFC r260039:

Turn off warnings about unused variables for a bunch of files under
contrib/ipfilter.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260274 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260026:
dim [Sat, 4 Jan 2014 18:24:45 +0000 (18:24 +0000)]
MFC r260026:

Disable warning about unused functions for ieee80211_crypto.c and
ieee80211_mesh.c for now.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260273 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260025:
dim [Sat, 4 Jan 2014 18:19:53 +0000 (18:19 +0000)]
MFC r260025:

Disable warning about unused functions for ar9300_reset.c for now.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260272 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260019:
dim [Sat, 4 Jan 2014 17:59:40 +0000 (17:59 +0000)]
MFC r260019:

For some files under sys/dev/drm2/i915, turn off warnings about unused
functions and variables, since they are contributed code.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260270 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260020:
dim [Sat, 4 Jan 2014 17:54:06 +0000 (17:54 +0000)]
MFC r260020:

For sys/dev/drm2/radeon, only use -fms-extensions with gcc.  This flag
is only to stop gcc complaining about anonymous unions, which clang does
not do.  For clang 3.4 however, -fms-extensions enables the Microsoft
__wchar_t type, which clashes with our own types.h.

MFC r260102:

Similar to r260020, only use -fms-extensions with gcc, for all other
modules which require this flag to compile.  Use a GCC_MS_EXTENSIONS
variable, defined in kern.pre.mk, which can be used to easily supply the
flag (or not), depending on the compiler type.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260268 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260017:
dim [Sat, 4 Jan 2014 17:36:13 +0000 (17:36 +0000)]
MFC r260017:

Mark unused static inline functions defined by the PCTRIE_DEFINE() macro
as __unused, so warnings about them are avoided.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260266 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260016:
dim [Sat, 4 Jan 2014 17:33:05 +0000 (17:33 +0000)]
MFC r260016:

Remove superfluous old-style rcsid[] from if_sk.c.  There is already an
__FBSDID() at the top of the file.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260265 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260003:
dim [Sat, 4 Jan 2014 17:27:43 +0000 (17:27 +0000)]
MFC r260003:

In libiconv_modules, surround unused static _citrus_XXX_pack_state() and
_citrus_XXX_unpack_state() functions with #if 0, for now.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260264 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260015:
dim [Sat, 4 Jan 2014 17:22:53 +0000 (17:22 +0000)]
MFC r260015:

In libc++'s type_traits header, avoid warnings (activated by our use of
-Wsystem-headers) about potential keyword compatibility problems, by
adding a __libcpp prefix to the applicable identifiers.

Upstream is still debating about this, but we need it now, to be able to
import clang 3.4.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260263 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoRevert r258396 : teach iconv about a WCHAR_T pseudo-type
peter [Fri, 3 Jan 2014 23:36:03 +0000 (23:36 +0000)]
Revert r258396 : teach iconv about a WCHAR_T pseudo-type

git-svn-id: svn://svn.freebsd.org/base/stable/10@260249 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259464:
mav [Fri, 3 Jan 2014 20:47:51 +0000 (20:47 +0000)]
MFC r259464:
Fix periodic per-CPU timers startup on boot.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260244 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259792:
gjb [Fri, 3 Jan 2014 20:27:15 +0000 (20:27 +0000)]
MFC r259792:
  Remove references to SUP_UPDATE and CVS_UPDATE.
  Include base svn when evaluating if svn(1) exists.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@260242 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259953:
kib [Fri, 3 Jan 2014 20:02:30 +0000 (20:02 +0000)]
MFC r259953:
Fix accounting for the negative cache entries when reusing v_cache_dd.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260240 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259655 (partial), r259944:
pfg [Fri, 3 Jan 2014 15:54:12 +0000 (15:54 +0000)]
MFC r259655 (partial), r259944:

gcc: merge small upstream changes.

Fix for PR c++/29928

Backport from mainline:
2007-04-24  Hui-May Chang <hm.chang@apple.com>

* reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.

Obtained from: gcc 4.3 (rev. r124115, 124724: GPLv2)

git-svn-id: svn://svn.freebsd.org/base/stable/10@260230 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMerge r259681 from head:
glebius [Fri, 3 Jan 2014 12:28:33 +0000 (12:28 +0000)]
Merge r259681 from head:

  Changes:
  - Reinit uio_resid and flags before every call to soreceive().
  - Set maximum acceptable size of packet to IP_MAXPACKET. As for now the
    module doesn't support INET6.
  - Properly handle MSG_TRUNC return from soreceive().

PR: 184601

git-svn-id: svn://svn.freebsd.org/base/stable/10@260226 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259906: Draft-ietf-tcpm-initcwnd-05 became RFC6928.
pluknet [Thu, 2 Jan 2014 16:48:08 +0000 (16:48 +0000)]
MFC r259906: Draft-ietf-tcpm-initcwnd-05 became RFC6928.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260201 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259872:
pluknet [Thu, 2 Jan 2014 16:37:23 +0000 (16:37 +0000)]
MFC r259872:

 The compile time constant limit on number of swap devices was removed in 5.2.
 As such, remove the EINVAL error saying so.  Currently the vm.nswapdev sysctl
 just represents the number of added swap devices.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260198 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259870:
pluknet [Thu, 2 Jan 2014 15:43:23 +0000 (15:43 +0000)]
MFC r259870:

 Do not truncate the ``command'' column in ``ps'' output.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260196 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r256838:
trasz [Thu, 2 Jan 2014 13:59:23 +0000 (13:59 +0000)]
MFC r256838:

Don't test arrays for being NULL.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@260195 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258659:
trasz [Thu, 2 Jan 2014 13:48:54 +0000 (13:48 +0000)]
MFC r258659:

Fix warnings to not append "No error: 0".

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@260193 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f