]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
10 years agoMFC 250661,251076,251605,252580,254976,255003,258155
davidcs [Tue, 3 Dec 2013 22:31:08 +0000 (22:31 +0000)]
MFC 250661,251076,251605,252580,254976,255003,258155
port dev/qlxgbe from HEAD

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

10 years agoMFC r258663:
kib [Tue, 3 Dec 2013 20:06:58 +0000 (20:06 +0000)]
MFC r258663:
Use sysctl KERN_PROC_SIGTRAMP to retrieve the signal trampoline
location for the native amd64 ABI.  This fixes unwinding over the
signal frame after trampoline was moved to the shared page.

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

10 years agoMFC r258661:
kib [Tue, 3 Dec 2013 19:55:49 +0000 (19:55 +0000)]
MFC r258661:
Add sysctl KERN_PROC_SIGTRAMP to retrieve signal trampoline location for the
given process.

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

10 years agoMFC 253471,253620,254430,254538:
jhb [Tue, 3 Dec 2013 16:07:56 +0000 (16:07 +0000)]
MFC 253471,253620,254430,254538:
Change mmap() to more optimally use superpages and provide support for
tweaking alignment of virtual mappings.
- Add a new address space allocation method (VMFS_OPTIMAL_SPACE) for
  vm_map_find() that will try to alter the alignment of a mapping to match
  any existing superpage mappings of the object being mapped.  If no
  suitable address range is found with the necessary alignment,
  vm_map_find() will fall back to using the simple first-fit strategy
  (VMFS_ANY_SPACE).
- Change mmap() without MAP_FIXED, shmat(), shm_map(), and the GEM mapping
  ioctl to use VMFS_OPTIMAL_SPACE instead of VMFS_ANY_SPACE.
- MAP_ALIGNED(n) requests a mapping aligned on a boundary of (1 << n).
  Requests for n >= number of bits in a pointer or less than the size of
  a page fail with EINVAL.  This matches the API provided by NetBSD.
- MAP_ALIGNED_SUPER is a special case of MAP_ALIGNED.  It can be used
  to optimize the chances of using large pages.  By default it will align
  the mapping on a large page boundary (the system is free to choose any
  large page size to align to that seems best for the mapping request).
  However, if the object being mapped is already using large pages, then
  it will align the virtual mapping to match the existing large pages in
  the object instead.
- Internally, VMFS_ALIGNED_SPACE is now renamed to VMFS_SUPER_SPACE, and
  VMFS_ALIGNED_SPACE(n) is repurposed for specifying a specific alignment.
  MAP_ALIGNED(n) maps to using VMFS_ALIGNED_SPACE(n), while
  MAP_ALIGNED_SUPER maps to VMFS_SUPER_SPACE.
- mmap() of a device object now uses VMFS_OPTIMAL_SPACE rather than
  explicitly using VMFS_SUPER_SPACE.  All device objects are forced to
  use a specific color on creation, so VMFS_OPTIMAL_SPACE is effectively
  equivalent.

PR: ports/184173 (exp-run)

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

10 years agoMFC r258737
rodrigc [Mon, 2 Dec 2013 18:20:07 +0000 (18:20 +0000)]
MFC r258737

In keg_dtor(), print out the keg name in the "Freed UMA keg was not empty"
message printed to the console.  This makes it easier to track down
the source of certain memory leaks.

Suggested by: adrian

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

10 years agoMFC r258347,r258349:
bdrewery [Mon, 2 Dec 2013 10:59:41 +0000 (10:59 +0000)]
MFC r258347,r258349:

  Support SNI in libfetch

  SNI is Server Name Indentification which is a protocol for TLS that
  indicates the host that is being connected to at the start of the
  handshake. It allows to use Virtual Hosts on HTTPS.

PR: kern/183583
Approved by: bapt (implicit)

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

10 years agoMFC r256557 - kernel and userland osreldate helpers.
peter [Sun, 1 Dec 2013 22:43:14 +0000 (22:43 +0000)]
MFC r256557 - kernel and userland osreldate helpers.

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

10 years agoMFC: r258718: fix emulated jail_v0 byte order
peter [Sat, 30 Nov 2013 23:08:32 +0000 (23:08 +0000)]
MFC: r258718: fix emulated jail_v0 byte order

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

10 years agoMFC r258499:
kib [Sat, 30 Nov 2013 14:39:56 +0000 (14:39 +0000)]
MFC r258499:
Fix for the spurious signal handler call with zero signo in the threaded
process.

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

10 years agoMFC r258664:
delphij [Sat, 30 Nov 2013 07:04:35 +0000 (07:04 +0000)]
MFC r258664:

Create /var/cache with mode 0755 instead of 0750.

This directory is used by many third party applications and having
permission 0750 makes it impossible to drop group privileges.

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

10 years agoMFC r258620:
dim [Fri, 29 Nov 2013 18:51:54 +0000 (18:51 +0000)]
MFC r258620:

Pull in r195558 from upstream clang trunk:

  Fix a SSE2 intrinsics typo

  Full discourse at:

   http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20131104/092514.html
   http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-November/068124.html

  Patch by Dimitry Andric and Alexey Dokuchaev!

Reported by: danfe

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

10 years agoMFC r257879:
delphij [Thu, 28 Nov 2013 22:08:41 +0000 (22:08 +0000)]
MFC r257879:

Fix typo in r256646: We want to generate lists of directories in
INDEX-OLD and INDEX-NEW and compare them, not generate the same
list of directories from INDEX-OLD twice...

Pointy hats to: cperciva & everybody who didn't proofread
EN-13:04 enough
Errata Notice: FreeBSD-EN-13:05.freebsd-update

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

10 years agoMFC r258135: x86: Allow users to change PSL_RF via ptrace(PT_SETREGS...)
emaste [Wed, 27 Nov 2013 16:08:33 +0000 (16:08 +0000)]
MFC r258135: x86: Allow users to change PSL_RF via ptrace(PT_SETREGS...)

  Debuggers may need to change PSL_RF. Note that tf_eflags is already stored
  in the signal context during signal handling and PSL_RF previously could
  be modified via sigreturn, so this change should not provide any new
  ability to userspace.

  For background see the thread at:
  http://lists.freebsd.org/pipermail/freebsd-i386/2007-September/005910.html

  Reviewed by: jhb, kib

Sponsored by: DARPA, AFRL

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

10 years agoMFC r229663: Allow to change vfs.zfs.arc_meta_limit at runtime.
avg [Tue, 26 Nov 2013 10:22:24 +0000 (10:22 +0000)]
MFC r229663: Allow to change vfs.zfs.arc_meta_limit at runtime.

- Change vfs.zfs.arc_meta_used from CTLFLAG_RDTUN to CTLFLAG_RD,
as it is not a tunable.

MFC slacker: pjd

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

10 years agoMFC r258350:
dim [Mon, 25 Nov 2013 22:58:12 +0000 (22:58 +0000)]
MFC r258350:

Pull in r191896 from upstream llvm trunk:

  CaptureTracking: Plug a loophole in the "too many uses" heuristic.

  The heuristic was added to avoid spending too much compile time in a
  specially crafted test case (PR17461, PR16474) with many uses on a
  select or bitcast instruction can still trigger the slow case. Add a
  check for that case.

  This only affects compile time, don't have a good way to test it.

This fixes the excessive compile time spent on a specific file of the
graphics/rawtherapee port.

Reported by: mandree

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

10 years agoMFC r257007,258140:
delphij [Mon, 25 Nov 2013 20:05:23 +0000 (20:05 +0000)]
MFC r257007,258140:

Update driver to version 10.0.664.0.

Many thanks to Emulex for their continued support of FreeBSD.

Submitted by: Venkata Duvvuru <VenkatKumar.Duvvuru Emulex Com>

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

10 years agoMFC r246482 (rrs) + r246581:
delphij [Mon, 25 Nov 2013 20:01:34 +0000 (20:01 +0000)]
MFC r246482 (rrs) + r246581:

This fixes a out-of-order problem with several of the newer
drivers. The basic problem was that the driver was pulling
the mbuf off the drbr ring and then when sending with xmit(),
encounting a full transmit ring. Thus the lower layer xmit()
function would return an error, and the drivers would then
append the data back on to the ring.  For TCP this is a
horrible scenario sure to bring on a fast-retransmit.

The fix is to use drbr_peek() to pull the data pointer but
not remove it from the ring. If it fails then we either call
the new drbr_putback or drbr_advance method. Advance moves
it forward (we do this sometimes when the xmit() function
frees the mbuf). When we succeed we always call advance.
The putback will always copy the mbuf back to the top of the
ring. Note that the putback *cannot* be used with a
drbr_dequeue() only with drbr_peek(). We most of the time,
in putback, would not need to copy it back since most likey
the mbuf is still the same, but sometimes xmit() functions
will change the mbuf via a pullup or other call. So the
optimial case for the single consumer is to always copy it
back.  If we ever do a multiple_consumer (for lagg?) we
will need a test and atomic in the put back possibly a
seperate putback_mc() in the ring buf.

Reviewed by: jhb@freebsd.org, jlv@freebsd.org

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

10 years agoMFC r240834: Add rounddown2() macro similar to the roundup2() macro.
avg [Mon, 25 Nov 2013 18:51:25 +0000 (18:51 +0000)]
MFC r240834: Add rounddown2() macro similar to the roundup2() macro.

MFC slacker: pjd

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

10 years agoMFV r258377: 4088 use after free in arc_release()
avg [Mon, 25 Nov 2013 16:06:07 +0000 (16:06 +0000)]
MFV r258377: 4088 use after free in arc_release()

