]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
10 years agoMFC r259057:
marcel [Sun, 16 Feb 2014 20:13:18 +0000 (20:13 +0000)]
MFC r259057:
Remove "Warning: file \"%s\" unreadable". It was introduced with revision
44599 and turned less than useful ever since fortunes-o.dat got removed.

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

10 years agoMFC r259056:
marcel [Sun, 16 Feb 2014 20:02:29 +0000 (20:02 +0000)]
MFC r259056:
Fix r203922 for "fortune -o".

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

10 years agoMFC r258448:
marcel [Sun, 16 Feb 2014 19:46:20 +0000 (19:46 +0000)]
MFC r258448:
Have the GPT probe return a lower priority when the MBR is not a PMBR.

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

10 years agoDirect commit to stable/10 to note that the nve(4) driver has been
brueffer [Sun, 16 Feb 2014 19:38:17 +0000 (19:38 +0000)]
Direct commit to stable/10 to note that the nve(4) driver has been
deprecated.

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

10 years agoMFC r257910:
marcel [Sun, 16 Feb 2014 19:20:13 +0000 (19:20 +0000)]
MFC r257910:
Don't enable interrupts before we call sched_throw().

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

10 years agoMFC r257487:
marcel [Sun, 16 Feb 2014 19:12:50 +0000 (19:12 +0000)]
MFC r257487:
Use LOG2_ID_PAGE_SIZE again for the identity mapping in regions 6 & 7.

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

10 years agoMFC: r261838
brueffer [Sun, 16 Feb 2014 11:13:14 +0000 (11:13 +0000)]
MFC: r261838

Add a deprecation notice to nve.4 and Xref nfe.4.

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

10 years agoMFC: r261702
brueffer [Sun, 16 Feb 2014 11:11:41 +0000 (11:11 +0000)]
MFC: r261702

Update and sort the list of iwn(4) firmware.

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

10 years agoMFC: r261701
brueffer [Sun, 16 Feb 2014 10:39:29 +0000 (10:39 +0000)]
MFC: r261701

Allow iwn2000 and iwn2030 firmware to be linked into the kernel.

PR: 184631
Submitted by: Oliver Pinter

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

10 years agoRefer newfs and growfs users to fsck_ffs instead of
brueffer [Sun, 16 Feb 2014 10:16:07 +0000 (10:16 +0000)]
Refer newfs and growfs users to fsck_ffs instead of
fsck, the latter does not accept the referred to "-b" flag.

PR: 82720
Submitted by: David D.W. Downey

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

10 years agoMFC r261863
rpaulo [Sun, 16 Feb 2014 08:35:33 +0000 (08:35 +0000)]
MFC r261863
  Add urtwn_start_locked() to avoid unlocking during TX.

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

10 years agoMFC r261824:
eadler [Sun, 16 Feb 2014 02:33:59 +0000 (02:33 +0000)]
MFC r261824:
libutil/pw_util.3: Fix two prototypes.

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

10 years agoMFC: r261611
brueffer [Fri, 14 Feb 2014 08:29:00 +0000 (08:29 +0000)]
MFC: r261611

Add some context for the "kldload sem" command; minor other improvements.

PR: 183650
Submitted by: Bjorn Heidotting

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

10 years agoMFC: r261584
brueffer [Fri, 14 Feb 2014 08:20:32 +0000 (08:20 +0000)]
MFC: r261584

In IPv6 code examples, use the correct v6 socket.

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

10 years agoMFC r261597, r261598 and r261599:
hselasky [Fri, 14 Feb 2014 07:30:59 +0000 (07:30 +0000)]
MFC r261597, r261598 and r261599:

Apple touchpad manual page fixes:
- Add manual page for wsp driver
- Update atp driver manual page
- Install atp manual page for all platforms

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

10 years agoMFC r259544, r259545, r259546, r259547, r259812, r259939, r260219, r260542,
kevlo [Fri, 14 Feb 2014 03:45:49 +0000 (03:45 +0000)]
MFC r259544, r259545, r259546, r259547, r259812, r259939, r260219, r260542,
    r261118, r261124, r261330:

- Add support for the MediaTek/Ralink RT3593 chipset.
- Various minor USB WLAN fixes and improvements.

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

10 years agoMFC 261861
davidcs [Fri, 14 Feb 2014 02:48:14 +0000 (02:48 +0000)]
MFC 261861
check for defrag only when bus_dmamap_load_mbuf_sg() returns EFBIG. Comment in
qla_hw_send is moot.

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

10 years agoMFC 260207
gnn [Fri, 14 Feb 2014 00:26:30 +0000 (00:26 +0000)]
MFC 260207

Convert #defines to enums so that the values are visible in the debugger.

Requested by: gibbs

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

10 years agoMFC r261081, r261133, and r261615
asomers [Thu, 13 Feb 2014 22:19:24 +0000 (22:19 +0000)]
MFC r261081, r261133, and r261615

r261081
Replace the old unix_seqpacket and unix_seqpacket_exercise
tests, which were a little broken and not automatable, with
unix_seqpacket_test.  It's coverage is a superset of the old
tests and it uses ATF.  It includes test cases for bugs
kern/185813 and kern/185812.

r261133
Fix the Makefiles so that the tests I submitted in r261081 will
actually get built.

r261615
tests/sys/Makefile
use TESTS_SUBDIRS for kern instead of SUBDIRS.  I don't
think it makes a difference in this case, but
TESTS_SUBDIRS is generally correct for subdirectories
that contain tests.

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

10 years agoMFC r261132
asomers [Thu, 13 Feb 2014 19:46:48 +0000 (19:46 +0000)]
MFC r261132

Fix the build so -DNO_TESTS is passed in various phases that don't require
tests in order to build or install.  Crucially, don't try to install tests
during the lib32 install phase.  This commit supersedes r261081, which fixed
the lib32 install phase problem, but didn't fix other phases.

Submitted by: Garrett Cooper
Reviewed by: sjg

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

10 years agoMFC: r261566
brueffer [Thu, 13 Feb 2014 09:24:46 +0000 (09:24 +0000)]
MFC: r261566

Use CAP_EVENT instead of the deprecated CAP_POLL_EVENT.

PR: 185382 (based on)
Submitted by: Loganaden Velvindron
Reviewed by: pjd

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

10 years agoMFC r257600:
markj [Thu, 13 Feb 2014 04:54:47 +0000 (04:54 +0000)]
MFC r257600:
Initialize the struct tm before handing it to strptime(3).

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

10 years agoMFC r261497:
rmh [Wed, 12 Feb 2014 13:55:30 +0000 (13:55 +0000)]
MFC r261497:

Abort when firmware isn't present in R600+ models.

More details at:
http://anonscm.debian.org/viewvc/kernel/dists/trunk/linux/debian/patches/bugfix/all/radeon-firmware-is-required-for-drm-and-kms-on-r600-onward.patch?revision=20909&view=co

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

10 years agoMFC r261680:
dim [Wed, 12 Feb 2014 07:51:14 +0000 (07:51 +0000)]
MFC r261680:

Pull in r200899 from upstream clang trunk:

  Allow transformation of VariableArray to ConstantArray.

  In the following code:

     struct A { static const int sz; };
     template<class T> void f() { T arr[A::sz]; }

  the array 'arr' is represented as a variable size array in the template.
  If 'A::sz' gets value below in the translation unit, the array in
  instantiation can turn into constant size array.

  This change fixes PR18633.

  Differential Revision: http://llvm-reviews.chandlerc.com/D2688

This fixes "Assertion failed: (T::isKind(*this)), function castAs"
errors, which can occur when building the security/quantis port.

Reported by: ale

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

10 years agoMFC r261507:
hselasky [Wed, 12 Feb 2014 07:18:01 +0000 (07:18 +0000)]
MFC r261507:
Add more quirks for making builtin audio speakers work with more
MacBookPro's. Only tested with MacBookPro 9,2.

