]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
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

10 years agoMFC r255338:
pfg [Mon, 28 Oct 2013 19:46:01 +0000 (19:46 +0000)]
MFC r255338:

ext2fs: temporarily disable htree directory index.

In addition to our implementation not having workarounds for hash
collisions, it appears we also have a compatibility problem.

For now disable the htree code until we are able to re-examine
both issues.

PR: kern/183230

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

10 years agoMFC r248653: ZFS: Fix a panic while unmounting a busy filesystem.
will [Mon, 28 Oct 2013 14:27:35 +0000 (14:27 +0000)]
MFC r248653: ZFS: Fix a panic while unmounting a busy filesystem.

This particular scenario was easily reproduced using a NFS export.  When the
first 'zfs unmount' occurred, it returned EBUSY via this path, while
vflush() had flushed references on the filesystem's root vnode, which in
turn caused its v_interlock to be destroyed.  The next time 'zfs unmount'
was called, vflush() tried to obtain this lock, which caused this panic.

Since vflush() on FreeBSD is a definitive call, there is no need to check
vfsp->vfs_count after it completes.  Simply #ifdef sun this check.

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

10 years agoMFC r255301: libc/stdio: Provide proper TAP output for fmemopen/
jilles [Sun, 27 Oct 2013 22:18:27 +0000 (22:18 +0000)]
MFC r255301: libc/stdio: Provide proper TAP output for fmemopen/
open_memstream/open_wmemstream.

A *.t file should provide Test Anything Protocol output so that it can be
run using the Perl "prove" tool.

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

10 years agoMFC r243731,r255303: libc: Allow setting close-on-exec in fopen/freopen/
jilles [Sun, 27 Oct 2013 21:49:52 +0000 (21:49 +0000)]
MFC r243731,r255303: libc: Allow setting close-on-exec in fopen/freopen/
fdopen.

This commit adds a new mode option 'e'.

For freopen() with a non-NULL path argument and fopen(), the close-on-exec
flag is set iff the 'e' mode option is specified. For freopen() with a NULL
path argument and fdopen(), the close-on-exec flag is turned on if the 'e'
mode option is specified and remains unchanged otherwise.

Although the same behaviour for fopen() can be obtained by open(O_CLOEXEC)
and fdopen(), this needlessly complicates the calling code.

PR: kern/169320

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

10 years agoMFC r256646, r256767, r257038:
delphij [Sat, 26 Oct 2013 19:54:28 +0000 (19:54 +0000)]
MFC r256646, r256767, r257038:
  When installing updates, install new directories first and remove old
  directories last.

  Allow ~ in file names so libtool droppings in contrib don't break updates.
  It has happened twice now, and is likely to happen again.

  Be more selective when filtering for lib*.so.N files.  These are deleted
  at the end of the upgrade process, after warning users to upgrade any
  3rd party software (e.g., from the ports tree) which might link to the
  libraries being removed.

Errata Notice:  FreeBSD-EN-13:04.freebsd-update

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

10 years agoMFC r256157:
dim [Sat, 26 Oct 2013 11:56:51 +0000 (11:56 +0000)]
MFC r256157:

Now our binutils's assembler supports the Intel Random Number Generator
extensions, we can change the .byte directives in sys/dev/random/ivy.c
to plain 'rdrand' mnemonics.  This already worked for clang users, but
now it will also work for gcc users.

Approved by: so (des)

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

10 years agoMFC r256504:
kib [Fri, 25 Oct 2013 17:15:57 +0000 (17:15 +0000)]
MFC r256504:
Add a sysctl kern.disallow_high_osrel which disables executing the
images compiled on the world with higher major version number than the
high version number of the booted kernel.  Default to disable.

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

10 years agoMFC r256502:
kib [Fri, 25 Oct 2013 17:04:46 +0000 (17:04 +0000)]
MFC r256502:
Similar to debug.iosize_max_clamp sysctl, introduce
devfs_iosize_max_clamp sysctl, which allows/disables SSIZE_MAX-sized
i/o requests on the devfs files.

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

10 years agoMFC r256501:
kib [Fri, 25 Oct 2013 16:49:32 +0000 (16:49 +0000)]
MFC r256501:
Remove two instances of ARGSUSED comment, and wrap lines nearby the
code that is to be changed.

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

10 years agoMFC r253816: MFV r253780:
delphij [Fri, 25 Oct 2013 15:43:59 +0000 (15:43 +0000)]
MFC r253816: MFV r253780:

To quote Illumos #3875:

The problem here is that if we ever end up in the error
path, we drop the locks protecting access to the zfsvfs_t
prior to forcibly unmounting the filesystem. Because z_os
is NULL, any thread that had already picked up the zfsvfs_t
and was sitting in ZFS_ENTER() when we dropped our locks
in zfs_resume_fs() will now acquire the lock, attempt to
use z_os, and panic.

Illumos ZFS issues:
  3875 panic in zfs_root() after failed rollback

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

10 years agoMFC r256925:
tijl [Fri, 25 Oct 2013 13:25:49 +0000 (13:25 +0000)]
MFC r256925:

Add a dummy statement to the beginning of the pthread_cleanup_pop() macro
to allow a call of the macro to be labelled as in:

label:
  pthread_cleanup_pop();

Reviewed by: imp

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

10 years agoMFC r256750:
hselasky [Fri, 25 Oct 2013 06:48:57 +0000 (06:48 +0000)]
MFC r256750:
Improve XHCI stability. When a command timeout happens, the command
should be aborted else the command queue can stop. Refer to section
"4.6.1.2" of the XHCI specification.

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

10 years agoMFC r256317:
mav [Fri, 25 Oct 2013 06:03:07 +0000 (06:03 +0000)]
MFC r256317:
Fix mode page length calculation to remove last garbage line from the
`camcontrol mode daX -l` output.

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

10 years agoMFC r256842:
bdrewery [Thu, 24 Oct 2013 10:53:35 +0000 (10:53 +0000)]
MFC r256842:

  Fix 'make delete-old-libs' and 'make check-libs' to delete .debug
  files created by WITH_DEBUG_FILES. Also cleanup .symbols files from
  the period between r244236 when .symbols were supported and r251512
  when they were renamed to .debug.

  Only propose to delete a .debug file if the corresponding library
  itself was deleted already.

Approved by: bapt

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

10 years agoMFC r256552:
mav [Thu, 24 Oct 2013 10:34:13 +0000 (10:34 +0000)]
MFC r256552:
Unify periph invalidation and destruction reporting.
Print message containing device model and serial number on invalidation.

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

10 years agoMFC r256533:
mav [Thu, 24 Oct 2013 10:31:53 +0000 (10:31 +0000)]
MFC r256533:
Unhide "Serial Number" lines from bootverbose.  That information may
be useful for system administration to have in hard copy (in logs) if
one of several devices suddenly dies.

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

10 years agoMFC r256500:
hselasky [Thu, 24 Oct 2013 06:25:52 +0000 (06:25 +0000)]
MFC r256500:
Add new USB ID.

PR: usb/182936

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

10 years agoMFC r252912, r254828 and r256548:
hselasky [Thu, 24 Oct 2013 06:22:43 +0000 (06:22 +0000)]
MFC r252912, r254828 and r256548:
Add host mode support to the Mentor Graphics USB OTG controller driver.

PR: usb/181987

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

10 years agoMFC r241082:
hselasky [Thu, 24 Oct 2013 06:06:17 +0000 (06:06 +0000)]
MFC r241082:
Inherit USB mode from RootHUB port where the USB device is connected.
Only RootHUB ports can be dual mode. Disallow OTG ports on external HUBs.
This simplifies some checks in the USB controller drivers.

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

10 years agoMFC r256188:
mav [Wed, 23 Oct 2013 17:08:50 +0000 (17:08 +0000)]
MFC r256188:
Close the race on path ID allocation in xpt_bus_register() if two buses are
registered simultaneously. Due to topology unlock between the ID allocation
and the bus registration there is a chance that two buses may get the
same IDs. That is supposed reason of lock assertion panic in CAM during
initial bus scanning after new iscsid initiates two sessions same time.

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

10 years agoMFC r255869:
ambrisko [Tue, 22 Oct 2013 19:49:19 +0000 (19:49 +0000)]
MFC r255869:

Add PCI device ID for MegaRAID Invader cards.  This was the only
change needed to make it work on my card.

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

10 years agoMFC r256775,r256776:
cperciva [Tue, 22 Oct 2013 16:13:15 +0000 (16:13 +0000)]
MFC r256775,r256776:
  Add support for "first boot" rc.d scripts.

  Document this new functionality in rc.conf(5) and rc(8).

  Bump __FreeBSD_version so that ports can make use of this.

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