illumos/illumos-gate@ccc22e130479b5bd7c0002267fee1e0602d3f772

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

10 years agoMFC r258389: MFV r258378: 4089 NULL pointer dereference in arc_read()
avg [Mon, 25 Nov 2013 15:53:08 +0000 (15:53 +0000)]
MFC r258389: MFV r258378: 4089 NULL pointer dereference in arc_read()

illumos/illumos-gate@57815f6b95a743697e148327725b7f568e75e6ea

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

10 years agoMFC r258353: zfs page_busy: fix the boundaries of the cleared range
avg [Mon, 25 Nov 2013 15:39:50 +0000 (15:39 +0000)]
MFC r258353: zfs page_busy: fix the boundaries of the cleared range

This is a fix for a regression introduced in r246293.

vm_page_clear_dirty expects the range to have DEV_BSIZE aligned boundaries,
otherwise it extends them.  Thus it can happen that the whole page is
marked clean while actually having some small dirty region(s).
This commit makes the range properly aligned and ensures that only
the clean data is marked as such.

It would interesting to evaluate how much benefit clearing with DEV_BSIZE
granularity produces.  Perhaps instead we should clear the whole page
when it is completely overwritten and don't bother clearing any bits
if only a portion a page is written.

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

10 years agoRevert r258528: wrong tree
pfg [Sun, 24 Nov 2013 20:53:48 +0000 (20:53 +0000)]
Revert r258528: wrong tree

Inofensive as it is, this was meant for current. It will be re-merged
along with related changes in 3 weeks.

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

10 years agolibcpp: Keep a record of changes from upstream GCC (pre-43).
pfg [Sun, 24 Nov 2013 20:41:35 +0000 (20:41 +0000)]
libcpp: Keep a record of changes from upstream GCC (pre-43).

This makes it easier to track the changes in the rare event of the code
being distributed without access to version control.

MFC after: 3 weeks

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

10 years agoMFC 226145,226147,226148,226150,226151,226153,226157,226158,226164,226246,
jhb [Thu, 21 Nov 2013 20:09:44 +0000 (20:09 +0000)]
MFC 226145,226147,226148,226150,226151,226153,226157,226158,226164,226246,
226262,226329,226344,226608:
Merge most "infrastructure" changes to kdump to make other MFC's to add
new decodings, etc. easier:
- Some of the #defines or enums for which we auto-generate naming
  functions may be wider than int, so use intmax_t throughout.
- Auto-generate kdump_subr.h.
- Use a switch statement instead of a giant if-else.
- Remove a lot of (void) casts.
- Bring ioctlname() in line with all the other *name() functions, which
  actually print the name (or the numeric value, if they can't figure out
  the correct name) instead of just returning a pointer to it.  Also, since
  ioctl numbers are not and probably never will be unique, drop support for
  using a switch statement instead of an if/else chain.
- Mostly WARNS=6 clean.
- Update mkioctls to still work with both kdump and truss.

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

10 years agoMFC r257874:
pluknet [Tue, 19 Nov 2013 11:11:51 +0000 (11:11 +0000)]
MFC r257874:

Fix extattr(2) MLINKS.

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

10 years agoMFC r257942, r258101:
gjb [Mon, 18 Nov 2013 17:06:33 +0000 (17:06 +0000)]
MFC r257942, r258101:

r257942:
  Fix a few style nits.

r258101:
  Since the doc/ toolchain conversion to docbook 5.0, JADETEX
  is no longer a valid option, so remove 'WITHOUT_JADETEX=yes'
  from PBUILD_FLAGS.

  While here, also remove 'WITHOUT_X11=yes', since it will
  cause a dependency conflict by requiring both print/ghostscript9
  and print/ghostscript9-nox11.

  Switch to OPTIONSNG format (WITHOUT_* -> OPTIONS_UNSET='FOO'),
  and unset the FOP option, which requires Java (although it is
  disabled by default).  Also unset the 'IGOR' option, since
  textproc/igor is a validation tool, not necessarily a dependency
  of the doc/ build itself.

  While here, reduce the line length of PBUILD_FLAGS.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r257805, r257806, r257807:
gjb [Mon, 18 Nov 2013 17:03:11 +0000 (17:03 +0000)]
MFC r257805, r257806, r257807:

r257805:
  Add a 'mini-memstick.img' release target, which will use the
  'bootonly.iso' components to create a smaller memory stick image.

  This is useful for system recovery, where a full memstick.img image
  is not necessarily needed (or wanted).  In addition, it is possible to
  do bootonly-style installation, where the base.txz, kernel.txz, etc.
  are fetched from a remote source.

  Provide backwards-compatible target (mini-memstick), to keep in sync
  with the targets documented in release/Makefile.

r257806:
  Remove extra target from 'memstick' in r257805.

r257807:
  Update release(7) to include 'mini-memstick' target.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r246087 (by glebius):
