200328 Commits

Author SHA1 Message Date
bdrewery
c9cf945a00 MFC r287983,r288075:
r287983:
    Replace afterinstall: hack with FILES mechanism.
  r288075:
    Use SHAREOWN/SHAREMODE/SHAREGRP rather than LIB* as these are plain ASCII
    scripts that the linker can load rather than binary library objects.
2015-10-13 18:32:47 +00:00
bdrewery
89e7358cd6 MFC r288230,r288233:
r288230:
    Fix emulation ldscripts not being installed since r131832.
  r288233:
    Fix subdir -j build after r287983 by adding missing dependencies.
2015-10-13 18:31:23 +00:00
hselasky
8096b85f20 MFC r288335:
Store PID after becoming a daemon() and not before to ensure the
correct PID gets written to the PID file.

PR:		203252
2015-10-13 08:21:15 +00:00
hselasky
6cdda4a656 MFC r287592 and r287616:
Add new USB ID.

PR:		202968
2015-10-13 08:14:36 +00:00
hselasky
eedaa9616a MFC r288273:
Fix spelling.

PR:		203249
2015-10-13 08:09:16 +00:00
cy
fe0e54ca0d MFC r288910: On some interfaces, ipfilter drops UDP packets with zero
checkum. This commit fixes that.

PR:		166372
Submitted by:	mk@neon1.net
Reviewed by:	Darren Reed <darrenr@reed.wattle.id.au>
2015-10-13 04:19:49 +00:00
andrew
8fe61b7856 MFC of r288447. Only the Marvell driver has been updated as there is no
support for Raspbetty Pi 2 in stable/10.

An IPI must be cleared before it is handled otherwise next IPI could be
missed. In other words, if a new request for an IPI is sent while the
previous request is being handled but the IPI is not cleared yet, the
clearing of the previous IPI request also clears the new one and the
handling is missed.

There are only three MP interrupt controllers in ARM now. Two of them are
fixed by this change, the third one is correct, probably only just by
accident. The fix is minimalistic as new interrupt framework is awaited.

It was debugged on RPi2 where missing IPI handling together with SCHED_ULE
led to situation in which tdq_ipipending was not cleared and so IPI_PREEMPT
was stopped to be sent. Various odditys were found related to slow system
response time like various events timed out, and slow console response.
2015-10-12 13:20:17 +00:00
ae
687e72445c MFC r288528:
Fix possible segmentation fault.

  PR:		203494
2015-10-12 07:50:27 +00:00
ae
28febffc79 MFC r288529:
Always detach encap handler when reconfiguring tunnel.
2015-10-12 07:49:07 +00:00
peter
6a8fa4cab5 MFC: r269851,r272076,r274884,r282328,r285644,r286503,r286504,r286505,
r286506,r286510,r286561,r286562,r287034

Update svnlite from 1.8.10 to 1.8.14, and the support components:
serf->1.3.8, apr->1.5.2, apr-util->1.5.4, sqlite3->3.8.11.1

This includes syncing the developer templates with head.
2015-10-12 04:57:36 +00:00
kevlo
5ee4ad2f18 MFC r289030:
Add support for Fresco Logic USB 3.0 host controller.

Fresco Logic hosts advertise MSI, but fail to actually generate MSI
interrupts.  We have to disable MSI use.

Reviewed by:	hselasky
2015-10-12 03:21:44 +00:00
ian
ad02bb9b5d MFC 288829
The latest version of lex requires the latest m4 to build, add a dependency
  when running the build-tools stage.

  The requirement is due to the -P flag used when running m4 from usr.bin/lex
  Makefile to generate skel.c.  With the old m4 that fails and the failure is
  ignored, resulting in an empty(-ish) skel.c, which leads to later build
  failures when the misconfigured new lex tool is run.

  This enables building -current (and 10-stable after MFC) on a stable-8
  system again.
2015-10-11 17:59:20 +00:00
kib
c51894a182 MFC r288258:
Make the __bitcount*() functions unconditionally available.
2015-10-10 05:50:42 +00:00
delphij
570b502e08 MFC r288204: MFV r288063:
make dataset property de-registration operation O(1)
2015-10-10 00:17:51 +00:00
dim
d98dd6b5d1 MFC r288953:
Stop linking libc++.so verbosely, there is no need to.
2015-10-09 19:38:53 +00:00
dim
c26acd2a5d MFC r288099:
In binutils' arm-dis.c, avoid left-shifting a negative number.

