]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r277102, r277135.
np [Wed, 8 Apr 2015 01:02:11 +0000 (01:02 +0000)]
MFC r277102, r277135.

r277102:
cxgbe/iw_cxgbe: allow any size during the initial MPA exchange.

r277135:
cxgbe/iw_cxgbe: fix whitespace nit in r277102.

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

9 years agoMFC r276598, r276607.
np [Wed, 8 Apr 2015 00:52:45 +0000 (00:52 +0000)]
MFC r276598, r276607.

r276598:
Add a manual page for cxgbetool.  It is incomplete but definitely
better than nothing.

r276607:
Fix all nits reported by mandoc -Tlint.

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

9 years agoMFC r276729, r276775.
np [Wed, 8 Apr 2015 00:49:53 +0000 (00:49 +0000)]
MFC r276729, r276775.

r276729:
cxgbe/tom: use vmem(9) as the DDP page pod allocator.

r276775:
cxgbe/tom: allocate page pod addresses instead of ppod#.

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

9 years agoMFC r276597:
np [Wed, 8 Apr 2015 00:35:12 +0000 (00:35 +0000)]
MFC r276597:

cxgbe/tom: do not engage the TOE's payload chopper for payload < 2 MSS
or for 10Gbps ports.

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

9 years agoMFC r276728:
np [Wed, 8 Apr 2015 00:13:17 +0000 (00:13 +0000)]
MFC r276728:

cxgbe(4): fix the description of a strange bunch of counters.

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

9 years agoMFC of r280697 and r280698
rrs [Tue, 7 Apr 2015 21:05:52 +0000 (21:05 +0000)]
MFC of r280697 and r280698

Sponsored by: Netflix Inc.

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

9 years agoImprove patch for SA-15:04.igmp to solve a potential buffer overflow.
delphij [Tue, 7 Apr 2015 20:20:24 +0000 (20:20 +0000)]
Improve patch for SA-15:04.igmp to solve a potential buffer overflow.

Fix multiple vulnerabilities of ntp. [SA-15:07]

Fix bsdinstall(8) insecure default GELI keyfile permissions. [SA-15:08]

Fix Denial of Service with IPv6 Router Advertisements. [SA-15:09]

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

9 years agoMFC r281006
davidcs [Tue, 7 Apr 2015 18:04:18 +0000 (18:04 +0000)]
MFC r281006
When an mbuf allocation fails in the receive path, the mbuf containing the received packet is not sent to the host network stack and is reused again on the receive ring.  Remaining received packets in the ring are not processed in that invocation of bxe_rxeof() and defered to the task thread

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

9 years agoMFC r276574:
np [Tue, 7 Apr 2015 17:40:35 +0000 (17:40 +0000)]
MFC r276574:

cxgbe/tom: fix the MSS calculation for IPv6 connections handled by the TOE.

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

9 years agoMFC r276570:
np [Tue, 7 Apr 2015 17:33:51 +0000 (17:33 +0000)]
MFC r276570:

cxgbe/tom: log some more details in send_flowc_wr.

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

9 years agoMFC r275539, r275554.
np [Tue, 7 Apr 2015 17:21:30 +0000 (17:21 +0000)]
MFC r275539, r275554.

r275539:
cxgbe(4): Allow for different pad and pack boundaries for different
adapters.  Set the pack boundary for T5 cards to be the same as the
PCIe max payload size.  The chip likes it this way.

In this revision the driver allocate rx buffers that align on both
boundaries.  This is not a strict requirement and a followup commit
will switch the driver to a more relaxed allocation strategy.

r275554:
cxgbe(4): allow the driver to use rx buffers that do not end on a pack
boundary.

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

9 years agoMFC r275733:
np [Tue, 7 Apr 2015 17:07:30 +0000 (17:07 +0000)]
MFC r275733:

Move KTR_CXGBE from t4_tom.h to adapter.h so that the base if_cxgbe
code can use it too.

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

9 years agoMFH: r281206
brueffer [Tue, 7 Apr 2015 15:34:34 +0000 (15:34 +0000)]
MFH: r281206

Add a missing comma.

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