mav [Mon, 18 Nov 2013 13:20:20 +0000 (13:20 +0000)]
MFC r246087 (by glebius):
Fix typo in debug printf.

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

10 years agoMFC r240676 (by glebius):
mav [Mon, 18 Nov 2013 13:17:56 +0000 (13:17 +0000)]
MFC r240676 (by glebius):
If caller specifies UMA_ZONE_OFFPAGE explicitly, then do not waste memory
in an allocation for a slab.

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

10 years agoMFC r239710 (by glebius):
mav [Mon, 18 Nov 2013 13:12:45 +0000 (13:12 +0000)]
MFC r239710 (by glebius):
Fix function name in keg_cachespread_init() assert.

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

10 years agoMFC r254787:
mav [Sat, 16 Nov 2013 15:41:54 +0000 (15:41 +0000)]
MFC r254787:
Remove locking from taskqueue_member().  The list of threads is static
during the taskqueue life cycle, so there is no need to protect it,
taking quite congested lock several more times for each ZFS I/O.

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

10 years agoMFC r254378 (by trasz):
mav [Sat, 16 Nov 2013 15:34:11 +0000 (15:34 +0000)]
MFC r254378 (by trasz):
Turn comments about locking into actual lock assertions.

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

10 years agoMFC r249065 (by trasz):
mav [Sat, 16 Nov 2013 15:26:56 +0000 (15:26 +0000)]
MFC r249065 (by trasz):
Fix locking problem in ctl_maintenance_in() - one cannot use M_WAITOK or call
ctl_done() with mutex held.

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

10 years agoMFC r253644:
mav [Sat, 16 Nov 2013 10:49:02 +0000 (10:49 +0000)]
MFC r253644:
Add missing NULL check after malloc(M_NOWAIT).

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

10 years agoMFC r250576 (by eadler):
mav [Sat, 16 Nov 2013 10:47:58 +0000 (10:47 +0000)]
MFC r250576 (by eadler):
Fix several typos

PR: kern/176054

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

10 years agoMFC r254987 (by gavin):
mav [Sat, 16 Nov 2013 10:44:17 +0000 (10:44 +0000)]
MFC r254987 (by gavin):
Support the PCI-Express SSD in the new MacBook Air (model A1465)

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

10 years agoMFC r253647:
mav [Sat, 16 Nov 2013 10:43:02 +0000 (10:43 +0000)]
MFC r253647:
Decode some bits defined in AHCI 1.3.1 Device Sleep Technical Proposal.
For now this is only conmetics to report HBA capabilities (Haswell?).

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

10 years agoMFC r253475 (by jfv):
mav [Sat, 16 Nov 2013 10:41:49 +0000 (10:41 +0000)]
MFC r253475 (by jfv):
Add new Coleto Creek device support: SATA, SMBus, and Watchdog devices.

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

10 years agoMFC r244981 (by jfv)
mav [Sat, 16 Nov 2013 10:40:43 +0000 (10:40 +0000)]
MFC r244981 (by jfv)
Add Intel Lynx Point PCH SMBus Device IDs

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

10 years agoMFC r249622:
mav [Sat, 16 Nov 2013 10:34:16 +0000 (10:34 +0000)]
MFC r249622:
Make siis(4) and mvs(4) send bus_get_dma_tag() requests to parent buses
passing real bus' child pointers instead of grandchilds.

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

10 years agoMFC 257006
asomers [Fri, 15 Nov 2013 20:23:52 +0000 (20:23 +0000)]
MFC 257006

sbin/geom/class/part/geom_part.c
        Always validate the return of find_geomcfg().  It could be NULL, for
        example when the geom is withering.

Approved by: ken(mentor)
Sponsored by: Spectra Logic Corporation

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

10 years agoMFC 256274:
jhb [Fri, 15 Nov 2013 19:58:26 +0000 (19:58 +0000)]
MFC 256274:
Ignore attempts to set the nmbcluster sysctls to their current value
rather than failing with an error.

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

10 years agoMFC 256293:
jhb [Fri, 15 Nov 2013 15:08:53 +0000 (15:08 +0000)]
MFC 256293:
Sanitize the %eflags returned by BIOS routines.  Some BIOS routines enter
protected mode and may leave protected-mode-specific flags like PSL_NT set
when they return to real mode.  This can cause a fault when BTX re-enters
protected mode after the BIOS mode returns.

PR: amd64/182740

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

10 years agoMFC r257856:
kib [Fri, 15 Nov 2013 07:26:50 +0000 (07:26 +0000)]
MFC r257856:
Add bits for the AMD features from CPUID function 0x80000001 ECX,
described in the rev. 3.0 of the Kabini BKDG, document 48751.pdf.

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

10 years agoMFC r257858:
kib [Fri, 15 Nov 2013 07:14:01 +0000 (07:14 +0000)]
MFC r257858:
Fix signal delivery for the iBCS2 binaries.

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

