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.

2014 - 11 - 22   (today)
09:45:32 - r274845
( 19 minutes ago)
by mav
Affects:  /head/sys/dev/iscsi/iscsi.c
Fix use-after-free introduced in r274843.

I've missed that iscsi_outstanding_remove() frees the second pointer,
so it should no longer be used.  And in fact we don't really need to.

MFC after:      2 weeks
09:38:18 - r274844
( 26 minutes ago)
by kib
Affects: 
(2 files)
/stable/10/sys/amd64/amd64/support.S
MFC r274555:
Fix END()s for fueword and fueword64, match the name in END() with
entry.
09:05:54 - r274843
( 59 minutes ago)
by mav
Affects:  /head/sys/dev/iscsi/iscsi.c
Move icl_pdu_get_data() and xpt_done() out of initiator's session lock.

During heavy reads data copying in icl_pdu_get_data() may consume large
percent of CPU time.  Moving it out of the lock significantly reduces
lock hold time and respectively lock congestion on read operations.

MFC after:      2 weeks
08:47:04 - r274842
(1 hour 18 minutes ago)
by hselasky
Affects:  /head/sys/dev/usb/controller/saf1761_otg.c
/head/sys/dev/usb/controller/saf1761_otg_reg.h
Use correct length mask for split transactions. The hardware would
sometimes put non-zero values in the upper length bits, which are
available for high-speed-only USB transactions, breaking the reception
of data.
08:09:26 - r274841
(1 hour 55 minutes ago)
by hrs
Affects:  /head/etc/defaults/rc.conf
Remove examples of gif_interfaces and gifconfig.  These have already been
marked as deprecated in rc.conf(5) manual page but these examples
were still here.

Spotted by:     jmg
04:40:24 - r274840
(5 hours 24 minutes ago)
by mav
Affects:  /head/sys/cam/ctl/ctl_frontend_iscsi.c
Make iSCSI frontend less chatty while waiting for tasks termination.

