CVS commit: src/sys/net

2017-06-25 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Mon Jun 26 06:58:42 UTC 2017

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

Log Message:
Fix ifdef; care about a case w/ INET6 and w/o INET


To generate a diff of this commit:
cvs rdiff -u -r1.221 -r1.222 src/sys/net/rtsock.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-06-25 Thread Kengo NAKAHARA
Module Name:src
Committed By:   knakahara
Date:   Mon Jun 26 05:34:49 UTC 2017

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

Log Message:
simplify mutex_enter/exit(crypto_q_mtx), and fix missing exit.


To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 src/sys/opencrypto/crypto.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/pci

2017-06-25 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Jun 26 04:22:47 UTC 2017

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

Log Message:
- Make new wm_phy_post_reset() and use this function at all location after
  reseting phy.
- Move the location of calling wm_get_hw_control. Same as Linux.
- Add I219 specific wokaround for legacy interrupt. From OpenBSD.
- Move the location of calling wm_lplu_d0_disable().
- Fix latency calculation in wm_platform_pm_pch_lpt().
- Set OBFF water mark and enable OBFF on PCH_LPT and newer.


To generate a diff of this commit:
cvs rdiff -u -r1.516 -r1.517 src/sys/dev/pci/if_wm.c
cvs rdiff -u -r1.99 -r1.100 src/sys/dev/pci/if_wmreg.h

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



CVS commit: src/sys/dev/pci

2017-06-25 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Jun 26 04:18:14 UTC 2017

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

Log Message:
 Add missing "else" in wm_nvm_release().


To generate a diff of this commit:
cvs rdiff -u -r1.515 -r1.516 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/dev/pci

2017-06-25 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Jun 26 04:15:06 UTC 2017

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

Log Message:
- Flush every MTA write. Same as Linux.
- Move the location of calling wm_set_filter. Same as some other OSes.
- Add CSR_WRITE_FLUSH() after writing WMREG_CTRL in wm_gmii_mediachange().


To generate a diff of this commit:
cvs rdiff -u -r1.514 -r1.515 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/dev/pci

2017-06-25 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Jun 26 04:09:02 UTC 2017

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

Log Message:
- Fix wm_set_ral():
 - Fix a bug that a RAL was written at incorrect address when the index number
   is more than 16 on 82544 and newer.
 - The layout of RAL on PCH* are different from others.
- Remove wrong comment.


To generate a diff of this commit:
cvs rdiff -u -r1.513 -r1.514 src/sys/dev/pci/if_wm.c
cvs rdiff -u -r1.98 -r1.99 src/sys/dev/pci/if_wmreg.h

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



CVS commit: src/sys/dev/pci

2017-06-25 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Jun 26 04:03:34 UTC 2017

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

Log Message:
 Print sc_flags with snprintb().


To generate a diff of this commit:
cvs rdiff -u -r1.512 -r1.513 src/sys/dev/pci/if_wm.c
cvs rdiff -u -r1.33 -r1.34 src/sys/dev/pci/if_wmvar.h

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



CVS commit: src

2017-06-25 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Mon Jun 26 03:16:28 UTC 2017

Modified Files:
src/sys/net: rtsock.c
src/tests/net/arp: t_arp.sh
src/tests/net/ndp: t_ndp.sh

Log Message:
Improve backward compatibility of (fake) routing messages on adding an ARP/NDP 
entry

A message originally included only DST and GATEWAY. Restore it.


To generate a diff of this commit:
cvs rdiff -u -r1.220 -r1.221 src/sys/net/rtsock.c
cvs rdiff -u -r1.28 -r1.29 src/tests/net/arp/t_arp.sh
cvs rdiff -u -r1.25 -r1.26 src/tests/net/ndp/t_ndp.sh

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



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

2017-06-25 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Mon Jun 26 03:15:16 UTC 2017

Modified Files:
src/sys/arch/evbarm/conf: BCM5301X BCM56340 BEAGLEBOARDXM BEAGLEBONE
GEMINI GEMINI_MASTER GEMINI_SLAVE GOLDENGATE N900 PANDABOARD

