CVS commit: src/sys/dev/pci

2016-11-09 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Thu Nov 10 06:57:15 UTC 2016

Modified Files:
src/sys/dev/pci: if_wm.c

Log Message:
 Call wm_enable_phy_wakeup() on PCH2 and newer, too. Now these devices
can do WOL. Tested with Thinkpad X220(PCH2).


To generate a diff of this commit:
cvs rdiff -u -r1.441 -r1.442 src/sys/dev/pci/if_wm.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/dev

2016-11-09 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Thu Nov 10 06:44:35 UTC 2016

Modified Files:
src/sys/arch/sparc64/dev: pyro.c sbus.c schizo.c

Log Message:
weed out BUS_SPACE_MAP_PREFETCHABLE in resp. _map() and _mmap() methods
it works with UPA graphics cards and at least some psycho but causes problems
on these


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/sparc64/dev/pyro.c
cvs rdiff -u -r1.95 -r1.96 src/sys/arch/sparc64/dev/sbus.c
cvs rdiff -u -r1.36 -r1.37 src/sys/arch/sparc64/dev/schizo.c

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



CVS commit: src/sys/netinet6

2016-11-09 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Thu Nov 10 04:13:53 UTC 2016

Modified Files:
src/sys/netinet6: in6_src.c ip6_output.c ip6_var.h

Log Message:
Tidy up in6_select*

This change tidies up in6_select* functions, especially
selectroute.

selectroute is annoying because:
- It returns both/either of a rtentry and/or an ifp
  - Yes, it may return only an ifp!
- It is valid but selectroute shouldn't handle the case
  - Such conditional behavior makes it difficult
to apply locking/psref thingy
- It may return a rtentry even if error
- It may use opt->ip6po_nextroute rtcache implicitly
  - The caller can know if it is used
by rtcache_validate(&opt->ip6po_nextroute)
but it's racy in MP-safe world
  - Even if it uses opt->ip6po_nextroute, it may
return a rtentry that isn't derived from the rtcache

The change includes:
- Rename selectroute to in6_selectroute
  - Let a remaining caller of selectroute, in6_selectif,
use in6_selectroute instead
- Let in6_selectroute return only an rtentry
  - If error, it doesn't return an rtentry
  - A caller gets an ifp from a returned rtentry
- Allow in6_selectroute to modify a passed rtcache
  and a caller can know if opt->ip6po_nextroute is
  used via the rtcache
- Let callers (ip6_output and in6_selectif) handle
  the case that only an ifp is required

Inspired by OpenBSD
Proposed on tech-kern and tech-net
LGTM by roy@


To generate a diff of this commit:
cvs rdiff -u -r1.73 -r1.74 src/sys/netinet6/in6_src.c
cvs rdiff -u -r1.177 -r1.178 src/sys/netinet6/ip6_output.c
cvs rdiff -u -r1.69 -r1.70 src/sys/netinet6/ip6_var.h

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



CVS commit: src/sys/arch/x86/x86

2016-11-09 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Thu Nov 10 03:32:04 UTC 2016

Modified Files:
src/sys/arch/x86/x86: vmt.c

Log Message:
Fix a breakout of loops

As the comment "find first available ipv4 address" indicates,
if an IP address is found, we need to leave the two nested loops,
a loop for an interface list and a loop for IP addresses of
an interface. However, the original code broke away only from
the inner loop.

The original (wrong) behavior was non-critical, which just
returned a non-first IP address. Unfortunately, after applying
psref, the behavior may call psref_acquire twice to a target
with the same psref object, resulting in a kernel panic eventually.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/x86/x86/vmt.c

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



CVS commit: src/tests/dev/cgd

2016-11-09 Thread Alexander Nasonov
Module Name:src
Committed By:   alnsn
Date:   Wed Nov  9 22:01:15 UTC 2016

Modified Files:
src/tests/dev/cgd: t_cgd_aes.c

Log Message:
Add aes-cbc tests.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/dev/cgd/t_cgd_aes.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/sun

2016-11-09 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Wed Nov  9 19:54:25 UTC 2016

Modified Files:
src/sys/dev/sun: cgthree.c

Log Message:
- use bus_space_mmap()
- pass the right colour depth in ioctl()
should fix PR49639


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/dev/sun/cgthree.c

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



CVS commit: src/tests/lib/libc/sys

2016-11-09 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Wed Nov  9 17:50:19 UTC 2016

Modified Files:
src/tests/lib/libc/sys: t_wait_noproc.c

Log Message:
Add new tests in t_wait_noproc and t_wait_noproc to test more options types

Add new tests:
 - waitpid_options
 - waitid_options
 - wait3_options
 - wait4_options
 - wait6_options

These tests are included in t_wait_noproc and t_wait_noproc_wnohang.

waitpid_options, wait3_options, wait4_options test combinations of options
of: bit for WALLSIG, WALTSIG, __WALL, __WCLONE and later a full combination
mask of WNOWAIT, WEXITED, WUNTRACED, WSTOPPED, WTRAPPED and WCONTINUED.

waitid and wait6 test full combination mask of WNOWAIT, WEXITED, WUNTRACED,
WSTOPPED, WTRAPPED and WCONTINUED -- excluded empty value and singular
WNOWAIT.

For compatibility reasons alter waitid and wait6 to test against options
WEXITED | WTRAPPED, as it's equivalent to waitpid, wait3, wait4.

The intention for these tests it to catch any possible issues with slighty
changed behavior of wait(2)-like functions in terms of valid options
values.

All tests pass successfully.

Sponsored by 


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/sys/t_wait_noproc.c

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



CVS commit: src/tests/lib/libc/sys

2016-11-09 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Wed Nov  9 12:44:29 UTC 2016

Modified Files:
src/tests/lib/libc/sys: t_wait_noproc.c

Log Message:
PR standards/51600

These tests are no longer expected to fail when called with WNOHANG
(which is actually the t_wait_noproc_wnohang test but the sources are here.)


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libc/sys/t_wait_noproc.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/mips

2016-11-09 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Nov  9 11:50:09 UTC 2016

Modified Files:
src/sys/arch/mips/include: asm.h
src/sys/arch/mips/mips: locore.S mipsX_subr.S

Log Message:
Move MFC0_HAZARD definition to asm.h instead of defining it twice


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/arch/mips/include/asm.h
cvs rdiff -u -r1.207 -r1.208 src/sys/arch/mips/mips/locore.S
cvs rdiff -u -r1.94 -r1.95 src/sys/arch/mips/mips/mipsX_subr.S

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



CVS commit: src/sys/kern

2016-11-09 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Nov  9 09:00:46 UTC 2016

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

Log Message:
Add a new sanity check to psref

It checks if a target being acquired is already acquired with
the same psref. It is usable but not lightweight, so enabled
only if DEBUG.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/kern/subr_psref.c

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



CVS commit: src/distrib/notes/common

2016-11-09 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Wed Nov  9 08:18:56 UTC 2016

Modified Files:
src/distrib/notes/common: main

Log Message:
Add myself


To generate a diff of this commit:
cvs rdiff -u -r1.532 -r1.533 src/distrib/notes/common/main

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