ngie [Mon, 26 Jan 2015 08:30:24 +0000 (08:30 +0000)]
Remove explicit inclusion of lpd from FILES
X-MFC with: 277731
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
ngie [Mon, 26 Jan 2015 08:28:51 +0000 (08:28 +0000)]
Honor MK_AMD with etc/rc.d/amd
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
ngie [Mon, 26 Jan 2015 08:23:36 +0000 (08:23 +0000)]
Honor MK_API in etc/rc.d
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
ngie [Mon, 26 Jan 2015 08:20:51 +0000 (08:20 +0000)]
Honor MK_LPR with etc/rc.d/lpd
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
ngie [Mon, 26 Jan 2015 08:04:38 +0000 (08:04 +0000)]
Honor MK_ACPI in etc/devd and etc/rc.d
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
ngie [Mon, 26 Jan 2015 07:24:18 +0000 (07:24 +0000)]
Regen src.conf(5)
ngie [Mon, 26 Jan 2015 07:15:49 +0000 (07:15 +0000)]
Add MK_AUTOFS knob for building and installing autofs(4), et al
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
ngie [Mon, 26 Jan 2015 06:44:48 +0000 (06:44 +0000)]
Add MK_BHYVE knob for building and installing bhyve(4), et al
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
ngie [Mon, 26 Jan 2015 06:29:07 +0000 (06:29 +0000)]
Build sbin/iscontrol again if MK_ISCSI != no
MFC after: 13 days
X-MFC with: r277675
Pointyhat to: me
ngie [Mon, 26 Jan 2015 06:27:07 +0000 (06:27 +0000)]
Add MK_HAST knob for building and installing hastd(8), et al
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
adrian [Mon, 26 Jan 2015 04:04:57 +0000 (04:04 +0000)]
Call WITNESS_WARN() in callout_drain() to check whether any locks are
being held before sleeping.
This has bitten me (in ath(4)) once before and I'd like to see this
not bite anyone else.
Differential Revision: D1638
Reviewed by: jhb, hselasky
MFC after: 1 week
gonzo [Sun, 25 Jan 2015 23:58:34 +0000 (23:58 +0000)]
- Increase default i2c bus timeout to 5 seconds from 1 second. Sometimes
1 second is not enugh for TDA19988 HDMI framer (e.g. on Beaglebone Black)
- Add per-device i2c_timout sysctl (dev.iichb.X.i2c_timeout) to control
I2C bus timeout manually
- Pass softc instead of device_t to all sysctl handlers
scottl [Sun, 25 Jan 2015 22:29:23 +0000 (22:29 +0000)]
Fix the ioctl interface to properly support fetching the header of regular
and extended config pages.
Obtained from: Netflix, Inc.
MFC after: 3 days
gonzo [Sun, 25 Jan 2015 22:08:36 +0000 (22:08 +0000)]
Add vt(4) support to AM335x LCDC driver
jhb [Sun, 25 Jan 2015 20:37:32 +0000 (20:37 +0000)]
natd(8) will work with an unconfigured interface and effectively not do
anything until the interface is assigned an address. This fixes
ipfw_nat to do the same by using an IP of INADDR_ANY instead of
aborting the nat setup if the requested interface is not yet configured.
Differential Revision: https://reviews.freebsd.org/D1539
Reviewed by: melifaro, glebius, gnn
MFC after: 1 week
jhb [Sun, 25 Jan 2015 20:16:45 +0000 (20:16 +0000)]
If the boot-time memory test is enabled, output a dot ('.') for
each GB of RAM tested so people watching the console can see that
the machine is making progress and not hung.
PR: 196650
Submitted by: Ravi Pokala <rpokala@panasas.com>
Suggestions from: Eric van Gyzen <eric@vangyzen.net>
MFC after: 2 weeks
jhb [Sun, 25 Jan 2015 19:56:45 +0000 (19:56 +0000)]
Change the default VFS timestamp precision from seconds to microseconds.
Discussed on: arch@
MFC after: 2 weeks
jhb [Sun, 25 Jan 2015 19:53:09 +0000 (19:53 +0000)]
Pass a valid Dx state variable to PCIB_POWER_FOR_SLEEP() in pcib_resume()
instead of NULL.
Submitted by: dchagin
MFC after: 2 weeks
jhb [Sun, 25 Jan 2015 19:45:44 +0000 (19:45 +0000)]
Use an sbuf to generate the output of the net.inet.tcp.hostcache.list
sysctl to avoid a possible buffer overflow if the cache grows while the
text is being generated.
PR: 172675
MFC after: 2 weeks
des [Sun, 25 Jan 2015 15:44:46 +0000 (15:44 +0000)]
Allow the user to specify the location of control.conf.
des [Sun, 25 Jan 2015 12:11:50 +0000 (12:11 +0000)]
Allow tracing dlfunc() / dlsym() events.
MFC after: 1 week
des [Sun, 25 Jan 2015 12:02:38 +0000 (12:02 +0000)]
Remove ISA NICs. Anyone still using these on amd64 can build their
own kernel.
des [Sun, 25 Jan 2015 11:57:18 +0000 (11:57 +0000)]
Fix the font in the text version. This has bothered me for a long time...
MFC after: 1 week
ngie [Sun, 25 Jan 2015 05:37:06 +0000 (05:37 +0000)]
Build lib/libgpio if MK_GPIO != no
Fill in corresponding entries for MK_GPIO == no in OptionalObsoleteFiles.inc
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
ngie [Sun, 25 Jan 2015 05:30:45 +0000 (05:30 +0000)]
Fill in entries for MK_BSNMP == no
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
ngie [Sun, 25 Jan 2015 05:30:03 +0000 (05:30 +0000)]
Install bsnmp rc.d script if MK_BSNMP != no
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
ngie [Sun, 25 Jan 2015 05:23:22 +0000 (05:23 +0000)]
Fill in some dtrace entries when MK_CDDL == no
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
ngie [Sun, 25 Jan 2015 05:15:45 +0000 (05:15 +0000)]
Fill in entries for MK_CUSE == no
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
ngie [Sun, 25 Jan 2015 05:15:06 +0000 (05:15 +0000)]
Make install cuse headers if MK_CUSE != no
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
ngie [Sun, 25 Jan 2015 05:13:15 +0000 (05:13 +0000)]
Build cuse(4) if MK_CUSE != no
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
imp [Sun, 25 Jan 2015 04:58:41 +0000 (04:58 +0000)]
spl man page hasn't been relevant for a while, retire it.
ngie [Sun, 25 Jan 2015 04:56:43 +0000 (04:56 +0000)]
Regen src.conf(5)
ngie [Sun, 25 Jan 2015 04:52:48 +0000 (04:52 +0000)]
Add MK_CCD knob for building and installing ccd(4), ccdconfig, etc
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
ngie [Sun, 25 Jan 2015 04:43:13 +0000 (04:43 +0000)]
Add MK_BSDINSTALL knob for building and installing bsdinstall
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
ngie [Sun, 25 Jan 2015 04:37:44 +0000 (04:37 +0000)]
Add MK_TALK knob for building the talk and talkd
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
ngie [Sun, 25 Jan 2015 04:20:11 +0000 (04:20 +0000)]
Add MK_ISCSI knob for building the iscsi initiator, iscsi daemon, kernel
modules, etc
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
ngie [Sun, 25 Jan 2015 03:08:21 +0000 (03:08 +0000)]
Fix building rcorder with -DDEBUG by using libutil.h instead of util.h from
usr.bin/make
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
markj [Sun, 25 Jan 2015 00:47:06 +0000 (00:47 +0000)]
gr_equal(): Fix a crash that could occur if the first group's member list
was longer than the second's. There is no need to compute and compare the
member list lengths in a separate pass, since we now just return false when
comparing member names if the list lengths are not equal.
MFC after: 2 weeks
markj [Sun, 25 Jan 2015 00:36:42 +0000 (00:36 +0000)]
Document the fact that modules declared with SYSCALL_MODULE(9) have their
names prefixed with "sys/".
MFC after: 3 days
markj [Sun, 25 Jan 2015 00:34:43 +0000 (00:34 +0000)]
Ensure that we don't try to demangle a symbol name if we failed to look
up the symbol. Add a test to exercise this code path.
Reviewed by: adrian
ngie [Sun, 25 Jan 2015 00:32:17 +0000 (00:32 +0000)]
Only build share/dtrace if MK_CDDL != no
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
ngie [Sun, 25 Jan 2015 00:30:22 +0000 (00:30 +0000)]
Only build vi support into rescue if MK_VI != no
Sponsored by: EMC / Isilon Storage Division
ngie [Sun, 25 Jan 2015 00:03:44 +0000 (00:03 +0000)]
Add MK_EE knob to control installing edit, ee, etc
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
pfg [Sat, 24 Jan 2015 21:05:18 +0000 (21:05 +0000)]
MFV r277658:
GDB: Replace use of sprintf.
2005-03-17 Mark Kettenis <kettenis@gnu.org>
* corelow.c (get_core_register_section): Replace usage of sprintf
and strcpy with xstrprintf and xstrdup.
Sourceware commit:
3ecda4574edb38ad12fb491ccaf6d9b0caa3a07a
CID: 1006819
MFC after: 4 days
pfg [Sat, 24 Jan 2015 20:25:21 +0000 (20:25 +0000)]
MFV: r277654
gdb: Add missing break statements
2004-05-21 Jim Blandy <jimb@redhat.com>
* dwarf2expr.c (execute_stack_op): Add 'break' statements after
cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
Sourceware commit
99c87dab95747d380392a3698740507a21ad3236
CID: 1008254
MFC after: 4 days
ian [Sat, 24 Jan 2015 20:18:37 +0000 (20:18 +0000)]
Reimplement fdt_clock_register_provider() correctly. It turns out you
can't use OF_xref_from_device() to implement the function that registers
the xref association with the device.
Pointy hat: ian
Submitted by: loos
adrian [Sat, 24 Jan 2015 19:49:27 +0000 (19:49 +0000)]
Change the permissions from 0660 to 0600.
Otherwise people in wheel can do things with netmap, including
but not limited to promisc transmit/receive.
Approved by: luigi
MFC after: 1 week
bapt [Sat, 24 Jan 2015 19:13:03 +0000 (19:13 +0000)]
Allow negative numbers in -u and -g options
PR: 196514
MFC after: 1 week
will [Sat, 24 Jan 2015 17:32:45 +0000 (17:32 +0000)]
Add vm.panic_on_oom sysctl, which enables those who would rather panic than
kill a process, when the system runs out of memory. Defaults to off.
Usually, this is most useful when the OOM condition is due to mismanagement
of memory, on a system where the applications in question don't respond well
to being killed.
In theory, if the system is properly managed, it shouldn't be possible to
hit this condition. If it does, the panic can be more desirable for some
users (since it can be a good means of finding the root cause) rather than
killing the largest process and continuing on its merry way.
As kib@ mentions in the differential, there is also protect(1), which uses
procctl(PROC_SPROTECT) to ensure that some processes are immune. However,
a panic approach is still useful in some environments. This is primarily
intended as a development/debugging tool.
Differential Revision: D1627
Reviewed by: kib
MFC after: 1 week
will [Sat, 24 Jan 2015 17:11:11 +0000 (17:11 +0000)]
Add tests/etc/rc.d to mtree.
Submitted by: stefanf
MFC after: 1 week
MFC with: 277627
rstone [Sat, 24 Jan 2015 16:59:38 +0000 (16:59 +0000)]
vmspace_release() may sleep if the last reference is being released,
so add a WITNESS_WARN() to catch cases where it is called with a
non-sleepable lock held.
MFC after: 1 month
Sponsored by: Sandvine Inc.
jilles [Sat, 24 Jan 2015 15:49:40 +0000 (15:49 +0000)]
Enable utimensat tests from NetBSD.
As with other tests from c063, a required #include <sys/stat.h> was missing.
mav [Sat, 24 Jan 2015 15:40:52 +0000 (15:40 +0000)]
Fix wrong LUN reference in XCOPY block-to-block operation.
This could cause data corruption due to accessing wrong LUN in case of
retries on write errors. Failed writes were retried to read LUN.
MFC after: 3 days
kib [Sat, 24 Jan 2015 15:33:42 +0000 (15:33 +0000)]
Avoid calling vmspace_free() while owning the process lock. Freeing
of an vm space may require obtaining sleepable locks. Hold the
process to keep the pointer valid, and change trylock to lock, since
there is no longer two process locks owned simultaneously in
vm_pageout_oom().
Note that after the process lock is dropped, process might exec, and
no longer qualify as the owner of biggest vm space.
In collaboration with: rstone
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
jilles [Sat, 24 Jan 2015 13:50:13 +0000 (13:50 +0000)]
cp,mv,touch: Set timestamps with nanosecond precision.
This uses utimensat().
br [Sat, 24 Jan 2015 13:07:07 +0000 (13:07 +0000)]
Add support for audio transmitting, include drivers for:
o Digital Audio Multiplexer (AUDMUX)
o Smart Direct Memory Access Controller (SDMA)
o Synchronous Serial Interface (SSI)
Disable by default as it depends on SDMA firmware.
Sponsored by: Machdep, Inc.
kib [Sat, 24 Jan 2015 12:51:15 +0000 (12:51 +0000)]
Remove Giant from /dev/mem and /dev/kmem. It is definitely not needed
for i386, and from the code inspection, nothing in the
arm/mips/sparc64 implementations depends on it.
Discussed with: imp, nwhitehorn
Sponsored by: The FreeBSD Foundation
MFC after: 3 weeks
kib [Sat, 24 Jan 2015 12:43:36 +0000 (12:43 +0000)]
Provide individual prototype and generate macros for the red-black tree.
This helps to reduce code size in statically linked applications.
Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de>
MFC after: 2 weeks
luigi [Sat, 24 Jan 2015 08:48:05 +0000 (08:48 +0000)]
do not strip /stand
This is a temporary workaround until the elftoolchain's version
of strip is fixed:
The previous (GNU) strip, when acting on a file with multiple links,
would modify the one and only file in place (which means creating
a new stripped copy, and then writing it back to the original).
The new version from elftoolchain creates the new file and then
unlinks the old one and renames the new.
With multiple hard links, the original remains alive. In the /stand
directory, this ends up creating 80+ copies of the same file.
delphij [Sat, 24 Jan 2015 06:06:46 +0000 (06:06 +0000)]
Don't include libcapsicum headers when requested.
Reported by: luigi
MFC after: 14 days
X-MFC-with: r276788
np [Sat, 24 Jan 2015 04:41:14 +0000 (04:41 +0000)]
Make sure the compiler flag to get cxgbe(4) to compile with gcc is used
only when gcc is being used. This is what r277225 should have been.
Suggested by: dim@
nwhitehorn [Sat, 24 Jan 2015 01:58:15 +0000 (01:58 +0000)]
Fix typo in r277561.
gonzo [Sat, 24 Jan 2015 01:53:28 +0000 (01:53 +0000)]
After interrupt read value from register to make sure it reached hardware. This
should fix "Spurious inteerupt" message
Suggested by ian@
will [Sat, 24 Jan 2015 00:43:02 +0000 (00:43 +0000)]
When creating or updating a node, use vfs_timestamp() for "now" instead
of gethrestime(), to allow the administrator to decide the appropriate
timestamp precision instead of always using nanosecond precision.
will [Sat, 24 Jan 2015 00:37:41 +0000 (00:37 +0000)]
Add routing_test:static_ipv6_loopback_route_for_each_fib.
It tests that all FIBs get a static IPv6 loopback route.
Submitted by: asomers
MFC after: 1 week
Sponsored by: Spectra Logic
MFSpectraBSD: 1048456 on 2014/03/13
1114523 on 2015/01/23
neel [Sat, 24 Jan 2015 00:35:49 +0000 (00:35 +0000)]
Add macro to identify AVIC capability (advanced virtual interrupt controller)
in AMD processors.
Submitted by: Dmitry Luhtionov (dmitryluhtionov@gmail.com)
will [Sat, 24 Jan 2015 00:04:34 +0000 (00:04 +0000)]
Bump config(8) minor version for r277567.
Config files built using this version that take advantage of the bugfix
won't be buildable using older config(8).
Submitted by: imp
MFC after: 1 week
MFC with: 277567
will [Fri, 23 Jan 2015 23:53:56 +0000 (23:53 +0000)]
Fix panic in firewire and creation of invalid config ROM.
(This change was supposed to be included in r277508.)
sys/boot/i386/libfirewire/firewire.c:
Fix configuration ROM generation count wrapping logic
so that the generation count is never outside of
allowed limits (0x2 -> 0xF).
Submitted by: gibbs
MFC after: 1 week
MFC with: 277508
Sponsored by: Spectra Logic
MFSpectraBSD: 1110685 on 2015/01/05
emaste [Fri, 23 Jan 2015 21:34:08 +0000 (21:34 +0000)]
Restore addr2line to cross tools
Addr2line is not required for the build, and a per-arch binary is no
longer required with the switch to the ELF Tool Chain. However, building
these tools during the cross tools stage can be useful for developers
who cross build HEAD from stable/10, and adds very little to the build
time.
Reviewed by: ian, imp
Differential Revision: https://reviews.freebsd.org/D1583
jilles [Fri, 23 Jan 2015 21:08:24 +0000 (21:08 +0000)]
Run make sysent.
jilles [Fri, 23 Jan 2015 21:07:08 +0000 (21:07 +0000)]
Add futimens and utimensat system calls.
The core kernel part is patch file utimes.2008.4.diff from
pluknet@FreeBSD.org. I updated the code for API changes, added the manual
page and added compatibility code for old kernels. There is also audit and
Capsicum support.
A new UTIME_* constant might allow setting birthtimes in future.
Differential Revision: https://reviews.freebsd.org/D1426
Submitted by: pluknet (partially)
Reviewed by: delphij, pluknet, rwatson
Relnotes: yes
gjb [Fri, 23 Jan 2015 21:04:59 +0000 (21:04 +0000)]
When iterating through VMFORMATS, the VMBASE file is
not removed or truncated to a zero-size file, which
if used to create more than one disk image format, can
result in accidental pollution of the target formatted
disk image.
Instead of using a single VMBASE image (vm.img, by
default), use a single base file for each format, named
as VMFORMAT.img, which produces VMBASE.VMFORMAT as the
final formatted image.
Reported by: cperciva
MFC after: 1 month
X-MFC-with: r277458, r277536
Sponsored by: The FreeBSD Foundation
pfg [Fri, 23 Jan 2015 20:40:31 +0000 (20:40 +0000)]
MFV r277607:
GDB: Fix memset thinkos.
2005-03-25 Anthony Green <green@redhat.com>
* remote.c (remote_store_registers): Fix memset usage.
* std-regs.c (value_of_builtin_frame_reg): Ditto.
(value_of_builtin_frame_fp_reg): Ditto.
(value_of_builtin_frame_reg): Ditto.
Reported by: Dirk Engling
CID: 604160, 604161, 604162, 604163
MFC after: 5 days
cperciva [Fri, 23 Jan 2015 20:24:13 +0000 (20:24 +0000)]
Provide a recipe of "true" for building the "release" target once its
prerequisites are satisfied, in order to avoid having an implicit rule
triggered by the presence of release.sh.
Approved by: gjb
gjb [Fri, 23 Jan 2015 19:33:46 +0000 (19:33 +0000)]
Update the latest revision.
Sponsored by: The FreeBSD Foundation
gjb [Fri, 23 Jan 2015 19:33:08 +0000 (19:33 +0000)]
Document r277458, support for cloud hosting providers added to
the Release Engineering build tools.
Sponsored by: The FreeBSD Foundation
gjb [Fri, 23 Jan 2015 19:33:05 +0000 (19:33 +0000)]
Document r277166, ptrace(2) Altivec register support.
Sponsored by: The FreeBSD Foundation
gjb [Fri, 23 Jan 2015 19:33:03 +0000 (19:33 +0000)]
Document r276881, libedit UTF-8 support.
Sponsored by: The FreeBSD Foundation
jkim [Fri, 23 Jan 2015 18:55:04 +0000 (18:55 +0000)]
Simplify retry loops. No functional change.
jkim [Fri, 23 Jan 2015 18:12:44 +0000 (18:12 +0000)]
Revert r216942. This commit was premature and caused too many complaints.
PR: 162859
MFC after: 3 days
will [Fri, 23 Jan 2015 16:21:31 +0000 (16:21 +0000)]
Use clock_gettime to measure the time that we spent asleep during
"vmstat -i" instead of assuming it's what we asked for.
Submitted by: asomers
MFC after: 1 week
Sponsored by: Spectra Logic
MFSpectraBSD: 1066751 on 2014/06/04
will [Fri, 23 Jan 2015 16:18:39 +0000 (16:18 +0000)]
Use CLOCK_UPTIME to get the uptime instead of CLOCK_MONOTONIC.
Submitted by: asomers
MFC after: 1 week
Sponsored by: Spectra Logic
MFSpectraBSD: 1066740 on 2014/06/04
will [Fri, 23 Jan 2015 16:15:55 +0000 (16:15 +0000)]
Make "vmstat -i" respect the -c <count> and -i <interval> options together.
Submitted by: asomers
MFC after: 1 week
Sponsored by: Spectra Logic
MFSpectraBSD: 1066735 on 2014/06/04
ian [Fri, 23 Jan 2015 16:05:47 +0000 (16:05 +0000)]
Add pinctrl driver support for the encoded input register config words
that the linux guys made up on the fly (but didn't document) last August.
This type of encoded config now appears in the imx6 fdt data.
will [Fri, 23 Jan 2015 16:03:02 +0000 (16:03 +0000)]
Allow lists for "nooption" and "nooptions" keywords.
usr.sbin/config/config.y
According to config(5), the "device", "devices",
"nodevice", "nodevices", "option", "options",
"nooption", and "nooptions" keywords can all take a
comma-separated list of values. However, the yacc code
did not allow lists for "nooption" and "nooptions", only
single values. This commit fixes the yacc code to allow
comma separated values for all the above keywords.
Submitted by: asomers
MFC after: 1 week
Sponsored by: Spectra Logic
MFSpectraBSD: 1095296 on 2014/10/07
will [Fri, 23 Jan 2015 15:55:03 +0000 (15:55 +0000)]
Print transfer times for read, write, & overall independently.
Round up calculated values for iops and average time per io to avoid a
shifting display if there are 1000+ (or even 10000+) iops, or if an
average time per io column is 1000+ ms.
Reviewed by: ken
MFC after: 1 week
Sponsored by: Spectra Logic
MFSpectraBSD: 1089947 on 2014/09/26
1093625 on 2014/09/29
1093650 on 2014/09/29
1095662 on 2014/10/09
kevlo [Fri, 23 Jan 2015 15:14:30 +0000 (15:14 +0000)]
Remove break after return.
will [Fri, 23 Jan 2015 14:30:24 +0000 (14:30 +0000)]
Log hardware interface up/down as "hardware" rather than just "hw".
Suggested by: glebius
MFC after: 1 week
MFC with: 277530
will [Fri, 23 Jan 2015 14:28:12 +0000 (14:28 +0000)]
When a CARP state change is caused by an ifconfig request, log it accordingly.
Suggested by: glebius
MFC after: 1 week
MFC with: 277530
ae [Fri, 23 Jan 2015 13:26:35 +0000 (13:26 +0000)]
After r270929 RAW IP code assumes that all IP fields are in network
byte order. Fix ping(8) to pass an IP header with converted ip_off
and ip_len fields, when IP_HDRINCL socket option used.
nwhitehorn [Fri, 23 Jan 2015 07:36:51 +0000 (07:36 +0000)]
Use relocation-safe methods to determine the sizes of the exception handlers.
A "size" symbol with its address set to the length of handler would be
shifted forward with all other addresses when relocations are processed.
Instead, just note the end and do the subtraction at runtime.
danfe [Fri, 23 Jan 2015 07:30:57 +0000 (07:30 +0000)]
Fix usage example in kvprintf(9) and its copy in libstand(3): trailing '\n'
in bitfield argument is wrong, as it will be treated as bit 10, causing any
code printing >=10 bits with bit 10 on as having a trailing comma.
Newline (intended one) should be part of the format string (already present
in the examples).
Also fix grammar and kill EOL whitespace in comment while here.
PR: 195005
Approved by: bdrewery
ian [Fri, 23 Jan 2015 01:18:08 +0000 (01:18 +0000)]
Enable all the mmc/sd controllers, because there's no telling which ones
any given board will be using.
Yes, changing source is an unusually primitive power control implementation.
will [Fri, 23 Jan 2015 00:06:35 +0000 (00:06 +0000)]
Improve the distribution of LAGG port traffic.
I edited the original change to retain the use of arc4random() as a seed for
the hashing as a very basic defense against intentional lagg port selection.
The author's original commit message (edited slightly):
sys/net/ieee8023ad_lacp.c
sys/net/if_lagg.c
In lagg_hashmbuf, use the FNV hash instead of the old
hash32_buf. The hash32 family of functions operate one octet
at a time, and when run on a string s of length n, their output
is equivalent to :
----- i=n-1
\
n \ (n-i-1) 32
( seed^ + / 33^ * s[i] ) % 2^
/
----- i=0
The problem is that the last five bytes of input don't get
multiplied by sufficiently many powers of 33 to rollover 2^32.
That means that changing the last few bytes (but obviously not
the very last) of input will always change the value of the
hash by a multiple of 33. In the case of lagg_hashmbuf() with
ipv4 input, the last four bytes are the TCP or UDP port
numbers. Since the output of lagg_hashmbuf is always taken
modulo the port count, and 3 is a common port count for a lagg,
that's bad. It means that the UDP or TCP source port will
never affect which lagg member is selected on a 3-port lagg.
At 10Gbps, I was not able to measure any difference in CPU
consumption between the old and new hash.
Submitted by: asomers (original commit)
Reviewed by: emaste, glebius
MFC after: 1 week
Sponsored by: Spectra Logic
MFSpectraBSD: 1001723 on 2013/08/28 (original)
1114258 on 2015/01/22 (edit)
ngie [Thu, 22 Jan 2015 23:50:47 +0000 (23:50 +0000)]
Add sample log rotation support for opensm
Up to 7 archives of the log will be kept (just for consistency with the other
log rotation rules)
PR: 196788
MFC after: 1 week
Reviewed by: hselasky
Sponsored by: EMC / Isilon Storage Division
nwhitehorn [Thu, 22 Jan 2015 22:04:43 +0000 (22:04 +0000)]
Allow use of a pre-instantiated RTAS as well as a self-instantiated one. This
lets the kernel boot on RTAS-based systems by being kexec'ed from Linux.
gjb [Thu, 22 Jan 2015 19:43:05 +0000 (19:43 +0000)]
Rename the 'release' target to 'real-release', and
add two targets, 'vm-release' and 'cloudware-release',
that are invoked if WITH_VMIMAGES and WITH_CLOUDWARE
are not empty.
This fixes an issue where 'make release' would not
build the cloud provider targets because CLOUDWARE was
not yet set. [1]
Move the WITH_VMIMAGES and WITH_CLOUDWARE targets to
Makefile.vm.
Note: There is no 'cloudware-install' target yet, since
some of the disk image names may need to be specific to
the provider, so this is probably best handled by the
build scripts.
Reported by: cperciva [1]
MFC after: 1 month
X-MFC-with: r277458
Sponsored by: The FreeBSD Foundation
emaste [Thu, 22 Jan 2015 17:53:30 +0000 (17:53 +0000)]
Update reported elftoolchain version
The last elftoolchain update is upstream rev 3136. Update our reported
version and add M (Modified) suffix as our elftoolchain contains
additional fixes not yet committed upstream.
Sponsored by: The FreeBSD Foundation
ian [Thu, 22 Jan 2015 17:46:05 +0000 (17:46 +0000)]
Declare Maxmem on arm. This should have been part of r277532.
ian [Thu, 22 Jan 2015 17:42:30 +0000 (17:42 +0000)]
Add the Maxmem global and set it to the highest physical page number plus 1.