10 years agoMFC 255498:
jhb [Thu, 14 Nov 2013 21:31:58 +0000 (21:31 +0000)]
MFC 255498:
- Document the UQUAD sysctl variants.
- Clarify that exactly one of the "access" flags is required and
  list the optional flags in a separate list.  Prefer bundling
  CTLFLAG_TUN into the access flag by not documenting it as an
  optional flag to set.

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

10 years agoMFC 255497:
jhb [Thu, 14 Nov 2013 21:27:13 +0000 (21:27 +0000)]
MFC 255497:
Fix an off-by-one error when populating mincore(2) entries for
skipped entries.  lastvecindex references the last valid byte,
so the new bytes should come after it.

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

10 years agoRegen.
jhb [Wed, 13 Nov 2013 22:32:35 +0000 (22:32 +0000)]
Regen.

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

10 years agoMFC 255490,255491:
jhb [Wed, 13 Nov 2013 22:31:56 +0000 (22:31 +0000)]
MFC 255490,255491:
Fix the type of the idtype argument to wait6() in syscalls.master.

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

10 years agoMFC 255248:
jhb [Wed, 13 Nov 2013 18:33:14 +0000 (18:33 +0000)]
MFC 255248:
Use an unsigned long when indexing into mfchashtbl[] and mf6ctable[].  This
matches the types used when computing hash indices and the type of the
maximum size of mfchashtbl[].

PR: kern/181821

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

10 years agoMFC 254699,255030:
jhb [Wed, 13 Nov 2013 17:08:37 +0000 (17:08 +0000)]
MFC 254699,255030:
Use tvtohz() to convert a socket buffer timeout to a tick value rather
than using a home-rolled version.  The home-rolled version could result
in shorter-than-requested sleeps.

PR: kern/181416

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

10 years agoMFC 254576: Stop an ipoib interface before detaching it.
jhb [Tue, 12 Nov 2013 21:33:01 +0000 (21:33 +0000)]
MFC 254576: Stop an ipoib interface before detaching it.

PR: kern/181225

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

10 years agoMFC r253917:
dim [Tue, 12 Nov 2013 18:43:35 +0000 (18:43 +0000)]
MFC r253917:

After r253839, which modifies ld's behaviour to not automatically pull
in needed libraries, change libc++.so into a linker script, so it can
automatically pull in libcxxrt.so.

[Note to stable/9 users: the above statement about ld's behaviour is not
(yet) applicable to the version of ld in 9.x, but this change will help
when building C++ programs with libc++, in combination with the ports
version of ld.]

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

10 years agoMFC r257859:
dim [Mon, 11 Nov 2013 20:51:01 +0000 (20:51 +0000)]
MFC r257859:

Fix typo in include guard, found by clang 3.4.

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

10 years agoMFC r257084:
ae [Mon, 11 Nov 2013 10:43:55 +0000 (10:43 +0000)]
MFC r257084:
  Initialize inc_fibnum for properly handling ICMP6_PACKET_TOO_BIG
  errors in multifib environment.

  PR: 183265

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

10 years agoMFC r256689:
ae [Mon, 11 Nov 2013 10:09:52 +0000 (10:09 +0000)]
MFC r256689:
  Use the same actor key for media types of the same speed.

  PR: 176097

MFC r256832:
  Add a note that lacp_compose_key() should be updated, when new media
  types will be added.

  Submitted by: melifaro

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

10 years agoMFC r256430:
gjb [Fri, 8 Nov 2013 03:02:42 +0000 (03:02 +0000)]
MFC r256430:
  Reduce disc1.iso image size by installing the userland with
  the WITHOUT_PROFILE=1 option set, trimming 56MB from the image.

Sponsored by:  The FreeBSD Foundation

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

10 years agoMFC r257641:
gjb [Fri, 8 Nov 2013 03:00:40 +0000 (03:00 +0000)]
MFC r257641:
 When building the textproc/docproj port, the ports-mgmt/pkg port
 needs /var/run/ld-elf*.so.hints, which is not automatically created.

 Fix reldoc build by running the ldconfig(8) startup script in the
 chroot directory before starting the port build phase.

Sponsored by: The FreeBSD Foundation

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

10 years agoRegenerate MINIMALDOCPORTS after the doc/ toolchain update to
gjb [Fri, 8 Nov 2013 02:46:46 +0000 (02:46 +0000)]
Regenerate MINIMALDOCPORTS after the doc/ toolchain update to
docbook 5.0.

This is a direct commit to stable/9, as this file does not exist
in higher branches.

(Although, I do not think that this variable is actually used
now, since we check out the full doc/ tree from svn.)

Sponsored by:  The FreeBSD Foundation

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

10 years agoRemove evaluation of OSVERSION < 500000.
gjb [Fri, 8 Nov 2013 02:31:37 +0000 (02:31 +0000)]
Remove evaluation of OSVERSION < 500000.
I hope to never have to build a release from a stable/5 machine.