10 years agoMerge r255143 from head:
glebius [Tue, 22 Oct 2013 09:58:31 +0000 (09:58 +0000)]
Merge r255143 from head:
  Merge 1.12 of pf_lb.c from OpenBSD, with some changes. Original commit:

    date: 2010/02/04 14:10:12;  author: sthen;  state: Exp;  lines: +24 -19;
    pf_get_sport() picks a random port from the port range specified in a
    nat rule. It should check to see if it's in-use (i.e. matches an existing
    PF state), if it is, it cycles sequentially through other ports until
    it finds a free one. However the check was being done with the state
    keys the wrong way round so it was never actually finding the state
    to be in-use.

    - switch the keys to correct this, avoiding random state collisions
    with nat. Fixes PR 6300 and problems reported by robert@ and viq.

    - check pf_get_sport() return code in pf_test(); if port allocation
    fails the packet should be dropped rather than sent out untranslated.

    Help/ok claudio@.

  Some additional changes to 1.12:

  - We also need to bzero() the key to zero padding, otherwise key
    won't match.
  - Collapse two if blocks into one with ||, since both conditions
    lead to the same processing.
  - Only naddr changes in the cycle, so move initialization of other
    fields above the cycle.
  - s/u_intXX_t/uintXX_t/g

  PR:             kern/181690
  Submitted by:   Olivier Cochard-Labbé <olivier cochard.me>
  Sponsored by:   Nginx, Inc.

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

10 years agoMFC r251844: Include die tag in error message
emaste [Mon, 21 Oct 2013 18:26:22 +0000 (18:26 +0000)]
MFC r251844: Include die tag in error message

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

10 years agoMFC r251667: Handle DW_TAG_unspecified_type
emaste [Mon, 21 Oct 2013 18:25:36 +0000 (18:25 +0000)]
MFC r251667: Handle DW_TAG_unspecified_type

  2011-11-14  Jim Ingham  <jingham@apple.com>

  * dwarf2read.c (read_type_die): Handle DW_TAG_unspecified_type.
    (read_tag_unspecified_type): New function, add a type for the
    DW_TAG_unspecified_type die.

  Obtained from: Apple, gdb-1752

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

10 years agoMFC r251665: Handle DW_TAG_rvalue_reference_type
emaste [Mon, 21 Oct 2013 18:23:16 +0000 (18:23 +0000)]
MFC r251665: Handle DW_TAG_rvalue_reference_type

  2012-05-21  Jim Ingham <jingham@apple.com>

    * dwarf2read.c (process_die): Handle DW_TAG_rvalue_reference_type.
      (read_type_die): Ditto.
      (dwarf_tag_name): Ditto.

    * elf/dwarf2.h: Add DW_TAG_rvalue_reference_type.

  Obtained from: Apple, gdb-1820

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

10 years agoMFC r244437: Support restrict qualifier in dwarf debug info
emaste [Mon, 21 Oct 2013 18:20:20 +0000 (18:20 +0000)]
MFC r244437: Support restrict qualifier in dwarf debug info

  Newer clang/llvm emit DW_TAG_restrict_type, which wasn't handled by gdb.
  Import support from Apple's gdb-1822:

  |  2009-03-24  Jason Molenda  (jmolenda@apple.com)
  |
  |    * gdbtypes.c (make_cv_type): Rename this function to make_cvr_type to
  |    also handle restrict qualifiers.
  |    (check_typedef): Handle TYPE_RESTRICT.
  |    * gdbtypes.h (TYPE_FLAG_RESTRICT, TYPE_RESTRICT): New.
  |    * hpread.c (hpread_type_lookup): Update to use make_cvr_type.
  |    * stabsread.c (read_type): Pass the restrict qualifiers along.
  |    * parse.c (follow_types): Pass the restrict qualifiers along.
  |    * dwarf2read.c (read_tag_const_type): Call make_cvr_type.
  |    (read_tag_volatile_type): Same.
  |    (read_tag_restrict_type): New function.
  |    (read_type_die): Handle DW_TAG_restrict_type.

  Obtained from: Apple

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

10 years agoMFC r256038:
yongari [Mon, 21 Oct 2013 05:57:36 +0000 (05:57 +0000)]
MFC r256038:
  Fix clearing MAC stats registers. Previously it cleared every
  fourth register.

  Submitted by: Paul A. Patience <paul-a.patience@polymtl.ca>

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

10 years agoMFC: r256069
hiren [Sat, 19 Oct 2013 06:30:20 +0000 (06:30 +0000)]
MFC: r256069

Expose system level ixgbe sysctls.
Device level sysctls are already exposed as dev.ix.<device>

Fixing the case where number of queues for igb is auto-tuned and
hw.igb.num_queues does not return current/updated value.

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

10 years agoMFC r256050:
trasz [Fri, 18 Oct 2013 09:50:23 +0000 (09:50 +0000)]
MFC r256050:

Remove useless check - ki_loginclass is an array; can't be NULL.

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

10 years agoMFC r253979
jhibbits [Thu, 17 Oct 2013 06:14:32 +0000 (06:14 +0000)]
MFC r253979

Micro-optimize OFW syscons 8-bit blank.

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

10 years agoMFC r253588
jhibbits [Thu, 17 Oct 2013 05:44:15 +0000 (05:44 +0000)]
MFC r253588

Increase the size of the OFW bounce buffer to 4 pages.  With this I can now run
'ofwdump -ap' on my quad G5.

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

10 years agoMFC r256213:
kib [Wed, 16 Oct 2013 06:15:40 +0000 (06:15 +0000)]
MFC r256213:
Do not try to flush device vnodes from the buffer allocation context.

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

10 years agoMFC r256211:
kib [Wed, 16 Oct 2013 06:13:08 +0000 (06:13 +0000)]
MFC r256211:
Do not flush buffers when the v_object of the passed vnode does not
really belong to it.

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

10 years agoMFC r256209:
kib [Wed, 16 Oct 2013 06:07:03 +0000 (06:07 +0000)]
MFC r256209:
Reduce code duplication, introduce the getmaxfd() helper to calculate
the max filedescriptor index.

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

10 years agoFix an inverted check for the master user in "camcontrol security -U".
markj [Wed, 16 Oct 2013 03:37:02 +0000 (03:37 +0000)]
Fix an inverted check for the master user in "camcontrol security -U".

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

10 years agoMFC r247012 (by jmg):
dim [Mon, 14 Oct 2013 15:06:47 +0000 (15:06 +0000)]
MFC r247012 (by jmg):

  add support for AES and PCLMULQDQ instructions to binutils...

  Thanks to Mike Belopuhov for the pointer to the OpenBSD patch, though
  OpenBSD's gcc is very different that it only helped w/ where to modify,
  not how...  Thanks to jhb for some early reviews...

  Reviewed by: imp, kib

MFC r247117 (by jmg):

  reorder so all the flags are together and make the PCLMUL flag unique..

  This fixes the problem on amd64 miscompiling mpboot.s causing boot
  issues...  We are still using gas for a few files in the kernel...

  Submitted by: kib

MFC r255192 (by jhb):

  Add support for the 'invpcid' instruction to binutils and DDB's
  disassembler on amd64.

MFC r256112:

  Add support for assembling and disassembling Intel Random Number
  Generator extensions (e.g. the 'rdrand' mnemonic) to our copy of
  binutils.

  Obtained from: OpenBSD, via pfg

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

10 years agoMFC r256125:
kib [Mon, 14 Oct 2013 05:56:15 +0000 (05:56 +0000)]
MFC r256125:
Make isci(4) loadable.

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

10 years agoMFC r256101:
kib [Mon, 14 Oct 2013 05:49:20 +0000 (05:49 +0000)]
MFC r256101:
Implement support for the interpose dso flag.

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

10 years agoMFC r256100:
kib [Mon, 14 Oct 2013 05:44:16 +0000 (05:44 +0000)]
MFC r256100:
Add the definition of DF_1_INTERPOSE flag.

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

10 years agoMFC r255775 r255796 r255807 r255930 r255929 r255957:
ian [Sat, 12 Oct 2013 17:31:21 +0000 (17:31 +0000)]
MFC r255775 r255796 r255807 r255930 r255929 r255957:

Create a separate script to generate osreldate.h rather than sourcing
newvers.sh into a temporary subshell with inline make rules.
Fixes PR 160646.

Allow the path to the system source directory to be passed in to
newvers.sh.  Pass it in from include/Makefile.  If it isn't passed in,
fall back to the old logic of using dirname $0.  Fixes PR 174422.

PR: 160646 174422

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

10 years agoMFC r255931:
dim [Sat, 12 Oct 2013 16:11:57 +0000 (16:11 +0000)]
MFC r255931:

Fix a bug in ld, where indirect symbols are not handled properly during
linking of a shared library, leading to corrupt indexes in the dynamic
symbol table.  This should fix the multimedia/ffmpegthumbnailer port.

Reported by: swills

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

10 years agoMFC r256030:
dim [Sat, 12 Oct 2013 15:56:13 +0000 (15:56 +0000)]
MFC r256030:

Pull in r189644 from upstream llvm trunk:

  Add ms_abi and sysv_abi attribute handling.

  Based on a patch by Benno Rice!

This will help to develop EFI support.