Submitted by:	dan.mcgregor_usask.ca (Dan McGregor)
Differential Revision: https://reviews.freebsd.org/D3376
2015-10-09 19:36:06 +00:00
bdrewery
a5a007aeef The fmake fix in r289049 was wrong. Need to use a real variable for
.if checks rather than the iteration variable.  Tested this pattern
more (rather than just looking for error) and found the right behavior.
2015-10-09 19:18:02 +00:00
bdrewery
35506ac39e Revert r289043.
r284408 was marked for MFC but is not safe for stable/10 yet due to failing
in bin/sh/tests.
2015-10-08 20:32:44 +00:00
bdrewery
ed87dfa8ad MFC r288201:
Don't recurse with cleanobj.
2015-10-08 19:21:14 +00:00
bdrewery
d419d312bf MFC r288160:
Document bsd.progs.mk and add more variables overrides.
2015-10-08 19:19:56 +00:00
bdrewery
cc2accc436 MFC r288158:
Fix most cases of bsd.progs.mk running duplicate or missing commands.
2015-10-08 19:13:36 +00:00
bdrewery
324678801a Direct commit to fix usage with fmake.
fmake does not have :tW, so use some clever :Q tricks to achieve the
same result.  This won't work if PATH actually contains spaces, but
it's better than not working at all.
2015-10-08 19:10:51 +00:00
bdrewery
fd64b90b59 Direct commit to fix warnings with fmake when building from top-level.
The top-level Makefile.inc1 uses 'make -C release -V' to lookup revision
information, which causes Makefile.vm and Makefile.vagrant to be included.

fmake has 2 issues here:

  1. It doesn't like the empty result of .if ${VAR:Mfoo}
  2. It doesn't like .if ${loop_item} ==
2015-10-08 18:33:47 +00:00
bdrewery
4bffffcaeb MFC r288238:
MFV c3ccd112: Correct off-by-ones in free_exception of emergency buffer
2015-10-08 18:02:43 +00:00
bdrewery
b7538bbddc MFC r288271:
Document bus_get_resource(9).
2015-10-08 18:01:14 +00:00
bdrewery
6548967e9e MFC r284408:
Ensure TESTSDIR is defined before bsd.test.mk is .include'd
2015-10-08 17:55:53 +00:00
bdrewery
425a931cc6 MFC r288198,r288200:
r288198:
    Remove unneeded dependency line.
  r288200:
    Remove unneeded dependency of '.o: .h' that bsd.prog.mk already handles.
2015-10-08 17:49:14 +00:00
bdrewery
e87917047a MFC r288179:
Fix running make in src directories without a Makefile giving confusing
  errors.
2015-10-08 17:45:03 +00:00
cperciva
7b86f845fe MFC r288446: Disable suspend during shutdown. 2015-10-08 15:48:44 +00:00
hselasky
7ff6dd508c MFC r287775:
Update TSO limits to include all headers.

To make driver programming easier the TSO limits are changed to
reflect the values used in the BUSDMA tag a network adapter driver is
using. The TCP/IP network stack will subtract space for all linklevel
and protocol level headers and ensure that the full mbuf chain passed
to the network adapter fits within the given limits. See r287775
for a more detailed description.

Differential Revision:	https://reviews.freebsd.org/D3477
Reviewed by:		rmacklem
2015-10-08 08:30:40 +00:00
hselasky
7ba3672103 MFC r284915:
Make the system queue header file fully usable within C++ programs by
adding macros to define class lists.

This change is backwards compatible for all use within C and C++
programs. Only C++ programs will have added support to use the queue
macros within classes. Previously the queue macros could only be used
within structures.

The queue.3 manual page has been updated to describe the new
functionality and some alphabetic sorting has been done while
at it.

Differential Revision:	https://reviews.freebsd.org/D2745
PR:			200827 (exp-run)
2015-10-08 07:50:50 +00:00
hselasky
71d65f8f78 MFC r287321:
Add new USB quirk.

PR:		202783
2015-10-08 07:31:05 +00:00
hselasky
fd30abe24e MFC r287355, r287772 and r287825:
Add new USB PCI IDs.

PR:		202807
Submitted by:	Dmitry Luhtionov <dmitryluhtionov@gmail.com>
Differential Revision:	https://reviews.freebsd.org/D3665
2015-10-08 07:24:54 +00:00
hselasky
60e5f4dda1 MFC r288180:
Implement support for reading USB quirks from the kernel environment.
Refer to the usb_quirk(4) manual page for more details on how to use
this new feature.