9 years agoMFC r274456:
np [Tue, 7 Apr 2015 15:32:43 +0000 (15:32 +0000)]
MFC r274456:

Fix some bad interaction between cxgbe(4) and lacp lagg(4) that could
leave a port permanently disabled when a copper cable is unplugged and
then plugged right back in.

lacp_linkstate goes looking for the current ifmedia on a link state
change and it could get stale information from cxgbe(4) on a module
unplug followed by replug.  The fix is to process module events before
link-state events within the driver, and to always rebuild the ifmedia
list on a module change event (instead of rebuilding it lazily).

Thanks to asomers@ for the problem report and detailed analysis to go
with it.

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

9 years agoMFH: r280765
brueffer [Tue, 7 Apr 2015 15:24:37 +0000 (15:24 +0000)]
MFH: r280765

Mention support for 16h family processors, added in r263169.

PR: 198933
Submitted by: isoa@kapsi.fi

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

9 years agoMFC r281094:
kib [Tue, 7 Apr 2015 07:10:44 +0000 (07:10 +0000)]
MFC r281094:
Restore proper error from oshmctl(2), broken by r280323.

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

9 years agoMFC r281071:
kib [Tue, 7 Apr 2015 07:08:35 +0000 (07:08 +0000)]
MFC r281071:
Remove useless initialization.

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

9 years agoMFC 281084
jpaetzel [Tue, 7 Apr 2015 04:21:36 +0000 (04:21 +0000)]
MFC 281084

Fix thinko/copypaste error.

When checking the length of the mutual secret password the variable for
the secret password was used by mistake.  This resulted in ctld never
warning about the length of the mutual secret being wrong even if it was.

Sponsored by: iXsystems

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

9 years agoMFC r280360:
bdrewery [Tue, 7 Apr 2015 02:53:14 +0000 (02:53 +0000)]
MFC r280360:

  Document "none" for VersionAddendum.

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

9 years agoMFC r280233, r280237, r280441
hiren [Mon, 6 Apr 2015 22:41:13 +0000 (22:41 +0000)]
MFC r280233, r280237, r280441

Add connection flowid and flowtype to siftr(4).

Sponsored by: Limelight Networks

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

9 years agoMFC r280387:
pfg [Mon, 6 Apr 2015 19:56:27 +0000 (19:56 +0000)]
MFC r280387:
xlint: update.

Bring some important updates from NetBSD up to about 2008/04/25.
The main feature is initial support for C99.

Obtained from: NetBSD

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

9 years agoMFC r266418, r266448
hiren [Mon, 6 Apr 2015 18:40:50 +0000 (18:40 +0000)]
MFC r266418, r266448

Add the flowtype to the inpcb.
Add -R to netstat to dump RSS/flow information.

Reviewed by: delphij
Relnotes: yes (for r266448)
Sponsored by: Limelight Networks

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

9 years agoMFC r280864:
dim [Mon, 6 Apr 2015 14:50:54 +0000 (14:50 +0000)]
MFC r280864:

Pull in r233552 from upstream libc++ trunk (by Eric Fiselier):

  [libcxx] Fix PR22771 - Support access control SFINAE in the library
  version of is_convertible.

  Summary:
  Currently the conversion check does not take place in a context where
  access control SFINAE is applied. This patch changes the context of
  the test expression so that SFINAE occurs if access control does not
  permit the conversion.

  Related bug: https://llvm.org/bugs/show_bug.cgi?id=22771

  Reviewers: mclow.lists, rsmith, dim

  Reviewed By: dim

  Subscribers: dim, rodrigc, emaste, cfe-commits

  Differential Revision: http://reviews.llvm.org/D8461

This fixes building clang, and other programs using libc++, with newer
versions of gcc (specifically, gcc 4.8 and higher).

Reported by: rodrigc

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

9 years agoMFC r280357:
dim [Mon, 6 Apr 2015 14:45:40 +0000 (14:45 +0000)]
MFC r280357:

Build expr with -fwrapv, since it relies on signed integer wrapping
having defined behavior.

Reported by: rodrigc

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

9 years agoMFC r280393: Reduce priority of ATA/SATA drivers.
mav [Mon, 6 Apr 2015 08:23:06 +0000 (08:23 +0000)]
MFC r280393: Reduce priority of ATA/SATA drivers.