Log Message:
Add a heading to describe the class of device axe(4) is.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/evbarm/conf/BCM5301X
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/evbarm/conf/BCM56340
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/evbarm/conf/BEAGLEBOARDXM \
src/sys/arch/evbarm/conf/N900
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/evbarm/conf/BEAGLEBONE
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/evbarm/conf/GEMINI \
src/sys/arch/evbarm/conf/GEMINI_MASTER
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/evbarm/conf/GEMINI_SLAVE
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/evbarm/conf/GOLDENGATE
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/evbarm/conf/PANDABOARD

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



CVS commit: src

2017-06-25 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Mon Jun 26 03:13:40 UTC 2017

Modified Files:
src/sys/net: rtsock.c
src/tests/net/arp: t_arp.sh
src/tests/net/ndp: t_ndp.sh
src/usr.sbin/arp: arp.c
src/usr.sbin/ndp: ndp.c

Log Message:
Fix usage of routing messages on arp -d and ndp -d

It didn't work as we expected; we should set RTA_GATEWAY not
RTA_IFP on RTM_GET to return an if_index and the kernel should
use it on RTM_DELETE.


To generate a diff of this commit:
cvs rdiff -u -r1.219 -r1.220 src/sys/net/rtsock.c
cvs rdiff -u -r1.27 -r1.28 src/tests/net/arp/t_arp.sh
cvs rdiff -u -r1.24 -r1.25 src/tests/net/ndp/t_ndp.sh
cvs rdiff -u -r1.56 -r1.57 src/usr.sbin/arp/arp.c
cvs rdiff -u -r1.48 -r1.49 src/usr.sbin/ndp/ndp.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/x86/x86

2017-06-25 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Jun 25 22:16:46 UTC 2017

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

Log Message:
Xen/i386PAE is special, in that top-level entries are not in per-pmap
tables but per-CPU pages. pmap_alloc_level() takes care of making new
entries actives when the kernel pmap is updated, so always use pmap_kernel()
is this case too.


To generate a diff of this commit:
cvs rdiff -u -r1.253 -r1.254 src/sys/arch/x86/x86/pmap.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/i386/conf

2017-06-25 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Jun 25 20:22:32 UTC 2017

Modified Files:
src/sys/arch/i386/conf: kern.ldscript.Xen

Log Message:
Restore alignement of _end to rev 1.12: this is where the Xen loader
puts the symbol table and should not be changed (maybe we should change
this symbol name).
keep kernel_end PAGE-aligned.
Makes ddb work again on Xen/i386


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/i386/conf/kern.ldscript.Xen

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



CVS commit: src/sys/dev/pci

2017-06-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jun 25 16:07:48 UTC 2017

Modified Files:
src/sys/dev/pci: yds.c ydsvar.h

Log Message:
PR/52331: ydc driver: sleep-under-spin-mutex bugs in yds_allocmem
Don't hold the spin interrupt mutex while calling yds_init from resume.
Instead use a flag to short-circuit the interrupt while disabled.


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/sys/dev/pci/yds.c
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/pci/ydsvar.h

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



CVS commit: src/sys/dev/pci

2017-06-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jun 25 15:56:32 UTC 2017

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

Log Message:
PR/52330: Jia-Ju Bai: mpii driver: a sleep-in-interrupt bug in mpii_intr
Since the enclosing routime mpii_event_raid already calls malloc with
M_NOWAIT, fix the cache routine to do the same. While there check the
result of the cache routine and change some error prints to aprint.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/pci/mpii.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/arm/gemini

2017-06-25 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Jun 25 12:44:04 UTC 2017

Modified Files:
src/sys/arch/arm/gemini: if_gpn.c

Log Message:
NULL deref, found by Mootja; not sure how to fix it, so just add a big XXX


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/gemini/if_gpn.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/x86/x86

2017-06-25 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Jun 25 12:42:40 UTC 2017

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