Verified by: benno

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

10 years agoMFC r256246:
gjb [Sat, 12 Oct 2013 04:35:38 +0000 (04:35 +0000)]
MFC r256246:
 Remove hash generation from release.sh, as it is run as part of
 the 'install' target in the release/Makefile.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r256009:
roberto [Fri, 11 Oct 2013 18:19:08 +0000 (18:19 +0000)]
MFC r256009:

Meinberg clocks support was inadvertently removed during the last vendor
import.  Add it back.

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

10 years agoMFC r256061:
kib [Fri, 11 Oct 2013 04:42:17 +0000 (04:42 +0000)]
MFC r256061:
Add padding to match the compat32 struct stat32 definition to the real
struct stat on 32bit architectures.

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

10 years agoMFC 253450:
jhb [Thu, 10 Oct 2013 14:34:01 +0000 (14:34 +0000)]
MFC 253450:
Properly handle I/O windows in bridges with the ISA enable bit set.  These
beasts still exist unfortunately.  More details can be found in other
references, but the short version is that bridges with this bit set ignore
I/O port ranges that alias to valid ISA I/O port ranges.  In the driver
this requires not allocating these alias regions from the parent device
(so they are free to be acquired by ISA devices), and ensuring no child
devices use resources from these alias regions.

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

10 years agoMerge r253680,253805 from head:
glebius [Thu, 10 Oct 2013 12:47:33 +0000 (12:47 +0000)]
Merge r253680,253805 from head:
  ----------------------------------------------------------------------
  r253680 | des | 2013-07-26 19:53:43 +0400 (Fri, 26 Jul 2013) | 7 lines

  Implement certificate verification, and many other SSL-related
  imrovements; complete details in the PR.

  PR:             kern/175514
  Submitted by:   Michael Gmelin <freebsd@grem.de>
  MFC after:      1 week

  ----------------------------------------------------------------------
  r253805 | des | 2013-07-30 17:07:55 +0400 (Tue, 30 Jul 2013) | 5 lines

  Include an Accept header in requests.

  PR:             kern/180917
  MFC after:      1 week

Reviewed by: des

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

10 years agoMFC r255944:
bdrewery [Thu, 10 Oct 2013 12:46:26 +0000 (12:46 +0000)]
MFC r255944:

  Use MK_SSP=no after including bsd.own.mk to disable SSP instead of user-knob
  WITH[OUT]_SSP to avoid hitting an error if user has WITH_SSP in their
  make.conf. Ports now use this knob.

    make[7]: "/usr/src/share/mk/bsd.own.mk" line 466: WITH_SSP and
    WITHOUT_SSP can't both be set.

Approved by: bapt

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

10 years agoFix mismerge introduced in r256230, adding auditdistd back to
gjb [Thu, 10 Oct 2013 11:56:43 +0000 (11:56 +0000)]
Fix mismerge introduced in r256230, adding auditdistd back to
etc/rc.d/Makefile.

Submitted by: Herbert J. Skuhra
Pointyhat to: gjb

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

10 years agoMerge from head r253514,r253680,r253805,r254650:
glebius [Thu, 10 Oct 2013 09:42:41 +0000 (09:42 +0000)]
Merge from head r253514,r253680,r253805,r254650:
  ---------------------------------------------------------------------
  r253514 | des | 2013-07-21 10:59:56 +0400 (вс, 21 июл 2013) | 5 lines

  Use the correct request syntax for proxied (tunneled) HTTPS requests.

  PR:             bin/180666
  MFC after:      3 days

  ---------------------------------------------------------------------
  r253680 | des | 2013-07-26 19:53:43 +0400 (пт, 26 июл 2013) | 7 lines

  Implement certificate verification, and many other SSL-related
  imrovements; complete details in the PR.

  PR:             kern/175514
  Submitted by:   Michael Gmelin <freebsd@grem.de>
  MFC after:      1 week

  ---------------------------------------------------------------------
  r253805 | des | 2013-07-30 17:07:55 +0400 (вт, 30 июл 2013) | 5 lines

  Include an Accept header in requests.

  PR:             kern/180917
  MFC after:      1 week

  ---------------------------------------------------------------------
  r254650 | des | 2013-08-22 11:43:36 +0400 (чт, 22 авг 2013) | 8 lines

  Even though it doesn't really make sense in the context of a CONNECT
  request, RFC 2616 14.23 mandates the presence of the Host: header in
  all HTTP 1.1 requests.

  PR:             kern/181445
  Submitted by:   Kimo <kimor79@yahoo.com>
  MFC after:      3 days

  ---------------------------------------------------------------------

