]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r281549:
kib [Wed, 22 Apr 2015 10:59:05 +0000 (10:59 +0000)]
MFC r281549:
Implement support for -z global linker option.

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

9 years agoMFC r281548:
kib [Wed, 22 Apr 2015 10:57:00 +0000 (10:57 +0000)]
MFC r281548:
Implement support for binary to request specific stack size for the
initial thread.

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

9 years agoFix r281843 mis-merge.
pluknet [Wed, 22 Apr 2015 10:25:08 +0000 (10:25 +0000)]
Fix r281843 mis-merge.

Reported by: Thomas Mueller tmueller at sysgo com

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

9 years agoMFC revisions 277693,278335,280382-280385,280923-280926,280931,
dteske [Wed, 22 Apr 2015 01:08:40 +0000 (01:08 +0000)]
MFC revisions 277693,278335,280382-280385,280923-280926,280931,
280933-280939,280974-280976,281002,281009,281081,281176-281180,
281271,281275,281616 (described in-breif below):
r277693: Font fix (des)
r278335: Revert that
r280382: Whitespace, comments, and copyright update
r280383: Prevent inadvertent bootlock condition
r280384: Increase max passowrd length from 16 to 255 chars
r280385: Add missing variable hints to loader.conf(5) defaults
r280923: Whitespace
r280924: Comments
r280925: Optimize bootmsg to use fg/bg/me from screen.4th
r280926: Whitespace and cleanup
r280931: Comments
r280933: Move beastie to logo-*.4th; brands to brand-*.4th
r280934: Add remainder of supported ANSI escape sequences
r280935: Securely overwrite (zero) user input after password checks
r280936: Use equals for ASCII double frames
r280937: Solve dreaded "dictionary full" issue
r280938: Add "GELI Passphrase:" prompt to boot loader
r280939: Revert that (premature commit)
r280974: Use fg/b/me from screen.4th instead of literals
r280975: Eliminate literal escape sequences from *.4th
r280976: Use ^[[m mode-ending versus ^[[37m
r281002: Install newly added brand-*.4th and logo-*.4th files (jkim)
r281009: Revert .PATH changes to fix mips build (jkim)
r281081: Make sure forth manpages are only installed once (bapt)
r281176: Back to previous mode-endings based on feedback
r281177: Back to previous mode-endings based on feedback
r281178: Back to previous mode-endings based on feedback
r281179: Back to previous mode-endings based on feedback
r281180: Eliminate literal escape sequences from *.rc
r281271: Fix a bootlock condition if loader_version is set
NB: Commit message of r281271 has a typo, s/_logo/_version/
r281275: Re-do proper mode-endings
r281616: Add "GELI Passphrase:" prompt to boot loader

Relnotes: Added "GELI Passphrase:" prompt to boot loader

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

9 years agoMFC r281670, r281703:
pfg [Wed, 22 Apr 2015 00:38:11 +0000 (00:38 +0000)]
MFC r281670, r281703:
Drop experimental ext2fs dir_index support.

The htree directory index is a highly desirable feature for research
purposes and was meant to improve performance in our ext2/3 driver.
Unfortunately our implementation has two problems:

- It never really delivered any performance improvement.
- It appears to corrupt the filesystem in undetermined circumstances.

Strictly speaking dir_index is not required for read/write support in
ext2/3 and our limited ext4 support still works fine without it.

Regain stability in the ext2 driver by removing it. We may need it back
(fixed) if we want to support encrypted ext4 support but thanks to the
wonders of version control we can always revert this change and bring it
back.

PR: 191895
PR: 198731
PR: 199309

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

9 years agoMFC r270155, r274490, r274593, r274607
garga [Tue, 21 Apr 2015 17:02:55 +0000 (17:02 +0000)]
MFC r270155, r274490, r274593, r274607

Add native-xtools target to stable/10

Differential Revision: https://reviews.freebsd.org/D2044
Reviewed by: sbruno@
Approved by: sbruno@
Sponsored by: Netgate

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

9 years agoDocument SA-15:07, SA-15:08, SA-15:09.
gjb [Tue, 21 Apr 2015 16:54:21 +0000 (16:54 +0000)]
Document SA-15:07, SA-15:08, SA-15:09.

Sponsored by: The FreeBSD Foundation

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

9 years agoReplace LDFLAGS by LDADD to fix sort build with -DNO_SHARED
garga [Tue, 21 Apr 2015 15:47:00 +0000 (15:47 +0000)]
Replace LDFLAGS by LDADD to fix sort build with -DNO_SHARED

Differential Revision: https://reviews.freebsd.org/D2044
Reviewed by: sbruno@
Approved by: sbruno@
Sponsored by: Netgate

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

9 years agoMFC r281605,281768:
brooks [Tue, 21 Apr 2015 14:22:45 +0000 (14:22 +0000)]
MFC r281605,281768:

r281605:
Fix a minor function definition inconsistancy.

r281768:
Bump doc date missed in r281605.

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

9 years agoMFC r280347: Remove MAXBSIZE use from drivers where it has nothing to do.
mav [Tue, 21 Apr 2015 11:27:50 +0000 (11:27 +0000)]
MFC r280347: Remove MAXBSIZE use from drivers where it has nothing to do.

In some cases limits are just not needed, in others -- DFLTPHYS is the
right constant to use instead.

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

9 years agoMFC r278402
alc [Mon, 20 Apr 2015 17:43:36 +0000 (17:43 +0000)]
MFC r278402
  Preset the object's color, or alignment, to maximize superpage usage.

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

9 years agoMFC r279400
alc [Mon, 20 Apr 2015 17:36:43 +0000 (17:36 +0000)]
MFC r279400
  Eliminate a variable that became unused when VFS_LOCK_GIANT() was
  eliminated.

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

9 years agoMFC r280919: wordexp: Explicitly pass along IFS.
jilles [Sun, 19 Apr 2015 13:51:25 +0000 (13:51 +0000)]
MFC r280919: wordexp: Explicitly pass along IFS.

Per Austin group issue #884, sh should not import IFS from the environment
but always set it to $' \t\n'. For wordexp(), however, it is documented and
useful for it to use IFS from the environment.

Since sh currently imports IFS from the environment, this change has no
functional effect.

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

9 years agoMFC r280830: wordexp(): Add testcase for non-default IFS in environment.
jilles [Sun, 19 Apr 2015 13:46:13 +0000 (13:46 +0000)]
MFC r280830: wordexp(): Add testcase for non-default IFS in environment.

The non-default IFS is expected to be used.

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

9 years agoMFC r281082: fts: Don't return FTS_SLNONE if it's not a symlink (if race).
jilles [Sun, 19 Apr 2015 13:28:32 +0000 (13:28 +0000)]
MFC r281082: fts: Don't return FTS_SLNONE if it's not a symlink (if race).

When following symlinks, fts returned FTS_SLNONE when fstatat(flag=0)
failed, but a subsequent fstatat(flag=AT_SYMLINK_NOFOLLOW) succeeded. This
incorrectly triggered if a filename existed to be read from the directory,
was deleted before the fstatat(flag=0) and created again after the
fstatat(flag=0).

Fix this by only returning FTS_SLNONE if the result from
fstatat(flag=AT_SYMLINK_NOFOLLOW) is actually a symlink. If it is not a
symlink, treat it as if fstatat(flag=0) succeeded.

PR: 196724

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

9 years agoMFC r281462:
kib [Sun, 19 Apr 2015 08:31:26 +0000 (08:31 +0000)]
MFC r281462:
Define capabilities bits from the revision 007 of the document 302223.

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

9 years agoMFC r280688 (by ru):
pluknet [Sun, 19 Apr 2015 07:49:39 +0000 (07:49 +0000)]
MFC r280688 (by ru):

Corrected descriptions of net.inet.icmp.icmplim and icmplim_output.

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

9 years agoMFC r274933 (by bapt), r281470:
pluknet [Sun, 19 Apr 2015 07:46:32 +0000 (07:46 +0000)]
MFC r274933 (by bapt), r281470:

r274933 - Ta is only allowed with Bl -column not in Bl -item
r281470 - Remove obsolete bits about maximum number of file systems.

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

9 years agoMFC r260571: fts: Stat things relative to the directory fd, if possible.
jilles [Sat, 18 Apr 2015 21:31:36 +0000 (21:31 +0000)]
MFC r260571: fts: Stat things relative to the directory fd, if possible.

As a result, the kernel needs to process shorter pathnames if fts is not
changing directories (if fts follows symlinks (-L option to utilities), fts
cannot open "." or FTS_NOCHDIR was specified).

Side effect: If pathnames exceed PATH_MAX, [ENAMETOOLONG] is not hit at the
stat stage but later (opendir or application fts_accpath) or not at all.

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

9 years agoMFC r281441:
rpaulo [Sat, 18 Apr 2015 21:26:47 +0000 (21:26 +0000)]
MFC r281441:
  Add support for controlling the trackpoint when Synaptics is enabled.

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

9 years agoMFC r281440:
rpaulo [Sat, 18 Apr 2015 21:24:46 +0000 (21:24 +0000)]
MFC r281440:

  Improve Synaptics support for newer touchpads.

  Enable two finger scrolling by default and disable the edge scrolling if
  the touchpad has no physical zone for it.  Disable directional scrolling
  by default to avoid using extended buttons as scroll buttons.

  Add support for ClickPad.  On Lenovo laptops, this is the button
  reported when one presses the touchpad.

  While there, fix a problem where the extended buttons were not reporting
  the button release event correctly: we need to save the state of the
  buttons and report it to sysmouse until we receive a packet from the
  touchpad indicating the button has been released.  This makes it
  possible to use an extended button to resize a window.  On Lenovo
  laptops, the major buttons are actually reported as extended buttons.

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

9 years agoMFC r281406:
rpaulo [Sat, 18 Apr 2015 21:22:26 +0000 (21:22 +0000)]
MFC r281406:
  netmap: improve the netmap attach message on FreeBSD.

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

9 years agoMFC: r281396, r281475
jkim [Sat, 18 Apr 2015 08:01:12 +0000 (08:01 +0000)]
MFC: r281396, r281475

Merge ACPICA 20150410.

Relnotes: yes

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

9 years agoMFC r280206:
eadler [Fri, 17 Apr 2015 18:33:59 +0000 (18:33 +0000)]
MFC r280206:

Implement pax -O option to permit limiting a PAX archive to a single volume.

-O Force the archive to be one volume.  If a volume ends prematurely, pax will
not prompt for a new volume.

PR: 198481

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

9 years agoMFC of r280785, r280871, r280872, r281510, r218511 - callout fixes.
rrs [Fri, 17 Apr 2015 15:39:42 +0000 (15:39 +0000)]
MFC of r280785, r280871, r280872, r281510, r218511 - callout fixes.
Sponsored by:   Netflix Inc.

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

9 years agoMFC r272378:
markj [Thu, 16 Apr 2015 19:09:25 +0000 (19:09 +0000)]
MFC r272378:
Add net.inet.icmp.tstamprepl.

PR: 193689

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

9 years agoMFC r281225:
markj [Thu, 16 Apr 2015 19:04:38 +0000 (19:04 +0000)]
MFC r281225:
Add B_KVAALLOC and B_UNMAPPED to the buf flag name list.

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

9 years agoMFC 280222:
jhb [Thu, 16 Apr 2015 15:09:46 +0000 (15:09 +0000)]
MFC 280222:
Clear an mbuf's external storage flags in m_extaddref(). They are cleared
in other places that set the external storage type (ext_type) such as
m_cljset(), m_extadd(), mb_ctor_clust(), and vn_sendfile().

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

9 years agoMFC: r277328:
allanjude [Thu, 16 Apr 2015 00:44:05 +0000 (00:44 +0000)]
MFC: r277328:
Fix minor syntax and grammar errors in the markup of the ee(1) man page

Approved by: eadler (mentor, implicit)
Sponsored by: ScaleEngine Inc.

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

9 years agoMFC: r280191:
allanjude [Thu, 16 Apr 2015 00:39:16 +0000 (00:39 +0000)]
MFC: r280191:
Document that nextboot(8) doesn't work as expected with ZFS

Approved by: eadler (mentor, implicit)
Sponsored by: ScaleEngine Inc.

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

9 years agoMFC: r272135, r272174
allanjude [Thu, 16 Apr 2015 00:37:05 +0000 (00:37 +0000)]
MFC: r272135, r272174
Update man(1) to list the different sections of the manual

Approved by: eadler (mentor, implicit)
Sponsored by: ScaleEngine Inc.

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

9 years agoMFC: r281209:
allanjude [Thu, 16 Apr 2015 00:34:41 +0000 (00:34 +0000)]
MFC: r281209:
Fix missing AUTHOR section for jot(1), rs(1), and lam(1)

Approved by: eadler (mentor, implicit)
Sponsored by: ScaleEngine Inc.

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

9 years agoMFC: r266774:
allanjude [Thu, 16 Apr 2015 00:31:51 +0000 (00:31 +0000)]
MFC: r266774:
improve ifconfig(8) man page by describing special behaviour of -l ether

MFC: r267141:
Style cleanups on ifconfig.8

Approved by: eadler (mentor, implicit)
Sponsored by: ScaleEngine Inc.

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

9 years agoMFC: r269089:
allanjude [Thu, 16 Apr 2015 00:29:49 +0000 (00:29 +0000)]
MFC: r269089:
Update the freebsd-tips example to use drill instead of dig since bind is no longer in base

Approved by: eadler (mentor, implicit)
Sponsored by: ScaleEngine Inc.

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

9 years agoMFC: r280301:
allanjude [Thu, 16 Apr 2015 00:27:53 +0000 (00:27 +0000)]
MFC: r280301:
Fix grammar in epair(4) man page

Approved by: eadler (mentor, implicit)
Sponsored by: ScaleEngine Inc.

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

9 years agoMFC: r266671, r266725:
allanjude [Thu, 16 Apr 2015 00:24:21 +0000 (00:24 +0000)]
MFC: r266671, r266725:
Merge strcspn.3 into strspn.3 and clarify the explaination

Approved by: eadler (mentor, implicit)
Sponsored by: ScaleEngine Inc.

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

9 years agoMFC r281146.
rakuco [Wed, 15 Apr 2015 22:07:51 +0000 (22:07 +0000)]
MFC r281146.

bthidd: Remove unused macros from hid.c.

ASIZE() was never used, and min() stopped being used in r207812.

Differential Revision: https://reviews.freebsd.org/D2230
Reviewed by: emax
Approved by: emax

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

9 years agoMFC r281116.
rakuco [Wed, 15 Apr 2015 22:02:52 +0000 (22:02 +0000)]
MFC r281116.

bthidd: Consider usage ranges when dealing with array inputs.

So far, we were always using HID_USAGE() to determine the Usage ID of a
certain HID report input item. This does not work as intended if a field
is an array and the allowed usages are specified with a usage range, as
HID_USAGE() will return 0. We need to use the field value as an index in
the usage range list in this case instead.

This makes the volume keys in a Microsoft Bluetooth Mobile Keyboard
5000 be properly recognized. The relevant part of the HID report looks
like this:

  0xA1, 0x01,        // Collection (Application)
  0x85, 0x07,        //   Report ID (7)
  0x05, 0x0C,        //   Usage Page (Consumer)
  0x19, 0x00,        //   Usage Minimum (Unassigned)
  0x2A, 0xFF, 0x03,  //   Usage Maximum (0x03FF)
  0x95, 0x01,        //   Report Count (1)
  0x75, 0x10,        //   Report Size (16)
  0x15, 0x00,        //   Logical Minimum (0)
  0x27, 0xFF, 0x03, 0x00, 0x00,  //   Logical Maximum (1023)
  0x81, 0x00,        //   Input (Data,Array,Abs,No Wrap,Linear,Preferred
                     //   State,No Null Position)

When a key such as "volume down" is pressed, the following data is
transferred through Interrupt In:

  0x07 0xEA 0x00

Differential Revision: https://reviews.freebsd.org/D2229

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

9 years agoMFI r257381:
slm [Wed, 15 Apr 2015 21:47:15 +0000 (21:47 +0000)]
MFI r257381:
    Adjust to handle either a 32-bit or 64-bit lun_id_t in printf.

MFC r266615:
    Increase taskqueue thread priority from idle to PRIBIO.

MFC r279253:
    - Copyright to Avago
    - SSU changes
    - SATA ID timeout handling (PR 191348)
    - reset handling changes
    - Bump version to 20.00.00.00-fbsd

MFC r279695:
    Change that should have been done with r279253

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

9 years agoMFC 278325,280866:
jhb [Wed, 15 Apr 2015 16:52:34 +0000 (16:52 +0000)]
MFC 278325,280866:
Revert the IPI startup sequence to match what is described in the
Intel Multiprocessor Specification v1.4.  The Intel SDM claims that

278325:
Revert the IPI startup sequence to match what is described in the
Intel Multiprocessor Specification v1.4.  The Intel SDM claims that
the INIT IPIs here are invalid, but other systems follow the MP
spec instead.

While here, fix the IPI wait routine to accept a timeout in microseconds
instead of a raw spin count, and don't spin forever during AP startup.
Instead, panic if a STARTUP IPI is not delivered after 20 us.

280866:
Wait 100 microseconds for a local APIC to dispatch each startup-related IPI
rather than 20.  The MP 1.4 specification states in Appendix B.2:

  "A period of 20 microseconds should be sufficient for IPI dispatch to
   complete under normal operating conditions".

(Note that this appears to be separate from the 10 millisecond (INIT) and
200 microsecond (STARTUP) waits after the IPIs are dispatched.)  The
Intel SDM is silent on this issue as far as I can tell.

At least some hardware requires 60 microseconds as noted in the PR, so
bump this to 100 to be on the safe side.

PR: 196542, 197756

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

9 years agoMFC r281272:
kib [Wed, 15 Apr 2015 06:59:53 +0000 (06:59 +0000)]
MFC r281272:
Explain that vm_page_array is mapped to describe the memory, not the
memory itself.  Provide the formula to calculate the number of
required page tables.  Correct the size of the struct vm_page for
non-PAE case.

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

9 years agoMFC r281254:
kib [Wed, 15 Apr 2015 06:56:51 +0000 (06:56 +0000)]
MFC r281254:
Account for the offset of the page run when allocating the
dmar_map_entry.

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

9 years agoMFC r281162, r281451:
dchagin [Wed, 15 Apr 2015 05:13:41 +0000 (05:13 +0000)]
MFC r281162, r281451:

Use flexible array for per cpu uma_cache to avoid allocating
an extra struct uma_cache.

PR: 199169

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

9 years agoMFC 278474,278476,280279:
jhb [Tue, 14 Apr 2015 20:05:26 +0000 (20:05 +0000)]
MFC 278474,278476,280279:
Expand the bitcount*() API and use it to implement CPU_COUNT for cpusets.

278474:
Use __builtin_popcnt() to implement a BIT_COUNT() operation for bitsets and
use this to implement CPU_COUNT() to count the number of CPUs in a cpuset.

278476:
Use __builtin_popcountl() instead of __builtin_popcount().

280279:
Expand the bitcount* API to support 64-bit integers, plain ints and longs
and create a "hidden" API that can be used in other system headers without
adding namespace pollution.
- If the POPCNT instruction is enabled at compile time, use
  __builtin_popcount*() to implement __bitcount*(), otherwise fall back
  to software implementations.
- Use the existing bitcount16() and bitcount32() from <sys/systm.h> to
  implement the non-POPCNT __bitcount16() and __bitcount32() in
  <sys/types.h>.
- For the non-POPCNT __bitcount64(), use a similar SWAR method on 64-bit
  systems.  For 32-bit systems, use two __bitcount32() operations on the
  two halves.
- Use __bitcount32() to provide a __bitcount() that operates on plain ints.
- Use either __bitcount32() or __bitcount64() to provide a
  __bitcountl() that operates on longs.
- Add public bitcount*() wrappers for __bitcount*() for use in the kernel
  in <sys/libkern.h>.
- Use __bitcountl() instead of __builtin_popcountl() in BIT_COUNT().

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

9 years agoMFC r281181, r281182;
pfg [Tue, 14 Apr 2015 18:57:50 +0000 (18:57 +0000)]
MFC r281181, r281182;

sort(1): Cleanups and a small memory leak.
Remove custom getdelim(3) and fix a small memory leak.

Obtained from:  OpenBSD

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

9 years agoMFC r281320:
pfg [Tue, 14 Apr 2015 18:45:30 +0000 (18:45 +0000)]
MFC r281320:
Update documented OEM string in newfs_msdos(8).

This was updated in r203868 to better match the naming scheme
in other OSs that use FAT.

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

9 years agoMFC r281199: Remove hard limits on number of accepting NFS connections.
mav [Tue, 14 Apr 2015 09:58:10 +0000 (09:58 +0000)]
MFC r281199: Remove hard limits on number of accepting NFS connections.

Limits of 5 connections set long ago creates problems for SPEC benchmark.
Make the NFS follow system-wide maximum.

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

9 years agoMFC r280716,280767,280914:
delphij [Tue, 14 Apr 2015 00:32:03 +0000 (00:32 +0000)]
MFC r280716,280767,280914:

 - Correct type for checkAgainst.
 - Staticify flags that are not used outside the file scope.
 - Fix warnings.
 - Constify parameters.

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

9 years agoMFC r266417 (bjk):
delphij [Tue, 14 Apr 2015 00:27:54 +0000 (00:27 +0000)]
MFC r266417 (bjk):

Assorted updates to md5.1

Note that the -c argument's parameter is compared against the digest of
the file, not the file. [1]

Update the "current time" parentheticals for notes about reversing
and colliding the hash functions. [1]

Some general mdoc updates.

PR: docs/188043 [1]
Submitted by: Jamie Landeg-Jones [1]

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

9 years agoMFC: r281335
jkim [Mon, 13 Apr 2015 22:26:11 +0000 (22:26 +0000)]
MFC: r281335

Print 64-bit addresses clearly with leading zeros to avoid confusions.

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

9 years agoMFC: r281331
jkim [Mon, 13 Apr 2015 22:22:32 +0000 (22:22 +0000)]
MFC: r281331

Do not crash when RSDT/XSDT contains an empty entry.

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

9 years agoMFC r281163: Make ctld to not exit on ECONNABORTED on accept().
mav [Mon, 13 Apr 2015 09:18:56 +0000 (09:18 +0000)]
MFC r281163: Make ctld to not exit on ECONNABORTED on accept().

That is not really an error for the main process.

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

9 years agoMFC r280850:
mav [Mon, 13 Apr 2015 09:17:57 +0000 (09:17 +0000)]
MFC r280850:
Periodically wake up threads waiting for vmem(9) resources, so they could
ask for resource reclamation again.

This is kind of dirty hack, but as last resort this is better then stuck
indefinitely because of KVA fragmentation, waiting until some random event
free something sufficient.  OpenSolaris also has this hack in its vmem(9).

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

9 years agoMFC r268182: Initialize page sizes early for ia64.
peter [Mon, 13 Apr 2015 08:35:03 +0000 (08:35 +0000)]
MFC r268182:  Initialize page sizes early for ia64.

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

9 years agoMFC r280834:
markj [Mon, 13 Apr 2015 01:42:24 +0000 (01:42 +0000)]
MFC r280834:
Bound the number of frames traversed when executing the ustackdepth action.

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

9 years agoMFC r281136:
rpaulo [Mon, 13 Apr 2015 01:19:22 +0000 (01:19 +0000)]
MFC r281136:
  ichsmb: add a device id for the Wildcat Point-LP.

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

9 years agoMFC r281383:
eadler [Mon, 13 Apr 2015 01:01:17 +0000 (01:01 +0000)]
MFC r281383:

iwn, wlan: fix typos
Fxi tow typos

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

9 years agoMFC r279862:
markj [Sun, 12 Apr 2015 21:45:34 +0000 (21:45 +0000)]
MFC r279862:
Fix a possible infinite loop in ctf_discard().

MFC r279864:
Use CTF_TYPE_TO_INDEX when comparing type indices to the dynamic type
threshold.

MFC r279869:
If the destination container contains only a forward declaration for the
input type in ctf_add_type(), search its dynamic type list before adding
a new type.

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

9 years agoMFC r280882:
markj [Sun, 12 Apr 2015 21:38:18 +0000 (21:38 +0000)]
MFC r280882:
Fix a misparenthesization that could cause a crash if TERM is not set.

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

9 years agoMFC r278114:
markj [Sun, 12 Apr 2015 21:35:13 +0000 (21:35 +0000)]
MFC r278114:
libdtrace: Let the standard deviation of the empty set be 0.

PR: 197260

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

9 years agoMFC r280998:
markj [Sun, 12 Apr 2015 21:28:54 +0000 (21:28 +0000)]
MFC r280998:
arp(8): add support for printing and deleting entries of type
IFT_INFINIBAND, used in IPoIB.

PR: 151594

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

9 years agoMFC r281113:
dchagin [Sun, 12 Apr 2015 07:24:10 +0000 (07:24 +0000)]
MFC r281113:
Fix wrong kassert msg in uma.

PR:           199172

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

9 years agoMFC r281121:
kib [Sun, 12 Apr 2015 07:05:20 +0000 (07:05 +0000)]
MFC r281121:
Do not call msdosfs_sync() on the read-only msdosfs mounts.

PR:    199152

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

9 years agoMFC r281120:
kib [Sun, 12 Apr 2015 07:03:26 +0000 (07:03 +0000)]
MFC r281120:
Assert that an msdosfs mount is not read-only when FAT modifications
are requested.

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

9 years agoMFC r280819:
kib [Sun, 12 Apr 2015 06:54:53 +0000 (06:54 +0000)]
MFC r280819:
Formatting changes to the pthread_testcancel(3).

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

9 years agoMFC r280818:
kib [Sun, 12 Apr 2015 06:52:43 +0000 (06:52 +0000)]
MFC r280818:
Make kevent(2) a cancellation point.

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

9 years agoMFC r280816:
kib [Sun, 12 Apr 2015 06:45:40 +0000 (06:45 +0000)]
MFC r280816:
Change default visibility for rtld to hidden, on x86.

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

9 years agoMFC r264346 (by alc):
kib [Sun, 12 Apr 2015 06:43:13 +0000 (06:43 +0000)]
MFC r264346 (by alc):
Pass MAP_ALIGNED_SUPER to allocate the whole dso region if its text is large
enough for the superpage mapping.

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

9 years agoMFC 281112, 281166
jpaetzel [Sun, 12 Apr 2015 01:14:43 +0000 (01:14 +0000)]
MFC 281112, 281166

Bug fixes and feature adds

- Remove extranious echo that breaks puppet
- Handle restarts of multiple pflog devices correctly
- Add the ability to perform actions on specific pflog devices.

Typo Fix.

PR: 199150

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

9 years agoMFC r281070:
rpaulo [Sat, 11 Apr 2015 02:23:59 +0000 (02:23 +0000)]
MFC r281070:
  urtwn: blink the LED when scanning.

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

9 years agoMFC: r281171
jkim [Sat, 11 Apr 2015 01:17:19 +0000 (01:17 +0000)]
MFC: r281171

Tidy up battery status information.  Remove a trailing white space.

PR: 193671

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

9 years agoMFC: r276347
rmacklem [Fri, 10 Apr 2015 23:43:01 +0000 (23:43 +0000)]
MFC: r276347
r245508 modified the NFS client's Setattr RPC to
use VA_UTIMES_NULL to indicate whether it should
set the time to the current tod on the server.
This had the side effect of making the NFS client
use the client's timestamp for exclusive create,
starting with FreeBSD9.2.
Unfortunately a bug in some Solaris NFS servers
causes these servers to return NFS_OK to the
Setattr RPC done during exclusive create, but not
actually set the file's mode, leaving the file's
mode == 0.
This patch restores the NFS client's behaviour to
use the server's tod for the exclusive open's
Setattr RPC, to avoid the Solaris server bug and
to restore the pre-FreeBSD9.2 NFS behaviour.

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

9 years agoMFC r272814 (by bapt):
dim [Fri, 10 Apr 2015 20:38:31 +0000 (20:38 +0000)]
MFC r272814 (by bapt):

  Add OBJCOPY to the list of external tools

MFC r272815 (by bapt):

  Fix typo

This should fix the build troubles some people have been seeing after
the MFC of r280980 (in r281289).  Sorry for the breakage.

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

9 years agoMFC r280760:
kib [Fri, 10 Apr 2015 02:23:44 +0000 (02:23 +0000)]
MFC r280760:
Fix the hand after the immediate reboot after the init binary is unlinked.

MFC r280763:
Fix build (with gcc).

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

9 years agoMFC r280757: Remove request sorting from GEOM_MIRROR and GEOM_RAID.
mav [Fri, 10 Apr 2015 00:43:24 +0000 (00:43 +0000)]
MFC r280757: Remove request sorting from GEOM_MIRROR and GEOM_RAID.

When CPU is not busy, those queues are typically empty.  When CPU is busy,
then one more extra sorting is the last thing it needs.  If specific device
(HDD) really needs sorting, then it will be done later by CAM.

This supposed to fix livelock reported for mirror of two SSDs, when UFS
fires zillion of BIO_DELETE requests, that totally blocks I/O subsystem by
pointless sorting of requests and responses under single mutex lock.

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

9 years agoMFC 279951:
jhb [Thu, 9 Apr 2015 21:06:51 +0000 (21:06 +0000)]
MFC 279951:
Simplify string mangling in ifmaybeload().
- Use strlcpy() instead of strcpy().
- Use strlcat() instead of a strlcpy() with a magic number subtracted
  from the length.
- Replace strncmp(..., strlen(foo) + 1) with strcmp(...).

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

9 years agoMFC 279950:
jhb [Thu, 9 Apr 2015 19:51:55 +0000 (19:51 +0000)]
MFC 279950:
Enable bzipfs support in the EFI loader.
- Add bzipfs to the list of supported filesystems in the EFI loader.
- Increase the heap size allocated for the EFI loader from 2MB to 3MB.

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

9 years agoMFC 279949:
jhb [Thu, 9 Apr 2015 19:36:06 +0000 (19:36 +0000)]
MFC 279949:
The System V ABI for amd64 allows functions to use space in a 128 byte
redzone below the stack pointer for scratch space and requires
interrupt and signal frames to avoid overwriting it. However, EFI uses
the Windows ABI which does not support this. As a result, interrupt
handlers in EFI push their interrupt frames directly on top of the
stack pointer. If the compiler used the red zone in a function in the
EFI loader, then a device interrupt that occurred while that function
was running could trash its local variables.  In practice this happens
fairly reliable when using gzipfs as an interrupt during decompression
can trash the local variables in the inflate_table() function
resulting in corrupted output or hangs.

Fix this by disabling the redzone for amd64 EFI binaries. This
requires building not only the loader but any libraries used by the
loader without redzone support.

Thanks to Jilles for pointing me at the redzone once I found the stack
corruption.

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

9 years agoMFC 279929:
jhb [Thu, 9 Apr 2015 19:03:11 +0000 (19:03 +0000)]
MFC 279929:
Allow the EFI loader to work with large kernels and/or modules
(for example, a large mfsroot).  Note that for EFI the kernel and
modules (as well as other metadata files such as splash screens or
memory disk images) are loaded into a statically-sized staging area.
When the EFI loader exits it copies this staging area down to the
location the kernel expects to run at.
- Add bounds checking to the copy routines to fail attempts to access
  memory outside of the staging area.  Previously loading a combined
  kernel + modules larger than the staging size (32MB) would overflow
  the staging area trashing whatever memory was afterwards.  Under
  Intel's OVMF firmware for qemu this resulted in fatal faults in the
  firmware itself.  Now the attempt will fail with ENOMEM.
- Allow the staging area size to be configured at compile time via
  an EFI_STAGING_SIZE variable in src.conf or on the command line.
  It accepts the size of the staging area in MB.  The default size
  remains 32MB.

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

9 years agoMFC 279952:
jhb [Thu, 9 Apr 2015 18:50:41 +0000 (18:50 +0000)]
MFC 279952:
- Align comment for df flags variable in periodic.conf.
- Note default value of df flags variable in periodoc.conf(5).

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

9 years agoMFC 279931:
jhb [Thu, 9 Apr 2015 18:45:03 +0000 (18:45 +0000)]
MFC 279931:
Spin the twiddle in dosfs to give visual feedback for disk I/O on
FAT filesystems as is done for other filesystems in the loader.

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

9 years agoMFC 279892:
jhb [Thu, 9 Apr 2015 17:56:25 +0000 (17:56 +0000)]
MFC 279892:
Resize receive socket buffers that support autosizing when receiving
TCP data via direct data placement.

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

9 years agoMFC r280702: Make swapper release orphaned (lost) GEOM provider.
mav [Thu, 9 Apr 2015 10:11:47 +0000 (10:11 +0000)]
MFC r280702: Make swapper release orphaned (lost) GEOM provider.

Swap device is still reported as enabled, and system still may crash later
if some swapped-out kernel pages were lost with the device, but at least
GEOM and CAM can now release the lost disk, allowing it to be reconnected.

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

9 years agoMFC r280687: Make GEOM_PART work in presence of previous withered self.
mav [Thu, 9 Apr 2015 10:10:05 +0000 (10:10 +0000)]
MFC r280687: Make GEOM_PART work in presence of previous withered self.

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

9 years agoMFC r280686: Report withered providers as such alike to GEOMs.
mav [Thu, 9 Apr 2015 10:08:11 +0000 (10:08 +0000)]
MFC r280686: Report withered providers as such alike to GEOMs.

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

9 years agoMFC r280685: When searching for provider by name, prefer non-withered one.
mav [Thu, 9 Apr 2015 10:05:58 +0000 (10:05 +0000)]
MFC r280685: When searching for provider by name, prefer non-withered one.

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

9 years agoMFC r280980:
dim [Thu, 9 Apr 2015 06:38:32 +0000 (06:38 +0000)]
MFC r280980:

Ensure the cross assembler, linker and objcopy are used for the build32
stage, just like for the regular world stage.

Reviewed by: rodrigc, imp, bapt, emaste
Differential Revision: https://reviews.freebsd.org/D2187

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

9 years agoMFC 280988:
wblock [Thu, 9 Apr 2015 03:30:05 +0000 (03:30 +0000)]
MFC 280988:

Add articles, avoid use of "you", simplify a few sentences.

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

9 years agoMFC r280861:
gjb [Wed, 8 Apr 2015 22:02:15 +0000 (22:02 +0000)]
MFC r280861:
  s/AutoSize/Growfs/ following upstream commit r761.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r279092:
np [Wed, 8 Apr 2015 05:02:21 +0000 (05:02 +0000)]
MFC r279092:

cxgbe(4): there is no need to force an "unimplemented" panic needlessly.
The calls to free_nm_txq and free_nm_rxq are made just a few lines prior
to the panic.

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

9 years agoMFC r278303:
np [Wed, 8 Apr 2015 04:40:04 +0000 (04:40 +0000)]
MFC r278303:

cxgbe(4): Add a minimal if_cxl module that pulls in the real driver as
a dependency.  This ensures "ifconfig cxl<n> ..." does the right thing
even when it's run with no driver loaded.

if_cxl.ko is the tiniest module in /boot/kernel.

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

9 years agoMFC r278485:
np [Wed, 8 Apr 2015 03:55:02 +0000 (03:55 +0000)]
MFC r278485:

cxgbe(4): allow the SET_FILTER_MODE ioctl to change the mode when it's
safe to do so.

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

9 years agoMFC r280959:
kib [Wed, 8 Apr 2015 02:21:44 +0000 (02:21 +0000)]
MFC r280959:
Correctly handle __fcntl_compat symbol for the !SYSCALL_COMPAT case.

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

9 years agoMFC r280308 (by delphij):
kib [Wed, 8 Apr 2015 02:15:13 +0000 (02:15 +0000)]
MFC r280308 (by delphij):
Disable timestamping on devfs read/write operations by default.

MFC r280949:
Refine r280308.  Use seconds precision for devfs timestamps by default.

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

9 years agoMFC r279243-r279246, r279251, r279691, r279700, and r279701.
np [Wed, 8 Apr 2015 01:43:29 +0000 (01:43 +0000)]
MFC r279243-r279246, r279251, r279691, r279700, and r279701.

r279243:
cxgbe(4): request an automatic tx update when a netmap txq idles.

r279244:
cxgbe(4): wait for the hardware to catch up before destroying a netmap txq.

r279245:
cxgbe(4): do not set the netmap rxq interrupts on a hair-trigger.

r279246:
cxgbe(4): set up congestion management for netmap rx queues.

The hw.cxgbe.cong_drop knob controls the response of the chip when
netmap queues are congested.

r279251:
cxgbe(4): allow tx hardware checksumming on the netmap interface.

It is disabled by default but users can set IFCAP_TXCSUM on the
netmap ifnet (ifconfig ncxl0 txcsum) to override netmap and force
the hardware to calculate and insert proper IP and L4 checksums in
outbound frames.

r279691:
cxgbe(4):  provide the correct size of freelists associated with netmap
rx queues to the chip.  This will fix many problems with native netmap
rx on ncxl/ncxgbe interfaces.

r279700:
cxgbe(4): knobs to experiment with the interrupt coalescing timer for
netmap rx queues, and the "batchiness" of rx updates sent to the chip.

These knobs will probably become per-rxq in the near future and will be
documented only after their final form is decided.

r279701:
cxgbe(4): experimental rx packet sink for netmap queues.  This is not
intended for general use.

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

9 years agoMFC r280403:
np [Wed, 8 Apr 2015 01:25:26 +0000 (01:25 +0000)]
MFC r280403:

cxgbe(4): Do not call sbuf_trim on an sbuf with a drain function.

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

9 years agoMFC r279969:
np [Wed, 8 Apr 2015 01:16:19 +0000 (01:16 +0000)]
MFC r279969:

cxgbe(4):  fix if_media handling for T520-BT cards.  1Gbps and 100Mbps
are valid for this card.

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

9 years agoMFC r278372:
np [Wed, 8 Apr 2015 01:09:36 +0000 (01:09 +0000)]
MFC r278372:

cxgbe(4): adapter_full_init is always a synchronized operation.

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

9 years agoMFC r278371:
np [Wed, 8 Apr 2015 01:07:51 +0000 (01:07 +0000)]
MFC r278371:

cxgbe(4): a change to the synchronization rules within the the driver.
This is purely cosmetic because the new rules are already followed.

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

9 years agoMFC r278342:
np [Wed, 8 Apr 2015 01:05:50 +0000 (01:05 +0000)]
MFC r278342:

cxgbe(4): fix a test made while enabling TOE.

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