Log Message:
Page tables are not writable under Xen, so we can't memcpy() to them.
Rewite to do the copy using pmap_pte_set() in the Xen case.


To generate a diff of this commit:
cvs rdiff -u -r1.252 -r1.253 src/sys/arch/x86/x86/pmap.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/ieee1394

2017-06-25 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Jun 25 12:39:27 UTC 2017

Modified Files:
src/sys/dev/ieee1394: fwdev.c

Log Message:
memory leak, found by Mootja; it seems that we should check the return
value of 'fw_bindadd' in several other places, but whatever


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/ieee1394/fwdev.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/ata

2017-06-25 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Jun 25 12:29:32 UTC 2017

Modified Files:
src/sys/dev/ata: ata_raid_subr.c

Log Message:
dumb instruction


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/ata/ata_raid_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/dev/ppbus

2017-06-25 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Jun 25 12:27:13 UTC 2017

Modified Files:
src/sys/dev/ppbus: if_plip.c

Log Message:
spl leak, found by Mootja


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/ppbus/if_plip.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/pcmcia

2017-06-25 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Jun 25 12:25:02 UTC 2017

Modified Files:
src/sys/dev/pcmcia: if_malo_pcmcia.c

Log Message:
two spl leaks, found by Mootja


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/pcmcia/if_malo_pcmcia.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/hpc

2017-06-25 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Jun 25 12:21:00 UTC 2017

Modified Files:
src/sys/dev/hpc: hpcapm.c

Log Message:
spl leak, found by Mootja


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/hpc/hpcapm.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/bebox/stand/boot

2017-06-25 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Jun 25 12:15:04 UTC 2017

Modified Files:
src/sys/arch/bebox/stand/boot: siop.c

Log Message:
uninitialized var, found by Mootja; don't know which value to put, so add
a big XXX


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/bebox/stand/boot/siop.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/arm/imx

2017-06-25 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Jun 25 12:11:30 UTC 2017

Modified Files:
src/sys/arch/arm/imx: imx51_ipuv3.c

Log Message:
memory leak, found by Mootja


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/arm/imx/imx51_ipuv3.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/acorn32/podulebus

2017-06-25 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Jun 25 12:07:23 UTC 2017

Modified Files:
src/sys/arch/acorn32/podulebus: if_ie.c

Log Message:
spl leak, found by Mootja


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/acorn32/podulebus/if_ie.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/ia64/stand/ia64/ski

2017-06-25 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Jun 25 12:04:37 UTC 2017

Modified Files:
src/sys/arch/ia64/stand/ia64/ski: devicename.c

Log Message:
uninitialized variable, found by Mootja


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/ia64/stand/ia64/ski/devicename.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/sbus

2017-06-25 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Jun 25 12:02:59 UTC 2017

Modified Files:
src/sys/dev/sbus: be.c

Log Message:
spl leak, found by Mootja a long time ago


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 src/sys/dev/sbus/be.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-06-25 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Sun Jun 25 10:28:23 UTC 2017

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

Log Message:
Don't autoconfig for 24 bits precision.  It does not work as yet.


To generate a diff of this commit:
cvs rdiff -u -r1.365 -r1.366 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/arch/cats/conf

2017-06-25 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun Jun 25 10:06:27 UTC 2017

Modified Files:
src/sys/arch/cats/conf: GENERIC

Log Message:
Comment out a bunch of thing so that a GENERIC kernel boots on my cats
with cyclone firmware


To generate a diff of this commit:
cvs rdiff -u -r1.161 -r1.162 src/sys/arch/cats/conf/GENERIC

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-06-25 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Sun Jun 25 09:42:40 UTC 2017

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

Log Message:
Don't start playback or recording on the hw ring only stream ring buffers.


To generate a diff of this commit:
cvs rdiff -u -r1.364 -r1.365 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/ic

2017-06-25 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Sun Jun 25 09:40:17 UTC 2017

Modified Files:
src/sys/dev/ic: am7930.c

Log Message:
Set hw parameters for linear to ulaw filters.

Tested by flxd@.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/dev/ic/am7930.c

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