Reviewed by: des

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

10 years agoMFC r255921
jhibbits [Thu, 10 Oct 2013 03:57:47 +0000 (03:57 +0000)]
MFC r255921

Fix powerpc/161045.  ams_poll() needs to return that any data is available, not
just a new packet.

PR: powerpc/161045

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

10 years agoMFC r252115,255378
jhibbits [Thu, 10 Oct 2013 03:35:30 +0000 (03:35 +0000)]
MFC r252115,255378

Cache the Open Firmware CPU properties at attach time, so we don't always
enter it at runtime to get static data.

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

10 years agopartial MFC of r256114:
jmg [Thu, 10 Oct 2013 01:20:18 +0000 (01:20 +0000)]
partial MFC of r256114:
add missing sections, de-Xr non-existent page

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

10 years agoMFC r254253, r254257:
mav [Wed, 9 Oct 2013 19:59:25 +0000 (19:59 +0000)]
MFC r254253, r254257:
r253460 accidentally some moderately expensive debugging code, even
when debugging isn't enabled.  Work around this.

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

10 years agoMFC r253809:
mav [Wed, 9 Oct 2013 19:57:27 +0000 (19:57 +0000)]
MFC r253809:
Fix a printf typo.

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

10 years agoMFC r241759 (by jwd):
mav [Wed, 9 Oct 2013 19:55:55 +0000 (19:55 +0000)]
MFC r241759 (by jwd):
Don't lose the 255'th disk behind the initiator.

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

10 years agoMFC r241145 (by ken):
mav [Wed, 9 Oct 2013 19:53:42 +0000 (19:53 +0000)]
MFC r241145 (by ken):
Add casts to unbreak the i386 PAE build for the mps(4) driver.

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

10 years agoMFC r228541, r256022:
gjb [Wed, 9 Oct 2013 19:34:11 +0000 (19:34 +0000)]
MFC r228541, r256022:

r228541 (by pjd):
 - Put one file into one line. This makes keeping local changes and
   merging with FreeBSD easier for vendors.
 - For optional files use variables starting with underscore

r256022:
 - Do not install bluetooth rc(8) scripts if MK_BLUETOOTH = no.

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

10 years agoMFC r255309:
mav [Wed, 9 Oct 2013 19:28:07 +0000 (19:28 +0000)]
MFC r255309:
Make SES driver adequately react on simple enclosure devices -- read Short
Enclosure status to enclosure status field, clear previous state and exit.

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

10 years agoMFC r255304:
mav [Wed, 9 Oct 2013 19:26:35 +0000 (19:26 +0000)]
MFC r255304:
Fix kernel panic if cache->nelms is zero.

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

10 years agoMFC r255126:
mav [Wed, 9 Oct 2013 19:25:22 +0000 (19:25 +0000)]
MFC r255126:
Add debug trace points for freeze/release device queue.

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

10 years agoMFC r254329 (by smh):
mav [Wed, 9 Oct 2013 19:23:12 +0000 (19:23 +0000)]
MFC r254329 (by smh):
Added 4K quirks for:-
* OCZ Agility 2 SSDs
* Marvell SSDs
* Intel X25-M Series SSDs

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

10 years agoMFC r254058:
mav [Wed, 9 Oct 2013 19:22:01 +0000 (19:22 +0000)]
MFC r254058:
Remove droping topology mutex after iterating 100 periphs in CAMGETPASSTHRU.
That is not so slow and so often operation to handle unneeded otherwise
xsoftc.xpt_generation and respective locking complications.

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

10 years agoMFC r253987 (by trasz):
mav [Wed, 9 Oct 2013 19:19:53 +0000 (19:19 +0000)]
MFC r253987 (by trasz):
Remove dead code.

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

10 years agoMFC r253960:
mav [Wed, 9 Oct 2013 19:18:35 +0000 (19:18 +0000)]
MFC r253960:
Pass SIM pointer as an argument to camisr_runqueue() instead of doneq
pointer.

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

10 years agoMFC r253958:
mav [Wed, 9 Oct 2013 19:16:54 +0000 (19:16 +0000)]
MFC r253958:
Change CCB queue resize logic to be able safely handle overallocations:
 - (re)allocate queue space in power of 2 chunks with 64 elements minimum
and never shrink it; with only 4/8 bytes per element size is insignificant.
 - automatically reallocate the queue to double size if it is overflowed.
 - if queue reallocation failed, store extra CCBs in unsorted TAILQ,
fetching them back as soon as some queue element is freed.