Submitted by:	Maxime Soule <btik-fbsd@scoubidou.com>
PR:		203249
2015-10-08 07:17:35 +00:00
delphij
221f5f4a8e Belately bump __FreeBSD_version after r288572 which makes a change to
zfeature_info.

This is a direct commit to stable/10.
2015-10-08 06:34:12 +00:00
avatar
36b47c3278 MFC r287698: Fixing a memory leak on module unloading. 2015-10-07 09:29:42 +00:00
gjb
61fe868d05 Refine the r287037 entry based on feedback from jilles@.
Sponsored by:	The FreeBSD Foundation
2015-10-07 02:13:02 +00:00
jhb
a68192dcd9 MFC 287870:
Always clear TDB_USERWR before fetching system call arguments.  The
TDB_USERWR flag may still be set after a debugger detaches from a
process via PT_DETACH.  Previously the flag would never be cleared
forcing a double fetch of the system call arguments for each system
call.  Note that the flag cannot be cleared at PT_DETACH time in case
one of the threads in the process is currently stopped in
syscallenter() and the debugger has modified the arguments for that
pending system call before detaching.
2015-10-07 00:50:26 +00:00
jhb
bda8562bdb MFC 287864:
When a process group leader exits, all of the processes in the group are
sent SIGHUP and SIGCONT if any of the processes are stopped.  Currently this
behavior is triggered for any type of process stop including ptrace() stops
and transient stops for single threading during exit() and execve().
Thus, if a debugger is attached to a process in a group when the leader
exits, the entire group can be HUPed.  Instead, only send the signals if a
process in the group is stopped due to SIGSTOP.
2015-10-07 00:33:44 +00:00
jhb
08449d14c7 MFC 287833:
Threads holding a read lock of a sleepable rm lock are not permitted
to sleep.  The rmlock implementation enforces this by disabling
sleeping when a read lock is acquired. To simplify the implementation,
sleeping is disabled for most of the duration of rm_rlock.  However,
it doesn't need to be disabled until the lock is acquired.  If a
sleepable rm lock is contested, then rm_rlock may need to acquire the
backing sx lock.  This tripped the overly-broad assertion.  Fix by
relaxing the assertion around the call to sx_xlock().
2015-10-06 22:28:28 +00:00
gjb
fd0437ce23 Document r286751, tzdata 2015f.
Sponsored by:	The FreeBSD Foundation
2015-10-06 18:51:41 +00:00
gjb
6db33ebb1c Document r288710, sesutil(8) addition.
Add Gandi.net to sponsor.ent.

Sponsored by:	The FreeBSD Foundation
2015-10-06 17:42:37 +00:00
amdmi3
0a831af75f MFC r288120: Fix crash on parsing some inf files 2015-10-06 15:30:41 +00:00
mav
9ce81fb544 MFC r287821: Document NGM_PPPOE_SETMAXP.
Submitted by:   Dmitry Luhtionov <dmitryluhtionov gmail.com>
2015-10-06 13:49:28 +00:00
mav
342fcd5139 MFC r287654: Add support for PPP-Max-Payload PPPoE tag (RFC4638).
Submitted by:   Dmitry Luhtionov <dmitryluhtionov@gmail.com>
2015-10-06 13:10:21 +00:00
gjb
81d5da8e19 Document r288810, ctl(4) updated to support CD-ROMs and other
removable devices.

Sponsored by:	The FreeBSD Foundation
2015-10-05 20:15:18 +00:00
gjb
7a5afd76cc Document r288167, fix kqueue write events for files > 2GB
Sponsored by:	The FreeBSD Foundation
2015-10-05 20:15:16 +00:00
gjb
655f62d3d1 Document r288732, CTL HA reimplementation.
Sponsored by:	The FreeBSD Foundation
2015-10-05 20:15:13 +00:00
gjb
ba36131499 Document r287746, pciconf(8) prefer pciids from ports database,
if present.

Sponsored by:	The FreeBSD Foundation
2015-10-05 20:15:11 +00:00
gjb
d90583a181 Document r287665, account for ashift when gathering buffers to
be written to l2arc device.
Add ClusterHQ to sponsor.ent.

Sponsored by:	The FreeBSD Foundation
2015-10-05 20:15:08 +00:00