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

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