Legacy ata(4) -> BUS_PROBE_LOW_PRIORITY;  more functional ahci(4), siis(4),
mvs(4) -> BUS_PROBE_DEFAULT;  BUS_PROBE_VENDOR leave for vendor drivers.

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

9 years agoMFC r272481.
neel [Mon, 6 Apr 2015 03:16:20 +0000 (03:16 +0000)]
MFC r272481.
Add new fields in the FADT, required by IASL 20140926-64.

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

9 years agoEnsure yacc is built during bootstrap-tools for __FreeBSD_version
dim [Sun, 5 Apr 2015 15:27:56 +0000 (15:27 +0000)]
Ensure yacc is built during bootstrap-tools for __FreeBSD_version
1001506 and earlier, since some of the ACPI tools now reach yacc's old
maximum table limit.  This should fix the Jenkins buildbot, which
apparently runs 10.1-RELEASE.

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

9 years agoMFC r280822: Some cosmetic polishing. No functional change.
mav [Sun, 5 Apr 2015 06:53:29 +0000 (06:53 +0000)]
MFC r280822: Some cosmetic polishing.  No functional change.

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

9 years agoMFC r280342:
kib [Sun, 5 Apr 2015 01:03:11 +0000 (01:03 +0000)]
MFC r280342:
msdosfs: mark unused compat-mount fields.

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

9 years agoMFC r272444 (by jkim):
dim [Sat, 4 Apr 2015 10:17:51 +0000 (10:17 +0000)]
MFC r272444 (by jkim):

  Merge ACPICA 20140926.

MFC r278970 (by jkim):

  Merge ACPICA 20141107 and 20150204.

Approved by: jkim
Relnotes: yes

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

9 years agoMFC r280797:
kib [Sat, 4 Apr 2015 08:06:13 +0000 (08:06 +0000)]
MFC r280797:
Make debug.vmem_check a tunable.  It is useful to set it early.

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

9 years agoMFC r280323:
kib [Sat, 4 Apr 2015 07:59:07 +0000 (07:59 +0000)]
MFC r280323:
Somewhat modernize the SysV shm code.

MFC r280325 (by cognet):
Fix warning for !MAC case.

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

9 years agoMFC r278697 (by alc):
kib [Sat, 4 Apr 2015 07:56:04 +0000 (07:56 +0000)]
MFC r278697 (by alc):
Preset the object's color, or alignment, to maximize superpage usage.

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

9 years agoMFC r258056 (by alc):
kib [Sat, 4 Apr 2015 07:52:12 +0000 (07:52 +0000)]
MFC r258056 (by alc):
Eliminate the gratuitous use of mmap(2) flags from the implementation
of kern_shmat().  Use a simpler approach to determine whether to pass
VMFS_NO_SPACE or VMFS_OPTIMAL_SPACE to vm_map_find().

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

9 years agoMFC r280179,r280180:
bdrewery [Sat, 4 Apr 2015 00:42:09 +0000 (00:42 +0000)]
MFC r280179,r280180:

  r280179:
    Add LIB_CXX so that C++ libraries will use CXX to link.

    This adds some extra dependencies directly to Makefile.inc1 as
    atf is still a prebuild library in stable/10. If r273449 is MFCd
    these can come out.

  r280180:
    Document LIB and LIB_CXX.

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

9 years agoMFC r280870:
bdrewery [Fri, 3 Apr 2015 18:01:51 +0000 (18:01 +0000)]
MFC r280870:

  Fix --one-file-system to include the directory encountered rather than
  excluding it.  This was broken in 3.0.4 (r238856).

Relnotes: yes

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

9 years agoMFC r280178:
bdrewery [Fri, 3 Apr 2015 17:51:37 +0000 (17:51 +0000)]
MFC r280178:

  Unhide linker line for libraries.

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

9 years agoMFC r280177:
bdrewery [Fri, 3 Apr 2015 17:21:30 +0000 (17:21 +0000)]
MFC r280177:

  Remove unneeded handling of undefined NM.

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