Obtained from: Linux

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

10 years agoDocuemnt mount_udf(8) issue.
hrs [Tue, 11 Feb 2014 23:11:11 +0000 (23:11 +0000)]
Docuemnt mount_udf(8) issue.

Submitted by: brueffer

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

10 years agoMFC: r261500
brueffer [Tue, 11 Feb 2014 13:33:03 +0000 (13:33 +0000)]
MFC: r261500

Add a license (1) and do some cleanup.

Approved by: Stefan Bethke (original author, by private mail) (1)

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

10 years agoMFC r260389:
trasz [Tue, 11 Feb 2014 12:01:11 +0000 (12:01 +0000)]
MFC r260389:

Fix a rare "truncated checksums" problem, which manifested like this:

WARNING: icl_pdu_check_data_digest: data digest check failed; got 0xf23b,
should be 0xdb7f23b

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r260083:
trasz [Tue, 11 Feb 2014 11:58:54 +0000 (11:58 +0000)]
MFC r260083:

Fix extremely slow operation with data digests enabled.  This was caused
by receive code waiting for data digest even when the data segment was
empty.  It didn't actually read it, but it waited until those four bytes
become available in the socket buffer, i.e. until any other PDU (e.g. NOP)
came in.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r260255:
trasz [Tue, 11 Feb 2014 11:56:50 +0000 (11:56 +0000)]
MFC r260255:

Properly document -u and -s.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC: r261496
brueffer [Tue, 11 Feb 2014 08:20:45 +0000 (08:20 +0000)]
MFC: r261496

Unbreak mount_udf by passing the correct iovec length into
nmount().  This has been broken since r247861.

PR: bin/186193
Submitted by: Arnot Belohlavek

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

10 years agoMFC: r261487
brueffer [Tue, 11 Feb 2014 08:11:34 +0000 (08:11 +0000)]
MFC: r261487

Add qlxgbe(4) and qlxge(4) to the hardware notes.

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

10 years agoMFC: r261494
brueffer [Tue, 11 Feb 2014 08:08:53 +0000 (08:08 +0000)]
MFC: r261494

Actually install acpi_rapidstart.4.

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

10 years agoMFC: r261339
brueffer [Mon, 10 Feb 2014 22:24:49 +0000 (22:24 +0000)]
MFC: r261339

MLINK ixgbe.4 to {if_ix.4, ix.4}.  An update for ixgbe.4
which deals with the "ix prefix being shared by two drivers"
situation is forthcoming.

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

10 years agoMFC: r261447
brueffer [Mon, 10 Feb 2014 22:16:22 +0000 (22:16 +0000)]
MFC: r261447

Fix a typo.

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

10 years agoMFC r261609:
dim [Mon, 10 Feb 2014 20:25:40 +0000 (20:25 +0000)]
MFC r261609:

Pull in upstream libcxxrt commit 8006101, which makes its cxxabi.h file
compilable just by itself.

PR: kern/184019

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

10 years agoMFC r261522:
wblock [Mon, 10 Feb 2014 17:37:34 +0000 (17:37 +0000)]
MFC r261522:

Describe the use of a freebsd-boot GPT partition, brought up by Scot
Hetzel <swhetzel@gmail.com> on the -doc mailing list.

Also modify the Author section to be clear that I wrote the man page,
not gptboot.

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

10 years agoMFC r261515:
mav [Mon, 10 Feb 2014 16:29:50 +0000 (16:29 +0000)]
MFC r261515:
Fix I/O freezes in some cases, caused by r257916.

Delaying isp_reqodx update, we should be ready to update it every time
we read it.  Otherwise requests using several indexes may be requeued
ndefinitely without ever updating the variable.

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

10 years agoMFC r261400:
ae [Mon, 10 Feb 2014 15:23:40 +0000 (15:23 +0000)]
MFC r261400:
  Take exclusive lock only when lle isn't NULL. We don't need write access
  to lle in most cases.

MFC r261583:
  Unlock entry before retry.

