SVNews

NOTE: This service is experimental and subject to change! Use at your own risk!

Year:   Month: - or - Filter committers: - or -
Filter paths:
Include diffs if smaller than lines.

2015 - 01 - 26   (today)
04:04:57 - r277723
( 12 minutes ago)
by adrian
Affects:  /head/sys/kern/kern_timeout.c
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
03:26:37 - r277722
( 51 minutes ago)
by luigi
Affects: 
(6 files)
/stable/10/contrib/libpcap/*
/stable/10/lib/libpcap/*
Merge 272659:

Add netmap support to libpcap. Tcpdump and other native pcap clients
can now run directly on netmap ports using netmap:foo or valeXX:YY
as device names.

Modifications to existing code are small and trivial,
the netmap-specific code is all in a new file.

Please be aware that in netmap mode the physical interface is
disconnected from the host stack, so libpcap will steal the traffic
not just make a copy.

For the full version of the code (including linux and autotools support) see
        https://code.google.com/p/netmap-libpcap/
02:58:30 - r277721
(1 hour 19 minutes ago)
by nwhitehorn
Affects:  /projects/powernv/powerpc/aim/mp_cpudep.c
/projects/powernv/powerpc/include/spr.h
/projects/powernv/powerpc/powernv/platform_powernv.c
Make sure to set LPCR[LPES] so that external interrupts set SRR0 and SRR1
instead of HSRR0 and HSRR1. Without this, external interrupt handlers would
get the wrong MSR value when executing, causing eventual madness.

Sponsored by:   FreeBSD Foundation
2015 - 01 - 25   (yesterday)
23:58:34 - r277720
(4 hours 19 minutes ago)
by gonzo
Affects:  /head/sys/arm/ti/ti_i2c.c
- 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
23:43:12 - r277719
(4 hours 34 minutes ago)
by dim
Affects: 
(585 files)
/projects/clang360-import/*
Merge ^/head r277327 through r277718.
23:36:55 - r277718
(4 hours 40 minutes ago)
by dim
Affects: 
(2637 files)
/projects/clang360-import/contrib/llvm/*
Merge llvm 3.6.0rc1 from ^/vendor/llvm/dist, merge clang 3.6.0rc1 from
^/vendor/clang/dist, resolve conflicts, and cleanup patches.
22:29:23 - r277717
(5 hours 48 minutes ago)
by scottl
Affects:  /head/sys/dev/mps/mps.c
/head/sys/dev/mps/mps_user.c
Fix the ioctl interface to properly support fetching the header of regular
and extended config pages.

Obtained from:  Netflix, Inc.
MFC after:      3 days
22:08:36 - r277716
(6 hours 9 minutes ago)
by gonzo
Affects:  /head/sys/arm/ti/am335x/am335x_lcd.c
/head/sys/arm/ti/am335x/files.am335x
Add vt(4) support to AM335x LCDC driver
21:16:24 - r277715
(7 hours 1 minute ago)
by pho
Affects:  /user/pho/stress2/misc/kevent7.sh
Ignore ENOTDIR error seen with fts_close() and whitespace cleanup.

Sponsored by:    EMC / Isilon storage division
20:37:32 - r277714
(7 hours 40 minutes ago)
by jhb
Affects:  /head/sbin/ipfw/nat.c
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
20:16:45 - r277713
(8 hours 1 minute ago)
by jhb
Affects:  /head/sys/amd64/amd64/machdep.c
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
19:56:45 - r277712
(8 hours 21 minutes ago)
by jhb
Affects:  /head/sys/kern/vfs_subr.c
Change the default VFS timestamp precision from seconds to microseconds.

Discussed on:   arch@
MFC after:      2 weeks
19:56:43 - r277711
(8 hours 21 minutes ago)
by ngie
Affects: 
(12 files)
/projects/building-blocks/*
MFhead @ r277710
19:53:09 - r277710
(8 hours 24 minutes ago)
by jhb
Affects:  /head/sys/dev/pci/pci_pci.c
Pass a valid Dx state variable to PCIB_POWER_FOR_SLEEP() in pcib_resume()
instead of NULL.

Submitted by:   dchagin
MFC after:      2 weeks
19:45:44 - r277709
(8 hours 32 minutes ago)
by jhb
Affects:  /head/sys/netinet/tcp_hostcache.c
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
19:21:37 - r277708
(8 hours 56 minutes ago)
by matthew
Affects:  /svnadmin/conf/access
Take in mdf's commit bit for safe keeping, at his own request.

Approved by:    core (implicit)
16:35:03 - r277707
(11 hours 42 minutes ago)
by ae
Affects: 
(2 files)
/stable/10/sys/net/if_lagg.c
MFC r277295:
  Fix condition and really sort ports. Also add comment describing
  the intent of this code.
15:44:46 - r277706
(12 hours 33 minutes ago)
by des
Affects:  /head/etc/rc.d/local_unbound
Allow the user to specify the location of control.conf.
15:09:52 - r277705
(13 hours 8 minutes ago)
by pho
Affects: 
(4 files)
/user/pho/stress2/misc/*
Added default.cfg, make test program name conform to script name and
whitespace cleanup.

Sponsored by:    EMC / Isilon storage division
15:02:28 - r277704
(13 hours 15 minutes ago)
by pho
Affects:  /user/pho/stress2/misc/callout_reset_on.sh
Zero struct before use.

Sponsored by:    EMC / Isilon storage division
14:50:49 - r277703
(13 hours 27 minutes ago)
by ae
Affects: 
(3 files)
/stable/9/sys/net/if_lagg.c
MFC r277295:
  Fix condition and really sort ports. Also add comment describing
  the intent of this code.
14:32:48 - r277702
(13 hours 45 minutes ago)
by pho
Affects:  /user/pho/stress2/misc/core.sh
Code cleanup.

Sponsored by:    EMC / Isilon storage division
14:31:44 - r277701
(13 hours 46 minutes ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/trim_map.c
MFC r276983: When aggregating TRIM segments, move the new one to the end.

New segment at the list head may block all TRIM requests until txg of that
segment can be processed.  On my random I/O tests this change reduce peak
TRIM list length from 650 to 450 segments.  Hopefully it should reduce TRIM
burstiness when list processing is unblocked.
14:29:40 - r277700
(13 hours 48 minutes ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.c
MFC r276952: Add LBA as secondary sort key for synchronous I/O requests.

On FreeBSD gethrtime() implemented via getnanouptime(), that has 1ms (1/hz)
precision.  It makes primary sort key (timestamp) collision very possible.
In such situations sorting by secondary key of LBA is much more reasonable
then by totally meaningless zio pointer value.

With this change on multi-threaded synchronous ZVOL read I've measured 10%
throughput increase and average latency reduction.
14:25:44 - r277699
(13 hours 52 minutes ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c
MFC r276913: Use new optimized dmu_read_uio_dbuf() for ZVOLs in device mode.

This slightly reduces overhead by avoiding dnode_hold()/dnode_rele() calls.
13:15:12 - r277698
(15 hours 2 minutes ago)
by kib
Affects: 
(11 files)
/stable/10/lib/libc/sys/procctl.2
/stable/10/sys/*
MFC r277322:
Add procctl(2) PROC_TRACE_CTL command to enable or disable debugger
attachment to the process.
13:09:53 - r277697
(15 hours 8 minutes ago)
by kib
Affects: 
(4 files)
/stable/10/sys/fs/fifofs/fifo_vnops.c
/stable/10/sys/kern/kern_sig.c
/stable/10/sys/sys/signalvar.h
MFC r277321:
Make SIGSTOP working for sleeps done while waiting for fifo readers or
writers in open(2), when the fifo is located on an NFS mount.
12:50:26 - r277696
(15 hours 27 minutes ago)
by andrew
Affects: 
(572 files)
/projects/arm_intrng/*
MFC to r277695
12:11:50 - r277695
(16 hours 6 minutes ago)
by des
Affects:  /head/libexec/rtld-elf/rtld.c
/head/usr.bin/kdump/kdump.c
Allow tracing dlfunc() / dlsym() events.

MFC after:      1 week
12:02:38 - r277694
(16 hours 15 minutes ago)
by des
Affects:  /head/sys/amd64/conf/GENERIC
Remove ISA NICs.  Anyone still using these on amd64 can build their
own kernel.
11:57:18 - r277693
(16 hours 20 minutes ago)
by des
Affects:  /head/sys/boot/forth/beastie.4th
/head/sys/boot/forth/brand.4th
Fix the font in the text version.  This has bothered me for a long time...

MFC after:      1 week
08:16:51 - r277692
(20 hours 1 minute ago)
by cperciva
Affects: 
(2 files)
/stable/10/sys/dev/acpica/acpi_cpu.c
MFC r277318:
  When disabling C3+ CPU states due to the CPU_QUIRK_NO_C3 quirk, don't
  accidentally enable non-existent states.

  This bug was triggered if ACPI advertises the presence of a C2 state
  which we fail to parse via acpi_PkgGas due to our lack of support for
  FFixedHW resources, and causes an immediate panic when an attempt is
  made to enter the (NULL) state.

  One affected platform is the EC2 c4.8xlarge VM instance type; there
  may be others.
06:05:55 - r277691
(22 hours 11 minutes ago)
by ngie
Affects:  /projects/building-blocks/tools/build/options/WITHOUT_CCD
Try section 4..
06:05:24 - r277690
(22 hours 12 minutes ago)
by ngie
Affects:  /projects/building-blocks/tools/build/options/WITHOUT_CCD
Diff reduce with head
05:46:25 - r277689
(22 hours 31 minutes ago)
by ngie
Affects: 
(21 files)
/projects/building-blocks/*
MFhead @ r277688
05:37:06 - r277688
(22 hours 40 minutes ago)
by ngie
Affects:  /head/lib/Makefile
/head/tools/build/mk/OptionalObsoleteFiles.inc
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
05:30:45 - r277687
(22 hours 47 minutes ago)
by ngie
Affects:  /head/tools/build/mk/OptionalObsoleteFiles.inc
Fill in entries for MK_BSNMP == no

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
05:30:03 - r277686
(22 hours 47 minutes ago)
by ngie
Affects:  /head/etc/rc.d/Makefile
Install bsnmp rc.d script if MK_BSNMP != no

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
05:23:22 - r277685
(22 hours 54 minutes ago)
by ngie
Affects:  /head/tools/build/mk/OptionalObsoleteFiles.inc
Fill in some dtrace entries when MK_CDDL == no

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
05:18:03 - r277684
(22 hours 59 minutes ago)
by ngie
Affects: 
(2 files)
/stable/10/tools/regression/file/flock/flock.c
MFC r277527:

r277527 (by ngie):

  Make this compile with WARNS=6 and clang/gcc

  Sponsored by: EMC / Isilon Storage Division
05:15:45 - r277683
(23 hours 2 minutes ago)
by ngie
Affects:  /head/tools/build/mk/OptionalObsoleteFiles.inc
Fill in entries for MK_CUSE == no

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
05:15:06 - r277682
(23 hours 2 minutes ago)
by ngie
Affects:  /head/include/Makefile
Make install cuse headers if MK_CUSE != no

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
05:13:15 - r277681
(23 hours 4 minutes ago)
by ngie
Affects:  /head/sys/conf/kern.opts.mk
/head/sys/modules/Makefile
Build cuse(4) if MK_CUSE != no

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
04:58:41 - r277680
(23 hours 19 minutes ago)
by imp
Affects:  /head/ObsoleteFiles.inc
/head/share/man/man9/Makefile
/head/share/man/man9/spl.9
spl man page hasn't been relevant for a while, retire it.
04:56:43 - r277679
(23 hours 21 minutes ago)
by ngie
Affects:  /head/share/man/man5/src.conf.5
Regen src.conf(5)
04:52:48 - r277678
(23 hours 25 minutes ago)
by ngie
Affects: 
(8 files)
/head/*
Add MK_CCD knob for building and installing ccd(4), ccdconfig, etc

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
04:43:13 - r277677
(23 hours 34 minutes ago)
by ngie
Affects: 
(4 files)
/head/share/mk/src.opts.mk
/head/tools/build/*
/head/usr.sbin/Makefile
Add MK_BSDINSTALL knob for building and installing bsdinstall

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
04:37:44 - r277676
(23 hours 40 minutes ago)
by ngie
Affects: 
(5 files)
/head/*
Add MK_TALK knob for building the talk and talkd

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
04:20:11 - r277675
(23 hours 57 minutes ago)
by ngie
Affects: 
(10 files)
/head/*
Add MK_ISCSI knob for building the iscsi initiator, iscsi daemon, kernel
modules, etc

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
03:08:21 - r277674
(1 day 1 hour ago)
by ngie
Affects: 
(4 files)
/head/sbin/rcorder/Makefile
/head/sbin/rcorder/rcorder.c
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
03:02:29 - r277673
(1 day 1 hour ago)
by ngie
Affects:  /projects/building-blocks/sbin/rcorder/Makefile
/projects/building-blocks/sbin/rcorder/rcorder.c
- Revert r277670 (#include order is required for fparseln)
- Remove unnecessary CFLAGS+= -I now that make is no longer required to make
  rcorder build
02:48:26 - r277672
(1 day 1 hour ago)
by nwhitehorn
Affects:  /projects/powernv/powerpc/powernv/platform_powernv.c
Correctly start secondary CPUs.
02:47:35 - r277671
(1 day 1 hour ago)
by nwhitehorn
Affects:  /projects/powernv/powerpc/pseries/xics.c
Add SMP support to non-virtualized XICP driver. Note that this does not
yet support multi-socket systems, which have multiple root PICs.
02:30:44 - r277670
(1 day 1 hour ago)
by ngie
Affects:  /projects/building-blocks/sbin/rcorder/rcorder.c
Sort #include order
00:47:06 - r277669
(1 day 3 hours ago)
by markj
Affects:  /head/lib/libutil/gr_util.c
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
00:36:42 - r277668
(1 day 3 hours ago)
by markj
Affects:  /head/share/man/man9/SYSCALL_MODULE.9
Document the fact that modules declared with SYSCALL_MODULE(9) have their
names prefixed with "sys/".

MFC after:      3 days
00:34:43 - r277667
(1 day 3 hours ago)
by markj
Affects:  /head/lib/libproc/proc_sym.c
/head/lib/libproc/tests/proc_test.c
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
00:32:17 - r277666
(1 day 3 hours ago)
by ngie
Affects:  /head/share/Makefile
Only build share/dtrace if MK_CDDL != no

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
00:30:22 - r277665
(1 day 3 hours ago)
by ngie
Affects:  /head/rescue/rescue/Makefile
Only build vi support into rescue if MK_VI != no

Sponsored by: EMC / Isilon Storage Division
00:28:15 - r277664
(1 day 3 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/contrib/netbsd-tests/lib/libpthread/t_detach.c
MFC r277278:

r277278 (by ngie):

  Fix lib/libthr/tests/detach_test

  - Eliminate race with liberal use of sleep(3) [1]
  - Fix NetBSD-specific implementation way of testing result from pthread_cancel
    by testing with `td` instead of `NULL` [2]

  PR: 196738 [1]
  PR: 191906 [2]

  Sponsored by: EMC / Isilon Storage Division
00:03:44 - r277663
(1 day 4 hours ago)
by ngie
Affects: 
(4 files)
/head/share/mk/src.opts.mk
/head/tools/build/*
/head/usr.bin/Makefile
Add MK_EE knob to control installing edit, ee, etc

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
2015 - 01 - 24   (2 days ago)
21:25:55 - r277662
(1 day 6 hours ago)
by pfg
Affects: 
(3 files)
/stable/9/sys/fs/ext2fs/ext2_hash.c
MFC     r277301:
ext2: cosmetical issues

Minor sorting and note when the cases are expected to fall through.
21:23:53 - r277661
(1 day 6 hours ago)
by pfg
Affects: 
(2 files)
/stable/10/sys/fs/ext2fs/ext2_hash.c
MFC     r277301:
ext2: cosmetical issues

Minor sorting and note when the cases are expected to fall through.
21:21:39 - r277660
(1 day 6 hours ago)
by ngie
Affects: 
(115 files)
/projects/building-blocks/*
MFhead @ r277659
21:05:18 - r277659
(1 day 7 hours ago)
by pfg
Affects: 
(2 files)
/head/contrib/gdb/gdb/corelow.c
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
21:00:51 - r277658
(1 day 7 hours ago)
by pfg
Affects:  /vendor/gdb/dist/gdb/corelow.c
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
20:34:15 - r277657
(1 day 7 hours ago)
by nwhitehorn
Affects: 
(4 files)
/projects/powernv/powerpc/powernv/*
Add basic power control (reset, power off) and bind ttyuX to opal console so
that
init will start login there.

Sponsored by:   FreeBSD Foundation
20:25:21 - r277656
(1 day 7 hours ago)
by pfg
Affects: 
(2 files)
/head/contrib/gdb/gdb/dwarf2expr.c
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
20:18:37 - r277655
(1 day 7 hours ago)
by ian
Affects:  /head/sys/dev/fdt/fdt_clock.c
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
20:16:34 - r277654
(1 day 8 hours ago)
by pfg
Affects:  /vendor/gdb/dist/gdb/dwarf2expr.c
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
19:49:27 - r277653
(1 day 8 hours ago)
by adrian
Affects:  /head/sys/dev/netmap/netmap.c
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
19:13:03 - r277652
(1 day 9 hours ago)
by bapt
Affects: 
(5 files)
/head/usr.sbin/pw/pw_group.c
/head/usr.sbin/pw/pw_user.c
/head/usr.sbin/pw/tests/*
Allow negative numbers in -u and -g options

PR:             196514
MFC after:      1 week
17:32:45 - r277651
(1 day 10 hours ago)
by will
Affects:  /head/sys/vm/vm_pageout.c
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
17:11:11 - r277650
(1 day 11 hours ago)
by will
Affects:  /head/etc/mtree/BSD.tests.dist
Add tests/etc/rc.d to mtree.

Submitted by:   stefanf
MFC after:      1 week
MFC with:       277627
16:59:38 - r277649
(1 day 11 hours ago)
by rstone
Affects:  /head/sys/vm/vm_map.c
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.
15:49:40 - r277648
(1 day 12 hours ago)
by jilles
Affects:  /head/contrib/netbsd-tests/lib/libc/c063/t_utimensat.c
/head/lib/libc/tests/c063/Makefile
Enable utimensat tests from NetBSD.

As with other tests from c063, a required #include <sys/stat.h> was missing.
15:40:52 - r277647
(1 day 12 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl_tpc.c
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
15:33:42 - r277646
(1 day 12 hours ago)
by kib
Affects:  /head/sys/vm/vm_pageout.c
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
13:50:13 - r277645
(1 day 14 hours ago)
by jilles
Affects:  /head/bin/cp/utils.c
/head/bin/mv/mv.c
/head/usr.bin/touch/touch.c
cp,mv,touch: Set timestamps with nanosecond precision.

This uses utimensat().
13:07:07 - r277644
(1 day 15 hours ago)
by br
Affects: 
(13 files)
/head/sys/arm/freescale/imx/*
/head/sys/boot/fdt/dts/arm/*
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.
12:51:15 - r277643
(1 day 15 hours ago)
by kib
Affects: 
(5 files)
/head/sys/*
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
12:43:36 - r277642
(1 day 15 hours ago)
by kib
Affects:  /head/share/man/man3/tree.3
/head/sys/sys/tree.h
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
08:48:05 - r277641
(1 day 19 hours ago)
by luigi
Affects:  /head/release/picobsd/build/picobsd
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.
08:35:49 - r277640
(1 day 19 hours ago)
by kib
Affects: 
(2 files)
/stable/10/lib/libthr/thread/thr_sig.c
MFC r277488:
Do not allow pthread_sigmask() to block SIGCANCEL.
06:11:13 - r277639
(1 day 22 hours ago)
by luigi
Affects:  /stable/10/release/picobsd/build/picobsd
use the same version as in HEAD
(among other things, the -v flag to make is long since unsupported)
06:06:46 - r277638
(1 day 22 hours ago)
by delphij
Affects:  /head/contrib/tcpdump/tcpdump.c
Don't include libcapsicum headers when requested.

Reported by:    luigi
MFC after:      14 days
X-MFC-with:     r276788
04:41:14 - r277637
(1 day 23 hours ago)
by np
Affects:  /head/sys/conf/files
/head/sys/modules/cxgbe/if_cxgbe/Makefile
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@
03:04:08 - r277636
(2 days 1 hour ago)
by ngie
Affects: 
(3 files)
/stable/9/contrib/ofed/management/opensm/osmtest/main.c
MFC r277272:

  Don't call abort on usage errors; print out the usage message instead

  PR: 196793
  Sponsored by: EMC / Isilon Storage Division
02:16:53 - r277635
(2 days 2 hours ago)
by nwhitehorn
Affects:  /projects/powernv/powerpc/powernv/opal.h
/projects/powernv/powerpc/pseries/xics.c
Add a first-draft PIC driver. This does not yet have actual SMP support on
OPAL since we have to deal with the fact that these machines do not have
a global root PIC: instead of an interrupt tree, they have an interrupt web
with per-CPU controllers. This is a complication to deal with later.

With one CPU, however, this is enough to boot multiuser in the simulator.

Sponsored by:   FreeBSD Foundation
02:12:00 - r277634
(2 days 2 hours ago)
by nwhitehorn
Affects: 
(9 files)
/projects/powernv/*
Merge from head to get r277633.
01:58:15 - r277633
(2 days 2 hours ago)
by nwhitehorn
Affects:  /head/sys/powerpc/aim/machdep.c
Fix typo in r277561.
01:53:28 - r277632
(2 days 2 hours ago)
by gonzo
Affects:  /head/sys/arm/ti/am335x/am335x_lcd.c
After interrupt read value from register to make sure it reached hardware. This
should fix "Spurious inteerupt" message

Suggested by ian@
01:50:52 - r277631
(2 days 2 hours ago)
by will
Affects: 
(9421 files)
/projects/zfsd/head/*
IFC @r277630
01:20:15 - r277630
(2 days 2 hours ago)
by will
Affects: 
(40 files)
/projects/zfsd/head/tests/sys/*
Update the ZFS test suite for changes/bugfixes since the last round.

Pull in additional tests for FIBs, GEOM, DTrace, and unix_seqpacket.  These
will be pushed up to head separately from here, but are easier to manage in
one place.

Submitted by:   asomers, gibbs, will
Sponsored by:   Spectra Logic
00:43:02 - r277629
(2 days 3 hours ago)
by will
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c
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.
00:40:42 - r277628
(2 days 3 hours ago)
by smh
Affects: 
(2 files)
/stable/10/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
MFC r276194:
Prevent zpool upgrade failing due to unavailable pools

Sponsored by:   Multiplay
00:37:41 - r277627
(2 days 3 hours ago)
by will
Affects: 
(4 files)
/head/etc/tests/Makefile
/head/etc/tests/rc.d/Makefile
/head/etc/tests/rc.d/routing_test.sh
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
00:35:49 - r277626
(2 days 3 hours ago)
by neel
Affects:  /head/sys/amd64/vmm/amd/svm.c
Add macro to identify AVIC capability (advanced virtual interrupt controller)
in AMD processors.

Submitted by:   Dmitry Luhtionov (dmitryluhtionov@gmail.com)
00:27:50 - r277625
(2 days 3 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/sys/kern/kern_lockf.c
MFC r276904:

Improve style and fix a possible use-after-free case introduced in r268384
by reinitializing the 'freestate' pointer after freeing the memory.

Obtained from:  HardenedBSD (71fab80c5dd3034b71a29a61064625018671bbeb)
PR:             194525
Submitted by:   Oliver Pinter <oliver.pinter@hardenedbsd.org>
00:04:34 - r277624
(2 days 4 hours ago)
by will
Affects:  /head/usr.sbin/config/configvers.h
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
2015 - 01 - 23   (3 days ago)
23:54:55 - r277623
(2 days 4 hours ago)
by nwhitehorn
Affects: 
(9 files)
/projects/powernv/conf/*
/projects/powernv/powerpc/*
First round of PowerNV support: platform module, OPAL firmware abstraction
layer interface, and console driver.

The next set of interesting things is interrupt controller and PCI host
bridge drivers.

Sponsored by:   FreeBSD Foundation
23:53:56 - r277622
(2 days 4 hours ago)
by will
Affects:  /head/sys/boot/i386/libfirewire/firewire.c
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
23:52:33 - r277621
(2 days 4 hours ago)
by nwhitehorn
Affects:  /projects/powernv/conf/Makefile.powerpc
Build kernel as a position-independent executable, required for it to be a
skiboot payload.

Sponsored by:   FreeBSD Foundation
23:49:33 - r277620
(2 days 4 hours ago)
by nwhitehorn
Affects:  /projects/powernv
Branch for running bare-metal (NV = non-virtualized) on OpenPOWER systems
such as the Tyan POWER8 reference system.

Sponsored by:   FreeBSD Foundation (hardware purchase)
23:09:38 - r277619
(2 days 5 hours ago)
by ngie
Affects: 
(3 files)
/stable/9/contrib/ofed/usr.lib/libibcm/Makefile
MFC r276804:

  Fix 'make depend' before infiniband headers have been installed to build host
  by removing space between -I and the header directory

  Sponsored by: EMC / Isilon Storage Division
22:46:07 - r277618
(2 days 5 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c
MFC r275923:

Add missing continue: we can't proceed further if the
kernel does not panic with zfs_panic_recover.

Illumos issue:
    5438 zfs_blkptr_verify should continue after zfs_panic_recover

Reported by:    Coverity
CID:            1232014
22:39:27 - r277617
(2 days 5 hours ago)
by ngie
Affects: 
(3 files)
/stable/9/contrib/ofed/Makefile
MFC r276806:

  Remove unnecessary .include of bsd.own.mk

  Sponsored by: EMC / Isilon Storage Division
22:35:55 - r277616
(2 days 5 hours ago)
by glebius
Affects: 
(330 files)
/projects/ifnet/*
Merge head r257698 through r277615.
21:47:44 - r277615
(2 days 6 hours ago)
by dchagin
Affects: 
(743 files)
/user/dchagin/lemul/*
Merge from head.
21:45:59 - r277614
(2 days 6 hours ago)
by gjb
Affects:  /user/gjb/thermite/thermite.sh
Update copyright year.

Sponsored by:   The FreeBSD Foundation
21:44:52 - r277613
(2 days 6 hours ago)
by gjb
Affects:  /user/gjb/thermite/master.conf
/user/gjb/thermite/thermite.sh
Syncronize thermite.sh after recent changes:

 - Prefix output lines with a timestamp in info() and
   verbose().

 - In prebuild_setup(), fix output when creating work
   directories.

 - Use 'releasesrc' to determine from which branch to
   checkout the release/ directory, which defaults to
   'head'.

 - In build_release(), use set(1) instead of printenv(1)
   to print the environment to the log file for debugging

 - Remove build_vmimage(), which is no longer needed.

 - Add '-d' flag for debugging, which invokes verbose().

Update the configuration file to closer match what is
used for weekly snapshot builds.

Sponsored by:   The FreeBSD Foundation
21:34:08 - r277612
(2 days 6 hours ago)
by emaste
Affects:  /head/Makefile.inc1
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
21:08:24 - r277611
(2 days 7 hours ago)
by jilles
Affects: 
(11 files)
/head/sys/compat/freebsd32/*
/head/sys/kern/*
/head/sys/sys/*
Run make sysent.
21:07:08 - r277610
(2 days 7 hours ago)
by jilles
Affects: 
(18 files)
/head/*
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
21:04:59 - r277609
(2 days 7 hours ago)
by gjb
Affects:  /head/release/Makefile.vm
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
20:40:31 - r277608
(2 days 7 hours ago)
by pfg
Affects: 
(3 files)
/head/contrib/gdb/gdb/remote.c
/head/contrib/gdb/gdb/std-regs.c
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
20:32:19 - r277607
(2 days 7 hours ago)
by pfg
Affects:  /vendor/gdb/dist/gdb/remote.c
/vendor/gdb/dist/gdb/std-regs.c
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.

Sourceware commit:      170cd118a9e2169798247e70160f5a638b516661
20:24:13 - r277606
(2 days 7 hours ago)
by cperciva
Affects:  /head/release/Makefile
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
19:43:57 - r277605
(2 days 8 hours ago)
by glebius
Affects: 
(5 files)
/projects/ifnet/sys/dev/*
/projects/ifnet/sys/net/*
/projects/ifnet/sys/netgraph/ng_iface.c
While not too late, change order of arguments to if_drvioctl(),
making it more "natural:
- ifp is the first argument
- ioctl cmd and argument go together
19:33:46 - r277604
(2 days 8 hours ago)
by gjb
Affects:  /head/release/doc/en_US.ISO8859-1/relnotes/article.xml
Update the latest revision.

Sponsored by:   The FreeBSD Foundation
19:33:08 - r277603
(2 days 8 hours ago)
by gjb
Affects:  /head/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r277458, support for cloud hosting providers added to
the Release Engineering build tools.

Sponsored by:   The FreeBSD Foundation
19:33:05 - r277602
(2 days 8 hours ago)
by gjb
Affects:  /head/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r277166, ptrace(2) Altivec register support.

Sponsored by:   The FreeBSD Foundation
19:33:03 - r277601
(2 days 8 hours ago)
by gjb
Affects:  /head/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r276881, libedit UTF-8 support.

Sponsored by:   The FreeBSD Foundation
19:22:18 - r277600
(2 days 8 hours ago)
by glebius
Affects:  /projects/ifnet/sys/dev/virtio/network/if_vtnet.c
/projects/ifnet/sys/net/if.c
/projects/ifnet/sys/net/if.h
Revert tiny part of r277456. Looks like we are stuck with 16-bit
ifr_flags forever :(
19:19:34 - r277599
(2 days 8 hours ago)
by delphij
Affects:  /stable/10/release/doc/en_US.ISO8859-1/relnotes/article.xml
Note OpenSSL MFC.

This is a direct commit to stable/10.
19:17:04 - r277598
(2 days 9 hours ago)
by jkim
Affects: 
(2 files)
/stable/10/secure/lib/libcrypto/Makefile
MFC:            r277274

Update buildinf.h to make SSLeay_version(3) little bit more useful.
19:14:36 - r277597
(2 days 9 hours ago)
by jkim
Affects: 
(347 files)
/stable/10/crypto/openssl/*
/stable/10/secure/lib/*
/stable/10/secure/usr.bin/openssl/man/*
MFC:            r277270

Merge OpenSSL 1.0.1l.

Relnotes:       yes
18:56:31 - r277596
(2 days 9 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/ObsoleteFiles.inc
MFC r276891:

var/named/etc/namedb/working should be removed as part of namedb.
18:55:24 - r277595
(2 days 9 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/sys/dev/syscons/daemon/daemon_saver.c
MFC r276795:

Fix sos@'s name.
18:55:04 - r277594
(2 days 9 hours ago)
by jkim
Affects:  /head/sys/dev/acpica/acpi_ec.c
Simplify retry loops.  No functional change.
18:50:36 - r277593
(2 days 9 hours ago)
by delphij
Affects: 
(38 files)
/stable/9/contrib/file/*
/stable/9/lib/libmagic/config.h
MFC r276577: MFV r276568:

Update file to 5.22.
18:48:59 - r277592
(2 days 9 hours ago)
by delphij
Affects: 
(37 files)
/stable/10/contrib/file/*
/stable/10/lib/libmagic/config.h
MFC r276577: MFV r276568:

Update file to 5.22.
18:45:22 - r277591
(2 days 9 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/usr.sbin/nfsd/nfsd.8
MFC r276495: Fix markup for minthreads and maxthreads.

PR:     196403
18:42:05 - r277590
(2 days 9 hours ago)
by delphij
Affects: 
(3 files)
/stable/10/usr.bin/seq/seq.1
/stable/10/usr.bin/seq/seq.c
MFC r275918:

Sync with NetBSD, mainly address NetBSD bug #43355:

Fix valid_format() to be more careful about allowing only valid
printf formats.

Obtained from:        NetBSD
18:40:47 - r277589
(2 days 9 hours ago)
by delphij
Affects: 
(4 files)
/stable/10/cddl/contrib/opensolaris/lib/libnvpair/libnvpair.h
/stable/10/cddl/contrib/opensolaris/lib/libnvpair/nvpair_json.c
/stable/10/cddl/lib/libnvpair/Makefile
MFC r275552:  MFV r260710 + 275532:

Add a new method, nvlist_print_json to allow libnvpair to emit JSON.
18:39:26 - r277588
(2 days 9 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode.c
MFC r275922: MFV r275914:

As of r270383, the dbuf_compare comparator compares the dbuf
attributes in the following order:

      db_level (indirect level)
      db_blkid (block number)
      db_state (current state)
      the address of the element

Because db_state is being considered before the element's state,
changing of db_state would affect balancedness of the AVL tree,
even when the address of element compares differently.  For
instance, in dbuf_create, db_state may be altered after the
node is inserted into the AVL tree and may break AVL tree
balancedness.

Instead of using db_state as a comparision critera (introduced
in r270383), consider it only when we are doing a lookup, that
is one of the two dbuf pointers contains DB_SEARCH.

Illumos issue:
    5422 preserve AVL invariants in dn_dbufs
18:36:21 - r277587
(2 days 9 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_iter.c
MFC r275812: MFV r275784:

Plug a memory leak in libzfs.  In zfs_iter_bookmarks, an nvlist is allocated
before calling lzc_get_bookmarks, which allocates the nvlist again (and
overwrites the pointer to previously allocated list).

Illumos issue:
    5427 memory leak in libzfs when doing rollback
18:33:50 - r277586
(2 days 9 hours ago)
by delphij
Affects: 
(12 files)
/stable/10/cddl/contrib/opensolaris/cmd/zdb/zdb.c
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/*
MFC r275811: MFV r275783:

Convert ARC flags to use enum.  Previously, public flags are defined in
arc.h and private flags are defined in arc.c which can lead to confusion
and programming errors.

Consistently use 'hdr' (when referencing arc_buf_hdr_t) instead of 'buf'
or 'ab' because arc_buf_t are often named 'buf' as well.

Illumos issue:
    5369 arc flags should be an enum
    5370 consistent arc_buf_hdr_t naming scheme
18:30:32 - r277585
(2 days 9 hours ago)
by delphij
Affects: 
(33 files)
/stable/10/cddl/contrib/opensolaris/cmd/zdb/zdb.c
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/*
MFC r275782: MFV r275551:

Remove "dbuf phys" db->db_data pointer aliases.

Use function accessors that cast db->db_data to the appropriate
"phys" type, removing the need for clients of the dmu buf user
API to keep properly typed pointer aliases to db->db_data in order
to conveniently access their data.

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zap_leaf.c:
        In zap_leaf() and zap_leaf_byteswap, now that the pointer alias
        field l_phys has been removed, use the db_data field in an on
        stack dmu_buf_t to point to the leaf's phys data.

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dbuf.c:
        Remove the db_user_data_ptr_ptr field from dbuf and all logic
        to maintain it.

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dbuf.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dbuf.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dmu.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sa.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zap.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zap_micro.c:
        Modify the DMU buf user API to remove the ability to specify
        a db_data aliasing pointer (db_user_data_ptr_ptr).

cddl/contrib/opensolaris/cmd/zdb/zdb.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_diff.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_objset.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_traverse.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_tx.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_bookmark.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_deadlist.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_deleg.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_destroy.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_prop.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_scan.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_synctask.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_userhold.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sa.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_history.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zap.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zap_leaf.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zap_micro.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dsl_dataset.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dsl_dir.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zap_impl.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zap_leaf.h:
        Create and use the new "phys data" accessor functions
        dsl_dir_phys(), dsl_dataset_phys(), zap_m_phys(),
        zap_f_phys(), and zap_leaf_phys().

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dsl_dataset.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dsl_dir.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zap_impl.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zap_leaf.h:
        Remove now unused "phys pointer" aliases to db->db_data
        from clients of the DMU buf user API.

Illumos issue:
    5314 Remove "dbuf phys" db->db_data pointer aliases in ZFS
18:28:37 - r277584
(2 days 9 hours ago)
by delphij
Affects: 
(5 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/*
MFC r275781: MFV r275550:

In addition to r273158, make the code in spa_sync() that checks if the
current TXG is a no-op TXG less fragile.

Illumos issue:
    5347 idle pool may run itself out of space
18:23:19 - r277583
(2 days 9 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
MFC r275748: MFV r247174:

Expose arc_meta_limit, et al via kstats.

Note that as a result, vfs.zfs.arc_meta_used is removed.
The existing vfs.zfs.arc_meta_limit sysctl/tunable is retained
with a SYSCTL_PROC wrapper.

Illumos ZFS issues:
    3561 arc_meta_limit should be exposed via kstats

Relnotes:       yes
18:16:36 - r277582
(2 days 10 hours ago)
by delphij
Affects: 
(3 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/spa.h
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c
MFC r275740: MFV r275548:

Verify that the block pointer is structurally valid, before attempting to
read it in.  It can only be invalid in the case of a ZFS bug, but this
change will help identify such bugs in a more transparent way, by
panic'ing with a relevant message, rather than indexing off the end of an
array or something.

Illumos issue:
    5349 verify that block pointer is plausible before reading
18:15:15 - r277581
(2 days 10 hours ago)
by glebius
Affects: 
(2 files)
/stable/10/sys/netpfil/pf/pf_ioctl.c
Merge r274709 by eri@: deal with IPv6 same way as we IPv4 and calculate
the checksum before entering pf_test6().

PR:             172648, 179392
18:14:29 - r277580
(2 days 10 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/cddl/contrib/opensolaris/cmd/zfs/zfs.8
MFC r275739: MFV r275547:

Port Illumos 'zfs allow' examples update.  While I'm there also fix
a typo.

Illumos issue:
    4181 zfs(1m): 'zfs allow' examples in the man page are outdated
18:12:44 - r277579
(2 days 10 hours ago)
by jkim
Affects:  /head/sys/dev/acpica/acpi_ec.c
Revert r216942.  This commit was premature and caused too many complaints.

PR:             162859
MFC after:      3 days
18:11:48 - r277578
(2 days 10 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/cddl/contrib/opensolaris/cmd/zfs/zfs.8
MFC r274418 (gjb):

Fix an mdoc(7) macro that is not an option in the provided
description.

Bump Dd.

As CDDL License dictates, update the Copyright accordingly.

Sponsored by:   The FreeBSD Foundation
17:49:16 - r277577
(2 days 10 hours ago)
by glebius
Affects: 
(2 files)
/stable/10/usr.sbin/ngctl/main.c
Merge r277258: plug mutex leak in ngctl(8).
17:41:34 - r277576
(2 days 10 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_scan.c
MFC r275738: MFV r275546:

Reduce scrub activities when system there is enough dirty data, namely when
dirty data is more than zfs_vdev_async_write_active_min_dirty_percent (once
we start to increase the number of concurrent async writes).

While there also correct rounding error which would make scrub end up
pausing for (zfs_txg_timeout + 1) seconds instead of the desired
zfs_txg_timeout seconds.

Illumos issue:
    5351 scrub goes for an extra second each txg
    5352 scrub should pause when there is some dirty data
17:31:41 - r277575
(2 days 10 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c
MFC r275737:  MFV r275545:

If zio_checksum_error() returns other than ECKSUM (e.g. EINVAL), it does not
fill in the "zio_bad_cksum_t *info" parameter. Caller should not attempt to
use it in this case.

Illumos issue:
    5348 zio_checksum_error() only fills in info if ECKSUM
17:24:56 - r277574
(2 days 10 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode_sync.c
MFC r275736: MFV r275544:

Clean up some duplicated code in dnode_sync() around freeing spill blocks.

Illumos issue:
    5350 clean up code in dnode_sync()
17:21:11 - r277573
(2 days 10 hours ago)
by delphij
Affects: 
(3 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_prop.c
MFC r275735: MFV r275543:

Remove always true tests for ds->ds_phys' presence.

Clean up assertions in dsl_dataset_disown.

Remove unreachable code in dsl_dataset_disown().

Illumos issue:
    5310 Remove always true tests for non-NULL ds->ds_phys
17:16:26 - r277572
(2 days 11 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_traverse.c
MFC r275734: MFV r275542:

If a dnode has a spill block and there is an error while accessing
a data block then traverse_dnode() loses information about that error
and returns a status of visiting the spill block.

This issue is discovered by Spectra Logic.

Illumos issue:
    5311 traverse_dnode may report success when it should not

Original author:        gibbs
16:21:31 - r277571
(2 days 11 hours ago)
by will
Affects:  /head/usr.bin/vmstat/vmstat.c
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
16:18:39 - r277570
(2 days 11 hours ago)
by will
Affects:  /head/usr.bin/vmstat/vmstat.c
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
16:15:55 - r277569
(2 days 12 hours ago)
by will
Affects:  /head/usr.bin/vmstat/vmstat.c
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
16:05:47 - r277568
(2 days 12 hours ago)
by ian
Affects:  /head/sys/arm/freescale/imx/imx_iomux.c
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.
16:03:02 - r277567
(2 days 12 hours ago)
by will
Affects:  /head/usr.sbin/config/config.y
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
15:55:03 - r277566
(2 days 12 hours ago)
by will
Affects:  /head/usr.sbin/iostat/iostat.c
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
15:14:30 - r277565
(2 days 13 hours ago)
by kevlo
Affects:  /head/sys/dev/agp/agp_nvidia.c
/head/sys/dev/cx/cxddk.c
/head/sys/dev/dc/if_dc.c
Remove break after return.
14:30:24 - r277564
(2 days 13 hours ago)
by will
Affects:  /head/sys/netinet/ip_carp.c
Log hardware interface up/down as "hardware" rather than just "hw".

Suggested by:   glebius
MFC after:      1 week
MFC with:       277530
14:28:12 - r277563
(2 days 13 hours ago)
by will
Affects:  /head/sys/netinet/ip_carp.c
When a CARP state change is caused by an ifconfig request, log it accordingly.

Suggested by:   glebius
MFC after:      1 week
MFC with:       277530
13:26:35 - r277562
(2 days 14 hours ago)
by ae
Affects:  /head/sbin/ping/ping.c
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.
07:36:51 - r277561
(2 days 20 hours ago)
by nwhitehorn
Affects:  /head/sys/powerpc/aim/machdep.c
/head/sys/powerpc/aim/trap_subr32.S
/head/sys/powerpc/aim/trap_subr64.S
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.
07:30:57 - r277560
(2 days 20 hours ago)
by danfe
Affects: 
(4 files)
/head/lib/libstand/*
/head/share/man/man9/printf.9
/head/sys/kern/subr_prf.c
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
06:01:34 - r277559
(2 days 22 hours ago)
by ngie
Affects:  /projects/building-blocks/usr.sbin/Makefile
Remove the duplicate zzz entry
04:07:07 - r277558
(3 days ago)
by emaste
Affects:  /stable/10/lib/libelf/elf_scn.c
libelf: Improve ELF header validation

Avoid integer overflow and reading past EOF.

MFC of r276427, r276443, r277249 from contrib/elftoolchain.
02:39:00 - r277557
(3 days 1 hour ago)
by emaste
Affects: 
(2 files)
/stable/10/usr.sbin/crunch/crunchide/exec_elf32.c
crunchide: Correct 64-bit section header offset

For 64-bit binaries the Elf_Ehdr e_shoff is at offset 40, not 44.
Instead of using an incorrect hardcoded offset, let the compiler
figure it out for us with offsetof().

MFC of r277259
01:39:04 - r277556
(3 days 2 hours ago)
by ngie
Affects: 
(270 files)
/projects/building-blocks/*
MFhead @ r277555
01:18:08 - r277555
(3 days 2 hours ago)
by ian
Affects:  /head/sys/arm/freescale/imx/imx6_ccm.c
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.
00:54:56 - r277554
(3 days 3 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/cddl/compat/opensolaris/misc/thread_pool.c
MFC r275595:

Use calloc() instead of malloc() + bzero().  This also gets rid of a warning
because bzero is defined by strings.h which is not included in thread_pool.c.
00:44:14 - r277553
(3 days 3 hours ago)
by delphij
Affects: 
(4 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/metaslab.h
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c
MFC r275594: MFV r275540:

When importing a pool, don't assume that the passed pool configuration
at vdev_load is always vaild.  It's possible that a stale configuration
that comes with extra vdevs, where metaslab_init() would fail because
of lower layer returns error.

Change the code to make metaslab_init() handle and return errors from
lower layer and pass it back to upper layer and handle it there.

Illumos issue:
    5213 panic in metaslab_init due to space_map_open returning ENXIO
00:40:43 - r277552
(3 days 3 hours ago)
by delphij
Affects: 
(3 files)
/stable/10/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c
/stable/10/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c
MFC r275579: MFV r275537:

Illumos issue:
   5316 allow smbadm join to use RPC

(Due to our lack of smbsrv this is mostly no-op on
FreeBSD)
00:36:17 - r277551
(3 days 3 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/cddl/contrib/opensolaris/tools/ctf/cvt/ctftools.h
MFC r275563: MFV r275536:

Illumos issue:
    3363 Mark non-returning functions in ctftools
00:35:47 - r277550
(3 days 3 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/contrib/ofed/Makefile
MFC r276806:

r276806 (by ngie):

  Remove unnecessary .include of bsd.own.mk

  Sponsored by: EMC / Isilon Storage Division
00:34:19 - r277549
(3 days 3 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/contrib/netbsd-tests/bin/expr/t_expr.sh
MFC r276671,r277357:

r276671 (by ngie):

  Expect :arithmetic_ops_body to fail with syntax errors on FreeBSD

  Sponsored by: EMC / Isilon Storage Division

r277357 (by ngie):

  Expect :overflow to fail with FreeBSD's expr as it doesn't have stringent
  overflow checks like NetBSD's expr does

  PR: 196867
00:27:37 - r277548
(3 days 3 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/tools/regression/lib/libc/stdio/test-fmemopen.t
MFC r277453:

r277453 (by ngie):

  Garbage collect a prove test wrapper

  Sponsored by: EMC / Isilon Storage Division
00:27:08 - r277547
(3 days 3 hours ago)
by delphij
Affects: 
(4 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
/stable/10/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c
MFC r275562: MFV r275535:

Unexpand ISP2() and MSEC2NSEC().

Illumos issue:
    5255 uts shouldn't open-code ISP2
00:23:48 - r277546
(3 days 3 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/sys/cpuvar.h
MFC r275561: MFV r275534:

Sync with Illumos.  This have no effect to FreeBSD.

Illumos issue:
    5285 pass in cpu_pause_func via pause_cpus
00:19:58 - r277545
(3 days 3 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/sys/cpuvar.h
MFC r275533:

Sync with Illumos.  This have no effect to FreeBSD.

Illumos issue:
    5100 sparc build failed after 5004
00:06:35 - r277544
(3 days 4 hours ago)
by will
Affects:  /head/sys/net/ieee8023ad_lacp.c
/head/sys/net/if_lagg.c
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)
00:02:26 - r277543
(3 days 4 hours ago)
by glebius
Affects:  /projects/ifnet/sys/net/if_ethersubr.c
Return EOPNOTSUPP in case of not supported option.
2015 - 01 - 22   (4 days ago)
23:59:35 - r277542
(3 days 4 hours ago)
by glebius
Affects:  /projects/ifnet/sys/net/if.c
/projects/ifnet/sys/net/if.h
Remove the if_set(), if_get() and associated functions.

Requested by:   rwatson
23:50:47 - r277541
(3 days 4 hours ago)
by ngie
Affects: 
(4 files)
/head/etc/Makefile
/head/etc/newsyslog.conf.d/Makefile
/head/etc/newsyslog.conf.d/opensm.conf
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
23:45:38 - r277540
(3 days 4 hours ago)
by glebius
Affects: 
(5 files)
/projects/ifnet/sys/dev/*
/projects/ifnet/sys/net/*
Substitute if_set(ifp, IF_BAUDRATE, ...) with if_setbaudrate(ifp).
22:04:43 - r277539
(3 days 6 hours ago)
by nwhitehorn
Affects:  /head/sys/powerpc/ofw/rtas.c
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.
21:41:41 - r277538
(3 days 6 hours ago)
by pfg
Affects: 
(2 files)
/stable/10/usr.bin/sed/process.c
MFC     r276832 (partial), r277099

Avoid a warning from gcc48.
Replace __inline GNUism with the standard inline.
21:17:58 - r277537
(3 days 6 hours ago)
by brooks
Affects: 
(4 files)
/stable/10/lib/libc/mips/gen/_setjmp.S
/stable/10/lib/libc/mips/gen/setjmp.S
/stable/10/sys/mips/include/asm.h
MFC r274816:

Add FPU support for MIPS setjmp(3)/longjmp(3).

This change saves/restores the callee-saved MIPS floating point
registers as documented by the o32/n32/n64 spec ("MIPSpro N32
ABI Handbook", Table 2-1) for the _setjmp(3), _longjmp(3),
setjmp(3) and longjmp(3) C library functions.  This is only
included when the C library is built with hardware floating point
support (or when "SOFTFLOAT" is not defined).

Submitted by:   sson
Sponsored by:   DARPA, AFRL
19:43:05 - r277536
(3 days 8 hours ago)
by gjb
Affects:  /head/release/Makefile
/head/release/Makefile.vm
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
19:03:43 - r277535
(3 days 9 hours ago)
by pho
Affects: 
(31 files)
/user/pho/stress2/misc/*
Remove trailing whitespace.

Sponsored by:    EMC / Isilon storage division
17:53:30 - r277534
(3 days 10 hours ago)
by emaste
Affects:  /head/lib/libelftc/elftc_version.c
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
17:46:05 - r277533
(3 days 10 hours ago)
by ian
Affects:  /head/sys/arm/include/md_var.h
Declare Maxmem on arm.  This should have been part of r277532.
17:42:30 - r277532
(3 days 10 hours ago)
by ian
Affects:  /head/sys/arm/arm/physmem.c
Add the Maxmem global and set it to the highest physical page number plus 1.
17:13:43 - r277531
(3 days 11 hours ago)
by ume
Affects:  /head/bin/freebsd-version/Makefile
Don't include newvers.sh into freebsd-version.
17:09:54 - r277530
(3 days 11 hours ago)
by will
Affects:  /head/sys/netinet/ip_carp.c
Improve CARP logging so that all state transitions are logged.

sys/netinet/ip_carp.c:
        Add a "reason" string parameter to carp_set_state() and
        carp_master_down_locked() allowing more specific logging
        information to be passed into these apis.

        Refactor existing state transition logging into a single
        log call in carp_set_state().

        Update all calls to carp_set_state() and
        carp_master_down_locked() to pass an appropriate reason
        string.  For state transitions that were previously logged,
        the output should be unchanged.

Submitted by:   gibbs (original), asomers (updated)
MFC after:      1 week
Sponsored by:   Spectra Logic
MFSpectraBSD:   1039697 on 2014/02/11 (original)
                1049992 on 2014/03/21 (updated)
14:49:36 - r277529
(3 days 13 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
Don't count requests with status sent as overlapping.

While those requests are still in target OOA queue, for initiator they are
already completed, so tags can be reused.

MFC after:      1 week
11:12:42 - r277528
(3 days 17 hours ago)
by hselasky
Affects: 
(15 files)
/head/share/man/man9/*
/head/sys/*
Revert for r277213:

FreeBSD developers need more time to review patches in the surrounding
areas like the TCP stack which are using MPSAFE callouts to restore
distribution of callouts on multiple CPUs.

Bump the __FreeBSD_version instead of reverting it.

Suggested by:           kmacy, adrian, glebius and kib
Differential Revision:  https://reviews.freebsd.org/D1438
09:25:31 - r277527
(3 days 18 hours ago)
by ngie
Affects:  /head/tools/regression/file/flock/flock.c
Make this compile with WARNS=6 and clang/gcc

MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division
09:07:02 - r277526
(3 days 19 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/kern/kern_sig.c
MFC r277236:
For sigaction(2), ignore possible garbage in sa_flags for sa_handler
== SIG_DFL or SIG_IGN.
09:02:58 - r277525
(3 days 19 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/compat/freebsd32/freebsd32_misc.c
MFC r277211:
fcntl F_O{GET,SET}LK take pointer as the arg, handle them properly for
compat32.
03:56:23 - r277524
(4 days ago)
by rstone
Affects:  /head/sys/dev/hwpmc/hwpmc_core.c
/head/sys/dev/hwpmc/pmc_events.h
/head/sys/sys/pmc.h
style(9) cleanup
03:33:51 - r277523
(4 days ago)
by gonzo
Affects:  /head/sys/arm/arm/trap-v6.c
Add last_fault_code used in pmap-v6.c if kernel is compiled with "option DEBUG"
03:32:04 - r277522
(4 days ago)
by gonzo
Affects:  /head/sys/arm/ti/am335x/am335x_lcd.c
Write ACK for all kinds of LCDC interrupts
02:24:42 - r277521
(4 days 1 hour ago)
by gjb
Affects: 
(6 files)
/stable/9/etc/defaults/periodic.conf
/stable/9/etc/periodic/daily/*
/stable/9/share/man/man5/periodic.conf.5
MFC r277216:
  Evaluate running userland/kernel version in daily
  periodic(8) run, taken from uname(1) '-U' and '-K'
  flags.

Sponsored by:   The FreeBSD Foundation
02:24:09 - r277520
(4 days 1 hour ago)
by gjb
Affects: 
(5 files)
/stable/10/etc/defaults/periodic.conf
/stable/10/etc/periodic/daily/*
/stable/10/share/man/man5/periodic.conf.5
MFC r277216:
  Evaluate running userland/kernel version in daily
  periodic(8) run, taken from uname(1) '-U' and '-K'
  flags.

Sponsored by:   The FreeBSD Foundation
01:23:16 - r277519
(4 days 2 hours ago)
by glebius
Affects: 
(6 files)
/head/sys/net/pfvar.h
/head/sys/netpfil/pf/*
Back out r276841, r276756, r276747, r276746. The change in r276747 is very
very questionable, since it makes vimages more dependent on each other. But
the reason for the backout is that it screwed up shutting down the pf purge
threads, and now kernel immedially panics on pf module unload. Although module
unloading isn't an advertised feature of pf, it is very important for
development process.

I'd like to not backout r276746, since in general it is good. But since it
has introduced numerous build breakages, that later were addressed in
r276841, r276756, r276747, I need to back it out as well. Better replay it
in clean fashion from scratch.
00:52:34 - r277518
(4 days 3 hours ago)
by will
Affects:  /head/tools/tools/nanobsd/nanobsd.sh
Enable nanobsd.sh to be executed when pwd != NANO_SRC.

While here, fix a bug in which NANO_PMAKE would not be appended at the
appropriate time.

Simply move both checks to after the call to set_defaults_and_export().

Tested by:      lstewart
Sponsored by:   Spectra Logic
2015 - 01 - 21   (5 days ago)
21:49:03 - r277517
(4 days 6 hours ago)
by emaste
Affects:  /head/Makefile.inc1
Fix bootstrap on systems with old libdwarf and WITHOUT_CDDL

ELF Tool Chain tools need libelf and libdwarf.

Submitted by:   jmallett (earlier version)
Reviewed by:    jmallett
Sponsored by:   The FreeBSD Foundation
21:31:26 - r277516
(4 days 6 hours ago)
by ian
Affects:  /head/sys/arm/arm/bus_space_base.c
Move the __aligned() declaration to where it will actually do something.
20:32:36 - r277515
(4 days 7 hours ago)
by will
Affects:  /head/sys/dev/isp/isp.c
Fix SCSI status byte reporting on 4Gb and 8Gb Qlogic boards.

The newer boards don't have the response field that indicates
whether the SCSI status byte is present.  You have to just look to
see whether it is non-zero.

The code was looking to see whether the sense length was valid
before propagating the SCSI status byte (and sense information) up
the stack.  With a status like Reservation Conflict, there is no
sense information, only the SCSI status byte.  So it wasn't getting
correctly returned.

isp.c:
        In isp_intr(), if we are on a 2400 or 2500 type board and
        get a response, look at the actual contents of the
        SCSI status value and set the RQSF_GOT_STATUS flag
        accordingly so that return any SCSI status value we get.  The
        RQSF_GOT_SENSE flag will get set later on if there is
        actual sense information returned.

Submitted by:   ken
MFC after:      1 week
Sponsored by:   Spectra Logic
MFSpectraBSD:   1112791 on 2015/01/15
20:27:11 - r277514
(4 days 7 hours ago)
by will
Affects:  /head/sys/dev/isp/isp_freebsd.c
Force commit to record the correct log for r277513.

If the user sends an XPT_RESET_DEV CCB, make sure to reset the
Fibre Channel Command Reference Number if we're running on a FC
controller.

We send a SCSI Target Reset when we get this CCB, and as a result
need to reset the CRN to 1 on the next command.

isp_freebsd.c:
        In the XPT_RESET_DEV implementation in isp_action(), reset
        the CRN if we're on a FC controller.

Submitted by:   ken
MFC after:      1 week
Sponsored by:   Spectra Logic
MFSpectraBSD:   1112787 on 2015/01/15
20:22:53 - r277513
(4 days 7 hours ago)
by will
Affects:  /head/sys/dev/isp/isp_freebsd.c
Change 1112791 by kenm@ken.spectrabsd8 on 2015/01/15 16:45:13

Fix SCSI status byte reporting on 4Gb and 8Gb Qlogic boards.

The newer boards don't have the response field that indicates
whether the SCSI status byte is present.  You have to just look to
see whether it is non-zero.

The code was looking to see whether the sense length was valid
before propagating the SCSI status byte (and sense information) up
the stack.  With a status like Reservation Conflict, there is no
sense information, only the SCSI status byte.  So it wasn't getting
correctly returned.

isp.c:
        In isp_intr(), if we are on a 2400 or 2500 type board and
        get a response, look at the actual contents of the
        SCSI status value and set the RQSF_GOT_STATUS flag
        accordingly so that return any SCSI status value we get.  The
        RQSF_GOT_SENSE flag will get set later on if there is
        actual sense information returned.

Submitted by:   ken
MFC after:      1 week
Sponsored by:   Spectra Logic
MFSpectraBSD:   1112791 on 2015/01/15
20:12:35 - r277512
(4 days 8 hours ago)
by ian
Affects:  /head/sys/arm/arm/bus_space_base.c
/head/sys/arm/include/bus.h
Micro-optimize the new arm inline bus_space implementation by grouping all
the data the inline functions access together at the start of the bus_space
struct.  The start-of part isn't so important, it's the grouping-together
that's the point: now all the most-accessed data should be in one cache line.

Suggested by:     cognet
20:08:24 - r277511
(4 days 8 hours ago)
by will
Affects:  /head/sys/dev/firewire/fwohci.c
Fix remote DMA based firewire debugging when targeting
systems with more than 4GB of physical memory.

To remotely debug the system 'stealthy' which has a kernel
with this change installed and firewire properly configured:

        % fwcontrol -m stealthy (or stealthy's firewire EUI64)
        % kgdb kernel /dev/fwmem0.0

sys/dev/firewire/fwohci.c:
        Rather than hard code the upper limit for hw based
        automatic responses to remote DMA requests at 4GB,
        program the hardware using Maxmem, the page number
        one higher than the highest physical page detected
        in the system.

        While here, garbage collect more useless splfw()
        calls.

Submitted by:   gibbs
MFC after:      1 week
Sponsored by:   Spectra Logic
MFSpectraBSD:   1110994 on 2015/01/06
20:06:25 - r277510
(4 days 8 hours ago)
by will
Affects:  /head/sys/dev/firewire/firewire.c
Fix firewire panic when issuing a reply to an unhandled
asynchronous remote dma request (DMA request that the
hardware cannot automatically handle).

sys/dev/firewire/firewire.c
        In fw_rcv(), add missing early return in the error
        path for DMA requests to unregistered regions.

Submitted by:   gibbs
MFC after:      1 week
Sponsored by:   Spectra Logic
MFSpectraBSD:   1110993 on 2015/01/06
20:05:10 - r277509
(4 days 8 hours ago)
by will
Affects:  /head/sys/dev/firewire/firewire.c
/head/sys/dev/firewire/fwmem.c
Properly lock accesss to the firewire_comm->devices list.

sys/dev/firewire/firewire.c:
        Add missing FW_GLOCK/UNLOCK() usage to fw_noderesolve_nodeid().

sys/dev/firewire/firewire.c:
sys/dev/firewire/fwmem.c:
        Remove no-op splfw() calls from functions that have been
        audited for proper lock usage.

Submitted by:   gibbs
MFC after:      1 week
Sponsored by:   Spectra Logic
MFSpectraBSD:   1110992 on 2015/01/06
20:03:46 - r277508
(4 days 8 hours ago)
by will
Affects:  /head/sys/dev/firewire/firewire.c
Fix panic in firewire and creation of invalid config ROM.

sys/boot/i386/libfirewire/firewire.c:
sys/dev/firewire/firewire.c:
        Fix configuration ROM generation count wrapping logic
        so that the generation count is never outside of
        allowed limits (0x2 -> 0xF).

sys/dev/firewire/firewire.c:
        In fw_xfer_unload(), xfer->fc may be NULL.  Protect
        against this before taking the fc lock.

Submitted by:   gibbs
MFC after:      1 week
Sponsored by:   Spectra Logic
MFSpectraBSD:   1110685 on 2015/01/05
20:02:16 - r277507
(4 days 8 hours ago)
by will
Affects:  /head/sys/dev/firewire/firewire.c
Fix a FWXF_INQ race in the firewire driver.

sys/dev/firewire/firewire.c:
        In fw_xfer_unload() expand lock coverage so that
        the test for FWXF_INQ doesn't race with it being
        cleared in another thread.

Submitted by:   gibbs
MFC after:      1 week
Sponsored by:   Spectra Logic
MFSpectraBSD:   1110207 on 2015/01/02
19:59:09 - r277506
(4 days 8 hours ago)
by will
Affects:  /head/sys/dev/firewire/firewire.c
Fix one cause of firewire panics.

sys/dev/firewire/firewire.c:
        In fw_xfer_unload(), clear the FWXF_INQ flag on the
        xfer under protection of the FW_GMTX, after the
        xfer is removeed from the tx/rx queue.  Otherwise
        it is possible for the xfer to be removed again
        (corrupting the list or immediately panicing) from
        another thread that has found this xfer in the
        transaction label table.

Submitted by:   gibbs
MFC after:      1 week
Sponsored by:   Spectra Logic
MFSpectraBSD:   1110200 on 2015/01/02
19:53:52 - r277505
(4 days 8 hours ago)
by will
Affects:  /head/sys/dev/dcons/dcons.c
/head/sys/dev/dcons/dcons_crom.c
/head/sys/dev/dcons/dcons_os.h
Garbage collect dragonfly and legacy FreeBSD system support from dcons(4).

Submitted by:   gibbs
MFC after:      1 week
Sponsored by:   Spectra Logic
MFSpectraBSD:   1110990 on 2015/01/06
19:30:01 - r277504
(4 days 8 hours ago)
by will
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c
Remove commented log messages.
19:25:57 - r277503
(4 days 8 hours ago)
by will
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
Ignore sync requests from the system syncher, i.e. VFS_SYNC(waitfor=MNT_LAZY).

ZFS already commits outstanding data every zfs_txg_timeout seconds, so these
syncs are unnecessarily intrusive.

Submitted by:   gibbs
Sponsored by:   Spectra Logic
MFSpectraBSD:   1105759 on 2014/12/11
19:23:46 - r277502
(4 days 8 hours ago)
by gonzo
Affects:  /head/sys/arm/ti/ti_mbox.c
/head/sys/arm/ti/ti_pruss.c
Remove "#define DEBUG" that conflicts with "option DEBUG" in kernel config
19:20:36 - r277501
(4 days 8 hours ago)
by will
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
Eliminate an #ifdef illumos for zfs_ioc_rename().

Since allow_mounted is a FreeBSD-specific change, default to B_TRUE, then
locally check for the magic bit.  Unconditionally check allow_mounted below.
Convert the setting of allow_mounted to an explicit boolean.

MFC after:      1 week
Sponsored by:   Spectra Logic
MFSpectraBSD:   672578 (in part) on 2013/07/19
19:11:15 - r277500
(4 days 9 hours ago)
by nwhitehorn
Affects:  /head/sys/powerpc/aim/machdep.c
Add POWER7+ and POWER8 to the list of CPUs with 32 SLB slots. This is
mostly a no-op since all currently-supported instances of these CPUs give
the number of SLB slots in the device tree, but keep it here as well just
in case.
19:09:15 - r277499
(4 days 9 hours ago)
by nwhitehorn
Affects:  /head/sys/powerpc/aim/locore64.S
/head/sys/powerpc/powerpc/elf64_machdep.c
Make sure to relocate tmpstk with everything else and avoid processing
non-relative relocations that the UART code makes for absent modules.
19:07:45 - r277498
(4 days 9 hours ago)
by nwhitehorn
Affects:  /head/sys/powerpc/aim/machdep.c
/head/sys/powerpc/aim/trap_subr64.S
/head/sys/powerpc/include/trap.h
Make 64-bit AIM trap handlers relocatable by changing all absolute branch
instructions to call through pointers instead. In general, these are set
implicitly through relocation processing. One has to be set explicitly in
machdep.c, however, to fit one handler in the tiny (8 instruction) space
available.

Reviewed by:    andreast
Differential revision:  D1554
Tested on:      UP and SMP G5, Cell, POWER5+
19:04:55 - r277497
(4 days 9 hours ago)
by emaste
Affects:  /head/Makefile.inc1
Remove addr2line from cross elftoolchain tools list

It is not required, and there is no reason to install it just because it
came with the binutils cross tools.

Sponsored by:   The FreeBSD Foundation
18:32:53 - r277496
(4 days 9 hours ago)
by mjg
Affects:  /head/sys/kern/kern_descrip.c
filedesc: avoid spurious copying of capabilities in fget_unlocked

We obtain a stable copy and store it in local 'fde' variable. Storing another
copy (based on aforementioned variable) does not serve any purpose.

No functional changes.
18:05:42 - r277495
(4 days 10 hours ago)
by mjg
Affects:  /head/sys/kern/kern_descrip.c
filedesc: return 0 from badfo_close

The only potential in-tree consumer (_fdrop) special-cased it and returns 0
0 on its own instead of calling badfo_close.

Remove the special case since it is not needed and very unlikely to encounter
anyway.

No objections from:     kib
18:02:28 - r277494
(4 days 10 hours ago)
by mjg
Affects:  /head/sys/kern/kern_descrip.c
filedesc: fix whitespace nits in fget and fget_read

No functional changes.
17:59:32 - r277493
(4 days 10 hours ago)
by jhb
Affects: 
(2 files)
/stable/10/sys/x86/x86/local_apic.c
MFC 272666: Fix build for i386 kernels with out 'I686_CPU'.

Reported by:    Mike Tancsa <mike@sentex.net>
17:03:11 - r277492
(4 days 11 hours ago)
by will
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/refcount.c
Add vfs.zfs.reference_tracking_enable sysctl/tunable.

This is primarily for developer/debugging use; it enables built-in tagged
tracking of refcounts inside ZFS.  It can only be enabled from the loader,
since it modifies how in-core state is managed.  Default remains disabled.

MFC after:      1 week
Sponsored by:   Spectra Logic
16:52:24 - r277491
(4 days 11 hours ago)
by andrew
Affects:  /head/sys/dev/ofw/ofw_cpu.c
Update the parsing of the cpu node. We are unable to use the reg property
as the cpu id on arm64 as it may use two cells. In it's place we can use
the device id.

It is expected we will use the reg data on arm64 to enable cores so we
still need to read and store it even if it is not yet used.

Differential Revision:  https://reviews.freebsd.org/D1555
Reviewed by:    nwhitehorn
Sponsored by:   The FreeBSD Foundation
16:41:05 - r277490
(4 days 11 hours ago)
by andrew
Affects: 
(23 files)
/head/lib/libthr/Makefile
/head/lib/libthr/arch/*
/head/lib/libthr/thread/*
Merge all the copies of _tcb_ctor and _tcb_dtor.

The amd64, i386, and sparc64 versions were identical, with the one
difference where the former two used inline asm instead of _tcb_get. I
have compared the function before and after replacing the asm with _tcb_get
and found the object files to be identical.

The arm, mips, and powerpc versions were almost identical. The only
difference was the powerpc version used an alignment of 1 where arm and
mips used 16. As this is an increase in alignment is will be safe.

Along with this arm, mips, and powerpc all passed, when initial was true,
the value returned from _tcb_get as the first argument to
_rtld_allocate_tls. This would then return this pointer back to the caller.
We can remove these extra calls by checking if initial is set and setting
the thread control block directly. As this is what the sparc64 code does
we can use it directly.

As after these observations all the architectures can now have identical
code we can merge them into a common file.

Differential Revision:  https://reviews.freebsd.org/D1556
Reviewed by:    kib
Sponsored by:   The FreeBSD Foundation
16:32:54 - r277489
(4 days 11 hours ago)
by kib
Affects:  /head/sys/kern/sys_pipe.c
Do not assert that the new pipepair mutex is not initialized.  The
backing memory contains garbage and might trigger the assertion.

Reported and tested by: pho
Sponsored by:   The FreeBSD Foundation
MFC after:      2 weeks
16:13:37 - r277488
(4 days 12 hours ago)
by kib
Affects:  /head/lib/libthr/thread/thr_sig.c
Fix bug in r276630.  Do not allow pthread_sigmask() to block SIGCANCEL.

Reported and tested by: royger
Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
16:10:37 - r277487
(4 days 12 hours ago)
by kib
Affects: 
(54 files)
/head/sys/dev/drm2/*
/head/sys/modules/drm2/i915kms/Makefile
An update for the i915 GPU driver, which brings the code up to Linux
commit 4d93914ae3db4a897ead4b.  Some related drm infrastructure
changes are imported as needed.

Biggest update is the rewrite of the i915 gem io to more closely
follow Linux model, althought the mechanism used by FreeBSD port is
different.

Sponsored by:   The FreeBSD Foundation
MFC after:      2 month
13:48:06 - r277486
(4 days 14 hours ago)
by gavin
Affects:  /head/share/man/man9/device_get_softc.9
"softc" is short for "software context", use that phrase in the
device_get_softc(9) man page.

MFC after:      1 week
13:03:18 - r277485
(4 days 15 hours ago)
by rrs
Affects:  /head/usr.sbin/pmcstudy/pmcstudy.c
Fix minor errors found by coverity. Thanks Gleb for
the pointers to the email!
10:47:28 - r277484
(4 days 17 hours ago)
by ngie
Affects:  /head/cddl/contrib/opensolaris/lib/libzpool/common/sys/zfs_context.h
Follow up to r277449 by fixing the remaining NSEC_TO_TICK macro to have the same
named parameters

Reported by: Ben Perrault <ben.perrault@gmail.com>, Willem Jan Withagen
<wjw@digiware.nl>
09:45:48 - r277483
(4 days 18 hours ago)
by smh
Affects: 
(4 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zvol.h
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c
MFC r276063:
Standardise on illumos for #ifdef's in zvol.c

MFC r276066:
Refactor zvol locking to minimise diff with upstream

MFC r276069:
Fix panic when resizing ZFS zvol's

Sponsored by:   Multiplay
09:39:20 - r277482
(4 days 18 hours ago)
by smh
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c
MFC r272509 (by delphi):
Diff reduction with upstream

Sponsored by:   Multiplay
09:01:48 - r277481
(4 days 19 hours ago)
by kevlo
Affects:  /head/sys/dev/mii/mii.c
Typo: ivalid -> invalid.
05:31:54 - r277480
(4 days 22 hours ago)
by ian
Affects:  /head/sys/arm/samsung/s3c2xx0/files.s3c2xx0
/head/sys/arm/samsung/s3c2xx0/s3c2xx0_space.c
/head/sys/arm/xscale/i8134x/obio_space.c
Remove a couple files that are no longer used (functionality take over by
arm/bus_space_base.c).
05:23:09 - r277479
(4 days 22 hours ago)
by ian
Affects:  /head/sys/arm/xscale/pxa/pxa_space.c
Use explicit initializer style, fill in missing functions as unimplemented.
05:10:23 - r277478
(4 days 23 hours ago)
by ian
Affects:  /head/sys/arm/xscale/i80321/i80321_space.c
/head/sys/arm/xscale/i8134x/i81342_space.c
Use the base arm bus_space instead of an identical local copy.
05:05:07 - r277477
(4 days 23 hours ago)
by ian
Affects: 
(15 files)
/head/sys/arm/xscale/i80321/*
/head/sys/arm/xscale/i8134x/*
Use the base arm bus_space instead of an identical local copy.
04:28:19 - r277476
(4 days 23 hours ago)
by ian
Affects: 
(4 files)
/head/sys/arm/samsung/s3c2xx0/*
Use the base arm bus_space instead of an identical local copy.
04:22:20 - r277475
(4 days 23 hours ago)
by ian
Affects:  /head/sys/arm/cavium/cns11xx/econa.c
/head/sys/arm/cavium/cns11xx/files.econa
Use the base arm bus_space instead of an identical local copy.
04:19:54 - r277474
(4 days 23 hours ago)
by ian
Affects:  /head/sys/arm/versatile/versatile_pci.c
Remove a no-longer-used include.
04:06:36 - r277473
(5 days ago)
by ian
Affects: 
(7 files)
/head/sys/arm/arm/bus_space_base.c
/head/sys/arm/include/bus.h
/head/sys/arm/versatile/*
The versatile platform had two copies of a bus_space that are essentially
duplicates of the standard arm base bus_space, so just use it.
03:44:29 - r277472
(5 days ago)
by ian
Affects: 
(16 files)
/head/sys/arm/*
Rename bus_space-v6.c to bus_space_base.c, because it's not v6-specific
and now some v5 Marvell systems are using it.  Only define fdt_bus_tag
if option FDT is defined.
03:28:07 - r277471
(5 days ago)
by ian
Affects:  /head/sys/arm/at91/at91.c
/head/sys/arm/at91/files.at91
Use explicit initializer style, fill in missing functions.
03:24:18 - r277470
(5 days ago)
by ian
Affects:  /head/sys/arm/arm/bus_space-v6.c
/head/sys/arm/arm/bus_space_generic.c
/head/sys/arm/include/bus.h
Move bs_unimplemented() to bus_space_generic.c so it can be shared.
03:22:37 - r277469
(5 days ago)
by ian
Affects:  /head/sys/arm/mv/bus_space.c
/head/sys/arm/mv/files.mv
The mv/bus_space.c file is essentially identical to arm/bus_space-v6.c,
so just use it.
02:57:54 - r277468
(5 days 1 hour ago)
by nwhitehorn
Affects:  /head/sys/powerpc/aim/mp_cpudep.c
On 64-bit PowerPC, use more native forms of the PPC 970 HID restore
sequences, like are used to read the HIDs. This is both easier to read
and avoids a miscompilation by GCC in certain circumstances. Also avoid
double restoration of HID4 and HID5.

MFC after:      2 weeks
02:56:13 - r277467
(5 days 1 hour ago)
by ian
Affects: 
(15 files)
/head/sys/arm/*
For some reason, all the arm bus_space functions that work with uint16
values have armv4 in the name.  There's nothing armv4-special about them,
so just use the same sort of names as all the other functions.
02:49:19 - r277466
(5 days 1 hour ago)
by ian
Affects: 
(5 files)
/head/sys/arm/arm/bus_space-v6.c
/head/sys/arm/lpc/*
/head/sys/arm/xilinx/*
Use arm/bus_space-v6.c for all armv6 systems, the essentially identical
files for lpc and xilinx aren't needed.  Also, fix a couple paste-os.
02:35:04 - r277465
(5 days 1 hour ago)
by ian
Affects:  /head/sys/arm/arm/bus_space-v6.c
Use the explicit member initializer style to init the bus_space struct.
Fill in some formerly NULL members where the implementation function
exists.  Add a dummy function that panics and use it as a placeholder
for thigns that are still unimplemented.  Remove a few unused includes.
01:12:21 - r277464
(5 days 3 hours ago)
by emaste
Affects:  /head/sys/sys/elf_common.h
Add missing R_X86_64_ constants to elf_common.h

PR:             196918
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
01:11:37 - r277463
(5 days 3 hours ago)
by delphij
Affects:  /head/usr.bin/grep/file.c
Fix xz handling for files larger than 32K.

Submitted by:   Stefan Ehmann <shoesoft gmx net>
PR:             bin/186861
MFC after:      2 weeks
01:07:58 - r277462
(5 days 3 hours ago)
by emaste
Affects:  /head/contrib/elftoolchain/common/elfdefinitions.h
/head/contrib/elftoolchain/readelf/readelf.c
redelf: Add missing R_X86_64_ relocation types

PR:             196918
Reviewed by:    dim
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D1570
01:06:14 - r277461
(5 days 3 hours ago)
by mjg
Affects:  /head/sys/kern/kern_descrip.c
filedesc: plug a test for impossible condition in _fget
01:06:08 - r277460
(5 days 3 hours ago)
by ian
Affects: 
(14 files)
/head/sys/arm/*
/head/sys/dev/usb/controller/ehci_ixp4xx.c
Revise the arm bus_space implementation to avoid dereferencing the tag on
every operation to retrieve the bs_cookie value almost nothing actually uses.

The bus_space struct contains a private data pointer (poorly named bs_cookie,
now renamed to bs_privdata) which is used only by a few old armv4 xscale
implementations.  The bus_space functions were all defined to take this
value as the first parameter instead of the bus_space_tag_t, requiring all
the inline macro and function expansions to dereference the tag to pass it
to another function, which never uses it.  Now all the functions take the tag
as the first parameter and retrieve the privdata if they need it.

Also fix a couple bus_space_unmap() implementations that were calling
kva_free() instead of pmap_unmapdev().

Discussed with:    cognet
00:00:41 - r277459
(5 days 4 hours ago)
by gjb
Affects:  /projects/release-vmimage
Destroy the ^/projects/release-vmimage branch, merged to
^/head in r277458.

Sponsored by:   The FreeBSD Foundation
2015 - 01 - 20   (6 days ago)
23:56:04 - r277458
(5 days 4 hours ago)
by gjb
Affects: 
(14 files)
/head/release/*
/head/share/man/man7/release.7
Merge the following revisions from ^/projects/release-vmimage:
 r273823-r273826, r273833, r273836, r273944, r274069-r274071,
 r274134, r274211, r274280-r274285, r274287-r274288, r274292,
 r274296-r274297, r274356, r274533, r274725, r274726, r274729,
 r274734, r274771, r274945-r274946, r277180, r277183-r277184,
 r277186-r277187, r277250-r277253, r277263-r277264, r277383-r277384,
 r277393-r277395, r277438-r277439, r277447, r277455:

 r273823:
  Move virtual machine / cloud provider targets and
  options from release/Makefile to their own Makefile.

 r273824:
  Add glue to allow enabling building cloud provider VM images
  by default.

  When WITH_CLOUDWARE is not empty, add CLOUDTARGETS to the
  release/Makefile 'release' target.

 r273825:
  Avoid hard-coding the Azure image file format.  While here,
  avoid using OSRELEASE for the output file name.

 r273826:
  Remove a few vestiges of passing an exit code to panic().

 r273833:
  Initial commit providing a mechanism to create openstack images
  as part of the release build.

 r273836:
  Fix output file name for openstack images.  No further conversion
  is necessary for this VM file target, so there is no need to append
  the '.raw' suffix here.

 r273944:
  Uncomment the cloudinit rc.conf(5) line.

 r274069:
  Add line continuation so OPENSTACKCONF is actually included in the env(1).

 r274070:
  Add a 'vm-cloudware' target, used to drive all targets in CLOUDTARGETS.

 r274071:
  Add examples for WITH_CLOUDWARE to release.conf.sample.
  Add WITH_CLOUDWARE evaluation to RELEASE_RMAKEFLAGS.

 r274134:
  Initial rewrite to consolidate VM image build scripts into one.

 r274211:
  Add write_partition_layout() used to populate the final image.

  Fix duplicated mkimg(1) call in vm_create_disk().

  Add primitive (untested) PowerPC/PowerPC64 VM image support.

  Note: As it is currently written, the /boot/pmbr and
  /boot/{gptboot,boot1.hfs} use the build host and not the target
  build.  Fixing this is likely going to be a hack in itself.

 r274280:
  Return if vm_create_disk() is unsuccessful.

 r274281:
  Add CLEANFILES entry for VM targets

 r274282:
  Add vm_extra_pre_umount() prototype to vmimage.subr.

 r274283:
  Fix DESTDIR for installworld, and make sure it is created before use.

 r274284:
  Move usage() from vmimage.subr to mk-vmimage.sh, in case vmimage.subr
  has not been sourced.

 r274285:
  Spell 'OPTARG' correctly.  Actually call vm_create_base().

 r274287:
  Fix line continuation in write_partition_layout().
  Remove variable test that is no longer needed.

 r274288:
  Fix scheme flag to mkimg(1).

 r274292:
  mount(8) and umount(8) devfs(5) as needed.

 r274296:
  Change path for mk-vmimage.sh from ${TARGET}/ to scripts/ now that
  it is consolidated into one file.

  Fix paths for the base image and output disk image files.

 r274297:
  Call cleanup() after everything is done.

 r274356:
  Remove a stray directory from CLEANFILES.

 r274533:
  Set the boot partition type to 'apple-boot' for powerpc.

 r274725:
  In vm_install_base(), copy the host resolv.conf into
  the build chroot before attempting to do anything that
  requires working DNS (i.e., pkg bootstrap).

  In vm_extra_pre_umount(), remove the resolv.conf before
  the disk image is unmounted from the backing md(4).

 r274726 (cperciva):
  Silence errors when umounting the chroot's /dev, since it
  probably doesn't exist when we're running this.

  Unmount filesystems before attempting to destroy the md which
  holds them.

 r274729 (cperciva):
  Unmount filesystem and destroy md before we read the vnode from
  disk and package it into a disk image.  Otherwise we end up
  packaging an unclean filesystem.

 r274734 (cperciva):
  Merge duplicative vm-CLOUDTYPE targets before additional duplication
  gets added by the impending arrival of ec2 and gcloud.

 r274771 (cperciva):
  Add NOSWAP option which can be set by a vmimage.conf file to specify
  that no swap space should be created in the image.  This will be used
  by EC2 builds, since FreeBSD/EC2 allocates swap space on "ephemeral"
  disks which are physically attached to the Xen host node.

 r274945:
  In vm_extra_install_packages(), only bootstrap pkg(8) if
  VM_EXTRA_PACKAGES is empty.

  In vm_extra_pre_umount(), cleanup downloaded packages if pkg(8) was
  bootstrapped earlier.

 r274946:
  Fix indentation nit.

 r277180:
  In vm_extra_install_base(), do not install waagent in the openstack
  image, because it is not used.  This appears to be a copy mistake.

  Remove vm_extra_install_base() from the openstack.conf entirely,
  since it does not need to be overridden.

 r277183:
  Enable the textmode console by default for VM images, since there is
  no way to tell if the environment will be able to use the
  graphics-mode console.

 r277184:
  Enable password-less sudo for openstack images.

 r277186:
  Update the VM_EXTRA_PACKAGES list for the openstack images.

  The documentation suggests doing a "just fetch this and run it"-style
  bootstrap, from which the list of dependencies was obtained (in
  github, at: pellaeon/bsd-cloudinit-installer)

  There is one Python dependency unmet, oslo.config, which is not in
  the Ports Collection.

 r277187:
  Add a comment to note that setting hw.vga.textmode=1 is temporary.

 r277250:
  Remove vm_extra_install_base() for the Azure image, now that the
  waagent exists in the ports tree.

  Add sysutils/azure-agent to the VM_EXTRA_PACKAGES list.

  In vm_extra_pre_umount(), remove the explicit pkg(8) install
  list, as dependencies are resolved by sysutils/azure-agent.

 r277251:
  Add a 'list-cloudware' target to print the list of supported CLOUDWARE
  values and a description.

  Add the AZURE_DESC and OPENSTACK_DESC descriptions.

 r277252:
  Update release(7)

 r277253:
  Add 'list-vmtargets' target, which produces a list of all supported
  VM and cloud provider images.

  Add VHD_DESC, VMDK_DESC, QCOW2_DESC, RAW_DESC image descriptions.

  Format the output to make a bit more readable.

  Update release(7) to document the list-vmtargets target.

 r277263:
  Add initial support for the GCE (Google Compute Engine) cloud hosting
  provider image.

 r277264:
  Style and line length cleanup.

 r277383:
  Remove the console setting from rc.conf(5), which is not used there.
  While here, set console to include vidconsole in the loader.conf(5).

 r277384:
  Fix an indentation nit.
  No functional changes.

 r277393:
  Remove the pkg-clean(8) call from vm_extra_pre_umount() since the
  function is often overridden.

  Add vm_extra_pkg_rmcache() to call pkg-clean(8) to avoid duplicated
  code.

 r277394:
  Move resolv.conf(5) removal back to vm_extra_pre_umount() where it
  belongs.

  The GCE image needs resolv.conf(5) to exist (created as part of the
  image setup), so it cannot be removed.

 r277395:
  Comment the line that configures ttys(5) to 'off', which makes it
  impossible to test that the image boots.

  Add a note explaining why the line is commented, and not (yet) removed
  entirely.

 r277438:
  Move the 'install' bits that are specific to virtual machine images
  from the Makefile to Makefile.vm.

  Rename the 'install' target to 'release-install', and add a new
  'vm-install' target.

  Add a new 'install' target that invokes the new targets.

 r277439:
  Add WITH_CLOUDWARE to the list of make(1) variables for the release
  build.

 r277447:
  Remove hw.vga.textmode=1 from the VM image loader.conf, which was
  included during test builds and not intended to be included when
  merging this project branch back to head.

 r277455:
  Remove mk-azure.sh, which is no longer needed.

MFC after:      1 month
X-MFC-To:       stable/10 (requires mkimg(1))
Help from:      cperciva, swills
Relnotes:       yes
Sponsored by:   The FreeBSD Foundation
23:39:08 - r277457
(5 days 4 hours ago)
by ngie
Affects: 
(7 files)
/stable/10/Makefile.inc1
/stable/10/etc/*
/stable/10/tools/build/mk/OptionalObsoleteFiles.inc
MFC r275907:

r275907 (by ngie):

  Fix building/installing tests when TESTSBASE != /usr/tests

  The work in r258233 hardcoded the assumption that tests was the last component
  of the tests tree by pushing tests as an explicit prefix for the paths in
  BSD.tests.dist and /usr was the prefix for all tests, per BSD.usr.dist and all
  of the mtree calls used in Makefile.inc1. This assumption breaks if/when one
  provides a custom TESTSBASE "prefix", e.g. TESTSBASE=/mytests .

  One thing that r258233 did properly though was remove "/usr/tests" creation
  from BSD.usr.dist -- that should have not been there in the first place. That
  was an "oops" on my part for the work that was originally committed in r241823

  Phabric: D1301
  Reviewed by: imp
  Sponsored by: EMC / Isilon Storage Division
23:05:00 - r277456
(5 days 5 hours ago)
by glebius
Affects: 
(8 files)
/projects/ifnet/sys/dev/*
/projects/ifnet/sys/net/*
New KPI for if_flags management: stack sends SICSIFFLAGS to a driver,
and if driver approves, then stack updates flags. Drivers usually cache
if_flags in their softc. If a driver needs to change its flags, it needs
to run if_drvioctl().

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
23:00:17 - r277455
(5 days 5 hours ago)
by gjb
Affects:  /projects/release-vmimage/release/amd64/mk-azure.sh
Remove mk-azure.sh, which is no longer needed.

Sponsored by:   The FreeBSD Foundation
22:56:59 - r277454
(5 days 5 hours ago)
by ian
Affects:  /head/sys/arm/arm/bus_space-v6.c
/head/sys/arm/include/bus.h
Add inline implementations of arm bus_space_read/write_N().

Reviewed by:    cognet
22:51:29 - r277453
(5 days 5 hours ago)
by ngie
Affects: 
(2 files)
/head/tools/regression/lib/libc/stdio/test-fmemopen.t
Garbage collect a prove test wrapper

MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division
22:39:10 - r277452
(5 days 5 hours ago)
by will
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
Fix arc__shrink DTrace probe's to_free argument.

Remove the unnecessary #ifdef _KERNEL, which did not differ in the true or
false cases.  Actually set the value of to_free before using it.

MFC after:      1 week
Sponsored by:   Spectra Logic
22:33:27 - r277451
(5 days 5 hours ago)
by gjb
Affects: 
(1072 files)
/projects/release-vmimage/*
Reintegrate head revisions r277148 through r277447
in preparation for merging ^/projects/release-vmimage
to ^/head.

Sponsored by:   The FreeBSD Foundation
22:31:26 - r277450
(5 days 5 hours ago)
by will
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/gfs.c
Use the "zfs_gfs" tag for GFS vnodes to make them easier to identify.

MFC after:      1 week
Sponsored by:   Spectra Logic
22:29:27 - r277449
(5 days 5 hours ago)
by will
Affects:  /head/sys/cddl/compat/opensolaris/sys/time.h
NSEC_TO_TICK(usec) -> NSEC_TO_TICK(nsec)
22:27:45 - r277448
(5 days 5 hours ago)
by will
Affects:  /head/sys/cddl/compat/opensolaris/sys/sunddi.h
Remove unused strdup() #define.
22:15:36 - r277447
(5 days 6 hours ago)
by gjb
Affects:  /projects/release-vmimage/release/tools/vmimage.subr
Remove hw.vga.textmode=1 from the VM image loader.conf,
which was included during test builds and not intended
to be included when merging this project branch back to
head.

This is planned to be the final commit to this branch.

Sponsored by:   The FreeBSD Foundation
21:59:48 - r277446
(5 days 6 hours ago)
by ngie
Affects: 
(5 files)
/stable/10/lib/libc/tests/stdio/Makefile
/stable/10/lib/libc/tests/stdio/fmemopen2_test.c
/stable/10/tools/regression/lib/libc/stdio/*
MFC r267004,r274592:

r267004 (by gahr):

  - Use strlen instead of hardcoding a number
  - Terminate a sentence with a period

  Approved by:  cognet

r274592 (by ngie):

  Convert tools/regression/lib/libc/stdio/test-fmemopen into an ATF testcase and
  rename as lib/libc/stdio/fmemopen2_test

  Sponsored by: EMC / Isilon Storage Division
21:58:49 - r277445
(5 days 6 hours ago)
by ngie
Affects:  /projects/building-blocks/tools/regression/lib/libc/stdio/test-fmemopen.t
Garbage collect a prove test wrapper

MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division
21:49:50 - r277444
(5 days 6 hours ago)
by jbeich
Affects:  /head/share/misc/committers-ports.dot
- Add jbeich as a ports committer
- List bapt and flo as his mentors

Differential Revision:  https://reviews.freebsd.org/D1562
Approved by:            flo (mentor)
21:48:42 - r277443
(5 days 6 hours ago)
by ngie
Affects: 
(6 files)
/stable/10/contrib/netbsd-tests/lib/libc/c063/*
/stable/10/lib/libc/tests/c063/Makefile
MFC r276590:

r276590 (by jilles):

  Link lib/libc/c063 tests to the build.

  Some files lack required #include <sys/stat.h>. The #ifdef is per ngie's
  request; the includes are clearly necessary for struct stat.

  The faccessat test fails because it tries to use AT_SYMLINK_NOFOLLOW with
  faccessat(), which is not specified by POSIX.1-2008.

  Differential Revision:        https://reviews.freebsd.org/D1411
  Reviewed by:  ngie
21:46:04 - r277442
(5 days 6 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/lib/libc/tests/hash/Makefile
MFC r276318:

r276318 (by ngie):

  Build/install lib/libc/tests/hash/t_sha2 if MK_OPENSSL == yes

  Reported by: Beeblebrox <zaphod@berentweb.com>
21:42:40 - r277441
(5 days 6 hours ago)
by ngie
Affects: 
(13 files)
/stable/10/etc/mtree/BSD.tests.dist
/stable/10/lib/libc/*
/stable/10/tools/regression/lib/libc/gen/*
MFC r274075,r274581,r274582,r274595:

r274075 (by ngie):

  Add reachover Makefiles for contrib/netbsd-tests/lib/libc; this adds
approximately
  500 new testcases

  Various TODOs have been sprinkled around the Makefiles for items that even
need
  to be ported (missing features), testcases have issues with building/linking,
or
  issues at runtime.

  A variant of this code has been tested extensively on amd64 and i386
  10-STABLE/11-CURRENT for several months without issue. It builds on other
  architectures, but the code will remain off until I have prove it works on
  virtual hardware or real hardware on other architectures

  In collaboration with: pho, Casey Peel <casey.peel@isilon.com>
  Sponsored by: EMC / Isilon Storage Division

r274581 (by ngie):

  Convert tools/regression/lib/libc/gen/test-arc4random into an ATF testcase and
  rename as lib/libc/gen/arc4random_test

  Sponsored by: EMC / Isilon Storage Division

r274582 (by ngie):

  Remove test-arc4random from this Makefile so others can continue to use
  this as-is for the time being

r274595 (by ngie):

  Convert tools/regression/lib/libc/stdio/test-fpclassify into an ATF testcase
and
  Rename as lib/libc/stdio/fpclassify2_test

  Sponsored by: EMC / Isilon Storage Division
21:15:33 - r277440
(5 days 7 hours ago)
by will
Affects:  /head/sys/cam/cam_xpt.c
Restore the CAM XPT peripheral generation counter, and export it via sysctl.

Define it as an atomic uint32_t.  These increments happen infrequently
enough for the atomic overhead to be a problem, and since they're now
independent atomics, they won't contend with xpt_lock_buses().

This counter is useful as a means of cheaply identifying whether any changes
have been made to the CAM peripheral list.  Userland programs have no guarantee
that the counter won't change on them while being returned or while processing
the information, so they must be written accordingly.

Discussed with: ken, mav (in general)
MFC after:      1 week
Sponsored by:   Spectra Logic
21:09:39 - r277439
(5 days 7 hours ago)
by gjb
Affects:  /projects/release-vmimage/release/Makefile
Add WITH_CLOUDWARE to the list of make(1) variables
for the release build.

Sponsored by:   The FreeBSD Foundation
20:55:11 - r277438
(5 days 7 hours ago)
by gjb
Affects:  /projects/release-vmimage/release/Makefile
/projects/release-vmimage/release/Makefile.vm
Move the 'install' bits that are specific to virtual
machine images from the Makefile to Makefile.vm.

Rename the 'install' target to 'release-install', and
add a new 'vm-install' target.

Add a new 'install' target that invokes the new targets.

Sponsored by:   The FreeBSD Foundation
20:44:16 - r277437
(5 days 7 hours ago)
by trasz
Affects: 
(2 files)
/stable/10/usr.sbin/fstyp/ext2fs.c
MFC r277128:

Fix detection of ext2/ext3 filesystems that lack labels.

Sponsored by:   The FreeBSD Foundation
20:42:55 - r277436
(5 days 7 hours ago)
by trasz
Affects: 
(3 files)
/stable/10/usr.sbin/fstyp/ext2fs.c
/stable/10/usr.sbin/fstyp/ntfs.c
MFC r276704:

Fix memory leaks.

Sponsored by:   The FreeBSD Foundation
20:41:32 - r277435
(5 days 7 hours ago)
by trasz
Affects: 
(3 files)
/stable/10/usr.sbin/fstyp/cd9660.c
/stable/10/usr.sbin/fstyp/ntfs.c
MFC r276703:

Remove leftovers.

Sponsored by:   The FreeBSD Foundation
20:39:29 - r277434
(5 days 7 hours ago)
by trasz
Affects: 
(6 files)
/stable/10/contrib/file/doc/file.man
/stable/10/sbin/mount/mount.8
/stable/10/usr.sbin/*
MFC r275680:

Add fstyp(8).  This utility, named after its SVR4 counterpart, detects
filesystems.  It differs from file(1) in that it gives machine-parseable
output, it outputs filesystem labels, doesn't get confused by other
formats metadata, and runs in Capsicum sandbox.

Differential Revision:  https://reviews.freebsd.org/D1255
Relnotes:       yes
Sponsored by:   The FreeBSD Foundation
20:36:36 - r277433
(5 days 7 hours ago)
by delphij
Affects: 
(4 files)
/head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_import.c
/head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c
MFV r277432:

Plug various memory leaks in libzfs import implementation.

Illumos issue:
    5518 Memory leaks in libzfs import implementation

MFC after:      2 weeks
20:18:59 - r277432
(5 days 7 hours ago)
by delphij
Affects:  /vendor/illumos/dist/lib/libzfs/common/libzfs_import.c
/vendor/illumos/dist/lib/libzfs/common/libzfs_pool.c
5518 Memory leaks in libzfs import implementation
Reviewed by: Dan Fields <dan.fields@nexenta.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Serghei Samsi <sscdvp@gmail.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Author: Marcel Telka <marcel.telka@nexenta.com>

illumos/illumos-gate@078266a5aafa880521ea55488ef3d676f35e908e
20:17:29 - r277431
(5 days 8 hours ago)
by delphij
Affects: 
(7 files)
/vendor-sys/illumos/dist/uts/common/fs/zfs/*
/vendor/illumos/dist/lib/libzpool/common/sys/zfs_context.h
5497 lock contention on arcs_mtx
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Richard Elling <richard.elling@richardelling.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Author: Prakash Surya <prakash.surya@delphix.com>

illumos/illumos-gate@244781f10dcd82684fd8163c016540667842f203
20:14:50 - r277430
(5 days 8 hours ago)
by delphij
Affects:  /vendor-sys/illumos/dist/uts/common/fs/zfs/sys/vdev_impl.h
/vendor-sys/illumos/dist/uts/common/fs/zfs/sys/zio.h
/vendor-sys/illumos/dist/uts/common/fs/zfs/vdev_queue.c
5313 Allow I/Os to be aggregated across ZIO priority classes
Reviewed by: Andriy Gapon <avg@FreeBSD.org>
Reviewed by: Will Andrews <willa@SpectraLogic.com>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Reviewed by: George Wilson <george@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Justin T. Gibbs <justing@spectralogic.com>

illumos/illumos-gate@fe319232d24f4ae183730a5a24a09423d8ab4429
20:13:46 - r277429
(5 days 8 hours ago)
by delphij
Affects:  /vendor/illumos/dist/cmd/zfs/zfs_main.c
/vendor/illumos/dist/man/man1m/zfs.1m
5410 Document -S option to zfs inherit
5412 Mention -S option when zfs inherit fails on quota
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Author: Paul B. Henson <henson@acm.org>

illumos/illumos-gate@5ff8cfa92ec8ea0f8593ad21aa2a04829b0ef5ea
20:11:30 - r277428
(5 days 8 hours ago)
by delphij
Affects: 
(35 files)
/vendor-sys/illumos/dist/uts/common/fs/zfs/*
5056 ZFS deadlock on db_mtx and dn_holds
Reviewed by: Will Andrews <willa@spectralogic.com>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Author: Justin Gibbs <justing@spectralogic.com>

illumos/illumos-gate@bc9014e6a81272073b9854d9f65dd59e18d18c35
20:10:03 - r277427
(5 days 8 hours ago)
by delphij
Affects:  /vendor-sys/illumos/dist/uts/common/fs/zfs/arc.c
/vendor-sys/illumos/dist/uts/common/fs/zfs/sys/arc.h
5445 Add more visibility via arcstats; specifically arc_state_t stats and
differentiate between "data" and "metadata"
Reviewed by: Basil Crow <basil.crow@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Bayard Bell <bayard.bell@nexenta.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Prakash Surya <prakash.surya@delphix.com>

illumos/illumos-gate@4076b1bf41cfd9f968a33ed54a7ae76d9e996fe8
20:08:50 - r277426
(5 days 8 hours ago)
by delphij
Affects:  /vendor-sys/illumos/dist/uts/common/fs/zfs/arc.c
/vendor-sys/illumos/dist/uts/common/fs/zfs/sys/arc.h
/vendor/illumos/dist/cmd/ztest/ztest.c
5408 managing ZFS cache devices requires lots of RAM
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Don Brady <dev.fs.zfs@gmail.com>
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
Approved by: Garrett D'Amore <garrett@damore.org>
Author: Chris Williamson <Chris.Williamson@delphix.com>

illumos/illumos-gate@89c86e32293a30cdd7af530c38b2073fee01411c
20:04:51 - r277425
(5 days 8 hours ago)
by delphij
Affects:  /vendor-sys/illumos/dist/uts/common/fs/zfs/arc.c
5376 arc_kmem_reap_now() should not result in clearing arc_no_grow
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Steven Hartland <killing@multiplay.co.uk>
Reviewed by: Richard Elling <richard.elling@richardelling.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Author: Matthew Ahrens <mahrens@delphix.com>

illumos/illumos-gate@2ec99e3e987d8aa273f1e9ba2b983557d058198c
19:08:55 - r277424
(5 days 9 hours ago)
by tuexen
Affects:  /head/sys/netinet/sctp_sysctl.c
Remove comparisons which are not necessary.

Reported by:    Coverity
CID:            1237826, 1237844, 1237847
MFC after:      1 week
17:00:28 - r277423
(5 days 11 hours ago)
by sbruno
Affects:  /head/contrib/llvm/tools/clang/lib/Driver/Tools.cpp
Allow clang to be built for mips/mips64 backend types by adding our mips
triple ids

This only allows testing and does not change the defaults for mips/mips64.
They still build/use gcc by default.

Differential Revision:  https://reviews.freebsd.org/D1190
Reviewed by:    dim
16:30:02 - r277422
(5 days 11 hours ago)
by br
Affects:  /head/sys/dev/usb/net/if_cdce.c
o Restore 'goto tr_setup;' when operating in host mode mistakenly
  removed in r277414.
o Remove extra parentheses around cases.
16:21:59 - r277421
(5 days 11 hours ago)
by nwhitehorn
Affects:  /head/sys/powerpc/powerpc/mem.c
There does not seem to be any reason to acquire GIANT here. Follow amd64
in removing it.

MFC after:      1 month
15:45:09 - r277420
(5 days 12 hours ago)
by br
Affects:  /head/sys/dev/usb/net/if_cdce.c
o Do notify USB host each time we receive 'set packet filter' request.
  This makes Mac OS X happy when it returns back from suspending.
o Switch notify state after data is transferred, but not before.
o Consider there is also Super Speed mode.
o Do not set stall bit on any pipes in device mode as Mac OS X seems
  don't support it.

In collaboration with:  hselasky@
13:09:12 - r277419
(5 days 15 hours ago)
by mav
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c
Allow skipping dmu_buf_will_dirty() call in dsl_dir_transfer_space().

dsl_dir_transfer_space() is mostly called after dsl_dir_diduse_space(),
which already calls dmu_buf_will_dirty() for the same dbuf and tx, so
its duplicate call in those cases will change nothing, only spend time.

Skipping this call by four times reduces time spent in dbuf_write_done()
and descendants, updating dataset statistics with several congested lock
acquisitions.  When rewriting 8K zvol blocks at 1GB/s rate, this reduces
CPU time spent inside dbuf_write_done(), according to profiling, from 45%
of 683K samples to 18% of 422K.

MFC after:      2 weeks
12:28:24 - r277418
(5 days 15 hours ago)
by royger
Affects:  /head/sys/boot/i386/libi386/bootinfo64.c
/head/sys/x86/xen/pv.c
loader: fix the size of MODINFOMD_MODULEP

The data in MODINFOMD_MODULEP is packed by the loader as a 4 byte type, but
the amd64 kernel expects a vm_paddr_t, which is of size 8 bytes. Fix this by
saving it as 8 bytes in the loader and retrieving it using the proper type
in the kernel.

Sponsored by: Citrix Systems R&D
11:43:16 - r277417
(5 days 16 hours ago)
by hselasky
Affects:  /head/sys/dev/usb/usb_generic.c
Fix returned data for the USB_GET_DEV_PORT_PATH IOCTL in particular
the value returned in the "udp_port_level" field.

Reported by:    Uffe Jakobsen <uffe@uffe.org>
MFC after:      1 week
11:32:48 - r277416
(5 days 16 hours ago)
by andrew
Affects:  /head/sys/arm/arm/locore-v4.S
Remove the SMP code from locore-v4. These will never use the SMP code as
there is no multi-core hardware prior to ARMv6.

Sponsored by:   The FreeBSD Foundation
11:11:32 - r277415
(5 days 17 hours ago)
by andrew
Affects:  /head/sys/arm/include/cpu-v6.h
Add the User and PL1 read only and reqd write thread ID registers.

Sponsored by:   The FreeBSD Foundation
11:10:25 - r277414
(5 days 17 hours ago)
by br
Affects:  /head/sys/mips/include/cache_mipsNN.h
/head/sys/mips/mips/cache.c
/head/sys/mips/mips/cache_mipsNN.c
Add 128-byte cache flushing routines.

Leave CNMIPS untouched as these functions depends on config2
register.
09:07:28 - r277413
(5 days 19 hours ago)
by ganbold
Affects: 
(7 files)
/head/sys/arm/*
/head/sys/boot/fdt/dts/arm/*
/head/sys/dev/mmc/host/*
Enable Synopsys DesignWare Mobile Storage Host Controller
driver on Rockchip boards. It currently supports PIO mode
and dma mode needs external dma controller to be used.

Submitted by:   jmcneill
Approved by:    stas (mentor)
05:44:21 - r277412
(5 days 22 hours ago)
by nwhitehorn
Affects:  /head/sys/powerpc/ofw/ofw_machdep.c
Remove space in the FDT reservation map from the available memory regions
in ofw_mem_regions(). This function is actually MI and should move to
dev/ofw at some point in the near future so that ARM and MIPS can use the
same code.
05:28:03 - r277411
(5 days 22 hours ago)
by nwhitehorn
Affects:  /head/sys/powerpc/aim/machdep.c
Zero BSS explicitly if not started by loader(8). Add a check for the magic
values that ePAPR-compliant loaders (like skiboot) put in the register
loader uses for the metadata pointer to avoid confusing them.
05:14:07 - r277410
(5 days 23 hours ago)
by hselasky
Affects: 
(3 files)
/stable/9/sys/dev/usb/serial/umodem.c
MFC r276892:
Add support for USB device side mode to the USB modem driver.
05:12:30 - r277409
(5 days 23 hours ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/dev/usb/serial/umodem.c
MFC r276892:
Add support for USB device side mode to the USB modem driver.
05:02:35 - r277408
(5 days 23 hours ago)
by hselasky
Affects: 
(2 files)
/stable/9/sys/cam/scsi/scsi_da.c
MFC r276825 and r277372:
Allow a block size of zero to mean 512 bytes, which is the most common
block size for USB disks. This fixes support for "Action Cam SJ4000".
05:00:38 - r277407
(5 days 23 hours ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/cam/scsi/scsi_da.c
MFC r276825 and r277372:
Allow a block size of zero to mean 512 bytes, which is the most common
block size for USB disks. This fixes support for "Action Cam SJ4000".
03:54:30 - r277406
(6 days ago)
by neel
Affects: 
(4 files)
/head/sys/kern/*
/head/sys/sys/vdso.h
/head/sys/x86/x86/tsc.c
Update the vdso timehands only via tc_windup().

Prior to this change CLOCK_MONOTONIC could go backwards when the timecounter
hardware was changed via 'sysctl kern.timecounter.hardware'. This happened
because the vdso timehands update was missing the special treatment in
tc_windup() when changing timecounters.

Reviewed by:    kib
02:24:08 - r277405
(6 days 1 hour ago)
by gonzo
Affects:  /head/sys/arm/ti/am335x/am335x_lcd.c
Properly clear IRQ status in order to fix "Spurious IRQ" message from AINT.

This register is not documented in TRM but that's what linux driver does

 


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 54 ms, 319 revisions printed. Current time is 2015-01-26 04:17:53. All times are in UTC/GMT.