While here, remove hard-coded lang/perl5.10, which is better
evaluated during compile-time (especially since lang/perl5.10 does
not exist in the ports/ tree).

This is a direct commit to stable/9, as this file does not exist in
higher branches.

Sponsored by: The FreeBSD Foundation

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

10 years agoFix comment.
gjb [Fri, 8 Nov 2013 02:27:10 +0000 (02:27 +0000)]
Fix comment.

Sponsored by: The FreeBSD Foundation

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

10 years agoUpdate comments in release/Makefile.inc.docports to reflect the
gjb [Fri, 8 Nov 2013 02:24:54 +0000 (02:24 +0000)]
Update comments in release/Makefile.inc.docports to reflect the
cvs->svn conversion over a year ago.

This is a direct commit to stable/9, as this file does not exist
in higher branches.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r257658:
dim [Thu, 7 Nov 2013 20:54:52 +0000 (20:54 +0000)]
MFC r257658:

For C++ programs, don't emit any explicit dependency to libstdc++.a or
libc++.a during the early build stages (bootstrap-tools, build-tools,
cross-tools), since it is not possible to know in advance which C++
library is available on the host system.

Instead, just use the bootstrap compiler's built-in default.  This
should eventually make it possible to build stable/9 on head, or on
stable/10, which ship without libstdc++ by default.

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

10 years agoMFH r257801:
gabor [Thu, 7 Nov 2013 19:51:19 +0000 (19:51 +0000)]
MFH r257801:
  - Update release noted to DocBook 5.0 so that they work with the new tree

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

10 years agoMerge from head: sync the netmap code with the one in HEAD
luigi [Wed, 6 Nov 2013 22:36:36 +0000 (22:36 +0000)]
Merge from head: sync the netmap code with the one in HEAD

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

10 years agoMerge from head (better handling of non-clang building of picobsd)
luigi [Wed, 6 Nov 2013 22:35:23 +0000 (22:35 +0000)]
Merge from head (better handling of non-clang building of picobsd)

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

10 years agoMFC 254287: Some small cleanups to the fixes in r180340:
jhb [Wed, 6 Nov 2013 20:58:04 +0000 (20:58 +0000)]
MFC 254287: Some small cleanups to the fixes in r180340:
- Set NOTE_TRACKERR before running filt_proc().  If the knote did not
  have NOTE_FORK set in fflags when registered, then the TRACKERR event
  could miss being posted.
- Don't pass the pid in to filt_proc() for NOTE_FORK events.  The special
  handling for pids is done knote_fork() directly and no longer in
  filt_proc().

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

10 years agoMerge r227738, r228574:
glebius [Wed, 6 Nov 2013 19:47:23 +0000 (19:47 +0000)]
Merge r227738, r228574:
  Fill in sin_family in ioctl() arguments.

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

10 years agoMFC 254072:
jhb [Wed, 6 Nov 2013 19:33:25 +0000 (19:33 +0000)]
MFC 254072:
Don't emit a spurious EVFILT_PROC event with no fflags set on process exit
if NOTE_EXIT is not being monitored.  The rationale is that a listener
should only get an event for exit() if they registered interest via
NOTE_EXIT.  This matches the behavior on OS X.
- Don't save the exit status on process exit unless NOTE_EXIT is being
  monitored.
- Add an internal EV_DROP flag that requests kqueue_scan() to free the
  knote without signalling it to userland and use this when a process
  exits but the fflags in the knote is zero.

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

10 years agoMFC r256169 (by jimharris):
pluknet [Tue, 5 Nov 2013 22:33:45 +0000 (22:33 +0000)]
MFC r256169 (by jimharris):
Fix the LINT build.

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

10 years agoMFC r257539:
delphij [Tue, 5 Nov 2013 20:00:17 +0000 (20:00 +0000)]
MFC r257539:

When zero'ing out a buffer, make sure we are using right size.

Without this change, in the worst but unlikely case scenario, certain
administrative operations, including change of configuration, set or
delete key from a GEOM ELI provider, may leave potentially sensitive
information in buffer allocated from kernel memory.

We believe that it is not possible to actively exploit these issues, nor
does it impact the security of normal usage of GEOM ELI providers when
these operations are not performed after system boot.

Security: possible sensitive information disclosure
Submitted by: Clement Lecigne <clecigne google com>

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

10 years agoMFC 253656: Enhance the description of NOTE_TRACK:
jhb [Tue, 5 Nov 2013 19:54:13 +0000 (19:54 +0000)]
MFC 253656: Enhance the description of NOTE_TRACK:
- NOTE_TRACK has never triggered a NOTE_TRACK event from the parent pid.
  If NOTE_FORK is set, the listener will get a NOTE_FORK event from
  the parent pid, but not a separate NOTE_TRACK event.
