CVS commit: src/sys/net

2017-11-14 Thread Kengo NAKAHARA
Module Name:src
Committed By:   knakahara
Date:   Wed Nov 15 07:52:58 UTC 2017

Modified Files:
src/sys/net: if_pppoe.c if_spppsubr.c

Log Message:
Mark callouts of pppoe(4) CALLOUT_MPSAFE. Suggested by ozaki-r@n.o.


To generate a diff of this commit:
cvs rdiff -u -r1.129 -r1.130 src/sys/net/if_pppoe.c
cvs rdiff -u -r1.171 -r1.172 src/sys/net/if_spppsubr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/usr.bin

2017-11-14 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Nov 15 07:47:40 UTC 2017

Modified Files:
src/external/gpl3/gcc/usr.bin/common: Makefile
src/external/gpl3/gcc/usr.bin/frontend: Makefile

Log Message:
pull across from gcc.old:
>https://bugzilla.eng.vmware.com/show_bug.cgi?id=1703878#c118


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/usr.bin/common/Makefile
cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gcc/usr.bin/frontend/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc.old/usr.bin

2017-11-14 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Nov 15 07:47:10 UTC 2017

Modified Files:
src/external/gpl3/gcc.old/usr.bin/common: Makefile
src/external/gpl3/gcc.old/usr.bin/frontend: Makefile

Log Message:
ensure version.c gets rebuilt properly.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc.old/usr.bin/common/Makefile
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gcc.old/usr.bin/frontend/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/net

2017-11-14 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Nov 15 06:17:41 UTC 2017

Modified Files:
src/sys/net: if_bridge.c

Log Message:
Mark callouts of bridge CALLOUT_MPSAFE


To generate a diff of this commit:
cvs rdiff -u -r1.138 -r1.139 src/sys/net/if_bridge.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/etc

2017-11-14 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Wed Nov 15 04:31:48 UTC 2017

Modified Files:
src/etc/etc.macppc: MAKEDEV.conf
src/etc/etc.sparc64: MAKEDEV.conf

Log Message:
create more /dev/pci* nodes, for PCIe systems


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/etc/etc.macppc/MAKEDEV.conf
cvs rdiff -u -r1.17 -r1.18 src/etc/etc.sparc64/MAKEDEV.conf

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev

2017-11-14 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Wed Nov 15 04:28:45 UTC 2017

Modified Files:
src/sys/dev: audio.c audiovar.h

Log Message:
For the virtual stream it is required to insert silence.  As these streams
are not harware streams audio_pint_silence is ineffective.

As audio_mix() was the only consumer of audio_pint_silence it has been
removed along with sc_sil_count - which was only used by this function.


To generate a diff of this commit:
cvs rdiff -u -r1.437 -r1.438 src/sys/dev/audio.c
cvs rdiff -u -r1.67 -r1.68 src/sys/dev/audiovar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/net

2017-11-14 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Nov 15 04:08:02 UTC 2017

Modified Files:
src/sys/net: if_loop.c

Log Message:
Don't take KERNEL_LOCK in looutput if NET_MPSAFE

We can perhaps get rid of KERNEL_LOCK from looutput, but for now
keep it for safe.


To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/sys/net/if_loop.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev

2017-11-14 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Wed Nov 15 02:13:33 UTC 2017

Modified Files:
src/sys/dev: audio.c

Log Message:
The harware vc is rounded to a power of two then round_blocksize is called.

This improves playback and makes it possibile to use mmapped audio on usb.


To generate a diff of this commit:
cvs rdiff -u -r1.436 -r1.437 src/sys/dev/audio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev

2017-11-14 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Wed Nov 15 02:02:55 UTC 2017

Modified Files:
src/sys/dev: audio.c

Log Message:
audio_pint improvements for when audio mixing is disabled.

When audio mixing is disabled there is only the hardware vc the mix ring
is not used.


To generate a diff of this commit:
cvs rdiff -u -r1.435 -r1.436 src/sys/dev/audio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev

2017-11-14 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Wed Nov 15 01:58:48 UTC 2017

Modified Files:
src/sys/dev: audio.c

Log Message:
Improved audiostartp for when audio mixing is disabled.


To generate a diff of this commit:
cvs rdiff -u -r1.434 -r1.435 src/sys/dev/audio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev

2017-11-14 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Wed Nov 15 01:55:46 UTC 2017

Modified Files:
src/sys/dev: audio.c

Log Message:
Improved draining function for when the mixer is and is not enabled.

One block of silence is also played in audio drivers using start_output
when draining the hardware, this helps playback of short (less than
blocksize) samples.


To generate a diff of this commit:
cvs rdiff -u -r1.433 -r1.434 src/sys/dev/audio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev

2017-11-14 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Wed Nov 15 01:49:59 UTC 2017

Modified Files:
src/sys/dev: audio.c

Log Message:
Plug memory leak as the mixer state does not grow or shrink when audio
mixing is disabled.  This avoids triggering a panic also.


To generate a diff of this commit:
cvs rdiff -u -r1.432 -r1.433 src/sys/dev/audio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev

2017-11-14 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Wed Nov 15 01:45:57 UTC 2017

Modified Files:
src/sys/dev: audio.c

Log Message:
Don't return EIO falsely when dealing with the hardware vc.
Draining of the hardware vc on close is now possible.


To generate a diff of this commit:
cvs rdiff -u -r1.431 -r1.432 src/sys/dev/audio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/nand

2017-11-14 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Wed Nov 15 00:48:42 UTC 2017

Modified Files:
src/sys/modules/nand: Makefile

Log Message:
Build nand_toshiba.c


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/modules/nand/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/arm/sunxi

2017-11-14 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Wed Nov 15 00:30:02 UTC 2017

Modified Files:
src/sys/arch/arm/sunxi: sunxi_nand.c

Log Message:
Wait for irq instead of polling for cmd completion.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/arm/sunxi/sunxi_nand.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/ufs/chfs

2017-11-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue Nov 14 22:06:40 UTC 2017

Modified Files:
src/sys/ufs/chfs: chfs_vfsops.c

Log Message:
Fix up chfs_mountfs error branches.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/ufs/chfs/chfs_vfsops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/include

2017-11-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Nov 14 16:56:03 UTC 2017

Modified Files:
src/sys/arch/sparc64/include: vmparam.h

Log Message:
Bump PAGER_MAP_DEFAULT_SIZE to 512 MB (like amd64 recently did).


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/sparc64/include/vmparam.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2017-11-14 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Nov 14 15:02:06 UTC 2017

Modified Files:
src/sys/kern: subr_pool.c

Log Message:
- fix an assert; we can reach there if we are nowait or limitfail.
- when priming the pool and failing with ERESTART, don't decrement the number
  of pages; this avoids the issue of returning an ERESTART when we get to 0,
  and is more correct.
- simplify the pool_grow code, and don't wakeup things if we ENOMEM.


To generate a diff of this commit:
cvs rdiff -u -r1.215 -r1.216 src/sys/kern/subr_pool.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/opencrypto

2017-11-14 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Nov 14 14:29:33 UTC 2017

Modified Files:
src/sys/opencrypto: cryptodev.c

Log Message:
check results of pool_prime.


To generate a diff of this commit:
cvs rdiff -u -r1.95 -r1.96 src/sys/opencrypto/cryptodev.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/raidframe

2017-11-14 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Nov 14 14:27:54 UTC 2017

Modified Files:
src/sys/dev/raidframe: rf_netbsdkintf.c rf_reconmap.c

Log Message:
check the result of pool_prime.


To generate a diff of this commit:
cvs rdiff -u -r1.351 -r1.352 src/sys/dev/raidframe/rf_netbsdkintf.c
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/raidframe/rf_reconmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/flash

2017-11-14 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Nov 14 14:15:30 UTC 2017

Modified Files:
src/sys/dev/flash: files.flash