MFC after:      1 week
03:03:11 - r274839
(7 hours 1 minute ago)
by ian
Affects:  /head/sys/arm/arm/busdma_machdep-v6.c
When doing a PREREAD sync of an mbuf-type dma buffer, do a writeback of
the first cacheline if the buffer start address is not on a cacheline
boundary.  Normally a buffer which is not cacheline-aligned is bounced,
but a special rule applies for mbufs, which are always misaligned due to
the header.  We know the cpu will not write to the header while dma is in
progress (so we've been told anyway), but it may have written to the
header shortly before starting a read, so we need to flush that write out
to memory before invalidating the whole buffer.

In collaboration with Mical Meloun and Svata Kraus.
02:44:39 - r274838
(7 hours 20 minutes ago)
by marcel
Affects:  /user/marcel/libvdsk/libvdsk/vdsk.c
/user/marcel/libvdsk/libvdsk/vdsk_int.h
Strengthen vdsk_open:
1.  Save the realpath(3) result in the vdsk structure.
2.  Save the stat(2) result in the vdsk structure.
3.  Take an exclusive or shared lock depending on the open flags.
01:27:45 - r274837
(8 hours 37 minutes ago)
by bapt
Affects:  /head/usr.bin/Makefile
Revert accidently message Makefile from 274836 and connect soeliminate(1)
01:22:03 - r274836
(8 hours 43 minutes ago)
by bapt
Affects: 
(5 files)
/head/usr.bin/Makefile
/head/usr.bin/soeliminate/*
Add a new soeliminate(1) command

mandoc(1) does not provide an equivalent of the GNU groff's soelim(1) as an
external binary. It does provide the funcitonnality but internally.

Lots if manpages in ports uses ".so" directives to include the content of
another manpage, which works properly if the manpages are not compressed.
With compressed manpages it will fail. So we need to preprocess those manpages
with soelim(1) before compressing them.

soeliminate(1) add the minimum functionnality from soelim(1) required for that
task, in order to still be able to prepare properly those manpages in case we
ship the base system only with mandoc as a manpage renderer.

soeliminate(1) accept all the arguments from soelim(1) for compatibility but
only '-I dir' is really functionnal.

Name it soeliminate and not soelim, so groff from base or ports can still call
soelim(1) for its internal use and avoid potential incompatibilities

MFC after:      1 month
00:42:30 - r274835
(9 hours 22 minutes ago)
by davide
Affects:  /head/sys/ufs/ufs/ufs_dirhash.c
Use the correct variable name.
00:37:37 - r274834
(9 hours 27 minutes ago)
by davide
Affects:  /head/sys/ufs/ufs/ufs_dirhash.c
Make ufs_dirhashreclaimperc a percentage for real and
rename it to ufs_dirhashreclaimpercent, as suggested
by jhb@. As an added bonus this avoids divide-by-zero
errors.

Requested by:   jhb, markj
Reviewied by:   jhb, markj
00:01:14 - r274833
(10 hours 3 minutes ago)
by scottl
Affects: 
(3 files)
/stable/10/sys/amd64/amd64/support.S
/stable/10/sys/amd64/include/asmacros.h
MFC r274489:

Add frame pointers to ASM functions in support.S

Obtained from:  Netflix
2014 - 11 - 21   (yesterday)
23:37:59 - r274832
(10 hours 27 minutes ago)
by melifaro
Affects:  /projects/routing/sys/net/if_llatbl.c
/projects/routing/sys/netinet/if_ether.c
Mark ifaddr/rtsock static entries RLLE_VALID.
23:37:14 - r274831
(10 hours 27 minutes ago)
by melifaro
Affects:  /projects/routing/sys/netinet6/in6.c
Another r274774 fix.
23:36:21 - r274830
(10 hours 28 minutes ago)
by melifaro
Affects: 
(4 files)
/projects/routing/sys/netinet/*
/projects/routing/sys/netinet6/scope6.c
Finish r274774: add more headers/fix build for non-debug case.
23:25:27 - r274829
(10 hours 39 minutes ago)
by glebius
Affects:  /projects/sendfile/sys/vm/vm_pager.h
Use typedef instead of copy-paste.
23:18:38 - r274828
(10 hours 46 minutes ago)
by glebius
Affects:  /projects/sendfile/sys/vm/swap_pager.c
Use typedefs instead of copy-paste.
23:08:51 - r274827
(10 hours 56 minutes ago)
by glebius
Affects: 
(120 files)
/projects/sendfile/*
Merge head r258543 through r274826.
23:05:08 - r274826
(11 hours ago)
by glebius
Affects: 
(6 files)
/projects/sendfile/sys/kern/*
/projects/sendfile/sys/sys/vnode.h
/projects/sendfile/sys/vm/*
Use typedefs

typedef void vop_getpages_iodone_t(void *, vm_page_t *, int, int)
typedef void pgo_getpages_iodone_t(void *, vm_page_t *, int, int)

to define callback function type.

Suggested by:   kib
Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
23:04:12 - r274825
(11 hours ago)
by imp
Affects:  /head/tools/tools/nanobsd/nanobsd.sh
Sort -K option before -k rather than at the top.

MFC after:      1 week
23:03:30 - r274824
(11 hours 1 minute ago)
by glebius
Affects:  /projects/sendfile/sys/tools/vnode_if.awk
Revert r260825. We will use typedefs for function arguments.

Suggested by:   kib
21:34:19 - r274823
(12 hours 30 minutes ago)
by brooks
Affects: 
(10 files)
/head/sys/boot/fdt/dts/mips/beripad-de4.dts
/head/sys/dev/terasic/mtl/*
/head/sys/mips/*
Merge from CheriBSD:

commit 6d3c4c09226ad6bdd662e3e52489ef294a6ce298
    Add terasic_mtl vt(4) framebuffer driver

    terasic_mtl can be built with syscons(4) and vt(4) attachments, selected
    at compile time.

commit 33240259b47a7c990a5a88a19f133a5600432a4c
    Clear terasic_mtl text buffer on attach

commit d188c2d2412953f949624aa35cd07082830943c9
    Update terasic vt(4) driver for FreeBSD r269783

commit d1cc54eee852fa4fc9d359d5bb2171d24ec73369
    Safety belt to ensure vt(4) fb parameters are correct

commit 76e6d468ef45711d7952786095fc4791289ebb4b
    Improve terasic_mtl_vt fdt parsing

    - Use OF_getencprop to avoid need for explicit endian handling
      (submitted by ray@freebsd.org)
    - Check for expected length and correct pointer type

commit 3e2524b8995ab66e8a9295e4c87cbc7126eeddf4
    Correct device_printf usage

commit 9e53e3c8e0766414e25662c95b09cc51c92443b0
    Switch framebuffer to match host endianness

    Xorg and xf86-video-scfb work much better with a native-endian
    framebuffer.

commit 0f49259d596321ed85288ac0e1fb4ee1c966df48
    Switch DE4 to vt(4) and enable kbdmux

commit 5bc96ebc89db7d134ad478335090c8477c1677c7
    Add missing \n in device_printf calls

Submitted by:   emaste
Sponsored by:   DARPA, AFRL
21:30:08 - r274822
(12 hours 35 minutes ago)
by ian
Affects:  /head/share/man/man4/iicbus.4
Document the recent enhancements for configuring bus speed in iicbus(4).

Differential Revision:        https://reviews.freebsd.org/D1182
PR:             195009
21:14:05 - r274821
(12 hours 51 minutes ago)
by brooks
Affects:  /head/sys/dev/altera/jtag_uart/altera_jtag_uart_cons.c
/head/sys/dev/altera/jtag_uart/altera_jtag_uart_tty.c
Merge from CheriBSD:

commit d0c7d235c09fc65dbdb278e7016a96f79c6a49cc
    Make the Altera JTAG UART device driver slightly more forgiving of
    the foibles of a sub-par hrdware interface by increasing the timeout
    for spotting JTAG polling from one to two seconds.

commit 19ed45a18832560dab967c179d83b71081c3a220
    Update comment.

commit 8edfe803f033cc8e33229f99894c2b7496a44d5f
    Add a comment about a device-driver race condition that could cause the BERI
    pipeline to wedge awaiting JTAG in the event that both the low-level console
    and the tty layer decide to write to the JTAG FIFO just before JTAG is
    disconnected.  Resolving this race is a bit tricky as it looks like there
    isn't a way to 'give the character back' to the tty layer when we discover
    the race.  The easy fix is to drop the character, which we don't yet do, but
    perhaps should as that is a better outcome than wedging the pipeline.

commit 2ea26cf579c9defcf31e413e7c9b0fbc159237fc
    Add a comment about an inherent race with hardware in the Altera JTAG
    UART's low-level console code.

Submitted by:   rwatson
MFC after:      1 week
Sponsored by:   DARPA, AFRL
21:10:02 - r274820
(12 hours 55 minutes ago)
by brooks
Affects:  /head/sys/dev/altera/avgen/altera_avgen.c
Merge from CheriBSD (2e28d2a3090239b30481f35dc452ad95a5c57389)

Remove initalized, but unused devname variable

MFC after:      1 week
Sponsored by:   DARPA, AFRL
21:01:24 - r274819
(13 hours 3 minutes ago)
by smh
Affects: 
(33 files)
/head/sys/cam/cam_xpt.c
/head/sys/dev/*
Prevent overflow issues in timeout processing

Previously, any timeout value for which (timeout * hz) will overflow the
signed integer, will give weird results, since callout(9) routines will
convert negative values of ticks to '1'. For unsigned integer overflow we
will get sufficiently smaller timeout values than expected.

Switch from callout_reset, which requires conversion to int based ticks
to callout_reset_sbt to avoid this.

Also correct isci to correctly resolve ccb timeout.

This was based on the original work done by Eygene Ryabinkin
<rea@freebsd.org> back in 5 Aug 2011 which used a macro to help avoid
the overlow.

Differential Revision:  https://reviews.freebsd.org/D1157
Reviewed by:    mav, davide
MFC after:      1 month
Sponsored by:   Multiplay
20:54:12 - r274818
(13 hours 10 minutes ago)
by brooks
Affects:  /head/sys/boot/fdt/dts/mips/beri-sim.dts
/head/sys/boot/fdt/dts/mips/beripad-de4.dts
Merge from CheriBSD (3422ebe71b6c06fe78b1be73623b240c219e08e3):

Rename beripic to beripic0.

MFC after:      1 week
Sponsored by:   DARPA, AFRL
20:53:17 - r274817
(13 hours 11 minutes ago)
by jhb
Affects: 
(15 files)
/head/contrib/binutils/*
/head/sys/*
/head/usr.bin/gcore/elfcore.c
Improve support for XSAVE with debuggers.
- Dump an NT_X86_XSTATE note if XSAVE is in use. This note is designed
  to match what Linux does in that 1) it dumps the entire XSAVE area
  including the fxsave state, and 2) it stashes a copy of the current
  xsave mask in the unused padding between the fxsave state and the
  xstate header at the same location used by Linux.
- Teach readelf() to recognize NT_X86_XSTATE notes.
- Change PT_GET/SETXSTATE to take the entire XSAVE state instead of
  only the extra portion. This avoids having to always make two
  ptrace() calls to get or set the full XSAVE state.
- Add a PT_GET_XSTATE_INFO which returns the length of the current
  XSTATE save area (so the size of the buffer needed for PT_GETXSTATE)
  and the current XSAVE mask (%xcr0).

Differential Revision:  https://reviews.freebsd.org/D1193
Reviewed by:    kib
MFC after:      2 weeks
20:02:06 - r274816
(14 hours 3 minutes ago)
by brooks
Affects:  /head/lib/libc/mips/gen/_setjmp.S
/head/lib/libc/mips/gen/setjmp.S
/head/sys/mips/include/asm.h
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
MFC after:      1 month
Sponsored by:   DARPA, AFRL
19:56:27 - r274815
(14 hours 8 minutes ago)
by sjg
Affects:  /projects/bmake/share/mk/auto.obj.mk
Use latest version
19:44:27 - r274814
(14 hours 20 minutes ago)
by marcel
Affects:  /user/marcel/libvdsk/bhyve/pci_virtio_block.c
Port to libvdsk(3). This also removes duplication between this file
and block_if.c.
19:42:56 - r274813
(14 hours 22 minutes ago)
by marcel
Affects:  /user/marcel/libvdsk/bhyve/xmsr.c
Commit the kluge to make bhyve work in VMware Fusion on Mac OS X.
I don't want to keep it as a modified file in my sandbox.
19:41:13 - r274812
(14 hours 23 minutes ago)
by marcel
Affects:  /user/marcel/libvdsk/libvdsk/Makefile
o   Use major version 0. We're bootstrapping...
o   Build for debugging...
19:40:21 - r274811
(14 hours 24 minutes ago)
by marcel
Affects:  /user/marcel/libvdsk/libvdsk/vdsk.c
Implement vdsk_flush() as is done in pci_virtio_block.c.
19:19:27 - r274810
(14 hours 45 minutes ago)
by marcel
Affects:  /user/marcel/libvdsk/bhyve/block_if.c
Remove redundant FreeBSD keyword.
19:13:54 - r274809
(14 hours 51 minutes ago)
by marcel
Affects:  /user/marcel/libvdsk/libvdsk/vdsk.c
Improve vdsk_open():
1.  Use calloc(3) instead of malloc(3) so that the user context is
    always pre-initialized.
2.  Wrap the sequence of steps in a `do { ... } while (0)' block so
    that we can use break to exit. Introduce ctx as the variable to
    return and use it to determine success or failure.

With a single entry and a single exit, we can more easily add some
kind of tracing or logging in the future.
18:35:50 - r274808
(15 hours 29 minutes ago)
by marcel
Affects:  /user/marcel/libvdsk/libvdsk/vdsk_int.h
Make sure struct vdsk is a multiple of 16 bytes so that the user
data is always sufficiently aligned.
18:35:48 - r274807
(15 hours 29 minutes ago)
by brooks
Affects:  /head/Makefile.inc1
Slightly alter the handling of LOCAL_LIB_DIRS to skip addition of
directories in LOCAL_LIB_DIRS if they are subdirectories of directories
listed in LOCAL_DIRS.  This allows a hierarchy like:

        foo
        foo/lib
        foo/usr.bin
        foo/usr.sbin

to be supported with LOCAL_DIRS=foo LOCAL_DIRS=foo/lib.

MFC after:      1 week
Sponsored by:   DARPA, AFRL
18:18:37 - r274806
(15 hours 46 minutes ago)
by brooks
Affects:  /head/Makefile.inc1
Add a guard against attempting to invoke the buildenv target with -j# as
that silently exits rather than doing something useful.

MFC after:      1 week
Sponsored by:   DARPA, AFRL
18:05:02 - r274805
(16 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl_frontend_iscsi.c
/head/sys/cam/ctl/ctl_frontend_iscsi.h
Make cfiscsi_offline() synchronous, waiting for connections termination
before return.  This should make ctld restart more clean and predictable.

MFC after:      2 weeks
18:00:00 - r274804
(16 hours 5 minutes ago)
by mav
Affects:  /head/usr.sbin/ctld/ctld.c
In conf_apply() remove iSCSI ports from kernel before removing LUNs.

Previous order confused initiators with messages about "removed" LUNs
during simple ctld restart without any real config change.  After this
commit initiators only reestablish lost connection, receive "Power on
occurred" UNIT ATTENTION status and continue normal operation.

MFC after:      1 month
17:57:37 - r274803
(16 hours 7 minutes ago)
by rodrigc
Affects:  /head/share/man/man9/Makefile
Create a vimage.9 link to vnet.9

Requested by: glebius
17:55:38 - r274802
(16 hours 9 minutes ago)
by rodrigc
Affects:  /head/share/mk/bsd.README
Make MLINKS text match text in bsd.man.mk added by wosch@ in 1996.
17:23:15 - r274801
(16 hours 41 minutes ago)
by marcel
Affects:  /user/marcel/libvdsk/Makefile.inc
Make sure to provide defaults for BINDIR, SHLIB_MAJOR and WARNS. These
come from lib/Makefile.inc and usr.sbin/Makefile.inc in the FreeBSD
source tree. Things don't quite work the same without them.

While here again: columnize.
17:08:28 - r274800
(16 hours 56 minutes ago)
by smh
Affects: 
(7 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/*
MFC r274619:
Disable TRIM on file backed ZFS vdevs and fix TRIM on init

Sponsored by:   Multiplay
16:31:59 - r274799
(17 hours 33 minutes ago)
by marcel
Affects:  /user/marcel/libvdsk/Makefile.inc
Add build glue for when libvdsk is not installed on the system.
16:22:01 - r274798
(17 hours 43 minutes ago)
by marcel
Affects:  /user/marcel/libvdsk/Makefile
Add a top-level directory to make libvdsk, bhyve and bhyveload.
16:14:32 - r274797
(17 hours 50 minutes ago)
by trasz
Affects:  /head/usr.sbin/ctld/isns.c
Fix error handling.

MFC after:      1 month
Coverity CID:   1249768
Sponsored by:   The FreeBSD Foundation
15:49:41 - r274796
(18 hours 15 minutes ago)
by trasz
Affects:  /head/usr.sbin/autofs/auto_master.5
Document use of wildcards (*) and ampersands (&) in autofs map files.

Differential Revision:  https://reviews.freebsd.org/D1199
Reviewed by:    wblock@
MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
15:38:31 - r274795
(18 hours 26 minutes ago)
by mav
Affects:  /head/sys/cam/ctl/ctl_frontend_iscsi.c
Close race between cfiscsi_offline() and new connection arrival.

Incoming connection should be either rejected or accepted and terminated.
15:21:39 - r274794
(18 hours 43 minutes ago)
by ae
Affects: 
(2 files)
/stable/10/sys/netipsec/ipsec_input.c
MFC r274230:
  Pass mbuf to pfil processing before stripping outer IP header as it
  is described in if_enc(4).
14:57:24 - r274793
(19 hours 7 minutes ago)
by glebius
Affects:  /projects/sendfile/sys/kern/vfs_default.c
Catch up on r274689.
14:53:42 - r274792
(19 hours 11 minutes ago)
by n_hibma
Affects:  /head/tools/tools/nanobsd/nanobsd.sh
Simply remove the tmp dir before creating the symlink. We are doing
chroots all over the place, so there is bound to be a stale file lying
around in there (in my case samba lock files from creating accounts). If
we don't do that, the symlink later will fail.
12:35:18 - r274791
(21 hours 29 minutes ago)
by trasz
Affects:  /head/usr.sbin/ctld/ctld.c
Add missing error checking for kernel_port_{add,remove}().  Both can fail
for reasons yet unknown; don't make it increment cumulated_error as a kind
of temporary workaround.

MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
11:21:39 - r274790
(22 hours 43 minutes ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
Remove bunch of unused lun variables.

MFC after:      1 week
11:20:24 - r274789
(22 hours 44 minutes ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
Reduce race between LUN destruction and request arrival.

MFC after:      1 week
10:47:30 - r274788
(23 hours 17 minutes ago)
by bz
Affects:  /head/sys/mips/mips/cpu.c
Fix build for certain MIPS kernels hiding an unused variable under #ifndef.
10:22:54 - r274787
(23 hours 42 minutes ago)
by kib
Affects: 
(2 files)
/stable/10/sys/kern/vfs_vnops.c
MFC r274501:
In vfs_write_suspend_umnt(), if suspension cannot be established, do
not forget to restore write ops count when returning the error.
08:24:37 - r274786
(1 day 1 hour ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
Log errors for absent LUNs too.

MFC after:      1 week
06:27:37 - r274785
(1 day 3 hours ago)
by mav
Affects: 
(11 files)
/head/sys/cam/ctl/*
Partially reconstruct Active/Standby clusting.

In this mode one head is in Active state, supporting all commands, while
another is in Standby state, supporting only minimal LUN discovery subset.

It is still incomplete since Standby state requires reservation support,
which is impossible to do right without having interlink between heads.
But it allows to run some basic experiments.
06:21:39 - r274784
(1 day 3 hours ago)
by trasz
Affects:  /head/sys/fs/smbfs/smbfs_vfsops.c
Fix smbfs to not zero out statfs f_flags field. Previously, this
made getmntinfo() return empty flags for smbfs filesystems when
called with MNT_WAIT. It's not visible with mount(8), since it uses
MNT_NOWAIT, but broke autounmount(8) operation.

PR:             195161
Differential Revision:  https://reviews.freebsd.org/D1194
Reviewed by:    kib@
MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
03:22:22 - r274783
(1 day 6 hours ago)
by marcel
Affects: 
(4 files)
/user/marcel/libvdsk/bhyve/*
/user/marcel/libvdsk/bhyveload/*
Use libvdsk(3) to implement block devices.
03:19:51 - r274782
(1 day 6 hours ago)
by marcel
Affects:  /user/marcel/libvdsk/bhyve/Makefile
/user/marcel/libvdsk/bhyveload/Makefile
Build this outside a FreeBSD tree. Assume /sys works for us.
03:04:11 - r274781
(1 day 7 hours ago)
by marcel
Affects:  /user/marcel/libvdsk/bhyveload
Branch head/usr.sbin/bhyveload
03:03:33 - r274780
(1 day 7 hours ago)
by marcel
Affects:  /user/marcel/libvdsk/bhyve
Branch head/usr.sbin/bhyve
03:01:31 - r274779
(1 day 7 hours ago)
by marcel
Affects: 
(5 files)
/user/marcel/libvdsk/libvdsk/*
Add libvdsk(3). This has effective enough to handle bhyveload and
bhyve in their current (limited) form. Under the hood this will
grow support for probing disk image formats and handling them.
02:56:50 - r274778
(1 day 7 hours ago)
by marcel
Affects:  /user/marcel/libvdsk
Create a branch for bootstrapping a library that can read and write
virtual disk images. The first consumers of it being bhyveload and
bhyve. Yes, the library is called libvdsk.
02:54:12 - r274777
(1 day 7 hours ago)
by marcel
Affects:  /user/marcel/mkimg
Remove my WIP branch for mkimg(1). Everything is in head and on stable/10
and there's no major (re-)work on the horizon that would warrant its
existence.
02:45:39 - r274776
(1 day 7 hours ago)
by jhibbits
Affects:  /head/sys/powerpc/powerpc/db_trace.c
Fix the powerpc64 build.

Pointy-hat to:  me
X-MFC-with:     r274735
02:30:37 - r274775
(1 day 7 hours ago)
by gjb
Affects:  /projects/release-vmimage/release/tools/azure.conf
/projects/release-vmimage/release/tools/openstack.conf
/projects/release-vmimage/release/tools/vmimage.subr
Revert r274773, after I *specifically* objected to this change
numerous times.

Sponsored by:   The FreeBSD Foundation
02:28:56 - r274774
(1 day 7 hours ago)
by melifaro
Affects: 
(13 files)
/projects/routing/sys/net/*
/projects/routing/sys/netinet/*
/projects/routing/sys/netinet6/*
Switch IF_AFDATA lock to rmlock
02:13:12 - r274773
(1 day 7 hours ago)
by cperciva
Affects:  /projects/release-vmimage/release/tools/azure.conf
/projects/release-vmimage/release/tools/openstack.conf
/projects/release-vmimage/release/tools/vmimage.subr
Change how packages are installed into VM images: Rather than chrooting
into the image and running 'pkg install' from there, use 'pkg fetch' to
download packages into a temporary location and then 'pkg add' to install
them into the image.

This simplifies the code by avoiding the need to copy /etc/resolv.conf
into the image and then delete it later, and makes it possible to cross
build (e.g., to create an amd64 image when running on i386 hardware; or
in the future for building disk images for embedded platforms).

Because pkg was implicitly installed when VM_EXTRA_PACKAGES was non-empty,
add it to VM_EXTRA_PACKAGES in azure.conf and openstack.conf to maintain
the current behaviour.

By default repo-FreeBSD.sqlite is copied into the image, (a) to match
previous behaviour, where the file would be downloaded by the chrooted
pkg invocation; and (b) because it may be useful for testing purposes,
e.g., to see why a package didn't get installed.  Because this file is
large (46 MB) and not likely to be useful in -RELEASE images which are
being launched into Clouds several months later, it can be disabled by
setting NOREPOSQLITE.

As far as I know this commit does not change the disk images produced in
any filesystem-visible way.
02:05:48 - r274772
(1 day 7 hours ago)
by emaste
Affects: 
(21 files)
/head/lib/*
/head/libexec/rtld-elf/rtld.c
/head/sys/*
Use canonical __PIC__ flag

It is automatically set when -fPIC is passed to the compiler.

Reviewed by:    dim, kib
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1179
01:53:40 - r274771
(1 day 8 hours ago)
by cperciva
Affects:  /projects/release-vmimage/release/tools/vmimage.subr
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.
01:43:55 - r274770
(1 day 8 hours ago)
by imp
Affects:  /head/sbin/fsck/fsck.c
Recommit r274750.
01:27:27 - r274769
(1 day 8 hours ago)
by melifaro
Affects:  /projects/routing/sys/net/if_faith.c
Finish sync: remove if_faith.c
01:22:33 - r274768
(1 day 8 hours ago)
by melifaro
Affects: 
(706 files)
/projects/routing/*
Sync to HEAD@r274766
00:58:58 - r274767
(1 day 9 hours ago)
by mav
Affects: 
(2 files)
/stable/10/share/man/man4/acpi.4
MFC r274532: Remove mostly obsolete hint to disable LAPIC timers.

It is partially covered by new code and partially by new CPUs.

PR:             195016
Submitted by:   tobias.rehbein@web.de
2014 - 11 - 20   (2 days ago)
23:16:19 - r274766
(1 day 10 hours ago)
by emaste
Affects:  /head/sys/dev/hwpmc/hwpmc_mod.c
Clamp too-large hwpmc callchaindepth to the maximum

If the depth requested by the user is too large, it's better to provide
the maximum than the smaller default.

Sponsored by:   The FreeBSD Foundation
23:00:17 - r274765
(1 day 11 hours ago)
by glebius
Affects: 
(27 files)
/projects/sendfile/sbin/fsck/fsck.c
/projects/sendfile/sys/*
Merge head  r258543 through r274762.
22:42:40 - r274764
(1 day 11 hours ago)
by sjg
Affects:  /projects/bmake/share/mk/dirdeps.mk
/projects/bmake/share/mk/meta.stage.mk
Use latest version
22:41:59 - r274763
(1 day 11 hours ago)
by melifaro
Affects: 
(16 files)
/projects/routing/sys/*
Simplify API: use new NHOP_LOOKUP_AIFP flag to select what ifp
we need to return.
Rename fib[64]_lookup_nh_basic to fib[64]_lookup_nh, add flags
fields for all relevant functions.
21:54:32 - r274762
(1 day 12 hours ago)
by glebius
Affects: 
(39 files)
/projects/sendfile/*
Merge head r258543 through r274754.
21:18:19 - r274761
(1 day 12 hours ago)
by imp
Affects:  /head/sbin/fsck/fsck.c
Back our r274750 until discussions on proper fix are over.
20:50:05 - r274760
(1 day 13 hours ago)
by jhb
Affects: 
(19 files)
/head/sys/cam/scsi/*
/head/sys/dev/*
Lock the scsi_low code and the drivers which use it along with other
related cleanups:
- Require each driver to initalize a mutex in the scsi_low_softc that
  is shared with the scsi_low code.  This mutex is used for CAM SIMs,
  timers, and interrupt handlers.
- Replace the osdep function switch with direct calls to the relevant
  CAM functions and direct manipulation of timers via callout(9).
- Collapse the CAM-specific scsi_low_osdep_interface substructure
  directly into scsi_low_softc.
- Use bus_*() instead of bus_space_*().
- Return BUS_PROBE_DEFAULT from probe routines instead of 0.
- No need to zero softcs.
- Pass 0ul and ~0ul instead of 0 and ~0 to bus_alloc_resource().
- Spell "dettach" as "detach".
- Remove unused 'dvname' variables.
- De-spl().

Tested by:      no one
20:24:30 - r274759
(1 day 13 hours ago)
by jhb
Affects:  /head/sys/i386/isa/spic.c
Lock spic(4) and mark it MPSAFE:
- Add a per-softc mutex as a driver lock.
- Use callout(9) instead of timeout(9).
- Set softc pointer in si_drv1 of cdev instead of looking softc
  up via devclass in cdev methods.

Tested by:      no one
20:09:18 - r274758
(1 day 13 hours ago)
by jhb
Affects:  /head/sys/dev/wl/if_wl.c
/head/sys/dev/wl/if_wl.h
Various fixes for wl(4):
- Don't recurse driver mutex.
- Don't hold driver mutex across fubyte/subyte.
- Replace fubyte/subyte loops with copyin/copyout calls.
- Use relatively sane locking in wl_ioctl().
- Use bus space accessors instead of in*()/out*().
- Use callout(9) instead of timeout(9).
- Stop watchdog timer in detach and don't hold mutex across
  bus_teardown_intr().
- Use device_printf() and if_printf().
- De-spl().

Tested by:      no one
19:35:29 - r274757
(1 day 14 hours ago)
by emaste
Affects: 
(2 files)
/stable/10/usr.bin/grep/regex/tre-fastmatch.c
bsdgrep: Work-around for segmentation fault.

Fix by David Carlier.

MFC of r272127
Obtained from:  HardenedBSD
PR:             167921
19:28:42 - r274756
(1 day 14 hours ago)
by mav
Affects:  /head/sys/cam/scsi/scsi_xpt.c
Remove residual xpt_release_device() call left after r272406 cleanup.

Excessive release here could trigger use-after-free condition and kernel
panic on LUN 0 disconnect.

MFC after:      1 week
18:49:11 - r274755
(1 day 15 hours ago)
by ae
Affects: 
(5 files)
/stable/10/sys/netinet6/ip6_ipsec.c
/stable/10/sys/netipsec/*
MFC r274434:
  Fix ips_out_nosa errors accounting.

MFC r274454:
  ipsec6_process_packet is called before ip6_output fixes ip6_plen.
  Update ip6_plen before bpf processing to be able see correct value.

MFC r274455:
  We don't return sp pointer, thus NULL assignment isn't needed.
  And reference to sp will be freed at the end.

MFC r274465:
  Remove redundant ip6_plen initialization.

MFC r274466:
  Strip IP header only when we act in tunnel mode.

MFC r274467:
  Count statistics for the specific address family.

Sponsored by:   Yandex LLC
17:36:25 - r274754
(1 day 16 hours ago)
by glebius
Affects:  /projects/sendfile/sys/sys/buf.h
/projects/sendfile/sys/vm/vnode_pager.c
o Since pager bufs are never put on freelist, share the space in
  the structure in union.
o Add iodone callback pointer to the b_pager.
o In vnode_pager use new b_pager.pg_iodone to store iodone
  pointer, eliminating the getpages_data structure and need to
  allocate it.

Suggested by:   kib
Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
17:31:25 - r274753
(1 day 16 hours ago)
by imp
Affects:  /head/sys/geom/part/g_part_bsd.c
Actually, that was a bad idea. Go back to MAXPARTITIONS.

Submitted by: bruce
17:06:41 - r274752
(1 day 16 hours ago)
by br
Affects: 
(6 files)
/head/sys/mips/include/*
/head/sys/mips/mips/*
Add L2-cache writeback/flush operations. Supported 32,128-byte line-size,
else ignored. Cavium Networks also ignored as it has non-standard config
registers.

Obtained from:  NetBSD
Sponsored by:   DARPA, AFRL
17:03:40 - r274751
(1 day 17 hours ago)
by andrew
Affects:  /head/sys/dev/fdt/fdt_common.c
The ranges parent bus address may just be a tag to the entry in the parent
node. Take this in to account by searching until we find the range for the
root node.

Differential Revision:  https://reviews.freebsd.org/D1160
Reviewed by:    ian
Obtained from:  ABT Systems Ltd
Sponsored by:   The FreeBSD Foundation
16:31:31 - r274750
(1 day 17 hours ago)
by ae
Affects:  /head/sbin/fsck/fsck.c
Use geom attribute "PART::type" to determine partition type and choose
relevant fsck_xxx utility.

MFC after:      1 week
14:18:07 - r274749
(1 day 19 hours ago)
by emaste
Affects:  /head/share/man/man4/splash.4
Spell out "Windows" - no need to censor it in a man page
11:33:38 - r274748
(1 day 22 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/kern/kern_umtx.c
MFC r274478:
Fix assertion, &uc->uc_busy is never zero, the intent is to test the
uc_busy value, and not its address.
11:29:43 - r274747
(1 day 22 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/kern/kern_lock.c
MFC r274474:
Do not try to dereference thread pointer when the value is not a pointer.
11:26:06 - r274746
(1 day 22 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/kern/vfs_syscalls.c
MFC r274473:
Remove fossil.
09:56:34 - r274745
(2 days ago)
by rodrigc
Affects:  /head/share/man/man9/Makefile
/head/share/man/man9/vnet.9
MFp4: @179066

Add page which describes VNET network stack virtualization infrastructure.

Submitted by: bz
Sponsored by: The FreeBSD Foundation
Sponsored by: CK Software GmbH
08:11:54 - r274744
(2 days 1 hour ago)
by rodrigc
Affects:  /head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c
Set the current vnet inside the ioctl handler for ipfilter.

Without this fix, the vnet was NULL and would crash.
This fix is similar to what was done inside the ioctl handler for PF.

Tested by:
   (1) Boot a kernel with "options VIMAGE" enabled
   (2) Type:

   echo "map lo0 from 10.0.0.0/24 to ! 10.0.0.0/24 -> 127.0.0.1/32" >
/etc/ipnat.rules ; service ipnat onerestart

PR: 176992
Differential Revision: https://reviews.freebsd.org/D1191
Reviewed by: cy
06:32:47 - r274743
(2 days 3 hours ago)
by jhibbits
Affects:  /head/sys/powerpc/aim/trap_subr32.S
/head/sys/powerpc/aim/trap_subr64.S
cpudep_ap_early_bootstrap() takes no arguments, so no need to give it one.

MFC after:      3 weeks
06:14:40 - r274742
(2 days 3 hours ago)
by trasz
Affects:  /head/sbin/growfs/growfs.8
Uniformly refer to a file system as "file system".

MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
06:12:11 - r274741
(2 days 3 hours ago)
by trasz
Affects:  /head/sbin/growfs/growfs.8
Add example on how to use gpart before growfs.  While here, reorder examples
so that the simplest one comes first.

MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
05:54:29 - r274740
(2 days 4 hours ago)
by adrian
Affects:  /head/sys/mips/conf/MALTA64
* Add a random device
* Use the same rootdev path as MALTA, so the same emulator setups
  can be used with minimal fuss.
05:52:48 - r274739
(2 days 4 hours ago)
by adrian
Affects:  /head/sys/mips/conf/MALTA
Include a random device.
05:31:41 - r274738
(2 days 4 hours ago)
by trasz
Affects:  /head/sbin/growfs/growfs.8
Document growfs(8) feature apparently nobody knows about.

MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
05:25:52 - r274737
(2 days 4 hours ago)
by trasz
Affects:  /head/sbin/growfs/growfs.8
Use proper ordering in EXAMPLES section in growfs(8).

MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
04:15:58 - r274736
(2 days 5 hours ago)
by jmg
Affects:  /head/libexec/fingerd/fingerd.8
I agree w/ tedu that this isn't a Bug.. it's like complaining that
you can't use an ssh client to fetch a web page...

Submitted by:   tedu (via -tech)
03:47:04 - r274735
(2 days 6 hours ago)
by jhibbits
Affects:  /head/sys/powerpc/powerpc/db_trace.c
Use db_printsym() instead of our own in backtraces

Summary:
Currently if there are problems finding a symbol, backtrace ends up printing
something like:

0xdeadbeef: at +0x12345

Which is pretty useless.  This on its own should be fixed (retrieving symbols),
but aside from that, using db_printsym() is a better solution anyway.  If it
can't find a valid symbol it prints the actual address, and it has the added
benefit that if it can find the symbol, it might be able to print the file and
line as well.

Test Plan: Tested on my G4 PowerBook

Reviewers: #powerpc, nwhitehorn

Reviewed By: nwhitehorn

Differential Revision: https://reviews.freebsd.org/D1173

MFC after:      3 weeks
03:46:35 - r274734
(2 days 6 hours ago)
by cperciva
Affects:  /projects/release-vmimage/release/Makefile.vm
Merge duplicative vm-CLOUDTYPE targets before additional duplication gets
added by the impending arrival of ec2 and gcloud.
03:23:33 - r274733
(2 days 6 hours ago)
by jhibbits
Affects:  /head/sys/powerpc/powermac/pmu.c
/head/sys/powerpc/powermac/pmuvar.h
Add support for Power Button PMU events on non-ADB macs, such as aluminum
PowerBooks.

MFC after:      2 weeks
Relnotes:       yes
01:55:12 - r274732
(2 days 8 hours ago)
by mav
Affects: 
(12 files)
/stable/10/sys/*
/stable/10/usr.sbin/ctladm/ctladm.8
MFC r274154, r274163:
Add to CTL support for logical block provisioning threshold notifications.

For ZVOL-backed LUNs this allows to inform initiators if storage's used or
available spaces get above/below the configured thresholds.

Sponsored by:   iXsystems, Inc.
01:51:54 - r274731
(2 days 8 hours ago)
by mav
Affects: 
(3 files)
/stable/9/sys/cam/scsi/scsi_all.h
MFC r274477: Fix check for vendor-specific peripheral qualifier.

Submitted by:   anton.rang@isilon.com
01:50:46 - r274730
(2 days 8 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cam/scsi/scsi_all.h
MFC r274477: Fix check for vendor-specific peripheral qualifier.

Submitted by:   anton.rang@isilon.com
00:16:55 - r274729
(2 days 9 hours ago)
by cperciva
Affects:  /projects/release-vmimage/release/scripts/mk-vmimage.sh
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.
2014 - 11 - 19   (3 days ago)
23:32:09 - r274728
(2 days 10 hours ago)
by glebius
Affects:  /projects/sendfile/sys/vm/vnode_pager.c
Minor style(9) nit.

Submitted by:   kib
23:07:46 - r274727
(2 days 10 hours ago)
by brd
Affects: 
(4 files)
/head/usr.sbin/pw/tests/*
Replace the pw(1) calls with a variable, to make it easier to to change across
all the tests as needed.

Reviewed by:    will
22:17:22 - r274726
(2 days 11 hours ago)
by cperciva
Affects:  /projects/release-vmimage/release/tools/vmimage.subr
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.
20:19:53 - r274725
(2 days 13 hours ago)
by gjb
Affects:  /projects/release-vmimage/release/tools/azure.conf
/projects/release-vmimage/release/tools/openstack.conf
/projects/release-vmimage/release/tools/vmimage.subr
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).

Reported by:    cperciva
Sponsored by:   The FreeBSD Foundation
20:16:56 - r274724
(2 days 13 hours ago)
by np
Affects:  /head/sys/dev/cxgbe/common/common.h
/head/sys/dev/cxgbe/t4_main.c
cxgbe(4): figure out the max payload size and save it for later.

MFC after:      1 week
19:46:58 - r274723
(2 days 14 hours ago)
by trasz
Affects:  /head/usr.sbin/autofs/auto_master.5
Make the auto_master(5) man page clearer on how auto_master
and map files work together, and add example for smbfs.

Differential Revision:  https://reviews.freebsd.org/D1184
Reviewed by:    wblock@
MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
19:43:39 - r274722
(2 days 14 hours ago)
by trasz
Affects:  /head/lib/libc/posix1e/acl_size.c
Remove acl_size.c; apparently it was never used.

PR:             194398
Submitted by:   ngie@
MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
18:55:27 - r274721
(2 days 15 hours ago)
by imp
Affects:  /head/sys/geom/part/g_part_bsd.c
The number of BSD partitions is variable. Return the proper number
(which is in basetable->gpt_entries).

Submitted by: ae@
18:19:21 - r274720
(2 days 15 hours ago)
by trasz
Affects:  /head/usr.bin/man/man.1
/head/usr.sbin/bhyve/bhyve.8
Fix improper .Fx macro usage.

Differential Revision:  https://reviews.freebsd.org/D1158
Reviewed by:    wblock@
MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
16:33:07 - r274719
(2 days 17 hours ago)
by glebius
Affects: 
(2 files)
/projects/sendfile/sys
Merge head up to r274718.
16:29:39 - r274718
(2 days 17 hours ago)
by glebius
Affects:  /head/sys/vm/vnode_pager.c
Use __func__ in KASSERTs, since the code is about to be moved to other place.

Sponsored by:   Nginx, Inc.
16:23:57 - r274717
(2 days 17 hours ago)
by glebius
Affects: 
(16 files)
/projects/sendfile/sbin/ifconfig/ifgroup.c
/projects/sendfile/sys/*
Merge head.
16:18:54 - r274716
(2 days 17 hours ago)
by glebius
Affects:  /projects/sendfile/sys/vm/vnode_pager.c
Put getpages_data on a diet, and store all the important information
in the buf.

Suggested by:   kib
Sponsored by:   Nginx, Inc.
15:17:19 - r274715
(2 days 18 hours ago)
by glebius
Affects:  /head/sys/vm/vnode_pager.c
In vnode_pager_generic_getpages() vp->v_mount is dereferenced in the
beginning, thus can't be NULL.

Sponsored by:   Nginx, Inc.
14:49:29 - r274714
(2 days 19 hours ago)
by br
Affects: 
(3 files)
/head/sys/dev/beri/virtio/virtio_mmio_platform.c
/head/sys/dev/beri/virtio/virtio_mmio_platform.h
Add BERI-specific virtio mmio "platform" device.
This device provides a connector to Altera PIO allowing us
to interrupt software-implemented virtio mmio backend.

Sponsored by:   DARPA, AFRL
14:47:44 - r274713
(2 days 19 hours ago)
by glebius
Affects:  /projects/sendfile/sys/kern/uipc_sockbuf.c
Add check to sbcheck() for empty mbufs on buffer.

Sponsored by:   Nginx, Inc.
14:27:38 - r274712
(2 days 19 hours ago)
by glebius
Affects:  /head/sys/kern/uipc_socket.c
Do not allocate zero-length mbuf in sosend_generic().

Found by:       pho
Sponsored by:   Nginx, Inc.
14:23:29 - r274711
(2 days 19 hours ago)
by zbb
Affects:  /head/sys/kern/kern_cons.c
Stop using early_putc immediately after configuring console with cninit()

Early UART should be released right after system console initialization is
completed. Otherwise, after cninit() both early and system console coexist
what may lead to various issues (i.a. writing to unmapped early
UART address). This cannot be done in cninit_finish() since it can be
called late at the end of MI configuration.

Obtained from:   Semihalf
Reviewed by:     andrew
Sponsored by:    The FreeBSD Foundation
13:57:39 - r274710
(2 days 20 hours ago)
by feld
Affects:  /head/sbin/ifconfig/ifgroup.c
Expose groups by default in ifconfig output. This was never hidden by
OpenBSD; unsure why we chose to do so. As groups are a requirement for
pf, exposing them by default will make our pf implementation less
confusing.

While here add a missing free() that OpenBSD fixed 7 years ago.

PR:             194925
Differential Revision:  https://reviews.freebsd.org/D1185
Approved by:    des
Obtained from:  OpenBSD
13:31:08 - r274709
(2 days 20 hours ago)
by eri
Affects:  /head/sys/netpfil/pf/pf_ioctl.c
pf(4) needs to have a correct checksum during its processing.
Calculate checksums for the IPv6 path when needed before
delving into pf(4) code as required.

PR:     172648, 179392
Reviewed by:    glebius@
Approved by:    gnn@
Obtained from:  pfSense
MFC after:      1 week
Sponsored by:   Netgate
13:04:25 - r274708
(2 days 21 hours ago)
by mav
Affects:  /head/sys/dev/isp/isp_freebsd.c
/head/sys/dev/isp/isp_freebsd.h
Fix build without INVARIANTS, broken by r274675.
11:05:45 - r274707
(2 days 22 hours ago)
by dchagin
Affects:  /head/sys/dev/pci/pci.c
Revert r274635 as it's completely wrong.
The parent of a pci dev device is a pciX device which do not
implement the PCIB_POWER_FOR_SLEEP method from pcib_if.m.
10:25:08 - r274706
(2 days 23 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/kern/vfs_syscalls.c
MFC r274438:
For posix_fallocate(2) and posix_fadvise(2), return ESPIPE
when underlying file does not have DFLAG_SEEKABLE set. For
posix_fallocate(2), simplify error handling logic.
09:07:49 - r274705
(3 days ago)
by hselasky
Affects: 
(5 files)
/stable/9/sys/net/if.c
/stable/9/sys/net/if_var.h
/stable/9/sys/netinet/tcp_output.c
MFC r274376:
Fix some minor TSO issues:
- Improve description of TSO limits.
- Remove a not needed KASSERT()
- Remove some not needed variable casts.

Sponsored by:   Mellanox Technologies
09:03:12 - r274704
(3 days 1 hour ago)
by hselasky
Affects: 
(4 files)
/stable/10/sys/net/if.c
/stable/10/sys/net/if_var.h
/stable/10/sys/netinet/tcp_output.c
MFC r274376:
Fix some minor TSO issues:
- Improve description of TSO limits.
- Remove a not needed KASSERT()
- Remove some not needed variable casts.

Sponsored by:   Mellanox Technologies
08:59:49 - r274703
(3 days 1 hour ago)
by trasz
Affects:  /head/sys/cam/ctl/ctl_frontend_iscsi.c
Fix typo.

MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
08:56:38 - r274702
(3 days 1 hour ago)
by hselasky
Affects: 
(2 files)
/stable/10/usr.sbin/usbconfig/dump.c
MFC r274435:
Decode more fields when dumping USB descriptors.
- Some minor style changes while at it.
08:55:07 - r274701
(3 days 1 hour ago)
by hselasky
Affects: 
(2 files)
/stable/9/usr.sbin/usbconfig/dump.c
MFC r274435:
Decode more fields when dumping USB descriptors.
- Some minor style changes while at it.
08:51:15 - r274700
(3 days 1 hour ago)
by hselasky
Affects: 
(4 files)
/stable/9/sys/dev/usb/serial/u3g.c
/stable/9/sys/dev/usb/usbdevs
MFC r274227:
Add new USB IDs.
08:48:59 - r274699
(3 days 1 hour ago)
by hselasky
Affects: 
(3 files)
/stable/10/sys/dev/usb/serial/u3g.c
/stable/10/sys/dev/usb/usbdevs
MFC r274227:
Add new USB IDs.
07:47:37 - r274698
(3 days 2 hours ago)
by dim
Affects:  /head/sys/contrib/ngatm/netnatm/saal/saal_sscop.c
Fix the following -Werror warning from clang 3.5.0, while building
lib/libngatm:

sys/contrib/ngatm/netnatm/saal/saal_sscop.c:4030:32: error: 'break' is bound to
current loop, GCC binds it to the enclosing loop [-Werror,-Wgcc-compat]
                } while(sn < sscop->vr_h && !QFIND(&sscop->rbuf, sn));
                                             ^
sys/contrib/ngatm/netnatm/saal/saal_sscop.c:173:4: note: expanded from macro
'QFIND'
                        break;                                          \
                        ^
1 error generated.

The idea is to remove any ambiguity by replacing the macro with an
equivalent static inline function.

Reviewed by:    emaste, rpaulo
See also:       http://reviews.llvm.org/D2518
Differential Revision: https://reviews.freebsd.org/D1188
07:44:21 - r274697
(3 days 2 hours ago)
by dim
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/sys/isa_defs.h
Fix the following -Werror warning from clang 3.5.0, while building
cddl/lib/libctf:

In file included from cddl/contrib/opensolaris/common/ctf/ctf_create.c:31:
In file included from
sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h:34:
sys/cddl/contrib/opensolaris/uts/common/sys/isa_defs.h:334:9: warning: '_ILP32'
macro redefined [-Wmacro-redefined]
#define _ILP32
        ^
<built-in>:26:9: note: previous definition is here
#define _ILP32 1
        ^
1 warning generated.

This is because clang 3.5.0 started predefining _ILP32 and __ILP32__ for
the i386 arch.  (Earlier versions already predefined _LP64 and __LP64__
for the x86_64 arch.)

Reviewed by:    emaste, avg, smh, delphij, markj
Differential Revision: https://reviews.freebsd.org/D1187
07:24:43 - r274696
(3 days 2 hours ago)
by dim
Affects: 
(8 files)
/stable/10/contrib/llvm/*
/stable/9/contrib/llvm/*
MFC r274442:

Pull in r221709 from upstream llvm trunk (by Frédéric Riss):

  Totally forget deallocated SDNodes in SDDbgInfo.

  What would happen before that commit is that the SDDbgValues associated with
  a deallocated SDNode would be marked Invalidated, but SDDbgInfo would keep
  a map entry keyed by the SDNode pointer pointing to this list of invalidated
  SDDbgNodes. As the memory gets reused, the list might get wrongly associated
  with another new SDNode. As the SDDbgValues are cloned when they are
transfered,
  this can lead to an exponential number of SDDbgValues being produced during
  DAGCombine like in http://llvm.org/bugs/show_bug.cgi?id=20893

  Note that the previous behavior wasn't really buggy as the invalidation made
  sure that the SDDbgValues won't be used. This commit can be considered a
  memory optimization and as such is really hard to validate in a unit-test.

This should fix abnormally large memory usage and resulting OOM crashes
when compiling certain ports with debug information.

Reported by:    Dmitry Marakasov <amdmi3@amdmi3.ru>
Upstream PRs:   http://llvm.org/PR19031 http://llvm.org/PR20893

MFC r274483:

The fix imported into llvm in r274442 contains some C++11 constructs,
which gcc in base cannot handle.  Replace these with C++98 equivalents.

While here, add the patch for the adapted fix.

Reported by:    bz, kib
Pointy hat to:  dim
07:11:29 - r274695
(3 days 2 hours ago)
by sjg
Affects:  /projects/bmake/usr.sbin/faithd
/projects/bmake/usr.sbin/ftp-proxy/ftp-proxy
/projects/bmake/usr.sbin/ftp-proxy/libevent
Removed from head
07:10:38 - r274694
(3 days 2 hours ago)
by sjg
Affects: 
(46 files)
/projects/bmake/*
Updated/new dependencies
07:09:43 - r274693
(3 days 2 hours ago)
by sjg
Affects:  /projects/bmake/share/mk/src.libnames.mk
Use OBJTOP if defined
07:09:14 - r274692
(3 days 2 hours ago)
by sjg
Affects:  /projects/bmake/lib/libpam/libpam/Makefile
Include src.opts.mk since we don't include modules.inc here.
06:57:50 - r274691
(3 days 3 hours ago)
by glebius
Affects:  /projects/sendfile/sys/vm/vnode_pager.c
Change type of unmapped local variable to bootlean_t.
06:37:18 - r274690
(3 days 3 hours ago)
by glebius
Affects: 
(255 files)
/projects/sendfile/*
Merge head r258543 through r274689.
06:14:54 - r274689
(3 days 3 hours ago)
by glebius
Affects:  /projects/sendfile/sys/kern/uipc_syscalls.c
/projects/sendfile/sys/vm/vnode_pager.c
Make the iodone callback responsible on unbusying the reqpage.

Suggested by:   kib
Sponsored by:   Nginx, Inc.
Sponsored by:   Netflix
06:13:55 - r274688
(3 days 3 hours ago)
by glebius
Affects:  /projects/sendfile/sys/vm/swap_pager.c
/projects/sendfile/sys/vm/vm_pager.h
Provide emulation of asynchronous operation in swap_pager.c itself, not
in the vm_pager.h inliner.

Suggested by:   kib
Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
05:58:34 - r274687
(3 days 4 hours ago)
by glebius
Affects:  /projects/sendfile/sys/vm/vnode_pager.c
Set B_ASYNC on asynchronous buf.

Submitted by:   kib
05:46:27 - r274686
(3 days 4 hours ago)
by glebius
Affects:  /projects/sendfile/sys/kern/uipc_sockbuf.c
/projects/sendfile/sys/kern/uipc_syscalls.c
/projects/sendfile/sys/sys/sockbuf.h
Revert M_SBCUT changes, the flag isn't actually needed. If sf_iodone()
does soisdisconnected() in case of I/O error, then PCB would be marked
dropped and if any more I/Os are pending on this socket, they will free
their mbufs in tcp_usr_ready().

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
05:43:31 - r274685
(3 days 4 hours ago)
by glebius
Affects:  /projects/sendfile/sys/netinet/tcp_usrreq.c
In tcp_usr_send() if the pcb appears to be dropped, avoid freeing
M_NOTREADY mbufs.

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
05:38:45 - r274684
(3 days 4 hours ago)
by kevlo
Affects:  /head/share/man/man4/rsu.4
/head/sys/dev/usb/usbdevs
/head/sys/dev/usb/wlan/if_rsu.c
Add Trendnet TEW-646UBH.

Submitted by:   bolshakov_1 at yahoo dot com
01:07:58 - r274683
(3 days 8 hours ago)
by sjg
Affects: 
(5302 files)
/projects/bmake/*
Merge from head@274682
00:44:21 - r274682
(3 days 9 hours ago)
by sjg
Affects:  /projects/bmake/gnu/lib/csu/Makefile.depend
fixed dep
2014 - 11 - 18   (4 days ago)
22:35:19 - r274681
(3 days 11 hours ago)
by delphij
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c
Make vfs.zfs.max_recordsize read-write at runtime.

MFC after:      2 weeks
22:12:51 - r274680
(3 days 11 hours ago)
by jhb
Affects:  /head/sys/dev/wds/wd7000.c
Add locking to wds(4) and mark MPSAFE.
- Add per-softc mutex.
- Use mutex for CAM SIM lock.
- Use bus_*() instead of inb() and outb().
- Use bus_alloc_resource_any() when reasonable.

Tested by:      no one
22:02:37 - r274679
(3 days 12 hours ago)
by jhb
Affects:  /head/sys/dev/scd/scd.c
/head/sys/dev/scd/scd_isa.c
/head/sys/dev/scd/scdvar.h
Add locking to scd(4) and mark MPSAFE.
- Actually use existing per-softc mutex.
- Use mutex in cdev routines and remove D_NEEDGIANT.
- Use callout(9) instead of timeout(9).
- Don't check for impossible conditions (e.g. SCDINIT being clear).
- Use bus_*() instead of bus_space_*().

Tested by:      no one
21:58:57 - r274678
(3 days 12 hours ago)
by jhb
Affects:  /head/sys/dev/pst/pst-pci.c
/head/sys/dev/pst/pst-raid.c
Cleanups to pst(4):
- Use callout(9) instead of timeout(9).
- Don't bother zero'ing the softc.
- Destroy mutex on detach.

Tested by:      no one
21:55:50 - r274677
(3 days 12 hours ago)
by jhb
Affects:  /head/sys/dev/mly/mly.c
/head/sys/dev/mly/mlyvar.h
Add locking to mly(4) and mark MPSAFE.
- Add a per-softc mutex.
- Use mutex as CAM sim lock.
- Use taskqueue_thread instead of taskqueue_swi_giant.
- Use callout(9) instead of timeout(9).
- Use bus_*() instead of bus_space_*().

Tested by:      no one
21:51:01 - r274676
(3 days 12 hours ago)
by jhb
Affects:  /head/sys/dev/mcd/mcd.c
/head/sys/dev/mcd/mcd_isa.c
/head/sys/dev/mcd/mcdvar.h
Add locking to mcd(4) and mark MPSAFE.
- Actually use existing per-softc mutex.
- Use mutex in cdev routines and remove D_NEEDGIANT.
- Use callout(9) instead of timeout(9).
- Don't check for impossible conditions (e.g. MCDINIT being clear).
- Remove critical_enter/exit when sending a PIO command.
- Use bus_*() instead of bus_space_*().

Tested by:      no one
21:03:46 - r274675
(3 days 13 hours ago)
by jhb
Affects:  /head/sys/dev/isp/isp_freebsd.c
/head/sys/dev/isp/isp_freebsd.h
Convert the refire_notify_ack timer from timeout(9) to callout(9).

Tested by:      no one
18:52:38 - r274674
(3 days 15 hours ago)
by delphij
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c
Add a tunable for spa_slop_shift which controls how much space we
would reserve by default.  Tuning is not recommended.

MFC after:      2 weeks
18:40:01 - r274673
(3 days 15 hours ago)
by delphij
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c
Allow tuning zfs_max_recordsize via loader tunable.  Tuning is NOT
recommended.

Requested by:   Slawa Olhovchenkov <slw zxy spb ru>
MFC after:      2 weeks
18:03:40 - r274672
(3 days 16 hours ago)
by marcel
Affects: 
(5 files)
/head/contrib/libxo/configure.ac
/head/contrib/libxo/libxo/*
/head/contrib/libxo/xolint/xolint.pl
Upgrade libxo to 0.1.6.

Summary of changes:
1.  Coverity defect fixes

Obtained from:  https://github.com/Juniper/libxo/releases/tag/0.1.6
17:37:33 - r274671
(3 days 16 hours ago)
by loos
Affects:  /head/sys/dev/gpio/gpio_if.m
Make gpio_default_map_gpios() static.  No functional changes.
17:22:08 - r274670
(3 days 16 hours ago)
by loos
Affects: 
(16 files)
/head/sys/*
Moves all the duplicate code to a single function.

Verify for invalid modes and unwanted flags before pass the new flags to
driver.
17:07:02 - r274669
(3 days 16 hours ago)
by imp
Affects:  /head/sys/arm/broadcom/bcm2835/bcm2835_gpio.c
These delays aren't needed. Elimate them. They should be on the order
of a few cycles at most, not 10us. They make it impossible to
implement half-duplex protocols that are faster than about 1KHz.

Sponsored by: Netflix
17:06:56 - r274668
(3 days 16 hours ago)
by imp
Affects: 
(17 files)
/head/sys/*
opt_global.h is included automatically in the build. No need to
explicitly include it in these places.

Sponsored by: Netflix
17:06:54 - r274667
(3 days 16 hours ago)
by imp
Affects:  /head/sys/modules/lmc/Makefile
No need to list opt_global.h. No need to force ALTQ here, since that's
not the normal default for the system and nothing else forces it on.

Sponsored by: Netflix
17:06:52 - r274666
(3 days 16 hours ago)
by imp
Affects:  /head/sys/modules/cxgb/tom/Makefile
opt_global.h is never needed in SRCS lists.

Sponsored by: Netflix
17:06:50 - r274665
(3 days 16 hours ago)
by imp
Affects:  /head/tools/build/options/WITHOUT_TESTS_SUPPORT
/head/tools/build/options/WITHOUT_USB_GADGET_EXAMPLES
Document WITHOUT_USB_EXAMPLES and WITHOUT_TESTS_SUPPORT

Sponsored by: Netflix
17:06:48 - r274664
(3 days 16 hours ago)
by imp
Affects:  /head/tools/build/options/WITHOUT_LIB32
LIB32 is supported for powerpc64 too. Make the note more general about
64-bit processors.

Sponsored by: Netflix
17:06:46 - r274663
(3 days 16 hours ago)
by imp
Affects:  /head/sys/dev/pccbb/pccbb.c
Fix typo pointed out by avg@ and Joerg Sonnenberger. Add a clarifying
sentence too.

Sponsored by: Netflix
17:06:44 - r274662
(3 days 16 hours ago)
by imp
Affects: 
(4 files)
/head/share/mk/*
/head/tools/build/options/WITHOUT_INCLUDES
Acutally, replaces NO_INCS with WITHOUT_INCLUDES and make
WITHOUT_TOOLCHAIN imply it instead.

Sponsored by: Netflix
17:06:40 - r274661
(3 days 16 hours ago)
by imp
Affects: 
(5 files)
/head/sys/conf/files
/head/sys/geom/part/*
/head/sys/modules/geom/geom_part/geom_part_bsd/Makefile
Implement the historic DIOCGDINFO ioctl for gpart on BSD
partitions. Several utilities still use this interface and require
additional information since gpart was activated than before. This
allows fsck of a UFS partition without having to specify it is UFS,
per historic behavior.
16:31:00 - r274660
(3 days 17 hours ago)
by jhibbits
Affects:  /head/etc/devd/apple.conf
Missed a terminating ';'.

X-MFC-with:     r273009
15:38:40 - r274659
(3 days 18 hours ago)
by glebius
Affects: 
(6 files)
/projects/sendfile/sys/kern/*
/projects/sendfile/sys/vm/*
Pass array of pages and count to VOP_GETPAGES() iodone functions.

Suggested by:   kib
Sponsored by:   Nginx, Inc.
15:02:11 - r274658
(3 days 19 hours ago)
by glebius
Affects:  /projects/sendfile/sys/kern/vfs_default.c
/projects/sendfile/sys/sys/vnode.h
/projects/sendfile/sys/ufs/ufs/ufs_vnops.c
- Remove vop_stdgetpages_async() from UFS, since it inherits from FFS.
- Remove vop_stdgetpages_async() and renamed vop_stdgetpages_async_emulate()
  to vop_stdgetpages_async().

Submitted by:   kib
14:56:16 - r274657
(3 days 19 hours ago)
by glebius
Affects:  /projects/sendfile/sys/vm/vnode_pager.c
- Rename getpages_softc to getpages_data.
- Remove local variables in vnode_pager_generic_getpages_done().

Reviewed by:    kib
Sponsored by:   Nginx, Inc.
14:12:19 - r274656
(3 days 19 hours ago)
by br
Affects: 
(4 files)
/head/sys/dev/altera/pio/pio.c
/head/sys/dev/altera/pio/pio.h
/head/sys/dev/altera/pio/pio_if.m
Add Altera Parallel IO (PIO) device driver.

Sponsored by:   DARPA, AFRL
14:11:14 - r274655
(3 days 19 hours ago)
by br
Affects: 
(5 files)
/head/sys/dev/virtio/block/virtio_blk.c
/head/sys/dev/virtio/mmio/*
Add Virtio MMIO bus driver.

Sponsored by:   DARPA, AFRL
14:00:00 - r274654
(3 days 20 hours ago)
by glebius
Affects:  /projects/sendfile/sys/vm/vnode_pager.c
Remove blank lines.

Submitted by:   kib
13:38:09 - r274653
(3 days 20 hours ago)
by feld
Affects:  /head/usr.sbin/freebsd-update/freebsd-update.sh
Re-work non-persistent filesystem detection as it was not possible to
detect /dev/md backed mfs filesystems that way.

Differential Revision:  https://reviews.freebsd.org/D1163
Approved by:    ian
13:38:07 - r274652
(3 days 20 hours ago)
by glebius
Affects:  /head/sys/vm/vnode_pager.c
Collapse three contiguous comment blocks into one. Remove historical
note about wrong assumptions 20 years ago. Use proper casing.

Sponsored by:   Nginx, Inc.
13:05:24 - r274651
(3 days 20 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/dev/agp/agp_i810.c
MFC r274379:
Initial attachment of the agp(4) to Haswell IGP.
13:03:18 - r274650
(3 days 21 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/dev/agp/agp_i810.c
MFC r274378:
Attach agp_i810 to non-VGA display class.
13:01:41 - r274649
(3 days 21 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/dev/agp/agp_i810.c
MFC r274377:
On 965 and higher, map GTT as write-combining.
12:53:32 - r274648
(3 days 21 hours ago)
by kib
Affects: 
(21 files)
/stable/10/share/man/man9/*
/stable/10/sys/*
Merge the fueword(9) and casueword(9).  In particular,

MFC r273783:
Add fueword(9) and casueword(9) functions.
MFC note: ia64 is handled like arm, with NO_FUEWORD define.

MFC r273784:
Replace some calls to fuword() by fueword() with proper error checking.

MFC r273785:
Convert kern_umtx.c to use fueword() and casueword().
MFC note: the sys__umtx_lock and sys__umtx_unlock syscalls are not
converted, they are removed from HEAD, and not used.  The do_sem2*()
family is not yet merged to stable/10, corresponding chunk will be
merged after do_sem2* are committed.

MFC r273788 (by jkim):
Actually install casuword(9) to fix build.

MFC r273911:
Add type qualifier volatile to the base (userspace) address argument
of fuword(9) and suword(9).
09:18:35 - r274647
(4 days ago)
by matthew
Affects:  /svnadmin/conf/access
Take miwi's src commit bit into safekeeping, at his own request.

Approved by:    core (implicit)
07:16:03 - r274646
(4 days 2 hours ago)
by jpaetzel
Affects: 
(2 files)
/stable/10/sys/sys/buf_ring.h
MFC 273866

Plug memory ordering holes in buf_ring_enqueue. For at least some
users this patch eliminates the races previously discussed on the
mailing list.

Submitted by:   oleg
Reviewed by:    kmacy
MFC after:      2 weeks
Tested by:      kmacy,rpaulo
07:03:10 - r274645
(4 days 3 hours ago)
by gjb
Affects:  /svnadmin/conf/approvers
Update approvers file to share custody of releng/10.1
between so@ and re@ until re@ is comfortable releasing
releng/10.1 entirely post release.

Approved by:    re (implicit)
Sponsored by:   The FreeBSD Foundation
03:26:52 - r274644
(4 days 6 hours ago)
by ian
Affects:  /head/sys/arm/ti/ti_i2c.c
Fix the i2c bus speed divisors for TI OMAP4 and AM335x.

For OMAP4, the old values for 1MHz gave a bus frequency of about 890KHz.
The new numbers hit 1MHz exactly.

For AM335x the prescaler values are adjusted to give a 24MHz clock for
all 3 standard speeds, as the manual recommends (as near as we can tell,
there are errors and typos apparent in the document).  Also, 1MHz speed
is added, and has been tested successfully on a BeagleboneWhite board.

PR:             195009
02:41:35 - r274643
(4 days 7 hours ago)
by loos
Affects:  /head/sys/dev/gpio/gpiobus.c
/head/sys/dev/gpio/gpiobusvar.h
Fix gpiobus_child_location_str() to return a real string with the mapped
pins.

Make gpiobus_print_pins() static again.
02:11:07 - r274642
(4 days 7 hours ago)
by loos
Affects:  /head/sys/dev/gpio/ofw_gpiobus.c
Remove unnecessary code.

After r273566, the gpiobus version of bus_print_child() also works on FDT
systems.
01:54:31 - r274641
(4 days 8 hours ago)
by ian
Affects: 
(6 files)
/head/sys/arm/*
/head/sys/dev/*
Allow i2c bus speed to be configured via hints, FDT data, and sysctl.

The current support for controlling i2c bus speed is an inconsistant mess.
There are 4 symbolic speed values defined, UNKNOWN, SLOW, FAST, FASTEST.
It seems to be universally assumed that SLOW means the standard 100KHz
rate from the original spec.  Nothing ever calls iicbus_reset() with a
speed of FAST, although some drivers would treat it as the 400KHz standard
speed.  Mostly iicbus_reset() is called with the speed set to UNKNOWN or
FASTEST, and there's really no telling what any individual driver will do
with those.

The speed of an i2c bus is limited by the speed of the slowest device on
the bus.  This means that generally the bus speed needs to be configured
based on the board/system and the components within it.  Historically for
i2c we've configured with device hints.  Newer systems use FDT data and it
documents a clock-frequency property for i2c busses.  Hobbyists and
developers are likely to want on the fly changes.  These changes provide
all 3 methods, but do not require any existing drivers to change to use
the new facilities.

This adds an iicbus method, iicbus_get_frequency(dev, speed) that gets the
frequency for the requested symbolic speed.  If the symbolic speed is SLOW
or if there is no speed configured for the bus, the returned value is
100KHz, always.  Otherwise, if bus speed is configured by hints, fdt,
tunable, or sysctl, that speed is returned.  It also adds a helper
function, iicbus_init_frequency() that any bus driver subclassed from
iicbus can initialize the frequency from some other source of info.

Initial driver implementations are provided for Freescale and TI.

Differential Revision:        https://reviews.freebsd.org/D1174
PR:             195009
01:39:23 - r274640
(4 days 8 hours ago)
by imp
Affects:  /head/sys/modules/if_gre/Makefile
Use automated MK_INET*_SUPPORT code here as well.
01:39:21 - r274639
(4 days 8 hours ago)
by imp
Affects:  /head/sys/dev/pccbb/pccbb.c
Modernize comments about BIOSes being lame since in this detail they
aren't lame, the rules changed along the way. Catch up to 1999 or so
with the new rules.
01:38:39 - r274638
(4 days 8 hours ago)
by loos
Affects:  /head/sys/dev/gpio/gpiobus.c
/head/sys/dev/gpio/gpiobusvar.h
/head/sys/dev/gpio/ofw_gpiobus.c
Add basic interrupt management code to gpiobus and ofw_gpiobus.

This is the general support to allow the use of GPIO pins as interrupt
sources for direct gpiobus children.

The use of GPIO pins as generic interrupt sources (for an ethernet driver
for example) will only be possible when arm/intrng is complete.  Then, most
of this code will need to be rewritten, but it works for now, is better
than what we have and will allow further developments.

Tested on:      ar71xx (RSPRO), am335x (BBB), bcm2835 (Raspberry pi)
Differential Revision:  https://reviews.freebsd.org/D999
Reviewed by:    rpaulo
2014 - 11 - 17   (5 days ago)
22:22:16 - r274637
(4 days 11 hours ago)
by markj
Affects:  /head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_dof.c
/head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_provider.c
/head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_provider.h
DTrace imposes a 128-byte limit on the length of the function component of
a probe name. When dtrace -G builds up a DOF section for the specified
provider(s), the probe function names are truncated to fit in this limit.
The DOF is later used to build the symbol table for the generated object
file, so the table can end up with truncated references, causing link
errors.

Instead of potentially truncating symbol table entries, write the full
function name to the DOF string table and allow the kernel to enforce the
128-byte function name limit when a process attempts to load its DOF.

PR:             194757
Differential Revision:  https://reviews.freebsd.org/D1175
Reviewed by:    rpaulo
MFC after:      2 weeks
21:01:35 - r274636
(4 days 13 hours ago)
by delphij
Affects:  /head/sys/libkern/strncmp.c
Sync with userland variant.

MFC after:      2 weeks
20:25:21 - r274635
(4 days 13 hours ago)
by dchagin
Affects:  /head/sys/dev/pci/pci.c
Use the correct device as the power_for_sleep() method
always pass request up to parent bridge.

Reviewed by:    jhb
MFC after:      1 week
xMFC:           r274386,r274397
17:17:10 - r274634
(4 days 16 hours ago)
by marcel
Affects: 
(2 files)
/stable/10/usr.bin/mkimg/image.c
MFC r274410: Fix for behaviour of SEEK_DATA on ZFS.
16:30:51 - r274633
(4 days 17 hours ago)
by imp
Affects:  /head/sys/dev/pccbb/pccbb.c
Remove stray empty comment. The code is adequately explained in the
block comment above, so there's nothing to add here.
15:44:00 - r274632
(4 days 18 hours ago)
by brd
Affects:  /head/usr.sbin/pw/tests/pw_delete.sh
/head/usr.sbin/pw/tests/pw_etcdir.sh
Clean up some language

Reviewed by:    will
15:19:57 - r274631
(4 days 18 hours ago)
by feld
Affects:  /head/sbin/geom/core/geom.c
Fix geom's "usage" generation to not fabricate usage/help output for any
imaginary class we give it.

Differential Revision:  https://reviews.freebsd.org/D1150
Submitted by:   homerj
Approved by:    pjd
15:12:46 - r274630
(4 days 18 hours ago)
by feld
Affects:  /head/usr.sbin/freebsd-update/freebsd-update.sh
Add logic for detecting non-persistent filesystems being utilized by
workdir which would break the upgrade process upon reboot.

Currently we check for tmpfs and mdmfs.

PR:             195006
Differential Revision:  https://reviews.freebsd.org/D1163
Approved by:    cperciva
14:56:02 - r274629
(4 days 19 hours ago)
by jch
Affects:  /head/sys/netinet/tcp_var.h
Re-introduce padding fields removed with r264321 to keep
struct tcptw ABI unchanged.

Suggested by:   jhb
Approved by:    jhb (mentor)
MFC after:      1 day
X-MFC-With:     r264321
14:45:42 - r274628
(4 days 19 hours ago)
by avg
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
l2arc: restore correct rounding up of asize of compressed data

This rounding up was lost in a mismerge of illumos code.
See r268075 MFV r267565.
After that commit zio_compress_data() no longer performs any compressed
size adjustment, so it needs to be done externally.  On FreeBSD we round
up the size using vdev_ashift rather than SPA_MINBLOCKSIZE so that 4KB
devices are properly supported.

Additionally, zero out the buffer tail only if compression succeeds.
The compression is considered successful if the size of compressed
data after rounding up to account for the vdev ashift is less than the
original data size.  It does not make sense to have the data compressed
if all the savings are lost to rounding up.
With the new zio_compress_data() it could have been possible that the
rounded compressed size would be greater than the original size and thus
we could zero beyond the allocated buffer if the zeroing code was kept
at the original place.

Discussed with: delphij, gibbs
MFC after:      2 weeks
X-MFC with:     r274627
14:16:02 - r274627
(4 days 19 hours ago)
by avg
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c
Revert r269093 which introduced physical zio alignment transform

Size of physical ZIOs must never be implicitly adjusted, it's
a responsibility of a caller to make sure that such a ZIO has proper offset
and size.

Discussed with: delphij, gibbs
MFC after:      2 weeks
13:39:00 - r274626
(4 days 20 hours ago)
by ngie
Affects: 
(52 files)
/head/contrib/netbsd-tests/lib/libc/*
/head/contrib/netbsd-tests/lib/libpthread/*
Mechanically replace #if defined(__FreeBSD__) and #if defined(__NetBSD__) with
their #ifdef equivalents for everything changed in contrib/netbsd-tests. There
are some items from the vendor tree that use #if defined(__FreeBSD__) or
#if defined(__NetBSD__) which are being left alone

Requested by: bde, rpaulo
Sponsored by: EMC / Isilon Storage Division
13:30:18 - r274625
(4 days 20 hours ago)
by avg
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
MFC r272708: l2arc_write_buffers: reduce headroom value
13:29:58 - r274624
(4 days 20 hours ago)
by avg
Affects: 
(3 files)
/stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
MFC r272708: l2arc_write_buffers: reduce headroom value
13:26:50 - r274623
(4 days 20 hours ago)
by avg
Affects: 
(2 files)
/stable/10/sys/cddl/compat/opensolaris/sys/assfail.h
MFC r272701: make userland __assfail from opensolaris compat honor 'aok'
variable
13:26:28 - r274622
(4 days 20 hours ago)
by avg
Affects: 
(2 files)
/stable/9/sys/cddl/compat/opensolaris/sys/assfail.h
MFC r272701: make userland __assfail from opensolaris compat honor 'aok'
variable
12:36:01 - r274621
(4 days 21 hours ago)
by trasz
Affects:  /head/usr.sbin/autofs/auto_master.5
The "intr" option is NFS-specific; fix examples in auto_master(5).

MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
11:35:30 - r274620
(4 days 22 hours ago)
by smh
Affects:  /head/tools/regression/zfs/zpool/add/files.t
Revert r273630 as the panic was fixed by r274619

The panic was caused by TRIM requests run against file based vdevs as write
requests.

PR:             191573
Sponsored by:   Multiplay
11:32:10 - r274619
(4 days 22 hours ago)
by smh
Affects: 
(6 files)
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/*
Disable TRIM on file backed ZFS vdevs and fix TRIM on init

After r265152 TRIM requests are ZIO_TYPE_FREE instead of ZIO_TYPE_IOCTL
this meant file backed vdevs to attempted to process the ZIO as a write
causing a panic.

We now disable TRIM on file backed vdevs and ASSERT the ZIO types supported
by each vdev type to ensure we explicity support the ZIO type being
processed.

Also ensure that TRIM on init is not procesed for devices which declare they
didn't support TRIM via vdev_notrim.

PR:             195061, 194976, 191573
Sponsored by:   Multiplay
09:19:09 - r274618
(5 days ago)
by ngie
Affects: 
(6 files)
/head/etc/mtree/BSD.tests.dist
/head/lib/msun/*
Add reachover Makefiles for contrib/netbsd-tests/lib/librt

A variant of this code has been tested on amd64/i386 for some time by
EMC/Isilon on 10-STABLE/11-CURRENT. It builds on other architectures, but the
code will remain off until it's proven it works on virtual hardware or real
hardware on other architectures

Sponsored by: EMC / Isilon Storage Division
07:38:23 - r274617
(5 days 2 hours ago)
by np
Affects: 
(2 files)
/stable/8/tools/tools/cxgbetool/cxgbetool.c
MFC r273360:

One of MAP_ANON, MAP_PRIVATE, MAP_SHARED, or MAP_STACK must be specified.
07:37:56 - r274616
(5 days 2 hours ago)
by np
Affects: 
(2 files)
/stable/9/tools/tools/cxgbetool/cxgbetool.c
MFC r273360:

One of MAP_ANON, MAP_PRIVATE, MAP_SHARED, or MAP_STACK must be specified.
07:37:41 - r274615
(5 days 2 hours ago)
by np
Affects: 
(2 files)
/stable/10/tools/tools/cxgbetool/cxgbetool.c
MFC r273360:

One of MAP_ANON, MAP_PRIVATE, MAP_SHARED, or MAP_STACK must be specified.
07:20:53 - r274614
(5 days 2 hours ago)
by np
Affects: 
(8 files)
/stable/8/sys/dev/cxgbe/firmware/*
MFC r274351:

cxgbe(4): adjust PMRX and PMTX parameters.
07:20:33 - r274613
(5 days 2 hours ago)
by np
Affects: 
(7 files)
/stable/9/sys/dev/cxgbe/firmware/*
MFC r274351:

cxgbe(4): adjust PMRX and PMTX parameters.
07:20:03 - r274612
(5 days 2 hours ago)
by np
Affects: 
(6 files)
/stable/10/sys/dev/cxgbe/firmware/*
MFC r274351:

cxgbe(4): adjust PMRX and PMTX parameters.
01:05:29 - r274611
(5 days 8 hours ago)
by melifaro
Affects: 
(6 files)
/head/sbin/route/route.c
/head/sys/*
Finish r274175: do control plane MTU tracking.

Update route MTU in case of ifnet MTU change.
Add new RTF_FIXEDMTU to track explicitly specified MTU.

Old behavior:
ifconfig em0 mtu 1500->9000 -> all routes traversing em0 do not change MTU.
User has to manually update all routes.
ifconfig em0 mtu 9000->1500 -> all routes traversing em0 do not change MTU.
However, if ip[6]_output finds route with rt_mtu > interface mtu, rt_mtu
gets updated.

New behavior:
ifconfig em0 mtu 1500->9000 -> all interface routes in all fibs gets updated
with new MTU unless RTF_FIXEDMTU flag set on them.
ifconfig em0 mtu 9000->1500 -> all routes in all fibs gets updated with new
MTU unless RTF_FIXEDMTU flag set on them AND rt_mtu is less than ifp mtu.

route add ... -mtu XXX automatically sets RTF_FIXEDMTU flag.
route change .. -mtu 0 automatically removes RTF_FIXEDMTU flag.

PR:             194238
MFC after:      1 month
CR:             D1125
01:01:45 - r274610
(5 days 9 hours ago)
by kib
Affects: 
(3 files)
/stable/10/sys/kern/kern_clock.c
/stable/10/sys/kern/subr_prof.c
MFC r274343:
When sleeping waiting for the profiling stop, always set P_STOPPROF
before dropping process lock.  Clear P_STOPPROF when doing wakeup.
00:59:45 - r274609
(5 days 9 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/kern/sys_pipe.c
MFC r274023:
When other end of the pipe closed during the write, but some bytes
were written, return short write instead of EPIPE.
00:57:33 - r274608
(5 days 9 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/conf/files.amd64
MFC r274040 and r274084.  The result is removal of agp_intel.c from
the static amd64 kernel when agp is configured.
2014 - 11 - 16   (6 days ago)
23:31:23 - r274607
(5 days 10 hours ago)
by sbruno
Affects:  /head/Makefile.inc1
Add mv, echo and hostname to the native-xtools target.  Missed these
when profiling.

MFC after:      2 weeks
23:02:32 - r274606
(5 days 11 hours ago)
by kib
Affects: 
(5 files)
/stable/10/share/man/man9/lock.9
/stable/10/sys/kern/*
/stable/10/sys/sys/lockmgr.h
MFC r273966:
Fix two issues with lockmgr(9) LK_CAN_SHARE() test, related
to the exclusive locker starvation.

MFC r273986:
Fix the build with ADAPTIVE_LOCKMGRS kernel option.
21:39:56 - r274605
(5 days 12 hours ago)
by ian
Affects:  /head/sys/arm/arm/busdma_machdep-v6.c
No functional changes.  Remove a couple outdated or inane comments and
add new comment blocks describing why the cache maintenance sequences are
done in the order they are for each case.
21:22:42 - r274604
(5 days 12 hours ago)
by ian
Affects:  /head/sys/arm/arm/busdma_machdep-v6.c
Correct the sequence of busdma sync ops involved with PRE/POSTREAD syncs.

We used to invalidate the cache for PREREAD alone, or writeback+invalidate
for PREREAD with PREWRITE, then treat POSTREAD as a no-op.  Prefetching on
modern systems can lead to parts of a DMA buffer getting pulled into the
caches while DMA is in progress (due to access of "nearby" data), so it's
mandatory to invalidate during the POSTREAD sync even if a PREREAD
invalidate also happened.

In the PREREAD case the invalidate is done to ensure that there are no
dirty cache lines that might get automatically evicted during the DMA,
corrupting the buffer.  In a PREREAD+PREWRITE case the writeback which is
required for PREWRITE handling is suffficient to avoid corruption caused
by eviction and no invalidate need be done until POSTREAD time.

Submitted by:   Michal Meloun <meloun@miracle.cz>
20:59:27 - r274603
(5 days 13 hours ago)
by ian
Affects:  /head/sys/arm/arm/busdma_machdep-v6.c
Do the cache invalidate sequence from the outermost to innermost, required
for correct operation.

Submitted by:   Michal Meloun <meloun@miracle.cz>
20:55:51 - r274602
(5 days 13 hours ago)
by ian
Affects:  /head/sys/arm/arm/busdma_machdep-v6.c
Do not do a cache invalidate on a PREREAD sync that is also a PREWRITE sync.
The PREWRITE handling does a writeback of any dirty cachelines, so there's
no danger of an eviction during the DMA corrupting the buffer.  There will
be an invalidate done during POSTREAD, so doing it before the read too is
wasted time.
20:42:30 - r274601
(5 days 13 hours ago)
by ngie
Affects:  /head/contrib/netbsd-tests/lib/libm/t_cbrt.c
- Skip over the testcases that call cbrtl on platforms where LDBL_PREC == 53
(arm, mips, powerpc). This fixes the build on these platforms, based on some
ad hoc tinderbox runs I did a while ago
- Skip cast the arguments to powl as long double so powl properly interprets
those arugments at compile-time when picking the type

Sponsored by: EMC / Isilon Storage Division
20:39:11 - r274600
(5 days 13 hours ago)
by ngie
Affects:  /head/contrib/netbsd-tests/lib/libm/t_exp.c
- Expect exp2_powers to fail on FreeBSD/i386
- Expect exp2_values to fail on FreeBSD due to the small epsilon

Sponsored by: EMC / Isilon Storage Division
20:37:46 - r274599
(5 days 13 hours ago)
by ngie
Affects:  /head/contrib/netbsd-tests/lib/libm/t_pow.c
Alias isinff to isinf on FreeBSD

isinf on FreeBSD automatically picks the appropriate type per math.h

Sponsored by: EMC / Isilon Storage Division
20:35:32 - r274598
(5 days 13 hours ago)
by ngie
Affects:  /head/contrib/netbsd-tests/lib/libm/t_scalbn.c
Reset errno to 0 before running scalbn to be sure that the tested errno is
valid

Sponsored by: EMC / Isilon Storage Division
20:34:46 - r274597
(5 days 13 hours ago)
by ngie
Affects:  /head/contrib/netbsd-tests/lib/libm/t_precision.c
Skip the long-double epsilon checks on FreeBSD/i386

Sponsored by: EMC / Isilon Storage Division
20:34:14 - r274596
(5 days 13 hours ago)
by ian
Affects:  /head/sys/arm/arm/busdma_machdep-v6.c
Indent a couple lines properly and expand a comment.  No functional changes.
20:29:57 - r274595
(5 days 13 hours ago)
by ngie
Affects: 
(4 files)
/head/lib/libc/tests/gen/Makefile
/head/lib/libc/tests/gen/fpclassify2_test.c
/head/tools/regression/lib/libc/gen/*
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
20:12:49 - r274594
(5 days 13 hours ago)
by melifaro
Affects: 
(6 files)
/projects/routing/sys/net/*
/projects/routing/sys/netinet/*
/projects/routing/sys/netinet6/*
Rework LLE code locking:
* struct llentry is now basically split into 2 pieces:
  all fields within 64 bytes (amd64) are now protected by both
  ifdata lock AND lle lock, e.g. you require both locks to be held
  exclusively for modification. All data necessary for fast path
  operations is kept here. Some fields were added:
  - r_l3addr - makes lookup key liev within first 64 bytes.
  - r_flags - flags, containing pre-compiled decision whether given
    lle contains usable data or not. Current the only flag is RLLE_VALID.
  - r_len - prepend data len, currently unused
  - r_kick - used to provide feedback to control plane (see below).
  All other fields are protected by lle lock.
* Add simple state machine for ARP to handle "about to expire" case:
  Current model (for the fast path) is the following:
  - rlock afdata
  - find / rlock rte
  - runlock afdata
  - see if "expire time" is approaching
    (time_uptime + la->la_preempt > la->la_expire)
  - if true, call arprequest() and decrease la_preempt
  - store MAC and runlock rte
  New model (data plane):
  - rlock afdata
  - find rte
  - check if it can be used using r_* fields only
  - if true, store MAC
  - if r_kick field != 0 set it to 0.
  - runlock afdata
  New mode (control plane):
  - schedule arptimer to be called in (V_arpt_keep - V_arp_maxtries)
    seconds instead of V_arpt_keep.
  - on first timer invocation change state from ARP_LLINFO_REACHABLE
    to ARP_LLINFO_VERIFY, sets r_kick to 1 and shedules next call in
    V_arpt_rexmit (default to 1 sec).
  - on subsequent timer invocations in ARP_LLINFO_VERIFY state, checks
    for r_kick value: reschedule if not changed, and send arprequest()
    if set to zero (e.g. entry was used).
* Convert IPv4 path to use new single-lock approach. IPv6 bits to follow.
* Slow down in_arpinput(): now valid reply will (in most cases) require
  acquiring afdata WLOCK twice. This is requirement for storing changed
  lle data. This change will be slightly optimized in future.
* Provide explicit hash link/unlink functions for both ipv4/ipv6 code.
  This will probably be moved to generic lle code once we have per-AF
  hashing callback inside lltable.
* Perform lle unlink on deletion immediately instead of delaying it to
  the timer routine.
* Make r244183 more explicit: use new LLE_CALLOUTREF flag to indicate the
  presence of lle reference used for safe callout calls.
20:10:37 - r274593
(5 days 13 hours ago)
by sbruno
Affects:  /head/Makefile.inc1
Flush out many more static binaries that can be used in a jail for building
pkgs via poudriere.  This removes a significant amount of emulation speeding
up run times.

Phabric:        D1172
Reviewed by:    imp
MFC after:      2 weeks
19:57:47 - r274592
(5 days 14 hours ago)
by ngie
Affects: 
(4 files)
/head/lib/libc/tests/stdio/Makefile
/head/lib/libc/tests/stdio/fmemopen2_test.c
/head/tools/regression/lib/libc/stdio/*
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
19:47:29 - r274591
(5 days 14 hours ago)
by ngie
Affects:  /head/MAINTAINERS
Add freebsd-testing and myself to MAINTAINERS for contrib/netbsd-tests and
contrib/pjdfstest
18:44:46 - r274590
(5 days 15 hours ago)
by melifaro
Affects:  /projects/routing/sys/net/route.c
/projects/routing/sys/net/route_internal.h
Finish r274335:
* put RT_LOCK_DESTROY() back
* remove unused RT_UNLOCK_COND macro
18:15:23 - r274589
(5 days 15 hours ago)
by melifaro
Affects:  /head/sys/net/route.c
Revert r274585: rte lock is properly destroyed in uma dtor callback.

Pointed by:     glebius
18:08:00 - r274588
(5 days 15 hours ago)
by melifaro
Affects:  /head/sys/dev/ixgbe/ixgbe.c
Fix r273112: do not turn DROP_EN by default.

Due to adapter->hw.fc.requested_mode is filled with default value
after ixgbe_initialize_receive_units(), this leads to enabling
DROP_EN in most cases.

Tested by:      ae
MFC after:      1 week
17:53:48 - r274587
(5 days 16 hours ago)
by dumbbell
Affects:  /head/sys/dev/drm2/radeon/radeon_connectors.c
drm/radeon: Lower priority of a message related to invalid EDID

Like in r259717, the prority goes from "error" to "debug" to avoid
spamming logs when the connectors are polled.

PR:             194770
Submitted by:   Larry Rosenman <ler@lerctr.org>
MFC after:      1 week
15:31:49 - r274586
(5 days 18 hours ago)
by melifaro
Affects:  /projects/routing/sys/net/route.h
/projects/routing/sys/net/route_internal.h
Remove unused rt_endzero define. Remove rt_mtx from public rtentry version.
14:56:31 - r274585
(5 days 19 hours ago)
by melifaro
Affects:  /head/sys/net/route.c
Make witness happy: destroy rte lock before free.

MFC after:      2 weeks
13:57:53 - r274584
(5 days 20 hours ago)
by dchagin
Affects:  /user/dchagin/lemul/sys/compat/linux/linux_misc.c
/user/dchagin/lemul/sys/sys/syscallsubr.h
Fix build.
09:44:30 - r274583
(6 days ago)
by delphij
Affects:  /head/usr.sbin/watchdogd/watchdogd.8
/head/usr.sbin/watchdogd/watchdogd.c
Default to use 10 seconds as nap interval instead of 1.

Previously, we have a nap interval of 1 second while we have a timeout of
128 seconds by default, which could be an overkill, and for some hardware
the patting action may be expensive.

Note that the choice of nap interval is still arbitrary.  We preferred
a safe value where even when the system is very heavily loaded, the
watchdog should not shoot the system down if it's not really hung.
According to the manual page of Linux's watchdog daemon, the nap interval
time of theirs is 10 seconds, which seems to be a reasonable value --
according to Intel documentation AP-725 (Document Number: 292273-001),
ICH5's maximum timeout is about 37.5 seconds, which the ichwd(4) driver
would set when we requested 128 seconds (although it should probably
feed back this as an error and do not set the timeout).  Since that's
the shortest maximum value, 10 seconds seems to be a right choice for
us too.

Discussed with: alfred
MFC after:      1 month
07:58:06 - r274582
(6 days 2 hours ago)
by ngie
Affects:  /head/tools/regression/lib/libc/gen/Makefile
Remove test-arc4random from this Makefile so others can continue to use
this as-is for the time being
07:55:28 - r274581
(6 days 2 hours ago)
by ngie
Affects:  /head/lib/libc/tests/gen/Makefile
/head/lib/libc/tests/gen/arc4random_test.c
/head/tools/regression/lib/libc/gen/test-arc4random.c
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
07:03:19 - r274580
(6 days 3 hours ago)
by ngie
Affects: 
(6 files)
/head/etc/mtree/BSD.tests.dist
/head/lib/librt/*
Add reachover Makefiles for contrib/netbsd-tests/lib/librt

A variant of this code has been tested on amd64/i386 for some time by
EMC/Isilon on 10-STABLE/11-CURRENT. It builds on other architectures, but the
code will remain off until it's proven it works on virtual hardware or real
hardware on other architectures

Sponsored by: EMC / Isilon Storage Division
06:59:58 - r274579
(6 days 3 hours ago)
by ngie
Affects:  /head/contrib/netbsd-tests/lib/librt/t_sem.c
Call sem_unlink on semaphores before attempting to create them

Due to the lack of uniqueness in the semaphore name, and the fact that the
tests don't have cleanup routines, an interrupted test can leave a semaphore
"laying around", causing all subsequent attempts to run the test to fail

I will file a NetBSD PR for this issue soon
06:35:20 - r274578
(6 days 3 hours ago)
by ngie
Affects: 
(10 files)
/head/etc/mtree/BSD.tests.dist
/head/lib/libthr/*
Add reachover Makefiles for contrib/netbsd-tests/lib/libpthread as
lib/libthr/tests

A variant of this code has been tested on amd64/i386 for some time by
EMC/Isilon on 10-STABLE/11-CURRENT. It builds on other architectures, but the
code will remain off until it's proven it works on virtual hardware or real
hardware on other architectures

Original work by: pho
Sponsored by: EMC / Isilon Storage Division
05:13:39 - r274577
(6 days 4 hours ago)
by ngie
Affects:  /head/contrib/netbsd-tests/lib/libpthread/t_condwait.c
/head/contrib/netbsd-tests/lib/libpthread/t_once.c
/head/contrib/netbsd-tests/lib/libpthread/t_sem.c
Add missing sys/time.h #include for timespecsub macro in
lib/libnetbsd/sys/time.h
05:13:10 - r274576
(6 days 4 hours ago)
by ngie
Affects:  /head/contrib/netbsd-tests/lib/libpthread/h_atexit.c
Port helper program to FreeBSD, similar to ../../lib/libc/stdlib/h_atexit.c

Submitted by: pho
In collaboration with: kib
05:11:07 - r274575
(6 days 4 hours ago)
by ngie
Affects:  /head/contrib/netbsd-tests/lib/libpthread/h_cancel.c
#ifdef out a printf on !NetBSD that causes the testcase to fail when comparing
the output from the helper program

Submitted by: pho
05:09:23 - r274574
(6 days 4 hours ago)
by ngie
Affects:  /head/contrib/netbsd-tests/lib/libpthread/t_join.c
Add pthread_np.h #include and initialize the pthread attribute on FreeBSD

Submitted by: pho
05:08:19 - r274573
(6 days 4 hours ago)
by ngie
Affects:  /head/contrib/netbsd-tests/lib/libpthread/t_detach.c
Expect :pthread_detach to fail with EINVAL instead of ESRCH on FreeBSD

PR: 191906
In collaboration with: pho
05:06:35 - r274572
(6 days 4 hours ago)
by ngie
Affects:  /head/contrib/netbsd-tests/lib/libpthread/t_mutex.c
Only expect timeouts on powerpc with NetBSD

Submitted by: pho
05:05:18 - r274571
(6 days 4 hours ago)
by ngie
Affects:  /head/contrib/netbsd-tests/lib/libpthread/t_fork.c
Use _exit instead of exit so the file descriptors aren't flushed twice in the
child processes

Submitted by: pho
04:13:44 - r274570
(6 days 5 hours ago)
by edwin
Affects: 
(7 files)
/stable/6/share/zoneinfo/*
MFC of 274559,tzdata6:

Release 2014j - 2014-11-10 17:37:11 -0800

  Changes affecting current and future time stamps

    Turks & Caicos' switch from US eastern time to UTC-4 year-round
    did not occur on 2014-11-02 at 02:00.  It's currently scheduled
    for 2015-11-01 at 02:00.  (Thanks to Chris Walton.)

  Changes affecting past time stamps

    Many pre-1989 time stamps have been corrected for Asia/Seoul and
    Asia/Pyongyang, based on sources for the Korean-language Wikipedia
    entry for time in Korea.  (Thanks to Sanghyuk Jung.)  Also, no
    longer guess that Pyongyang mimicked Seoul time after World War II,
    as this is politically implausible.

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: Africa/Addis_Ababa, Africa/Asmara,
    Africa/Dar_es_Salaam, Africa/Djibouti, Africa/Kampala,
    Africa/Mogadishu, Indian/Antananarivo, Indian/Comoro, and
    Indian/Mayotte.

  Changes affecting commentary

    The commentary is less enthusiastic about Shanks as a source,
    and is more careful to distinguish UT from UTC.
04:13:42 - r274569
(6 days 5 hours ago)
by markj
Affects:  /head/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c
Only compare visitation counters if they've both been set for the current
type graph walk.

Reviewed by:    Robert Mustacchi <rm@joyent.com>
MFC after:      2 weeks
Sponsored by:   EMC / Isilon Storage Division
04:13:09 - r274568
(6 days 5 hours ago)
by edwin
Affects: 
(7 files)
/stable/7/share/zoneinfo/*
MFC of 274559,tzdata7:

Release 2014j - 2014-11-10 17:37:11 -0800

  Changes affecting current and future time stamps

    Turks & Caicos' switch from US eastern time to UTC-4 year-round
    did not occur on 2014-11-02 at 02:00.  It's currently scheduled
    for 2015-11-01 at 02:00.  (Thanks to Chris Walton.)

  Changes affecting past time stamps

    Many pre-1989 time stamps have been corrected for Asia/Seoul and
    Asia/Pyongyang, based on sources for the Korean-language Wikipedia
    entry for time in Korea.  (Thanks to Sanghyuk Jung.)  Also, no
    longer guess that Pyongyang mimicked Seoul time after World War II,
    as this is politically implausible.

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: Africa/Addis_Ababa, Africa/Asmara,
    Africa/Dar_es_Salaam, Africa/Djibouti, Africa/Kampala,
    Africa/Mogadishu, Indian/Antananarivo, Indian/Comoro, and
    Indian/Mayotte.

  Changes affecting commentary

    The commentary is less enthusiastic about Shanks as a source,
    and is more careful to distinguish UT from UTC.
04:12:25 - r274567
(6 days 5 hours ago)
by edwin
Affects: 
(7 files)
/stable/8/share/zoneinfo/*
MFC of 274559,tzdata8:

Release 2014j - 2014-11-10 17:37:11 -0800

  Changes affecting current and future time stamps

    Turks & Caicos' switch from US eastern time to UTC-4 year-round
    did not occur on 2014-11-02 at 02:00.  It's currently scheduled
    for 2015-11-01 at 02:00.  (Thanks to Chris Walton.)

  Changes affecting past time stamps

    Many pre-1989 time stamps have been corrected for Asia/Seoul and
    Asia/Pyongyang, based on sources for the Korean-language Wikipedia
    entry for time in Korea.  (Thanks to Sanghyuk Jung.)  Also, no
    longer guess that Pyongyang mimicked Seoul time after World War II,
    as this is politically implausible.

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: Africa/Addis_Ababa, Africa/Asmara,
    Africa/Dar_es_Salaam, Africa/Djibouti, Africa/Kampala,
    Africa/Mogadishu, Indian/Antananarivo, Indian/Comoro, and
    Indian/Mayotte.

  Changes affecting commentary

    The commentary is less enthusiastic about Shanks as a source,
    and is more careful to distinguish UT from UTC.
04:11:37 - r274566
(6 days 5 hours ago)
by edwin
Affects: 
(7 files)
/stable/9/contrib/tzdata/*
MFC of 274559,tzdata9:

Release 2014j - 2014-11-10 17:37:11 -0800

  Changes affecting current and future time stamps

    Turks & Caicos' switch from US eastern time to UTC-4 year-round
    did not occur on 2014-11-02 at 02:00.  It's currently scheduled
    for 2015-11-01 at 02:00.  (Thanks to Chris Walton.)

  Changes affecting past time stamps

    Many pre-1989 time stamps have been corrected for Asia/Seoul and
    Asia/Pyongyang, based on sources for the Korean-language Wikipedia
    entry for time in Korea.  (Thanks to Sanghyuk Jung.)  Also, no
    longer guess that Pyongyang mimicked Seoul time after World War II,
    as this is politically implausible.

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: Africa/Addis_Ababa, Africa/Asmara,
    Africa/Dar_es_Salaam, Africa/Djibouti, Africa/Kampala,
    Africa/Mogadishu, Indian/Antananarivo, Indian/Comoro, and
    Indian/Mayotte.

  Changes affecting commentary

    The commentary is less enthusiastic about Shanks as a source,
    and is more careful to distinguish UT from UTC.
04:10:23 - r274565
(6 days 5 hours ago)
by markj
Affects:  /head/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c
Remove an incorrect optimization. The type IDs of each member of a struct or
union must be checked when determine whether two types are equivalent. This
bug could cause ctfmerge(1) to incorrectly merge distinct types.

Reviewed by:    Robert Mustacchi <rm@joyent.com>
MFC after:      2 weeks
Sponsored by:   EMC / Isilon Storage Division
04:07:53 - r274564
(6 days 5 hours ago)
by markj
Affects:  /head/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c
Fix a couple of bugs around the handling of structs and unions of size zero.
These would cause ctfconvert(1) to return an error when attempting to
resolve valid C types.

Reviewed by:    Robert Mustacchi <rm@joyent.com>
MFC after:      2 weeks
Sponsored by:   EMC / Isilon Storage Division
04:02:50 - r274563
(6 days 6 hours ago)
by edwin
Affects: 
(7 files)
/stable/10/contrib/tzdata/*
MFC of 274559,tzdata2014j

Release 2014j - 2014-11-10 17:37:11 -0800

  Changes affecting current and future time stamps

    Turks & Caicos' switch from US eastern time to UTC-4 year-round
    did not occur on 2014-11-02 at 02:00.  It's currently scheduled
    for 2015-11-01 at 02:00.  (Thanks to Chris Walton.)

  Changes affecting past time stamps

    Many pre-1989 time stamps have been corrected for Asia/Seoul and
    Asia/Pyongyang, based on sources for the Korean-language Wikipedia
    entry for time in Korea.  (Thanks to Sanghyuk Jung.)  Also, no
    longer guess that Pyongyang mimicked Seoul time after World War II,
    as this is politically implausible.

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: Africa/Addis_Ababa, Africa/Asmara,
    Africa/Dar_es_Salaam, Africa/Djibouti, Africa/Kampala,
    Africa/Mogadishu, Indian/Antananarivo, Indian/Comoro, and
    Indian/Mayotte.

  Changes affecting commentary

    The commentary is less enthusiastic about Shanks as a source,
    and is more careful to distinguish UT from UTC.
01:47:43 - r274562
(6 days 8 hours ago)
by mav
Affects: 
(3 files)
/stable/10/sys/cam/ctl/ctl.c
/stable/10/sys/cam/ctl/ctl_cmd_table.c
MFC r274333: Handle PREEMPT AND ABORT service action equal to PREEMPT.

With command serialization used in CTL, there are no other commands to abort
when PREEMPT AND ABORT gets to run, so it is practically equal to PREEMPT.
01:29:18 - r274561
(6 days 8 hours ago)
by imp
Affects: 
(11 files)
/stable/10/tools/tools/nanobsd/dhcpd/*
/stable/10/tools/tools/nanobsd/nanobsd.sh
/stable/10/tools/tools/nanobsd/rescue/*
MFC from the last few months:
Note: didn't merge r274331 removing gif/faith on purpose.

r268246 | mr | use mkimg and build into separate directories
r269355 | imp | Fix typo in example script
r269362 | imp | use rm -x on 10 and newer
r269363 | imp | NANO_OBJ shouldn't end with '/'
r269423 | imp | -K to suppress installkernel
r269424 | imp | sort usage
r269425 | imp | sort switch
r269983 | imp | only install bootloader if it exists
r269984 | imp | create_diskimage since it never was $ARCH dependent
r270162 | imp | Add support for -X which instales cross native tools
01:18:41 - r274560
(6 days 8 hours ago)
by jmg
Affects:  /head/sys/kern/kern_event.c
/head/sys/sys/event.h
prevent doing filter ops locking for staticly compiled filter ops...
This significantly reduces lock contention when adding/removing knotes
on busy multi-kq system...  Next step is to cache these references per
kq.. i.e. kq refs it once and keeps a local ref count so that the same
refs don't get accessed by many cpus...

only allocate a knote when we might use it...

Add a new flag, _FORCEONESHOT..  This allows a thread to force the
delivery of another event in a safe manner, say waking up an idle http
connection to force it to be reaped...

If we are _DISABLE'ing a knote, don't bother to call f_event on it, it's
disabled, so won't be delivered anyways..

Tested by:      adrian
01:00:39 - r274559
(6 days 9 hours ago)
by edwin
Affects: 
(7 files)
/head/contrib/tzdata/*
MFV of 274557,tzdata{2014j}

Release 2014j - 2014-11-10 17:37:11 -0800

  Changes affecting current and future time stamps

    Turks & Caicos' switch from US eastern time to UTC-4 year-round
    did not occur on 2014-11-02 at 02:00.  It's currently scheduled
    for 2015-11-01 at 02:00.  (Thanks to Chris Walton.)

  Changes affecting past time stamps

    Many pre-1989 time stamps have been corrected for Asia/Seoul and
    Asia/Pyongyang, based on sources for the Korean-language Wikipedia
    entry for time in Korea.  (Thanks to Sanghyuk Jung.)  Also, no
    longer guess that Pyongyang mimicked Seoul time after World War II,
    as this is politically implausible.

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: Africa/Addis_Ababa, Africa/Asmara,
    Africa/Dar_es_Salaam, Africa/Djibouti, Africa/Kampala,
    Africa/Mogadishu, Indian/Antananarivo, Indian/Comoro, and
    Indian/Mayotte.

  Changes affecting commentary

    The commentary is less enthusiastic about Shanks as a source,
    and is more careful to distinguish UT from UTC.
00:50:02 - r274558
(6 days 9 hours ago)
by edwin
Affects:  /vendor/tzdata/tzdata2014j
Tag of tzdata 2014j
00:43:41 - r274557
(6 days 9 hours ago)
by edwin
Affects: 
(6 files)
/vendor/tzdata/dist/*
Vendor import of tzdata2014j:

Release 2014j - 2014-11-10 17:37:11 -0800

  Changes affecting current and future time stamps

    Turks & Caicos' switch from US eastern time to UTC-4 year-round
    did not occur on 2014-11-02 at 02:00.  It's currently scheduled
    for 2015-11-01 at 02:00.  (Thanks to Chris Walton.)

  Changes affecting past time stamps

    Many pre-1989 time stamps have been corrected for Asia/Seoul and
    Asia/Pyongyang, based on sources for the Korean-language Wikipedia
    entry for time in Korea.  (Thanks to Sanghyuk Jung.)  Also, no
    longer guess that Pyongyang mimicked Seoul time after World War II,
    as this is politically implausible.

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: Africa/Addis_Ababa, Africa/Asmara,
    Africa/Dar_es_Salaam, Africa/Djibouti, Africa/Kampala,
    Africa/Mogadishu, Indian/Antananarivo, Indian/Comoro, and
    Indian/Mayotte.

  Changes affecting commentary

    The commentary is less enthusiastic about Shanks as a source,
    and is more careful to distinguish UT from UTC.

Obtained from: ftp://ftp.iana.org/tz/releases/

 


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

Page generated in 34 ms, 289 revisions printed. Current time is 2014-11-22 10:05:10. All times are in UTC/GMT.