9 years agoMFC r278600:
bdrewery [Fri, 3 Apr 2015 17:19:29 +0000 (17:19 +0000)]
MFC r278600:

  Correct and clarify comment for __SMBF.

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

9 years agoMFC r278530:
bdrewery [Fri, 3 Apr 2015 17:16:05 +0000 (17:16 +0000)]
MFC r278530:

  When catopen(3) returns an error, it caches the result of that error from
  r202992. The refcount on the cache entry is not initialized, so any attempt
  to clean the cache will skip over this item since it likely has a >0 value.

  This change is currently a NOP.

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

9 years agoMFC r272291:
bdrewery [Fri, 3 Apr 2015 17:12:24 +0000 (17:12 +0000)]
MFC r272291:

  Document [EPERM] for UNIX sockets.

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

9 years agoMFC r279720
alc [Fri, 3 Apr 2015 16:40:39 +0000 (16:40 +0000)]
MFC r279720
  Correct a typo in vm_object_backing_scan() that originated in r254141.
  Specifically, change a lock acquire into a lock release.

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

9 years agoMFC r280756, r280758: Fix bug on memory allocation error in split method.
mav [Fri, 3 Apr 2015 06:16:20 +0000 (06:16 +0000)]
MFC r280756, r280758: Fix bug on memory allocation error in split method.

While there, use bioq_takefirst() in place where it is convenient.

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

9 years agoMFC r280238
alc [Thu, 2 Apr 2015 19:10:33 +0000 (19:10 +0000)]
MFC r280238
  Fix the root cause of the "vm_reserv_populate: reserv <address> is already
  promoted" panics.

PR: 198163

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

9 years agoMFC r262769:
wblock [Thu, 2 Apr 2015 02:14:58 +0000 (02:14 +0000)]
MFC r262769:

- Clarify usage of the -f option.

MFC r280336:

Describe the behavior when both -f and a message are given.  Pointed out by
Raphael Abreu <raphael.lorenzeto@gmail.com> on freebsd-doc.

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

9 years agoMFC 276724:
jhb [Thu, 2 Apr 2015 01:02:42 +0000 (01:02 +0000)]
MFC 276724:
On some Intel CPUs with a P-state but not C-state invariant TSC the TSC
may also halt in C2 and not just C3 (it seems that in some cases the BIOS
advertises its C3 state as a C2 state in _CST).  Just play it safe and
disable both C2 and C3 states if a user forces the use of the TSC as the
timecounter on such CPUs.

PR: 192316

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

9 years agoMFC 261790:
jhb [Wed, 1 Apr 2015 21:48:54 +0000 (21:48 +0000)]
MFC 261790:
Add support for managing PCI bus numbers.  As with BARs and PCI-PCI bridge
I/O windows, the default is to preserve the firmware-assigned resources.
PCI bus numbers are only managed if NEW_PCIB is enabled and the architecture
defines a PCI_RES_BUS resource type.
- Add a helper API to create top-level PCI bus resource managers for each
  PCI domain/segment.  Host-PCI bridge drivers use this API to allocate
  bus numbers from their associated domain.
- Change the PCI bus and CardBus drivers to allocate a bus resource for
  their bus number from the parent PCI bridge device.
- Change the PCI-PCI and PCI-CardBus bridge drivers to allocate the
  full range of bus numbers from secbus to subbus from their parent bridge.
  The drivers also always program their primary bus register.  The bridge
  drivers also support growing their bus range by extending the bus resource
  and updating subbus to match the larger range.
- Add support for managing PCI bus resources to the Host-PCI bridge drivers
  used for amd64 and i386 (acpi_pcib, mptable_pcib, legacy_pcib, and qpi_pcib).
- Define a PCI_RES_BUS resource type for amd64 and i386.

PR: 197076

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

9 years agoMFC 260973:
jhb [Wed, 1 Apr 2015 21:16:33 +0000 (21:16 +0000)]
MFC 260973:
- Reuse legacy_pcib_(read|write)_config() methods in the QPI pcib driver.
- Reuse legacy_pcib_alloc_msi{,x}() methods in the QPI and mptable pcib
  drivers.

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