Log Message:
Add "disk" dependency to flash to set device class to DV_DISK.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/flash/files.flash

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2017-11-14 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Nov 14 14:14:29 UTC 2017

Modified Files:
src/sys/kern: kern_subr.c

Log Message:
Include "flash" in list of block devices that don't use partitions.


To generate a diff of this commit:
cvs rdiff -u -r1.218 -r1.219 src/sys/kern/kern_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-14 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Nov 14 13:58:08 UTC 2017

Modified Files:
src/sys/arch/amd64/stand/prekern: locore.S redef.h

Log Message:
Remove XXX: set FRAMESIZE to the kernel value. Verily I don't understand
why we are doing that in the non-kaslr kernels, but let's just reproduce
the behavior.

jump_kernel is changed to use callq, so that the stack alignment is
preserved.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/amd64/stand/prekern/locore.S
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/amd64/stand/prekern/redef.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/bsd/nvi/dist/vi

2017-11-14 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Tue Nov 14 12:20:56 UTC 2017

Modified Files:
src/external/bsd/nvi/dist/vi: vs_refresh.c

Log Message:
Fix cursor movement for the case of USE_WIDECHAR != "yes", where the argument
of INTISWIDE() is not evaluated.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/bsd/nvi/dist/vi/vs_refresh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/conf

2017-11-14 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Nov 14 10:15:40 UTC 2017

Modified Files:
src/sys/arch/amd64/conf: Makefile.amd64 kern.ldscript.kaslr

Log Message:
Split each kernel section into sub-blocks of approximately 2MB. The newly
created sections are named .origname.i, for example:

.text -> { .text .text.0 .text.1 .text.2 .text.3 .text.4 }

Each section is randomized independently by the prekern - and in a random
order obviously. As a result we can get intertwined mappings, of the type:

+---+---+--+-+---+---+---+--+-
| text1 | NOTMAPPED | bss0 | rodata1 | NOTMAPPED | data2 | text3 | bss1 |
+---+---+--+-+---+---+---+--+-

   -+-
rodata0 | ...
   -+-

The CTF section is dropped completely, because (a) when split it becomes
enormous for some reason (that I don't quite understand, verily), and (b)
the kernel expects only one CTF and can't handle several of them.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/arch/amd64/conf/Makefile.amd64
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/amd64/conf/kern.ldscript.kaslr

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/conf

2017-11-14 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Nov 14 09:56:26 UTC 2017

Modified Files:
src/sys/arch/amd64/conf: Makefile.amd64

Log Message:
Remove max-page-size on KASLR, it doesn't play any role.


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/sys/arch/amd64/conf/Makefile.amd64

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/i386/stand/boot

2017-11-14 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Nov 14 09:55:41 UTC 2017

Modified Files:
src/sys/arch/i386/stand/boot: boot2.c

Log Message:
Add missing ).


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sys/arch/i386/stand/boot/boot2.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc

2017-11-14 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Nov 14 09:04:17 UTC 2017

Modified Files:
src/external/gpl3/gcc/dist/gcc: toplev.c
src/external/gpl3/gcc/dist/libiberty: vprintf-support.c
src/external/gpl3/gcc/lib/liblto_plugin: Makefile

Log Message:
sync with gcc.old.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.5 -r1.2 src/external/gpl3/gcc/dist/gcc/toplev.c
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/gpl3/gcc/dist/libiberty/vprintf-support.c
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gcc/lib/liblto_plugin/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc.old

2017-11-14 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Nov 14 08:52:20 UTC 2017

Modified Files:
src/external/gpl3/gcc.old/dist/libiberty: vprintf-support.c
src/external/gpl3/gcc.old/lib/liblto_plugin: Makefile

Log Message:
attempt to fix liblto_plugin build.  on sparc it at least now
appears to have no missing symbols.  add xasprintf.c, xvasprintf.c,
and vprintf-support.c.

fix vprintf-support.c to include vprintf-support.h.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/gpl3/gcc.old/dist/libiberty/vprintf-support.c
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gcc.old/lib/liblto_plugin/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.