]>
CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
luigi [Tue, 26 May 2015 21:12:02 +0000 (21:12 +0000)]
MFC: 272451, 272653 add CAP_EVENT so that we can poll() on netmap and pcap
file descriptors
git-svn-id: svn://svn.freebsd.org/base/stable/10@283583
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
julian [Tue, 26 May 2015 03:58:18 +0000 (03:58 +0000)]
MFH: r283114
Fixup to the kern_psignal manpage
r283105 misspelled kern_psignal as kernel_psignal in one occurrence, and
added trailing whitespace.
While here, change 'call' to the more standard 'function', and say why
the name was changed (taken from the commit message for r225617).
git-svn-id: svn://svn.freebsd.org/base/stable/10@283554
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
emaste [Tue, 26 May 2015 02:50:30 +0000 (02:50 +0000)]
MFC r283110: Add GRP_COMDAT section group flag to ELF header
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283553
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
julian [Tue, 26 May 2015 02:18:10 +0000 (02:18 +0000)]
MFH: r283105
Only several years late, catch the psignal man page up to the
fact that psignal has been renamed to kern_psignal since 9.0.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283552
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
gjb [Tue, 26 May 2015 00:44:29 +0000 (00:44 +0000)]
MFC r283307:
Use mkimg(1) to create the i386 memstick images, similar to
how is done for amd64. The exception here is there is no
EFI partition for i386.
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283548
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
gjb [Mon, 25 May 2015 22:12:30 +0000 (22:12 +0000)]
MFC r282785, r282787, r282789, r282790, r282791, r282792, r282793,
r282794, r282795, r282796, r282797, r282798, r282799, r283265,
r283266, r283268, r283271, r283272, r283298, r283302:
Add a new file, Makefile.mirrors, which is intended to replace
a 474-line kludge of a shell script to pre-create the directory
hierarchy on ftp-master.
This is not in any way connected to the build, and there is no
intention to do so. This only intent here is to try to make
things a little bit easier.
Always use the 'make install' directory as the source for images.
For RE purposes, we use the default (/R within the chroot), so
this helps avoid copying files multiple times and xz(1)-compressing
additional times when not needed.
Fix staging virtual machine images for ftp propagation.
This Makefile is not for general consumption.
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283545
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 25 May 2015 11:35:27 +0000 (11:35 +0000)]
MFC r282475: zfs: do not hold an extra reference on a root vnode
git-svn-id: svn://svn.freebsd.org/base/stable/10@283522
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 25 May 2015 11:33:45 +0000 (11:33 +0000)]
MFC r282473: dmu_recv_end_check: don't leak hold if dsl_destroy_snapshot_check_impl fails
git-svn-id: svn://svn.freebsd.org/base/stable/10@283520
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 25 May 2015 11:32:10 +0000 (11:32 +0000)]
MFC r282632: MFV r282630: 5809 Blowaway full receive in v1 pool causes kernel panic
git-svn-id: svn://svn.freebsd.org/base/stable/10@283519
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Mon, 25 May 2015 01:29:45 +0000 (01:29 +0000)]
MFC r283033, r283062, r283066, r283069:
Do not set preload_addr_relocate for ARM.
Refactor net_getparams() to make it easier to get params from sources other
than bootp and rarp.
Add a routine to obtain netboot parameters from the U-Boot env vars
Enable the NETIF_OPEN_CLOSE_ONCE option for ubldr.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283510
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Mon, 25 May 2015 01:06:55 +0000 (01:06 +0000)]
MFC r277962, r277988, r282661, r282727, r282731, r283013, r283035:
Add support for booting relocatable kernels on PowerPC.
Add code to support loading relocatable kernels at offsets that are
not zero.
Move ubldr text section to the start of the output file, so that when you
create a stripped .bin file from it the entry point is the first byte of
the file. (Will allow "load $addr $file ; go $addr" in u-boot.)
Create a relocatable instance of ubldr for ARM (ubldr.bin).
Re-link ubldr when any of its libraries change.
An ARM kernel can be loaded at any 2MB boundary, make ubldr aware of that.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283505
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
sbruno [Mon, 25 May 2015 00:30:26 +0000 (00:30 +0000)]
MFC r283290
Bump rx_overruns when indicated by the ICR mask.
PR: 199716
Sponsored by: Limelight Networks
git-svn-id: svn://svn.freebsd.org/base/stable/10@283504
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sun, 24 May 2015 19:00:46 +0000 (19:00 +0000)]
MFC r282516:
Add the code necessary to run the imx6 chip at its lowest clock/power
operating point (396MHz/950mV).
git-svn-id: svn://svn.freebsd.org/base/stable/10@283501
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sun, 24 May 2015 18:59:45 +0000 (18:59 +0000)]
MFC r268838, r277644:
Add support for Toradex Apalis i.MX6 development board.
Add support for imx6 audio transmitting, include drivers for:
o Digital Audio Multiplexer (AUDMUX)
o Smart Direct Memory Access Controller (SDMA)
o Synchronous Serial Interface (SSI)
git-svn-id: svn://svn.freebsd.org/base/stable/10@283500
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sun, 24 May 2015 18:23:57 +0000 (18:23 +0000)]
MFC r282418:
On an icache sync by address/len, round the length up if the operation
spans a cacheline boundary.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283499
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sun, 24 May 2015 18:00:29 +0000 (18:00 +0000)]
MFC r281371: Use OF_getencpropalloc() to handle endianess of the properties.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283485
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sun, 24 May 2015 17:57:29 +0000 (17:57 +0000)]
MFC r281073, r281074, r281077, r281200:
Use OF_getencprop over OF_getprop and fdt32_to_cpu. The latter may give
us the wrong data in the failure case if shift was not zero.
Remove the extra copy of uart_fdt_get_clock and uart_fdt_get_shift. While
here also use OF_getencprop in uart_fdt_get_clock.
Move uart_fdt_get_clock and uart_fdt_get_shift to uart_bus_fdt.c, we may
not build uart_cpu_fdt.c in all configs.
Fix uart_fdt_get_clock. It should have been using the cell variable passed
in, not value on the stack.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283481
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sun, 24 May 2015 17:51:57 +0000 (17:51 +0000)]
MFC r279368, r280772, r280848:
Allow creating subclass of FDT simplebus
Make simplebus a base class of ofwbus.
Fix bug in xrefinfo_find() for 64-bit platforms
git-svn-id: svn://svn.freebsd.org/base/stable/10@283477
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
mav [Sun, 24 May 2015 17:16:30 +0000 (17:16 +0000)]
MFC r282881: Do not promote large async writes to sync.
Present implementation of large sync writes is too strict and so can be
quite slow. Instead of doing that, execute large async write in chunks,
syncing each chunk separately.
It would be good to fix large sync writes too, but I leave it to somebody
with more skills in this area.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283457
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sun, 24 May 2015 15:29:56 +0000 (15:29 +0000)]
MFC r280194:
Fix fdt_platform_fixups() mem region handling.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283409
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sun, 24 May 2015 15:21:47 +0000 (15:21 +0000)]
MFC r279850:
Remove MODULES_OVERRIDE="" for Marvel-based armv5 systems.
Also add some #NO_UNIVERSE to configs that essentially duplicate DB-88F6XXX.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283404
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sun, 24 May 2015 14:57:17 +0000 (14:57 +0000)]
MFC r279837:
Remove MODULES_OVERRIDE="" and WITHOUT_MODULES="ahc" from armv6 configs.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283387
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sun, 24 May 2015 14:25:03 +0000 (14:25 +0000)]
MFC r276004: Fix the indentation to simplify comparing the ARM config files.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283368
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
kib [Sun, 24 May 2015 07:32:02 +0000 (07:32 +0000)]
MFC r282708:
On exec, single-threading must be enforced before arguments space is
allocated from exec_map.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283359
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Sun, 24 May 2015 06:53:10 +0000 (06:53 +0000)]
MFC: r283278
sfxge: relax assertion to allow RST flag in TSO packets
Kernel under stress load, mixed MC reboot and sfupdate really
generates TSO packet with RST flag.
It will generate many TCP packets with RST flag set.
May be RST flag should be set in the last segment only, but it could be
dropped. So, it is safer to keep the flag in all packets to be sure that
connection is reset.
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283350
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
trasz [Sun, 24 May 2015 04:14:09 +0000 (04:14 +0000)]
MFC r279554:
Make periphdriver_register() take XPT lock when modifying the periph_drivers
array.
This fixes a panic that sometimes occured when kldloading ctl.ko.
PR: 200384
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283349
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
gjb [Sun, 24 May 2015 02:15:18 +0000 (02:15 +0000)]
MFC r283252:
Include the TARGET in the EC2 AMI name.
Without this, AWS rejects subsequent image uploads of a different
architecture because the name conflicts.
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283345
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
pkelsey [Sun, 24 May 2015 01:52:22 +0000 (01:52 +0000)]
MFC r283093:
Added description of POSIX-specified behavior when invoked on a key from within that key's destructor.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283344
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
pkelsey [Sun, 24 May 2015 01:48:33 +0000 (01:48 +0000)]
MFC r282978:
When a netmap process terminates without the full set of buffers it
was granted via rings and ni_bufs_list_head represented in those rings
and lists (e.g., via SIGKILL), those buffers are no longer available
for subsequent users for the lifetime of the system. To mitigate this
resource leak, reset the allocator state when the last ref to that
allocator is released.
Note that this only recovers leaked resources for an allocator when
there are no longer any users of that allocator, so there remain
circumstances in which leaked allocator resources may not ever be
recovered - consider a set of multiple netmap processes that are all
using the same allocator (say, the global allocator) where members of
that set may be killed and restarted over time but at any given point
there is one member of that set running.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283343
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sun, 24 May 2015 01:09:51 +0000 (01:09 +0000)]
MFC r280221:
Update ucom(4) with information about the new PPS capture abilities.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283342
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sun, 24 May 2015 00:53:43 +0000 (00:53 +0000)]
MFC r279728, r279729, r279756, r279773, r282424, r281367:
Add mutex support to the pps_ioctl() API in the kernel.
Add PPS support to USB serial drivers.
Use correct mode variable for PPS support.
Switch polarity of USB serial PPS events.
The ftdi "get latency" and "get bitmode" device commands are read
operations, not writes.
Implement a mechanism for making changes in the kernel<->driver PPS
interface without breaking ABI or API compatibility with existing drivers.
Bump version number to indicate the new PPS ABI version changes in the
pps_state structure.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283341
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sat, 23 May 2015 23:35:19 +0000 (23:35 +0000)]
MFC r262409, r267129, r267130, r280709:
Move the declaration for mpentry() into a header file
Fix broken SMP startup on Armada XP after r265694
Avoid using hard-coded SoC's register address in mptramp code for Armada XP
Use pmap_mapdev()/unmapdev() to temporarily map on-chip sram while copying
the startup trampoline code.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283340
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sat, 23 May 2015 23:27:00 +0000 (23:27 +0000)]
MFC r280278, r280402:
Allow to override default kernel virtual address assignment on ARM.
Do not save/restore the TLS pointer on context switch for armv6.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283339
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sat, 23 May 2015 23:08:54 +0000 (23:08 +0000)]
MFC r279816, r279826:
Attach the prcm clock driver early, so it can set the mpcore timer frequency.
Change the name of the dmtimer pps device from /dev/ppsN to /dev/dmtppsN.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283338
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sat, 23 May 2015 23:05:31 +0000 (23:05 +0000)]
MFC r279810, r279811:
Clean data cache before instruction cache in armv7_icache_sync_range().
Add minimum cache line sizes to struct cpuinfo, use them in the new cache
maintenance routines. Also add a routine to invalidate the branch cache.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283336
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sat, 23 May 2015 22:48:54 +0000 (22:48 +0000)]
MFC r278518: Resolve cache line size from CP15 instead of hard-coded 32.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283335
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sat, 23 May 2015 22:36:41 +0000 (22:36 +0000)]
MFC r277098, r279235:
Introduce ofw_bus_reg_to_rl() to replace part of common bus code
Fix endianness on FDT read in ARM GIC
git-svn-id: svn://svn.freebsd.org/base/stable/10@283334
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sat, 23 May 2015 22:34:25 +0000 (22:34 +0000)]
MFC r274711:
Stop using early_putc immediately after configuring console with cninit()
git-svn-id: svn://svn.freebsd.org/base/stable/10@283333
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sat, 23 May 2015 22:33:06 +0000 (22:33 +0000)]
MFC r274249, r274484, r275583:
Avoid panic in ofwbus caused by not released resource list entry
Fix typo in ARM GIC device_printf()
Fix buffer overflow in Marvell PCI/PCIe driver
git-svn-id: svn://svn.freebsd.org/base/stable/10@283332
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sat, 23 May 2015 21:12:51 +0000 (21:12 +0000)]
MFC r276021, r279766:
Reduce the diff in the Ti aintc between head and arm_intrng
Fix spurious interrupts on arm am335x (beaglebone), by doing the EOI in
both the post-filter and post-thread callbacks.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283329
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sat, 23 May 2015 20:54:25 +0000 (20:54 +0000)]
MFC r279723, r279724:
Define new linker set, UART_FDT_CLASS_AND_DEVICE, for registering full
(class and device) FDT UART. Define second one, UART_FDT_CLASS, for UART
class only.
Move the uart_class definitions and fdt compat data into the individual
uart implementations, and export them using the new linker-set mechanism.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283327
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sat, 23 May 2015 20:53:19 +0000 (20:53 +0000)]
MFC r268137, r268138:
Define a "__weak" macro for declaring symbols "weak".
Add support for empty data sets. Data set begin and end pointers
should resolve to "NULL" when not present. This is done by declaring
the data set begin and end symbols as "weak".
git-svn-id: svn://svn.freebsd.org/base/stable/10@283326
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sat, 23 May 2015 20:01:20 +0000 (20:01 +0000)]
MFC r279239:
Enable 'receive timeout' interrupt allowing us to not
loose 'rx buffer full' event.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283324
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sat, 23 May 2015 19:57:44 +0000 (19:57 +0000)]
MFC r277132: Rename Exynos UART driver functions. No functional change.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283323
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sat, 23 May 2015 19:50:14 +0000 (19:50 +0000)]
MFC r266942, r266944:
Do only receive chars if there are some data in the buffer.
This fixes operation on newer Exynos boards.
Rename exynos uart driver filenames.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283322
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sat, 23 May 2015 19:27:04 +0000 (19:27 +0000)]
MFC r272399, r272602, r274451, r274452:
Add uart driver for Qualcomm MSM 7000/8000 series chips.
It is working on IFC6410 board which has Qualcomm Snapdragon SoC.
Use documented compat string for msm uart.
Make PL011 UART to wait on putc only when TX FIFO is full
Make uart_bus_fdt a decendant of ofwbus
git-svn-id: svn://svn.freebsd.org/base/stable/10@283321
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sat, 23 May 2015 17:48:09 +0000 (17:48 +0000)]
MFC r279702: Update a comment that had drifted out of date.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283319
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sat, 23 May 2015 17:43:02 +0000 (17:43 +0000)]
MFC r279359, r279360:
For new eMMC chips, we must signal controller HC capability in OP_COND command.
Detect, report and use 8-bit bus if is available.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283318
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ian [Sat, 23 May 2015 17:30:30 +0000 (17:30 +0000)]
MFC r278770, r279114, r279215, r279338, r279543:
Add logic for handling new-style ARM cpu ID info.
Correct a comment which was exactly backwards from reality.
There is no reason to do i+dcache writeback and invalidate when changing
the translation table (this may be left over from armv5 days). It's
especially bad to do so using a cache operation that isn't coherent on
SMP systems.
Add casting to make atomic ops work for pointers. (Apparently nobody has
ever done atomic ops on pointers before now on arm).
Revert incorrect casting.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283317
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
rodrigc [Sat, 23 May 2015 09:48:59 +0000 (09:48 +0000)]
Merge: 278618 278633 278636 278653 278742 278776 279121
Multiple fixes for pgrep and pkill tests.
PR: 19109
git-svn-id: svn://svn.freebsd.org/base/stable/10@283312
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
rodrigc [Sat, 23 May 2015 09:16:35 +0000 (09:16 +0000)]
Merge: r277829
Revert r277357 as expr has been enhanced to better detect overflow conditions,
and now the tests pass
PR: 196867
X-MFC with: r277798
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
git-svn-id: svn://svn.freebsd.org/base/stable/10@283311
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
kib [Sat, 23 May 2015 09:14:29 +0000 (09:14 +0000)]
MFC r282690:
Call uma_reclaim() from the additional pagedaemon thread to reclaim kmem
arena address space.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283310
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
jhb [Fri, 22 May 2015 23:55:59 +0000 (23:55 +0000)]
MFC 282273:
Update this page to note that XENHVM now works on i386. (It shipped
enabled in GENERIC in 10.0.)
git-svn-id: svn://svn.freebsd.org/base/stable/10@283306
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
jhb [Fri, 22 May 2015 23:54:12 +0000 (23:54 +0000)]
MFC 281872:
Fix some incorrect #if conditions around older workarounds for bus
numbering goofs.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283305
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
jhb [Fri, 22 May 2015 21:51:36 +0000 (21:51 +0000)]
MFC 266852,270223:
- Fix pf(4) to build with MAXCPU set to 256. MAXCPU is actually a count,
not a maximum ID value (so it is a cap on mp_ncpus, not mp_maxid).
- Bump MAXCPU on amd64 from 64 to 256. In practice APIC only permits 255
CPUs (IDs 0 through 254). Getting above that limit requires x2APIC.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283303
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
gjb [Fri, 22 May 2015 16:38:55 +0000 (16:38 +0000)]
MFC r281011 (jkim):
Fix powerpc, powerpc64 build.
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283289
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
whu [Fri, 22 May 2015 11:20:59 +0000 (11:20 +0000)]
Fix a i386 build failure cause by commit r283280.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283284
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
whu [Fri, 22 May 2015 09:03:55 +0000 (09:03 +0000)]
MFC r282212:
Microsoft vmbus, storage and other related driver enhancements for HyperV.
- Vmbus multi channel support.
- Vector interrupt support.
- Signal optimization.
- Storvsc driver performance improvement.
- Scatter and gather support for storvsc driver.
- Minor bug fix for KVP driver.
Thanks royger, jhb and delphij from FreeBSD community for the reviews
and comments. Also thanks Hovy Xu from NetApp for the contributions to
the storvsc driver.
PR: 195238
Submitted by: whu
Reviewed by: royger
Approved by: royger
Relnotes: yes
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D2575
git-svn-id: svn://svn.freebsd.org/base/stable/10@283280
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
kib [Fri, 22 May 2015 08:11:31 +0000 (08:11 +0000)]
MFC r282944:
Decrement p_boundary_count in the single-threading thread, during making
other thread runnable. This guarantees that upon return from the
thread_single_end(), p_boundary_count is zero.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283279
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
delphij [Thu, 21 May 2015 21:45:37 +0000 (21:45 +0000)]
MFC r282613: MFV r282611: netcat from OpenBSD 5.7.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283270
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
pfg [Thu, 21 May 2015 20:39:39 +0000 (20:39 +0000)]
MFC r282863:
Adjust visibility macros.
The GCC visibility attributes were introduced in GCC 4.0.
Apparently the "protected" attribute was introduced only
until GCC 4.2, but we are not currently using it.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283267
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
emaste [Thu, 21 May 2015 19:40:31 +0000 (19:40 +0000)]
MFC r258431: Disable amd64 boot time memory test by default
The page presence memory test takes a long time on large memory systems
and has little value on contemporary amd64 hardware.
Relnotes: Yes
Reviewed by: jhb, kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1544
git-svn-id: svn://svn.freebsd.org/base/stable/10@283262
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
emaste [Thu, 21 May 2015 19:16:28 +0000 (19:16 +0000)]
MFC r282144: crunchide: add basic string table sanity checks
Reported by: Coverity Scan
CID: 978805, 980919
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283260
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
delphij [Thu, 21 May 2015 19:05:47 +0000 (19:05 +0000)]
MFC r282932: MFV r282927,r282928,r282930 (kientzle):
Don't segfault when reading malformed cpio archives.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283259
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
delphij [Thu, 21 May 2015 18:59:11 +0000 (18:59 +0000)]
MFC r282608:
date(1): Make -r behave like GNU's version when the option can not be
interpreted as a number, which checks the file's modification time and
use that as the date/time value.
This improves compatibility with GNU coreutils's version of date(1).
git-svn-id: svn://svn.freebsd.org/base/stable/10@283258
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
bdrewery [Thu, 21 May 2015 16:44:31 +0000 (16:44 +0000)]
MFC r282574:
Remove references to Giant in namei(9). This was removed in r241896.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283251
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
trasz [Thu, 21 May 2015 13:42:37 +0000 (13:42 +0000)]
MFC r279955:
Add -noauto autofs map, for automatic handling of fstab entries
marked "noauto".
Relnotes: yes
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283242
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
trasz [Thu, 21 May 2015 13:41:08 +0000 (13:41 +0000)]
MFC r279954:
Get executable direct maps to work.
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283241
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
trasz [Thu, 21 May 2015 13:39:38 +0000 (13:39 +0000)]
MFC r279953:
Rework the concat() algorithm to be correct in all cases.
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283240
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
trasz [Thu, 21 May 2015 13:37:48 +0000 (13:37 +0000)]
MFC r279916:
Make "automount -LL -o whatever" present options in the same order
as used by automountd(8).
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283239
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
trasz [Thu, 21 May 2015 13:36:00 +0000 (13:36 +0000)]
MFC r279915:
Make concat() accept NULL arguments.
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283238
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
trasz [Thu, 21 May 2015 13:34:33 +0000 (13:34 +0000)]
MFC r279914:
Options from auto_master must be appended to options from maps,
not prepended.
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283237
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
trasz [Thu, 21 May 2015 13:33:06 +0000 (13:33 +0000)]
MFC r279851:
Fix typo.
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283236
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
trasz [Thu, 21 May 2015 13:31:44 +0000 (13:31 +0000)]
MFC r279846:
Properly pass options for direct maps.
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283235
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
emaste [Thu, 21 May 2015 13:30:10 +0000 (13:30 +0000)]
MFC r276774: ar: Avoid null pointer deref while reading corrupt archives
ELF Tool Chain ticket #467
Reported by: Alexander Cherepanov <cherepan@mccme.ru>
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283234
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
trasz [Thu, 21 May 2015 13:29:34 +0000 (13:29 +0000)]
MFC r279845:
Fix handling of direct maps, broken in r275756. Previously, running
automount(8) would unmount direct map trigger nodes every second time.
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283233
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
trasz [Thu, 21 May 2015 13:26:52 +0000 (13:26 +0000)]
MFC r279843:
Refactor.
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283232
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
trasz [Thu, 21 May 2015 13:25:28 +0000 (13:25 +0000)]
MFC r279813:
Make things more readable; no functional changes.
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283231
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
trasz [Thu, 21 May 2015 13:23:49 +0000 (13:23 +0000)]
MFC r279812:
Remove some particularly bad code; no functional changes.
MFC r279815:
Erm, revert chunk committed by mistake.
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283230
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
trasz [Thu, 21 May 2015 13:21:03 +0000 (13:21 +0000)]
MFC r279808:
Fix memory leak.
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283229
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
trasz [Thu, 21 May 2015 13:19:44 +0000 (13:19 +0000)]
MFC r279807:
Improve separated_concat() to properly handle the case of concatenating
"/" and "/foo".
git-svn-id: svn://svn.freebsd.org/base/stable/10@283228
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
trasz [Thu, 21 May 2015 13:18:02 +0000 (13:18 +0000)]
MFC r279806:
Minor optimization/cleanup in node_path(); no functional changes.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283227
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
trasz [Thu, 21 May 2015 13:13:56 +0000 (13:13 +0000)]
MFC r277171:
Use newly added GEOM notifications to discard autofs caches.
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283226
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
trasz [Thu, 21 May 2015 13:11:48 +0000 (13:11 +0000)]
MFC r276883:
Improve documentation for autofs variables and executable maps;
also some markup fixes.
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283225
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
trasz [Thu, 21 May 2015 13:10:08 +0000 (13:10 +0000)]
MFC r276833:
Make /net use -intr by default. Linux does that, and it seems a good idea.
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283224
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
trasz [Thu, 21 May 2015 13:08:30 +0000 (13:08 +0000)]
MFC r275681:
Add "-media" autofs map, to access data on removable media, such as CD
drives or flash keys. It can be enabled by uncommenting a single entry
in default /etc/auto_master. It can also be easily modified to use
fuse-based filesystems instead of in-kernel ones.
There is still one deficiency - the mountpoints are permanent, they
don't disappear when user removes the media. Fixing it needs some
autofs changes.
Relnotes: yes
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@283223
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
royger [Thu, 21 May 2015 10:40:18 +0000 (10:40 +0000)]
MFC: r282269, r282277
atkbd: remove usage of x86bios
Remove leftover from r282269.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283219
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
royger [Thu, 21 May 2015 10:28:33 +0000 (10:28 +0000)]
MFC: r282908
netfront: wait for backend to connect before sending ARP
Sponsored by: Citrix Systems R&D
git-svn-id: svn://svn.freebsd.org/base/stable/10@283218
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 21 May 2015 09:24:35 +0000 (09:24 +0000)]
MFC: r283051
sfxge: do not advertise LRO capability if LRO is compiled out
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283217
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 21 May 2015 09:23:28 +0000 (09:23 +0000)]
MFC: r283050
sfxge: automatically turn off TSO when Tx checksum offload is disabled
Also return error if TSO is requested without Tx checksum offload.
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283216
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 21 May 2015 09:22:15 +0000 (09:22 +0000)]
MFC: r283049
sfxge: allow to disable checksum offloads over VLAN
It just affects capabilities of the created VLAN interface.
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283215
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 21 May 2015 09:21:05 +0000 (09:21 +0000)]
MFC: r283048
sfxge: fix overflow queue freeze
If TxQ lock is obtained, deferred packet list shold be serviced even if
the packet addition fails because of overflow.
Without the patch freeze happens if:
- queue is not blocked (i.e. completion does not trigger unblock and service)
- put-list overflow (1024 entries)
- sfxge_tx_packet_add() acquires TxQ lock just as it is released it in
sfxge_tx_qdpl_service() on the second CPU but before pending check
- sfxge_tx_packet_add() swizzles put-list to get-list, fails because of
non-tcp get-list overflow and returns without packet list service
- sfxge_tx_qdpl_service() on the second CPU checks that there are no
pending packets in the put-list and returns
Other possible solution is to guaranee that maximum length of the put-list
is less than maximum length of any get-list.
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283214
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 21 May 2015 09:15:19 +0000 (09:15 +0000)]
MFC: r283007
sfxge: avoid usage of ifm_data
The driver uses ifm_data to save capabilities mask calculated during
initialization when supported phy modes are discovered.
The patch simply calculates it when either media or options are changed.
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283213
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 21 May 2015 09:13:47 +0000 (09:13 +0000)]
MFC: r283000
sfxge: add local variable with changed capabilities mask
It is required for the next patch which adds dependency of TSO
capabilities from Tx checksum offloads.
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283212
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 21 May 2015 09:12:25 +0000 (09:12 +0000)]
MFC: r282998
sfxge: move mbuf free to sfxge_if_transmit()
It is a preparation to the next patch which will service packet queue
even if packet addtion fails.
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283211
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 21 May 2015 09:11:03 +0000 (09:11 +0000)]
MFC: r282997
sfxge: get rid of locked variable in sfxge_tx_packet_add()
Now each branch has one and only one possible TxQ lock state.
It simplifies understanding of the code.
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283210
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 21 May 2015 09:09:51 +0000 (09:09 +0000)]
MFC: r282996
sfxge: support Rx checksum offloads disabling
We can't disable it in HW, but we can ignore result.
Discard Rx descriptor checksum flags if Rx checksum offload is off.
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283209
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 21 May 2015 09:08:10 +0000 (09:08 +0000)]
MFC: r282942
sfxge: split sfxge_tx_qdpl_put() into *_locked() and *_unlocked()
It simplifies understanding of the sfxge_tx_packet_add() logic and
avoids passing of 'locked' to called function.
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283208
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 21 May 2015 09:06:41 +0000 (09:06 +0000)]
MFC: r282941
sfxge: do not change CSUM_TSO when IFCAP_TSOx is changed
It is simply not required since the kernel checks corresponding
IFCAP_TSOx capability and CSUM_TSO in hw-assisted offloads.
Note that CSUM_TSO is two bits (CSUM_IP_TSO|CSUM_IP6_TSO) and both bits
are set in IPv4 and IPv6 mbufs.
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283207
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 21 May 2015 09:05:13 +0000 (09:05 +0000)]
MFC: r282940
sfxge: LRO may be done only if checksums are OK
Also it is cheaper to check Rx descriptor flags than TCP protocol in IP
header.
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@283206
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f