9 years agoMFC 278761:
jhb [Wed, 1 Apr 2015 19:48:19 +0000 (19:48 +0000)]
MFC 278761:
Include OBJT_PHYS VM objects in ELF core dumps. In particular this
includes the shared page allowing debuggers to use the signal trampoline
code to identify signal frames in core dumps.

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

9 years agoRevert r280449;
pfg [Wed, 1 Apr 2015 16:17:58 +0000 (16:17 +0000)]
Revert r280449;
Permit multiple arguments for the nonnull attribute.

For the benefit of anyone that may be struggling to port
FreeBSD to gcc 2.8 (or older) avoid using variadic macros.

MFC r280700 (partial);

Bring new attribute:
__result_use_check
Causes a warning to be emitted if a caller of the function
with this attribute does not use its return value. This is
known in gcc as "warn_unused_result" but we considered the
original naming unsuitable for an attribute.

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

9 years agoDocument removal of 10.1-RELEASE QCOW2 virtual machine disk
gjb [Wed, 1 Apr 2015 04:58:08 +0000 (04:58 +0000)]
Document removal of 10.1-RELEASE QCOW2 virtual machine disk
images from FTP, due to a crash-on-boot problem.

Requested by: jhb (months ago), bapt (recently)
Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC 278760:
jhb [Tue, 31 Mar 2015 15:37:24 +0000 (15:37 +0000)]
MFC 278760:
Add two new counters for vnode life cycle events:
- vfs.recycles counts the number of vnodes forcefully recycled to avoid
  exceeding kern.maxvnodes.
- vfs.vnodes_created counts the number of vnodes created by successful
  calls to getnewvnode().

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

9 years agoMFC: r280807
arybchik [Tue, 31 Mar 2015 08:05:29 +0000 (08:05 +0000)]
MFC: r280807

sfxge: fix bug in TSO when a DMA segment has both header and data

Sponsored by:   Solarflare Communications, Inc.

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

9 years agoMFC: 279268
arybchik [Tue, 31 Mar 2015 08:00:20 +0000 (08:00 +0000)]
MFC: 279268

sfxge: add to config files

Sponsored by:   Solarflare Communications, Inc.

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

9 years agoMFC r280172: Improve ATA and SCSI versions printing.
mav [Tue, 31 Mar 2015 07:26:39 +0000 (07:26 +0000)]
MFC r280172: Improve ATA and SCSI versions printing.

There is no "SCSI-6" and "ATA-9", but there is "SPC-4" and "ACS-2".

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

9 years agoMFC r280166:
mav [Tue, 31 Mar 2015 07:21:53 +0000 (07:21 +0000)]
MFC r280166:
Make ATA power management commands to work on SCSI HBAs via PASS THROUGH.

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

9 years agoMFC r280781:
kib [Tue, 31 Mar 2015 01:05:34 +0000 (01:05 +0000)]
MFC r280781:
Make it possible for the signal handler to act on #ss.  Load the
canonical user data segment' selector into %ss when calling the
handler.

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

9 years agoMFC r280780:
kib [Tue, 31 Mar 2015 00:59:30 +0000 (00:59 +0000)]
MFC r280780:
The #ss fault handler erronously does not check for the fault
originated from the return to usermode. #ss must be handled same as
#np.

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

9 years agoMFC r280435:
kib [Tue, 31 Mar 2015 00:57:25 +0000 (00:57 +0000)]
MFC r280435:
When mapping an allocated entry, use the entry size, instead of the
requested size.  If tag restrictions caused split entry, its size is
less then requsted.

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

9 years agoMFC r280434:
kib [Tue, 31 Mar 2015 00:55:12 +0000 (00:55 +0000)]
MFC r280434:
Assert that the mapping loop makes progress.

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

9 years agoRevert accidental(?) change in r280455 and do not compile hwpmc statically
jhb [Mon, 30 Mar 2015 16:28:04 +0000 (16:28 +0000)]
Revert accidental(?) change in r280455 and do not compile hwpmc statically
into GENERIC by default.  This change is not present in HEAD and was not
made in the two commits to HEAD that r280455 merged.

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

9 years agoMFC r280134:
mav [Mon, 30 Mar 2015 07:11:49 +0000 (07:11 +0000)]
MFC r280134:
Report ARAT (APIC-Timer-always-running) feature for virtual CPU.