To free space in CCB for TAILQ linking, change highpowerq from keeping
high-power CCBs to keeping devices frozen due to high-power CCBs.

This encloses all pieces of queue resize logic inside of cam_queue.[ch],
removing some not obvious duties from xpt_release_ccb().

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

10 years agoMFC r250460 (by eadler):
mav [Wed, 9 Oct 2013 19:04:48 +0000 (19:04 +0000)]
MFC r250460 (by eadler):
Fix a bunch of typos.

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

10 years agoMFC r250131 (by eadler):
mav [Wed, 9 Oct 2013 19:02:59 +0000 (19:02 +0000)]
MFC r250131 (by eadler):
Correct a few sizeof()s

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

10 years agoMFC r249466, r249481, r250025:
mav [Wed, 9 Oct 2013 18:58:28 +0000 (18:58 +0000)]
MFC r249466, r249481, r250025:
Remove multilevel freezing mechanism, implemented to handle specifics of
the ATA/SATA error recovery, when post-reset recovery commands should be
allocated when queues are already full of payload requests.  Instead of
removing frozen CCBs with specified range of priorities from the queue
to provide free openings, use simple hack, allowing explicit CCBs over-
allocation for requests with priority higher (numerically lower) then
CAM_PRIORITY_OOB threshold.

Simplify CCB allocation logic by removing SIM-level allocation queue.
After that SIM-level queue manages only CCBs execution, while allocation
logic is localized within each single device.

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

10 years agoMFC r249438:
mav [Wed, 9 Oct 2013 18:48:10 +0000 (18:48 +0000)]
MFC r249438:
Use full freeze while PMP does hard reset. This is only cosmetical change.

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

10 years agoMFC r249256 (by ken):
mav [Wed, 9 Oct 2013 18:45:42 +0000 (18:45 +0000)]
MFC r249256 (by ken):
Fix a memory leak that showed up when we delete LUNs.  The memory used for
the LUN was never freed.

ctl.c:          Adjust ctl_alloc_lun() to make sure we don't clear the
                CTL_LUN_MALLOCED flag.

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

10 years agoMFC r249102 (by trasz):
mav [Wed, 9 Oct 2013 18:44:05 +0000 (18:44 +0000)]
MFC r249102 (by trasz):
Since the CTL version in FreeBSD does not support High Availability,
ctl_is_single should always be set to 1.  Make it so.  Previously
it was always 0, because ctl_isc_start() never got to run.

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

10 years agoMFC r255363:
mav [Wed, 9 Oct 2013 18:29:06 +0000 (18:29 +0000)]
MFC r255363:
Micro-optimize cpu_search(), allowing compiler to use more efficient inline
ffsl() implementation, when it is available, instead of homegrown iteration.

On dual-E5645 amd64 system (2x6x2 cores) under heavy I/O load that reduces
time spent inside cpu_search() from 19% to 13%, while IOPS increased by 5%.

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

10 years agoMFC r251703 (by attilio):
mav [Wed, 9 Oct 2013 18:23:30 +0000 (18:23 +0000)]
MFC r251703 (by attilio):
 - Add a BIT_FFS() macro and use it to replace cpusetffs_obj()

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

10 years agoMFC r250395 (by attilio / jeff):
mav [Wed, 9 Oct 2013 18:14:28 +0000 (18:14 +0000)]
MFC r250395 (by attilio / jeff):
Generalize the bitset operations, present in cpuset and offer a KPI to
redefine such operations for different consumers.
This will be used when NUMA support will be finished and numaset
will need to be used.

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

10 years agoMFC r256090:
dim [Wed, 9 Oct 2013 06:19:01 +0000 (06:19 +0000)]
MFC r256090:

Pull in r192064 from upstream llvm trunk:

  X86: Don't fold spills into SSE operations if the stack is unaligned.

  Regalloc can emit unaligned spills nowadays, but we can't fold the
  spills into SSE ops if we can't guarantee alignment. PR12250.

This fixes unaligned SSE accesses (leading to a SIGBUS) which could
occur in the ffmpeg ports.

Reported by: tijl

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

10 years agoMFC r256089:
kib [Wed, 9 Oct 2013 05:27:21 +0000 (05:27 +0000)]
MFC r256089:
Document LK_TRYUPGRADE.

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

10 years agoMFC r255979:
kib [Tue, 8 Oct 2013 04:52:40 +0000 (04:52 +0000)]
MFC r255979:
When printing the vnode information from ddb, print the lengths of the
dirty and clean buffer queues.

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