- Explicitly note that the event added to monitor the child process
  preserves the fflags from the original event.
- Move the description of NOTE_TRACKERR under NOTE_TRACK as it is not a
  bit for the user to set (which is what this list pupports to be).
  Also, explicitly note that if an error occurs, the NOTE_CHILD event
  will not be generated.

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

10 years agoMFC r257534:
jimharris [Tue, 5 Nov 2013 15:57:24 +0000 (15:57 +0000)]
MFC r257534:

Create a unique unit number for each controller and namespace cdev.

Sponsored by: Intel

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

10 years agoMFC r257531:
jimharris [Tue, 5 Nov 2013 15:56:15 +0000 (15:56 +0000)]
MFC r257531:

Do not exit with error status after printing data for perftest.

Sponsored by: Intel

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

10 years agoMFC r257490:
yongari [Tue, 5 Nov 2013 06:48:58 +0000 (06:48 +0000)]
MFC r257490:
  Perform media change after setting IFF_DRV_RUNNING flag. Without it,
  driver would ignore the first link state update if controller
  already established a link.

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

10 years agoMFC of 257681:
edwin [Tue, 5 Nov 2013 06:37:14 +0000 (06:37 +0000)]
MFC of 257681:

tzdata2013f
- Jordan goes to winter time on the last Friday in October.
- Tocantins in Brazil will not go into summer time in October.
- Indonesian time zones renames.
- Lots of cleanups in with regarding to links and historical data.

tzdata2013h
- Libya didn't go back to DST.
- Fix Morocco 2038 issue.
- Brazil/Acre and ?Western Amazonas are chaning timezones.

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

10 years agoMFC r257307:
yongari [Mon, 4 Nov 2013 08:47:36 +0000 (08:47 +0000)]
MFC r257307:
  Fix regression introduced in r235816.
  r235816 triggered kernel panic or hang after warm boot.
  Don't blindly restore BCE_EMAC_MODE media configuration in
  bce_reset().  If driver is about to shutdown it will invoke
  bce_reset() which in turn results in restoring BCE_EMAC_MODE
  media configuration.  This operation seems to confuse controller
  firmware.

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

10 years agoMFC r257306:
yongari [Mon, 4 Nov 2013 06:00:12 +0000 (06:00 +0000)]
MFC r257306:
  Add preliminary support for RTL8168EP.

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

10 years agoMFC r257305:
yongari [Mon, 4 Nov 2013 05:57:24 +0000 (05:57 +0000)]
MFC r257305:
  Add preliminary support for RTL8168G, RTL8168GU and RTL8411B.
  RTL8168GU has two variants(GMII and MII) but it uses the same chip
  revision id.  Driver checks PCI device id of controller and
  sets internal capability flag(i.e. jumbo frame and link speed down
  in WOL).

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

10 years agoMFC r257304:
yongari [Mon, 4 Nov 2013 05:54:13 +0000 (05:54 +0000)]
MFC r257304:
  Add support for new Gigabit PHY of RealTek.
  I don't have a copy of data sheet so I'm not sure exact PHY model
  name. Vendor's web page indicates RTL8251 is latest PHY so I used
  the name. This PHY is used with RTL8168G, RTL8168GU and RTL8411B.

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

10 years agoMFC r256828:
yongari [Mon, 4 Nov 2013 05:49:56 +0000 (05:49 +0000)]
MFC r256828:
  Add preliminary support for RTL8106E PCIe FastEthernet.

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

10 years agor256827:
yongari [Mon, 4 Nov 2013 05:46:31 +0000 (05:46 +0000)]
r256827:
  Correct MAC revision bits. Previously it always cleared bit 20 and
  bit 21.

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

10 years agoMFC r256231:
jimharris [Sun, 3 Nov 2013 21:12:01 +0000 (21:12 +0000)]
MFC r256231:

Improve logging around some of the isci(4) reset and recovery paths.

Sponsored by: Intel

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

10 years agoMFC r256155:
jimharris [Sun, 3 Nov 2013 20:56:28 +0000 (20:56 +0000)]
MFC r256155:

Do not leak resources during attach if nvme_ctrlr_construct() or the initial
controller resets fail.

Sponsored by: Intel

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

10 years agoMFC r256154:
jimharris [Sun, 3 Nov 2013 20:55:24 +0000 (20:55 +0000)]
MFC r256154:

Log and then disable asynchronous notification of persistent events after
they occur.

This prevents repeated notifications of the same event.

Status of these events may be viewed at any time by viewing the
SMART/Health Info Page using nvmecontrol, whether or not asynchronous
events notifications for those events are enabled.  This log page can
be viewed using:

    nvmecontrol logpage -p 2 <ctrlr id>

Future enhancements may re-enable these notifications on a periodic basis
so that if the notified condition persists, it will continue to be logged.

Sponsored by: Intel

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