This makes FreeBSD guest to not avoid using LAPIC timer, preferring HPET
due to worries about non-existing for virtual CPUs deep sleep states.

Benchmarks of usleep(1) on guest and host show such extra latencies:
 - 51us for virtual HPET,
 - 22us for virtual LAPIC timer,
 - 22us for host HPET and
 - 3us for host LAPIC timer.

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

9 years agoMFC r280090: Hide virtio features negotiation messages under bootverbose.
mav [Sun, 29 Mar 2015 07:46:59 +0000 (07:46 +0000)]
MFC r280090: Hide virtio features negotiation messages under bootverbose.

Those messages are noisy, but useless for average user.

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

9 years agoMFC r280640:
gjb [Sat, 28 Mar 2015 05:11:16 +0000 (05:11 +0000)]
MFC r280640:
  Crochet sources moved to a new home; update accordingly.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273445 (by imp):
mav [Fri, 27 Mar 2015 09:32:34 +0000 (09:32 +0000)]
MFC r273445 (by imp):
Add defines for various FIRST PARTY DMA SEND subcommands.

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

9 years agoMFC r270832 (by imp):
mav [Fri, 27 Mar 2015 09:31:28 +0000 (09:31 +0000)]
MFC r270832 (by imp):
Add a few defines and packet types for SATA 3.2 and FPDMA (First Party
DMA).

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

9 years agoMFC r279927: Make DIOCGATTR in device mode handle "GEOM::candelete".
mav [Fri, 27 Mar 2015 09:28:30 +0000 (09:28 +0000)]
MFC r279927: Make DIOCGATTR in device mode handle "GEOM::candelete".

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

9 years agoMFC r280286: Add comment explaining existing powerd behavior on SMP systems.
mav [Fri, 27 Mar 2015 09:01:25 +0000 (09:01 +0000)]
MFC r280286: Add comment explaining existing powerd behavior on SMP systems.

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

9 years agoMFC r280154:
mav [Fri, 27 Mar 2015 08:59:21 +0000 (08:59 +0000)]
MFC r280154:
Report that we may have write cache, and that we do support FLUSH.

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

9 years agoMFC r280133: Increase S/G list size of 32 to 33 entries.
mav [Fri, 27 Mar 2015 08:58:30 +0000 (08:58 +0000)]
MFC r280133: Increase S/G list size of 32 to 33 entries.

32 entries are not enough for the worst case of misaligned 128KB request,
that made FreeBSD to chunk large quests in odd pieces.

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

9 years agoMFC r280126: Pre-allocate one extra request per processing thread.
mav [Fri, 27 Mar 2015 08:57:38 +0000 (08:57 +0000)]
MFC r280126: Pre-allocate one extra request per processing thread.

Processing threads call callbacks before freeing requests.  As result,
new requests may arrive before old ones are freed.

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

9 years agoMFC r280044:
mav [Fri, 27 Mar 2015 08:56:44 +0000 (08:56 +0000)]
MFC r280044:
According to Linux and QEMU, s/n equal to buffer is not zero-terminated.

This makes same s/n reported for both virtio and AHCI drivers.

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

9 years agoMFC r280042: Close potential race on blockif_close().
mav [Fri, 27 Mar 2015 08:55:54 +0000 (08:55 +0000)]
MFC r280042: Close potential race on blockif_close().

Reported by: vangyzen

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

9 years agoMFC r280040:
mav [Fri, 27 Mar 2015 08:54:55 +0000 (08:54 +0000)]
MFC r280040:
Give AHCI disk serial based on backing file path same as for virtio block.

It is still not good that they may intersect on different hosts, but that
is better then intersecting on the same host.

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

9 years agoMFC r280037:
mav [Fri, 27 Mar 2015 08:53:59 +0000 (08:53 +0000)]
MFC r280037:
Rewrite virtio block device driver to work asynchronously and use the block
I/O interface.

Asynchronous operation, based on r280026 change, allows to not block virtual
CPU during I/O processing, that on slow/busy storage can take seconds.
Use of recently improved block I/O interface allows to process multiple
requests same time, that improves random I/O performance on wide storages.