Sponsored by: Yandex LLC

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

10 years agoRun ldconfig(8) rc script before building ports so
gjb [Mon, 10 Feb 2014 07:16:46 +0000 (07:16 +0000)]
Run ldconfig(8) rc script before building ports so
ld-elf.so.hints exists for pkg(8).

This is a direct commit to stable/10 as generate-release.sh
does not exist in head/.

PR: 186554
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r260871:
adrian [Mon, 10 Feb 2014 06:29:05 +0000 (06:29 +0000)]
MFC r260871:

  If the flowid is available for the mbuf that finalised the creation
  of a syncache connection, copy it into the inp_flowid field.

  Without this, an incoming TCP connection won't have an inp_flowid marked
  until some data comes in, and this means that things like the per-CPU
  TCP timer option will choose a different CPU for the timer work.
  (It also means that if one grabbed the flowid via an ioctl from userland,
  it won't be available until some data has been received.)

Sponsored by: Netflix, Inc.

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

10 years agoMFC r260553 (by theraven):
dim [Sun, 9 Feb 2014 00:34:21 +0000 (00:34 +0000)]
MFC r260553 (by theraven):

Add missing C++11 typeinfos to the libcxxrt version script.

PR: 185663

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

10 years agoMFC r261354:
kib [Sat, 8 Feb 2014 15:51:24 +0000 (15:51 +0000)]
MFC r261354:
In _pthread_kill(), if passed pthread is current thread, do not send
the signal second time, by adding the missed else before if statement.

PR: threads/186309

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

10 years agoMFC r261505:
hselasky [Fri, 7 Feb 2014 07:18:52 +0000 (07:18 +0000)]
MFC r261505:
Fix a regression issue. Contiguous single segment allocations above
PAGE_SIZE bytes should only use one USB page structure. Fixes a
problem with some external drivers.

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

10 years agoMFC: 261291
gnn [Fri, 7 Feb 2014 04:34:04 +0000 (04:34 +0000)]
MFC: 261291

The timestamp bit is number 17, and not number 9, in the stat error
field of the receive descriptor.

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

10 years agoMFC r260949:
mav [Fri, 7 Feb 2014 04:09:15 +0000 (04:09 +0000)]
MFC r260949:
Make comconsole options set before its activation to be remembered.

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

10 years agoMFC r261449:
mav [Fri, 7 Feb 2014 04:02:14 +0000 (04:02 +0000)]
MFC r261449:
Fix lock acquisition in case no request space available, missed in r260097.

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

10 years agoMFC r261080:
kib [Thu, 6 Feb 2014 19:47:17 +0000 (19:47 +0000)]
MFC r261080:
The posix_fallocate(2) syscall should return error number on error,
without modifying errno.

MFC r261290:
The posix_madvise(3) and posix_fadvise(2) should return error on
failure, same as posix_fallocate(2).

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

10 years agoMFC r260702 (by melifaro):
ae [Thu, 6 Feb 2014 10:48:55 +0000 (10:48 +0000)]
MFC r260702 (by melifaro):
  Fix ipfw fwd for IPv4 traffic broken by r249894.

  Problem case:
  Original lookup returns route with GW set, so gw points to
  rte->rt_gateway.
  After that we're changing dst and performing lookup another time.
  Since fwd host is most probably directly reachable, resulting
  rte does not contain rt_gateway, so gw is not set. Finally, we
  end with packet transmitted to proper interface but wrong
  link-layer address.

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

10 years agoMFC r261432
rpaulo [Thu, 6 Feb 2014 02:12:39 +0000 (02:12 +0000)]
MFC r261432
 Fix the definition of hg_cmd.

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

10 years agoMFC r261260, r261262, r261315 and r261343:
hselasky [Wed, 5 Feb 2014 08:40:02 +0000 (08:40 +0000)]
MFC r261260, r261262, r261315 and r261343:
Add support for trackpads found in Apple MacBook products. While at it
add some missing devd entries.

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

10 years agoMFC r258787:
eadler [Tue, 4 Feb 2014 16:29:30 +0000 (16:29 +0000)]
MFC r258787:
r258780 should not have applied to .S files.

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

10 years agoMFC r260903:
hselasky [Tue, 4 Feb 2014 10:29:23 +0000 (10:29 +0000)]
MFC r260903:
Add support for GPS ports to UHSO driver.

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

10 years agoMFC r260315:
hselasky [Tue, 4 Feb 2014 10:18:29 +0000 (10:18 +0000)]
MFC r260315:
Implement two new libusb API functions.

PR: usb/185454

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

10 years agoMFC r261228:
hselasky [Tue, 4 Feb 2014 09:06:28 +0000 (09:06 +0000)]
MFC r261228:
When detaching a [USB] keyboard, keys might still be pressed. Ensure
that all pressed keys are released before completing the USB keyboard
detach. This will prevent so-called "ghost-keys" from appearing after
that the USB device generating the key event(s) has been detached.

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

10 years agoMFC r261224:
hselasky [Tue, 4 Feb 2014 08:59:42 +0000 (08:59 +0000)]
MFC r261224:
Comply to the official LibUSB v1.0 API:
"It is legal to attempt to claim an already-claimed interface."

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

10 years agoMFC r261134:
hselasky [Tue, 4 Feb 2014 08:54:59 +0000 (08:54 +0000)]
MFC r261134:
Add more USB quirks.

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

10 years agoMFC r261123:
hselasky [Tue, 4 Feb 2014 08:47:43 +0000 (08:47 +0000)]
MFC r261123:
Reduce dmesg verbosity.

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

10 years agoMFC r261004, r261005 and r261033:
hselasky [Tue, 4 Feb 2014 08:44:12 +0000 (08:44 +0000)]
MFC r261004, r261005 and r261033:
Adjust the DMA delay logic so that the DMA delay does not become too small.

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

10 years agoMFC r261003:
hselasky [Tue, 4 Feb 2014 08:37:39 +0000 (08:37 +0000)]
MFC r261003:
Add new quirk.

PR: usb/185968

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

10 years agoMFC r258779,r258780,r258787,r258822:
eadler [Tue, 4 Feb 2014 03:36:42 +0000 (03:36 +0000)]
MFC r258779,r258780,r258787,r258822:

Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this
shifts into the sign bit.  Instead use (1U << 31) which gets the
expected result.

Similar to the (1 << 31) case it is not defined to do (2 << 30).

This fix is not ideal as it assumes a 32 bit int, but does fix the issue
for most cases.

A similar change was made in OpenBSD.

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

10 years agoMFC r260996:
mav [Tue, 4 Feb 2014 00:51:06 +0000 (00:51 +0000)]
MFC r260996:
Fix memory and references leak due to unfreed path in case we can't
allocate bus scan CCB.

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

10 years agoMFC r256499:
rpaulo [Mon, 3 Feb 2014 08:04:09 +0000 (08:04 +0000)]
MFC r256499:

Add support for Mercurial repositories.

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

10 years agoMFC: 260791
gnn [Mon, 3 Feb 2014 03:34:36 +0000 (03:34 +0000)]
MFC: 260791

Add a command line argument to turn off blocking waiting for the user
to press Ctrl-C (-b).  This allows tests with tight loops of mcgrabs
that can stress the multicast tables.

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

10 years agoMFC 260796
gnn [Mon, 3 Feb 2014 03:31:35 +0000 (03:31 +0000)]
MFC 260796

Fix various places where we don't properly release a lock

PR: 185043
Submitted by: Michael Bentkofsky

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

10 years agoMFC r260883:
mav [Sun, 2 Feb 2014 00:33:17 +0000 (00:33 +0000)]
MFC r260883:
Remove unneeded and dangerous assignment.  It would probably cause NULL
refererence panic if compiler not optimize it out.

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

10 years agoMFC: Note merge of sendmail 8.14.8.
gshapiro [Sat, 1 Feb 2014 22:38:34 +0000 (22:38 +0000)]
MFC: Note merge of sendmail 8.14.8.

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

10 years agoMFC: Minor changes to force commit these files so new freebsd*.cf files are
gshapiro [Sat, 1 Feb 2014 22:36:46 +0000 (22:36 +0000)]
MFC: Minor changes to force commit these files so new freebsd*.cf files are
     built to use the new sendmail-8.14.8/cf tree.

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

10 years agoMFC: Add missing svn:keywords property to new files
gshapiro [Sat, 1 Feb 2014 22:35:12 +0000 (22:35 +0000)]
MFC: Add missing svn:keywords property to new files

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

10 years agoMFC: Update for sendmail 8.14.8 import
gshapiro [Sat, 1 Feb 2014 22:33:58 +0000 (22:33 +0000)]
MFC: Update for sendmail 8.14.8 import

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

10 years agoMFC: Remove local FreeBSD workaround now that upstream project has a better fix.
gshapiro [Sat, 1 Feb 2014 22:32:45 +0000 (22:32 +0000)]
MFC: Remove local FreeBSD workaround now that upstream project has a better fix.

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

10 years agoMFC: Add new sendmail 8.14.8 file
gshapiro [Sat, 1 Feb 2014 22:29:04 +0000 (22:29 +0000)]
MFC: Add new sendmail 8.14.8 file

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

10 years agoMFC: Merge sendmail 8.14.8
gshapiro [Sat, 1 Feb 2014 22:27:40 +0000 (22:27 +0000)]
MFC: Merge sendmail 8.14.8

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

10 years agoMFC: Update link to vendor import instructions
gshapiro [Sat, 1 Feb 2014 22:05:38 +0000 (22:05 +0000)]
MFC: Update link to vendor import instructions

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

10 years agoMFC r261267: Add libexecinfo.
pluknet [Sat, 1 Feb 2014 10:48:28 +0000 (10:48 +0000)]
MFC r261267: Add libexecinfo.

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

10 years agoMFC r261261: Restore the Nx macro.
pluknet [Sat, 1 Feb 2014 10:41:26 +0000 (10:41 +0000)]
MFC r261261: Restore the Nx macro.

PR: 186205
Submitted by: naddy

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

10 years agoMFC r261138:
rmh [Fri, 31 Jan 2014 20:52:08 +0000 (20:52 +0000)]
MFC r261138:
Accept O_CLOEXEC in shm_open().

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

10 years agoMFC 259823:
jhb [Fri, 31 Jan 2014 17:26:15 +0000 (17:26 +0000)]
MFC 259823:
Fix i386 build.

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

10 years agoMFC r261136:
pfg [Fri, 31 Jan 2014 04:05:25 +0000 (04:05 +0000)]
MFC r261136:

ext2fs: Re-enable reallocblk.

The major corruption issues affecting this code have been fixed.

Tested by: Mike Ma

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

10 years agoMFC r260988, r261034, r261120, r261235:
pfg [Fri, 31 Jan 2014 03:58:36 +0000 (03:58 +0000)]
MFC r260988, r261034, r261120,  r261235:

ext2fs: Properly the EXT4_EXTENTS and EXT4_INDEX to the inode flags.

In order to support Ext4 extents we need to pass the Ext4 inode flags
without interfering with the chflags. This is better done by using the
i_flag field in the inode and doing proper translation to the linux
ext4 equivalents.

Solve a potential corruption issue in the dirindex code. The dirindex
code can now be renabled as the problems related to it have been
solved.

Suggested by: bde
Tested by: kevlo

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

10 years agoMFC r261175:
pfg [Fri, 31 Jan 2014 03:38:22 +0000 (03:38 +0000)]
MFC r261175:

binutils: add support for Intel SMAP-related instructions

Add support for stac/clac instructions to manipulate the flag
that controls the behaviour of Intel's Supervisor Mode Access
Prevention (SMAP) feature.

Tested by: dim
Obtained from: OpenBSD

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

10 years agoMFC r261178:
pfg [Fri, 31 Jan 2014 03:30:09 +0000 (03:30 +0000)]
MFC r261178:

gcc: Add support for -Wmissing-prototypes in C++

Support for warnings about missing prototypes in C++ was added by Apple
GCC (Radar 6261539).  Most of the code crept into r260311 so it felt
natural to make use of it.

Obtained from: Apple GCC - 5646

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

10 years agoMFC 261216:
jhb [Thu, 30 Jan 2014 19:09:59 +0000 (19:09 +0000)]
MFC 261216:
Explicitly enable I/O and memory decoding in the bridge's command register
when activating an I/O or memory window on the CardBus bridge.

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

10 years agoMFC r261084:
ae [Thu, 30 Jan 2014 10:53:29 +0000 (10:53 +0000)]
MFC r261084:
  malloc() with M_WAITOK doesn't return NULL.

MFC r261085:
  Fix typo in r261084.
  Add to the gctl_error() an ability to specify error description even
  if numeric error code is already specified. Also by default set
  error code to EINVAL.

  PR: 185852

MFC r261086:
  In gctl_copyin() remove unused error variable.
  geom_alloc_copyin() can't return ENOMEM, so describe its fail as bad
  control request. Add check for NULL pointer in gctl_dump(), since it
  can be NULL when geom_alloc_copyin() failed.

MFC r261089:
  Remove another unneeded NULL check from geom_alloc_copyin().
  Do copyout in case of gctl version mismatch and fix sbuf leak in
  g_ctl_ioctl_ctl().

MFC r261091:
  Always free sbuf in gctl_free().

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

10 years agoUpdate EINVAL description.
pluknet [Thu, 30 Jan 2014 05:35:12 +0000 (05:35 +0000)]
Update EINVAL description.

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

10 years agoMFC r256939
brooks [Wed, 29 Jan 2014 22:06:38 +0000 (22:06 +0000)]
MFC r256939

MFP4:
Change 221767 by rwatson@rwatson_zenith_cl_cam_ac_uk on 2013/02/05 14:18:53

When printing out information on a TLB MOD exception for a user
process (e.g., an attempt to write to a read-only page), report
it as a "write" in the console message, rather than "unknown".

Change 221768 by rwatson@rwatson_zenith_cl_cam_ac_uk on 2013/02/05 14:28:00

Fix post-compile but pre-commit typo in last changeset.

Sponsored by: DARPA/AFRL

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

10 years agoMFC r256937:
brooks [Wed, 29 Jan 2014 22:01:42 +0000 (22:01 +0000)]
MFC r256937:

MFP4:
Change 231031 by brooks@brooks_zenith on 2013/07/11 16:22:08

Turn the unused and uncompilable MIPS_DISABLE_L1_CACHE define in
cache.c into an option and when set force I- and D-cache line
sizes to 0 (the latter part might be better as a tunable).

Fix some casts in an #if 0'd bit of code which attempts to
disable L1 cache ops when the cache is coherent.

Sponsored by: DARPA/AFRL

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

10 years agoMFC r256945:
brooks [Wed, 29 Jan 2014 21:57:00 +0000 (21:57 +0000)]
MFC r256945:

MFP4:
Change 221669 by bz@bz_zenith on 2013/02/01 12:26:04

Run the initialization for polling earlier along with INTRs
so that we can put network interface into polling mode by default
if DEVICE_POLLING is compiled in and no interrupts are available.

Sponsored by: DARPA/AFRL

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

10 years agoMFC 259782:
jhb [Wed, 29 Jan 2014 21:23:37 +0000 (21:23 +0000)]
MFC 259782:
Add a resume hook for bhyve that runs a function on all CPUs during
resume.  For Intel CPUs, invoke vmxon for CPUs that were in VMX mode
at the time of suspend.

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

10 years agoMFC r256745:
brooks [Wed, 29 Jan 2014 20:48:26 +0000 (20:48 +0000)]
MFC r256745:

MFP4:
Change 227630 by bz@bz_zenith on 2013/04/12 08:50:27

Implement soft reset setting sr in sr and just in case loop
endlessly afterwards.

Sponsored by: DARPA/AFRL

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

10 years agoMFC 260206:
jhb [Wed, 29 Jan 2014 13:35:12 +0000 (13:35 +0000)]
MFC 260206:
Rework the DSDT generation code a bit to generate more accurate info about
LPC devices.  Among other things, the LPC serial ports now appear as
ACPI devices.

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

10 years agoRecord mergeinfo for earlier merge of 257293.
jhb [Wed, 29 Jan 2014 13:22:48 +0000 (13:22 +0000)]
Record mergeinfo for earlier merge of 257293.

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

10 years agoMFC r260267 (by smh), r261042:
mav [Wed, 29 Jan 2014 02:38:25 +0000 (02:38 +0000)]
MFC r260267 (by smh), r261042:
Correct short delete issue in SCSI UNMAP support
Correct missing \n's in xpt_print's
Correct incorrect count being passed to short delete xpt_print

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

10 years agoMFC 260910:
jhb [Tue, 28 Jan 2014 21:56:18 +0000 (21:56 +0000)]
MFC 260910:
- Allow PCI devices that are attached to a driver to be identified by their
  device name instead of just the selector.
- Accept an optional device argument to -l to restrict the output to only
  listing details about a single device.  This is mostly useful in
  conjunction with other flags like -e or -c to allow a user to query
  details about a single device.

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

10 years agoMerge /head:261072: Remove WITHOUT_ATF from src.conf.5
skreuzer [Tue, 28 Jan 2014 15:15:13 +0000 (15:15 +0000)]
Merge /head:261072: Remove WITHOUT_ATF from src.conf.5

Approved by: hrs (mentor)

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

10 years agoMFC: r261146
ache [Tue, 28 Jan 2014 13:29:54 +0000 (13:29 +0000)]
MFC: r261146

Bad timespec_subtract() calculations produce negative tv_nsec on i386
which cause EINVAL returned from nanosleep() which cause loop in
cron_sleep() and making all cron jobs to start about 30 seconds earlier
(which cause f.e. logfiles rotation by newsyslog delayed by 1 hour).

Use simple and proved calculations from kernel's timespecsub() instead.

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

10 years agoMFC r261162:
dim [Tue, 28 Jan 2014 08:07:19 +0000 (08:07 +0000)]
MFC r261162:

Pull in r195679 from upstream llvm trunk:

  Don't use nopl in cpus that don't support it.

  Patch by Mikulas Patocka. I added the test. I checked that for cpu names that
  gas knows about, it also doesn't generate nopl.

  The modified cpus:
  i686 - there are i686-class CPUs that don't have nopl: Via c3, Transmeta
 Crusoe, Microsoft VirtualBox - see
 https://bbs.archlinux.org/viewtopic.php?pid=775414
  k6, k6-2, k6-3, winchip-c6, winchip2 - these are 586-class CPUs
  via c3 c3-2 - see https://bugs.archlinux.org/task/19733 as a proof that
 Via c3 and c3-Nehemiah don't have nopl

PR: bin/185777

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

10 years agoMFC r260485,260496:
ae [Tue, 28 Jan 2014 00:30:17 +0000 (00:30 +0000)]
MFC r260485,260496:
  Remove extra nesting from X_ip6_mforward() function.
  Also remove disabled definitions from ip6_mroute.h.

  PR: 185148

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

10 years agoMerge 261024: fix PIM input regression.
glebius [Mon, 27 Jan 2014 09:33:30 +0000 (09:33 +0000)]
Merge 261024: fix PIM input regression.

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

10 years agoMerged /head:r256510,256512,257376,257469,260052:
glebius [Mon, 27 Jan 2014 08:15:21 +0000 (08:15 +0000)]
Merged /head:r256510,256512,257376,257469,260052:

  Make 'netstat -i' use getifaddrs(3) instead of kvm(3).

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