10 years agoMFC r256153:
jimharris [Sun, 3 Nov 2013 20:53:45 +0000 (20:53 +0000)]
MFC r256153:

Do not enable temperature threshold as an asynchronous event notification
on NVMe controllers that do not support it.

Sponsored by: Intel

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

10 years agoMFC r256152:
jimharris [Sun, 3 Nov 2013 20:52:13 +0000 (20:52 +0000)]
MFC r256152:

Extend some 32-bit fields and variables to 64-bit to prevent overflow
when calculating data in nvmecontrol perftest.

Sponsored by: Intel

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

10 years agoMFC r256151:
jimharris [Sun, 3 Nov 2013 20:50:48 +0000 (20:50 +0000)]
MFC r256151:

Add driver-assisted striping for upcoming Intel NVMe controllers that can
benefit from it.

Sponsored by: Intel

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

10 years agoMFC r257216:
kib [Sun, 3 Nov 2013 16:17:06 +0000 (16:17 +0000)]
MFC r257216:
Several small fixes for the amd64 minidump code.

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

10 years agoMFC r257214:
kib [Sun, 3 Nov 2013 16:11:38 +0000 (16:11 +0000)]
MFC r257214:
Inform about the kdb re-entry.

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

10 years agoMFC r257071:
kib [Fri, 1 Nov 2013 07:03:44 +0000 (07:03 +0000)]
MFC r257071:
Add some definitions for the bits in root control and status PCIe cap
registers.

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

10 years agoMFC r257069:
kib [Fri, 1 Nov 2013 06:56:28 +0000 (06:56 +0000)]
MFC r257069:
Add ddb 'show ioapic' and 'show all ioapics' commands.

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

10 years agoMFC r257154:
trociny [Thu, 31 Oct 2013 20:31:16 +0000 (20:31 +0000)]
MFC r257154:

Merging local and remote bitmaps must be protected by hr_amp lock.

This is believed to fix hastd crashes, which might occur during
synchronization, triggered by the failed assertion:

 Assertion failed: (amp->am_memtab[ext] > 0),
 function activemap_write_complete, file activemap.c, line 351.

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

10 years agoMFC r257221:
kib [Thu, 31 Oct 2013 10:14:12 +0000 (10:14 +0000)]
MFC r257221:
Fix typo.

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

10 years agoMFC r256624:
melifaro [Wed, 30 Oct 2013 16:08:27 +0000 (16:08 +0000)]
MFC r256624:

Fix long-standing issue with incorrect radix mask calculation.

Usual symptoms are messages like
rn_delete: inconsistent annotation
rn_addmask: mask impossibly already in tree
routing daemon constantly deleting IPv6 default route
or inability to flush/delete particular prefix in ipfw table.

Changes:
* Assume 32 bytes as maximum radix key length
* Remove rn_init()
* Statically allocate rn_ones/rn_zeroes
* Make separate mask tree for each "normal" tree instead of system
global one
* Remove "optimization" on masks reusage and key zeroying
* Change rn_addmask() arguments to accept tree pointer (no users in base)

MFC changes:
* keep rn_init()
* create global mask tree, protected with mutex, for old rn_addmask
users (currently 0 in base)
* Add new rn_addmask_r() function (rn_addmask in head) with additional
argument to accept tree pointer

PR: kern/182851, kern/169206, kern/135476, kern/134531
Found by: Slawa Olhovchenkov <slw@zxy.spb.ru>
Reviewed by: glebius (previous versions)
Sponsored by: Yandex LLC

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

10 years agoMFC r257206:
hselasky [Wed, 30 Oct 2013 06:18:54 +0000 (06:18 +0000)]
MFC r257206:
Fix a deadlock when trying to power off a USB device. The deadlock
happens because the code in question is trying to modify the parent
USB port registers outside the USB explore thread.

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

10 years agoFix Dd from MFCing r257151
bdrewery [Tue, 29 Oct 2013 18:47:07 +0000 (18:47 +0000)]
Fix Dd from MFCing r257151

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

10 years agoMFC r257151:
bdrewery [Tue, 29 Oct 2013 18:45:48 +0000 (18:45 +0000)]
MFC r257151:

  Document /var/cache/pkg into hier(7) which pkg(8) uses.

Approved by: bapt

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

10 years agoMerge r256550.
melifaro [Tue, 29 Oct 2013 09:57:00 +0000 (09:57 +0000)]
Merge r256550.

Improve locking model used to protect netgraph topology:
use rwlocks instead of mutexes on node traversal.

Reviewed by: glebius
Tested by: Eugene Grosbein <egrosbein@rdtc.ru>
Sponsored by: Yandex LLC

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

10 years agoMFC r256848:
kib [Tue, 29 Oct 2013 07:48:36 +0000 (07:48 +0000)]
MFC r256848:
Use plain register read for waiting of the reset completion
notification, to avoid gt_lock recursion.

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