Benchmarks of virtual disk, backed by ZVOL on RAID10 pool of 4 HDDs, show
~3.5 times random read performance improvements, while no degradation on
linear I/O.  Guest CPU usage during test dropped from 100% to almost zero.

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

9 years agoMFC r280026, r280041:
mav [Fri, 27 Mar 2015 08:52:57 +0000 (08:52 +0000)]
MFC r280026, r280041:
Modify virtqueue helpers added in r253440 to allow queuing.

Original virtqueue design allows queued and out-of-order processing, but
helpers added in r253440 suppose only direct blocking in-order one.
It could be fine for network, etc., but it is a huge limitation for storage
devices.

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

9 years agoMFC r280004: Give block I/O interface multiple (8) execution threads.
mav [Fri, 27 Mar 2015 08:51:20 +0000 (08:51 +0000)]
MFC r280004: Give block I/O interface multiple (8) execution threads.

On parallel random I/O this allows better utilize wide storage pools.
To not confuse prefetcher on linear I/O, consecutive requests are executed
sequentially, following the same logic as was earlier implemented in CTL.

Benchmarks of virtual AHCI disk, backed by ZVOL on RAID10 pool of 4 HDDs,
show ~3.5 times random read performance improvements, while no degradation
on linear I/O.

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

9 years agoMFC r279987: Add checksums to identify data and NCQ command error log.
mav [Fri, 27 Mar 2015 08:50:26 +0000 (08:50 +0000)]
MFC r279987: Add checksums to identify data and NCQ command error log.

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

9 years agoMFC r279979: Slightly polish virtual AHCI CD reporting.
mav [Fri, 27 Mar 2015 08:49:33 +0000 (08:49 +0000)]
MFC r279979: Slightly polish virtual AHCI CD reporting.

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

9 years agoMFC r279977: Fix NOP and IDLE commands for virtual AHCI disks.
mav [Fri, 27 Mar 2015 08:48:44 +0000 (08:48 +0000)]
MFC r279977: Fix NOP and IDLE commands for virtual AHCI disks.

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

9 years agoMFC r279976: Add support for NCQ variant of DSM TRIM for virtual AHCI disks.
mav [Fri, 27 Mar 2015 08:47:54 +0000 (08:47 +0000)]
MFC r279976: Add support for NCQ variant of DSM TRIM for virtual AHCI disks.

The code is not really tested yet due to lack of initiator support.

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

9 years agoMFC r279975: Improve NCQ errors reporting for virtual AHCI disks.
mav [Fri, 27 Mar 2015 08:47:02 +0000 (08:47 +0000)]
MFC r279975: Improve NCQ errors reporting for virtual AHCI disks.

While this implementation is still not perfect, previous was just broken.

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

9 years agoMFC r279968: Remove incorrect SERR register setting.
mav [Fri, 27 Mar 2015 08:46:12 +0000 (08:46 +0000)]
MFC r279968: Remove incorrect SERR register setting.

At this point we have nothing to report through that register.

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

9 years agoMFC r279967: Change prdbc value reporting.
mav [Fri, 27 Mar 2015 08:44:58 +0000 (08:44 +0000)]
MFC r279967: Change prdbc value reporting.

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

9 years agoMFC r279965: Polish AHCI disk identify data and fix speed negotiation.
mav [Fri, 27 Mar 2015 08:43:45 +0000 (08:43 +0000)]
MFC r279965: Polish AHCI disk identify data and fix speed negotiation.

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

9 years agoMFC r279960:
mav [Fri, 27 Mar 2015 08:42:55 +0000 (08:42 +0000)]
MFC r279960:
Add support for PIO variants of READ/WRITE commands for AHCI disks.

AHCI API hides all PIO specifics, so this functionality is almost free.

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

9 years agoMFC r279975: Use ahci_write_fis_d2h() for commands completion.
mav [Fri, 27 Mar 2015 08:41:49 +0000 (08:41 +0000)]
MFC r279975: Use ahci_write_fis_d2h() for commands completion.

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