10 years agoMFC r255036:
delphij [Mon, 7 Oct 2013 22:03:40 +0000 (22:03 +0000)]
MFC r255036:

Add directories that is installed as part of bsdconfig.

These are included unconditionally for now because bsdconfig
is currently installed unconditionally.

This fixes 'make -j 17 installworld' caused by a race
condition.

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

10 years agoMFC r248979 (emaste):
delphij [Mon, 7 Oct 2013 21:59:18 +0000 (21:59 +0000)]
MFC r248979 (emaste):

Format per etc/mtree/README

- Spaces instead of tabs
- Sort some i18n entries

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

10 years agoMFC r255035:
delphij [Mon, 7 Oct 2013 21:54:30 +0000 (21:54 +0000)]
MFC r255035:

Add a few missing language directories for /usr.

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

10 years agoMFC r237560,254319 (by uqs): Fix 'make depend'.
pluknet [Mon, 7 Oct 2013 12:57:27 +0000 (12:57 +0000)]
MFC r237560,254319 (by uqs): Fix 'make depend'.

PR: misc/180918
Submitted by: Eugene Grosbein <egrosbein@rdtc.ru>

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

10 years agoMFH (r255597): add unbound user to facilitate cross-building
des [Mon, 7 Oct 2013 08:19:41 +0000 (08:19 +0000)]
MFH (r255597): add unbound user to facilitate cross-building
MFH (r256097): add missing entries to ftpusers and reorder

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

10 years agoForgotten mergeinfo
des [Mon, 7 Oct 2013 08:14:41 +0000 (08:14 +0000)]
Forgotten mergeinfo

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

10 years agoMFC r256024:
dim [Sun, 6 Oct 2013 12:39:12 +0000 (12:39 +0000)]
MFC r256024:

Pull in r186338 from upstream llvm trunk:

  Remove invalid assert in DAGTypeLegalizer::RemapValue

  There is a comment at the top of DAGTypeLegalizer::PerformExpensiveChecks
  which, in part, says:

   // Note that these invariants may not hold momentarily when processing a node:
   // the node being processed may be put in a map before being marked Processed.

  Unfortunately, this assert would be valid only if the above-mentioned invariant
  held unconditionally. This was causing llc to assert when, in fact,
  everything was fine.

  Thanks to Richard Sandiford for investigating this issue!

  Fixes PR16562.

This fixes assertions which could occur in the multimedia/ffmpeg1 and
multimedia/ffmpeg2 ports.

Reported by: Matthias Apitz <guru@unixarea.de>

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

10 years agoMFC r255942:
kib [Sun, 6 Oct 2013 06:14:29 +0000 (06:14 +0000)]
MFC r255942:
For vunref(), try to upgrade the vnode lock if the function was called
with the vnode shared-locked.

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

10 years agoMFC r255941:
kib [Sun, 6 Oct 2013 06:09:43 +0000 (06:09 +0000)]
MFC r255941:
Increase the chance of the buffer write from the bufdaemon helper
context to succeed. If the locked vnode which owns the buffer to be
written is shared locked, try the non-blocking upgrade of the lock to
exclusive.

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

10 years agoMFC r255940:
kib [Sun, 6 Oct 2013 06:05:11 +0000 (06:05 +0000)]
MFC r255940:
Add LK_TRYUPGRADE operation for lockmgr(9).

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

10 years agoMFC r255945:
kib [Sun, 6 Oct 2013 05:53:29 +0000 (05:53 +0000)]
MFC r255945:
Make the mac_policy_rm lock recursable, which allows reentrance into
the mac framework.

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

10 years agoMFC r255798:
kib [Sun, 6 Oct 2013 05:50:55 +0000 (05:50 +0000)]
MFC r255798:
Pre-acquire the filedesc sx when a possibility exists that the later
code could need to remove a kqueue from the filedesc list.

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

10 years agoMFC r255978:
dim [Fri, 4 Oct 2013 19:57:47 +0000 (19:57 +0000)]
MFC r255978:

Pull in r191711 from upstream llvm trunk:

  The X86FixupLEAs pass for Intel Atom must not call
  convertToThreeAddress on ADD16rr opcodes, if src1 != src, since that
  would cause convertToThreeAddress to try to create a virtual register.
  This is not permitted after register allocation, which is when the
  X86FixupLEAs pass runs.

  This patch fixes PR16785.

Pull in r191715 from upstream llvm trunk:

  Forgot to add a break statement.

This should enable building the x11-toolskits/libXaw port with
CPUTYPE=atom.

Reported by: Kenta Suzumoto <kentas@hush.com>

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