9 years agoMFC revision 280463
ken [Fri, 27 Mar 2015 00:42:51 +0000 (00:42 +0000)]
MFC revision 280463

  ------------------------------------------------------------------------
  r280463 | ken | 2015-03-24 15:42:28 -0600 (Tue, 24 Mar 2015) | 5 lines

  Remove some #if 0'ed code that apparently confuses cscope.

  Requested by: Peter Xu <xzpeter@gmail.com>
  MFC after: 3 days

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

Sponsored by: Spectra Logic

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

9 years agoMFC r280236:
ae [Thu, 26 Mar 2015 18:44:59 +0000 (18:44 +0000)]
MFC r280236:
  To avoid a possible race, release the reference to ifa after return
  from nd6_dad_na_input().

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

9 years agoMFC r270572: drm/i915: Disable the build of i915 on PC98
emaste [Thu, 26 Mar 2015 17:51:11 +0000 (17:51 +0000)]
MFC r270572: drm/i915: Disable the build of i915 on PC98

  This module is of no use on this platform.

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

9 years agoMFC r280254:
kib [Thu, 26 Mar 2015 10:44:16 +0000 (10:44 +0000)]
MFC r280254:
Provide definitions for all descriptors types in the DMAR invalidation
queue.

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

9 years agoMFC r280262 and r280263:
hselasky [Thu, 26 Mar 2015 10:25:15 +0000 (10:25 +0000)]
MFC r280262 and r280263:
Add more known bugs to the USB audio manual page.

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

9 years agoMFC r280249: Add camcontrol subcommands to control APM and AAM levels.
mav [Thu, 26 Mar 2015 08:38:53 +0000 (08:38 +0000)]
MFC r280249: Add camcontrol subcommands to control APM and AAM levels.

Sponsored by: iXsystems, Inc.

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

9 years agoMFC r279913: Fix couple BIO_DELETE bugs in geom_mirror.
mav [Thu, 26 Mar 2015 08:36:08 +0000 (08:36 +0000)]
MFC r279913: Fix couple BIO_DELETE bugs in geom_mirror.

Do not report GEOM::candelete if none of providers support BIO_DELETE.
If consumer still requests BIO_DELETE, report error instead of hanging.

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

9 years agoMFC r279903,279941:
yongari [Thu, 26 Mar 2015 05:44:21 +0000 (05:44 +0000)]
MFC r279903,279941:
  Add RTL8211F gigabit PHY support.

  PR: 197265

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

9 years agoMFC r279223:
yongari [Thu, 26 Mar 2015 05:17:20 +0000 (05:17 +0000)]
MFC r279223:
  Correct a typo.

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

9 years agoMFC r277907:
yongari [Thu, 26 Mar 2015 05:12:30 +0000 (05:12 +0000)]
MFC r277907:
  Correct device description message.

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

9 years agoMFC r277050:
yongari [Thu, 26 Mar 2015 05:07:18 +0000 (05:07 +0000)]
MFC r277050:
  Receive filter configuration is done in nge_rxfilter().  Remove
  unnecessary filter configuration code in nge_init_locked().
  While I'm here add a check for driver running state for multicast
  filter handling.  Also remove unnecessary assignment to error
  variable since it is cleared in the function entry.

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

9 years agoMFC r275816:
yongari [Thu, 26 Mar 2015 04:55:22 +0000 (04:55 +0000)]
MFC r275816:
  Fix a bug introdiced in r217548.  According to NS DP83815 data
  sheet, RX filter should be disabled before programming.
  Previously it was clearing wrong bits so RX filter was not
  disabled in RX filter configuration.

MFC r277048:
  Enable receive filter in sis_rxfilter().
  While I'm here add a check for driver running state for multicast
  filter handling.

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

9 years agoMFC r279361, r279395, r279396:
ian [Wed, 25 Mar 2015 20:57:54 +0000 (20:57 +0000)]
MFC r279361, r279395, r279396:

  Allow the kern.osrelease and kern.osreldate sysctl values to be set in a
  jail's creation parameters.  This allows the kernel version to be reliably
  spoofed within the jail whether examined directly with sysctl or
  indirectly with the uname -r and -K options.

  Export the new osreldate and osrelease jail parms in jail_get(2).

  Fix line wrap.

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