CVS commit: src/sys/dev/dm

2020-01-01 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Thu Jan  2 06:22:23 UTC 2020

Modified Files:
src/sys/dev/dm: dm.h dm_target.c
Added Files:
src/sys/dev/dm: dm_target_flakey.c

Log Message:
dm: Add dm-flakey target

Ported from DragonFlyBSD, but this target had originally existed in
Linux kernel. See below for details.
https://www.kernel.org/doc/Documentation/device-mapper/dm-flakey.txt

Due to two technical issues, this hasn't been hooked to dm.kmod yet.
1) "tick" in hz(9) not working.
2) Unable to use ->b_private in nestiobuf callback when it's already
 used for mbp (see HAS_BUF_PRIV2).

taken-from: DragonFlyBSD


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.37 -r1.38 src/sys/dev/dm/dm_target.c
cvs rdiff -u -r0 -r1.1 src/sys/dev/dm/dm_target_flakey.c

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



CVS commit: src/sys/sys

2020-01-01 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Jan  2 05:18:07 UTC 2020

Modified Files:
src/sys/sys: exec_elf.h

Log Message:
Sync the e_ident[EI_OSABI] magic values with the ELF specification

source: http://www.sco.com/developers/gabi/latest/ch4.eheader.html


To generate a diff of this commit:
cvs rdiff -u -r1.163 -r1.164 src/sys/sys/exec_elf.h

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



CVS commit: src/sys/sys

2020-01-01 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Jan  2 04:58:07 UTC 2020

Modified Files:
src/sys/sys: exec_elf.h

Log Message:
Update e_machine magic values with the ELF specification

source: http://www.sco.com/developers/gabi/latest/ch4.eheader.html


To generate a diff of this commit:
cvs rdiff -u -r1.162 -r1.163 src/sys/sys/exec_elf.h

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



CVS commit: src/sys/sys

2020-01-01 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Jan  2 04:28:51 UTC 2020

Modified Files:
src/sys/sys: exec_elf.h

Log Message:
Fix the EM_TILEGX number in the ELF header

source: http://www.sco.com/developers/gabi/latest/ch4.eheader.html

191 is confirmed in LLVM, GNU toolchain, FreeBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.161 -r1.162 src/sys/sys/exec_elf.h

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



CVS commit: src/sys/uvm

2020-01-01 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Thu Jan  2 02:00:35 UTC 2020

Modified Files:
src/sys/uvm: uvm_amap.c uvm_amap.h

Log Message:
Back out the amap allocation  changes from earlier today - have seen a panic
with them.  Retain the lock changes.


To generate a diff of this commit:
cvs rdiff -u -r1.113 -r1.114 src/sys/uvm/uvm_amap.c
cvs rdiff -u -r1.38 -r1.39 src/sys/uvm/uvm_amap.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

2020-01-01 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Thu Jan  2 01:31:17 UTC 2020

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

Log Message:
mi_cpu_init: set ci_smt_primary early.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/kern/subr_cpu.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/fdt

2020-01-01 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Thu Jan  2 00:57:10 UTC 2020

Modified Files:
src/sys/dev/fdt: files.fdt
Added Files:
src/sys/dev/fdt: simple_amplifier.c

Log Message:
Add driver for simple-audio-amplifier binding


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/dev/fdt/files.fdt
cvs rdiff -u -r0 -r1.1 src/sys/dev/fdt/simple_amplifier.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

2020-01-01 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Wed Jan  1 23:28:31 UTC 2020

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

Log Message:
Add support for single power writes, and enable for Ricoh 5u823.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/pci/sdhc_pci.c

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



CVS commit: src/sys/kern

2020-01-01 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Jan  1 23:15:24 UTC 2020

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

Log Message:
Now that we know if we're shutting down, enable locking in resettodr().
In the shutting_down case, we acquire the todr_mutex as a trylock.  Under
most circumstances, this lock will be uncontended.  But if we happen to
panic while accessing the TOD clock (via clock_settime() or whatever),
then trylock will prevent us from getting stuck (and a warning will be
displayed on the console).


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/kern/kern_todr.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

2020-01-01 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Jan  1 23:07:38 UTC 2020

Modified Files:
src/sys/dev: clock_subr.h

Log Message:
Pull in .


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/clock_subr.h

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



CVS commit: src/sys

2020-01-01 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Jan  1 22:57:17 UTC 2020

Modified Files:
src/sys/arch/arm/sunxi: sunxi_thermal.c
src/sys/arch/sparc64/dev: sbus.c
src/sys/compat/common: kern_xxx_12.c
src/sys/ddb: db_command.c
src/sys/dev/sysmon: swwdog.c sysmon_power.c
src/sys/external/bsd/drm2/include/linux: reboot.h
src/sys/kern: init_main.c kern_reboot.c kern_subr.c subr_prf.c
src/sys/sys: kernel.h reboot.h

Log Message:
- Introduce a new global kernel variable "shutting_down" to indicate that
  the system is shutting down or rebooting.
- Set this global in a new function called kern_reboot(), which is currently
  just a basic wrapper around cpu_reboot().
- Call kern_reboot() instead of cpu_reboot() almost everywhere; a few
  places remain where it's still called directly, but those are in early
  pre-main() machdep locations.

Eventually, all of the various cpu_reboot() functions should be re-factored
and common functionality moved to kern_reboot(), but that's for another day.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/sunxi/sunxi_thermal.c
cvs rdiff -u -r1.97 -r1.98 src/sys/arch/sparc64/dev/sbus.c
cvs rdiff -u -r1.16 -r1.17 src/sys/compat/common/kern_xxx_12.c
cvs rdiff -u -r1.166 -r1.167 src/sys/ddb/db_command.c
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/sysmon/swwdog.c
cvs rdiff -u -r1.61 -r1.62 src/sys/dev/sysmon/sysmon_power.c
cvs rdiff -u -r1.5 -r1.6 src/sys/external/bsd/drm2/include/linux/reboot.h
cvs rdiff -u -r1.515 -r1.516 src/sys/kern/init_main.c
cvs rdiff -u -r1.1 -r1.2 src/sys/kern/kern_reboot.c
cvs rdiff -u -r1.227 -r1.228 src/sys/kern/kern_subr.c
cvs rdiff -u -r1.181 -r1.182 src/sys/kern/subr_prf.c
cvs rdiff -u -r1.30 -r1.31 src/sys/sys/kernel.h
cvs rdiff -u -r1.25 -r1.26 src/sys/sys/reboot.h

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



CVS commit: src/sys/uvm

2020-01-01 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Wed Jan  1 22:01:14 UTC 2020

Modified Files:
src/sys/uvm: uvm_amap.c uvm_amap.h

Log Message:
- Start trying to reduce the high cache miss rate observed around vm_amap.
  On _LP64, pad struct vm_amap to 128 bytes and use the additional space to
  hold the arrays for tiny amaps which are common.  Carefully size the array
  allocations to avoid false sharing, and for smaller amaps try to share
  allocated cache lines.

- Eliminate most contention due to amap_list: maintain the list in the pool
  cache constructor / destructor like we do for struct file.  Cache the
  mutexes we allocate here.

- Don't do PR_WAITOK mutex allocations when NOWAIT has been specified.


To generate a diff of this commit:
cvs rdiff -u -r1.112 -r1.113 src/sys/uvm/uvm_amap.c
cvs rdiff -u -r1.37 -r1.38 src/sys/uvm/uvm_amap.h

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



CVS commit: src/sys

2020-01-01 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Wed Jan  1 21:34:39 UTC 2020

Modified Files:
src/sys/kern: kern_mutex_obj.c kern_rwlock_obj.c
src/sys/sys: mutex.h rwlock.h

Log Message:
Add some new functions for lock objects:

mutex_obj_refcnt(), mutex_obj_tryalloc()
rw_obj_refcnt(), rw_obj_tryalloc()


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/kern/kern_mutex_obj.c
cvs rdiff -u -r1.4 -r1.5 src/sys/kern/kern_rwlock_obj.c
cvs rdiff -u -r1.24 -r1.25 src/sys/sys/mutex.h
cvs rdiff -u -r1.11 -r1.12 src/sys/sys/rwlock.h

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



CVS commit: src/sys

2020-01-01 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Jan  1 21:09:12 UTC 2020

Modified Files:
src/sys/dev: clock_subr.h
src/sys/kern: init_main.c kern_todr.c

Log Message:
First steps towards properly serializing access to the TOD clock.
- Add a mutex around the TODR, and provide lock/unlock/lock-owned
  functions to manipulate it.
- Rename inittodr() to todr_set_systime() and resettodr() to
  todr_save_systime() to better reflect what they do.  These functions
  are intended to be called with the TODR lock held, which will allow
  for a pattern like:
-> todr_lock()
-> todr_save_systime()
-> [do machine-dependent stuff to sleep/suspend]
-> [magically awaken]
-> todr_set_systime(...)
-> todr_unlock()
- Provide historically-named wrappers inittodr() and resettodr() that
  do the dance of acquiring / releasing the lock around the actual
  substance.

NOTE: resettodr()'s use of the TODR lock is currently disabled (and
todr_save_systime() does not assert it's held) until such time as
issues around shutdown / reboot under duress can be addressed.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/clock_subr.h
cvs rdiff -u -r1.514 -r1.515 src/sys/kern/init_main.c
cvs rdiff -u -r1.43 -r1.44 src/sys/kern/kern_todr.c

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



CVS commit: src/share/man/man4

2020-01-01 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Wed Jan  1 20:13:20 UTC 2020

Modified Files:
src/share/man/man4: aq.4

Log Message:
Break line after macro ends; add article


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/share/man/man4/aq.4

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



CVS commit: src/usr.sbin/fstyp

2020-01-01 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Wed Jan  1 20:11:44 UTC 2020

Modified Files:
src/usr.sbin/fstyp: fstyp.8

Log Message:
Try fixing a sentence.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/usr.sbin/fstyp/fstyp.8

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



CVS commit: src/sys/modules/compat

2020-01-01 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed Jan  1 19:36:27 UTC 2020

Removed Files:
src/sys/modules/compat: Makefile

Log Message:
One more vestige.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r0 src/sys/modules/compat/Makefile

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



CVS commit: src/sys/compat/common

2020-01-01 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed Jan  1 19:35:21 UTC 2020

Removed Files:
src/sys/compat/common: compat_mod.c

Log Message:
Emove vestigial remains of the monolithic compat module.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r0 src/sys/compat/common/compat_mod.c

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



CVS commit: src/sys

2020-01-01 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Jan  1 19:24:03 UTC 2020

Modified Files:
src/sys/dev: clock_subr.h
src/sys/dev/ic: mc146818.c mk48txx.c
src/sys/kern: kern_todr.c

Log Message:
Fix some issues around todr_wenable():
- As previously defined, it was not possible to return an error from the
  back-end RTC driver.  Make it a real function so that it can do so.
- Only the mc146818 and mk48txx drivers used it (for historical reasons).
  Centralize the logic for how it's used in kern_todr.c (and make it private
  to that file) for consistency.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/clock_subr.h
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/ic/mc146818.c
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/ic/mk48txx.c
cvs rdiff -u -r1.42 -r1.43 src/sys/kern/kern_todr.c

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



CVS commit: src/doc

2020-01-01 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Wed Jan  1 18:40:12 UTC 2020

Modified Files:
src/doc: 3RDPARTY

Log Message:
tmux-3.0a out.


To generate a diff of this commit:
cvs rdiff -u -r1.1682 -r1.1683 src/doc/3RDPARTY

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



CVS commit: src/sys/dev/i2c

2020-01-01 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Jan  1 18:09:44 UTC 2020

Modified Files:
src/sys/dev/i2c: anxedp.c

Log Message:
No need to use I2C_F_POLL here.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/i2c/anxedp.c

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



CVS commit: src/sys

2020-01-01 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Jan  1 18:08:11 UTC 2020

Modified Files:
src/sys/dev: clock_subr.h
src/sys/kern: kern_todr.c

Log Message:
todr_gettime() and todr_settime() are not referenced outside of kern_todr.c,
so make them private to that file.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/clock_subr.h
cvs rdiff -u -r1.41 -r1.42 src/sys/kern/kern_todr.c

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



CVS commit: src/sys/kern

2020-01-01 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Jan  1 17:28:17 UTC 2020

Modified Files:
src/sys/kern: kern_time.c kern_todr.c

Log Message:
Remove superfluous splclock()/splx() pair around tc_setclock().


To generate a diff of this commit:
cvs rdiff -u -r1.201 -r1.202 src/sys/kern/kern_time.c
cvs rdiff -u -r1.40 -r1.41 src/sys/kern/kern_todr.c

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



CVS commit: src/sys/uvm/pmap

2020-01-01 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Jan  1 16:50:42 UTC 2020

Modified Files:
src/sys/uvm/pmap: pmap_pvt.c

Log Message:
Revert previous (include of sys/param.h) - the headers requiring this
have been fixed.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/uvm/pmap/pmap_pvt.c

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



CVS commit: src/sys/compat

2020-01-01 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Jan  1 14:52:38 UTC 2020

Modified Files:
src/sys/compat/common: kern_sig_43.c
src/sys/compat/netbsd32: netbsd32_compat_20.c netbsd32_compat_50.c

Log Message:
Fix three stack info leaks, found by kMSan when just invoking all syscalls
with a zero page as argument.

MSan: Uninitialized Stack Memory In copyout() At Offset 0, Variable 'sb32' From 
compat_20_netbsd32_getfsstat()
MSan: Uninitialized Stack Memory In copyout() At Offset 12, Variable 'oss' From 
compat_43_sys_sigstack()
MSan: Uninitialized Stack Memory In copyout() At Offset 0, Variable 'sb' From 
compat_50_netbsd32___fhstat40()


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/compat/common/kern_sig_43.c
cvs rdiff -u -r1.38 -r1.39 src/sys/compat/netbsd32/netbsd32_compat_20.c
cvs rdiff -u -r1.43 -r1.44 src/sys/compat/netbsd32/netbsd32_compat_50.c

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



CVS commit: src/sys/uvm

2020-01-01 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Wed Jan  1 14:33:48 UTC 2020

Modified Files:
src/sys/uvm: uvm_pdpolicy_clock.c

Log Message:
Fix a comment.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/uvm/uvm_pdpolicy_clock.c

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



CVS commit: src/distrib/utils/embedded/conf

2020-01-01 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Jan  1 14:16:51 UTC 2020

Modified Files:
src/distrib/utils/embedded/conf: rpi_inst.conf

Log Message:
upstream_kernel=1 is required with new firmware/kernel.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/distrib/utils/embedded/conf/rpi_inst.conf

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/dts

2020-01-01 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Wed Jan  1 14:15:46 UTC 2020

Modified Files:
src/sys/arch/arm/dts: rk3399-pinebook-pro.dts

Log Message:
Disable SPI for now (rkspi driver hangs at boot)


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/dts/rk3399-pinebook-pro.dts

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/broadcom

2020-01-01 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Jan  1 13:54:32 UTC 2020

Modified Files:
src/sys/arch/arm/broadcom: bcm283x_platform.c

Log Message:
Provide a single generic bcm283x_platform_uart_freq which checks for
"brcm,bcm2835-aux-uart" and returns the appropriate core clock based
results; otherwise it returns the uart clock from firmware.

Should fix early console output on the rpi0w.

Based on a diff from mlelstv


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/arm/broadcom/bcm283x_platform.c

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



CVS commit: src/sys/uvm

2020-01-01 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Wed Jan  1 13:11:51 UTC 2020

Modified Files:
src/sys/uvm: uvm_amap.c

Log Message:
PR kern/54821: 9.99.32 assertion in uvm_pageactivate

Looks like I forgot to commit this file yesterday.


To generate a diff of this commit:
cvs rdiff -u -r1.111 -r1.112 src/sys/uvm/uvm_amap.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/fdt

2020-01-01 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Wed Jan  1 12:55:03 UTC 2020

Modified Files:
src/sys/dev/fdt: pwm_backlight.c

Log Message:
No need to print all supported levels at attach, print the range and total 
number of steps


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/fdt/pwm_backlight.c

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



CVS commit: src/usr.sbin/fstyp

2020-01-01 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Wed Jan  1 12:47:19 UTC 2020

Modified Files:
src/usr.sbin/fstyp: fstyp.c

Log Message:
fstyp: Consider '@' syntax in device file path for HAMMER2

though devpath is unsupported in NetBSD atm.
taken-from: DragonFlyBSD


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/usr.sbin/fstyp/fstyp.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/fdt

2020-01-01 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Wed Jan  1 12:46:44 UTC 2020

Modified Files:
src/sys/dev/fdt: fdt_port.c

Log Message:
Quiet chatty printfs


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/fdt/fdt_port.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

2020-01-01 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Wed Jan  1 12:18:18 UTC 2020

Modified Files:
src/sys/dev/fdt: dwcmmc_fdt.c
src/sys/dev/ic: dwc_mmc.c dwc_mmc_var.h

Log Message:
Fix performance regression with previous


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/fdt/dwcmmc_fdt.c
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/ic/dwc_mmc.c
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/ic/dwc_mmc_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/dev/sdmmc

2020-01-01 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Wed Jan  1 12:17:13 UTC 2020

Modified Files:
src/sys/dev/sdmmc: if_bwfm_sdio.c

Log Message:
Use correct firmware for BCM43456


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/sdmmc/if_bwfm_sdio.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/sdmmc

2020-01-01 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Wed Jan  1 12:16:14 UTC 2020

Modified Files:
src/sys/dev/sdmmc: sdmmcdevs.h

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/sdmmc/sdmmcdevs.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/sdmmc

2020-01-01 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Wed Jan  1 12:15:53 UTC 2020

Modified Files:
src/sys/dev/sdmmc: sdmmcdevs

Log Message:
Add product ID for Broadcom BCM43455


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/sdmmc/sdmmcdevs

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



CVS commit: src/usr.bin/mkubootimage

2020-01-01 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Jan  1 11:48:36 UTC 2020

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.c

Log Message:
Avoid mixing signed/unsigned arguments to the ? operator.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/usr.bin/mkubootimage/mkubootimage.c

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



CVS commit: src/usr.sbin/fstyp

2020-01-01 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Wed Jan  1 11:46:43 UTC 2020

Modified Files:
src/usr.sbin/fstyp: hammer2.c

Log Message:
fstyp: Fix build failure on i386

http://releng.netbsd.org/b5reports/i386/commits-2020.01.html#2020.01.01.10.13.16
Explicitly cast to size_t.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/fstyp/hammer2.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

2020-01-01 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Wed Jan  1 11:21:16 UTC 2020

Modified Files:
src/sys/dev/fdt: dwcmmc_fdt.c
src/sys/dev/ic: dwc_mmc.c dwc_mmc_var.h

Log Message:
dwcmmc improvements:
 - Use mmcpwrseq resources if available
 - Only set 4- or 8-bit mode if specified in the dt properties
 - Add quirk for implementations with inverted power enable logic
 - Support switching signal voltage between 1.8V and 3.3V
 - Fix a clock divider issue on Rockchip SoCs


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/fdt/dwcmmc_fdt.c
cvs rdiff -u -r1.18 -r1.19 src/sys/dev/ic/dwc_mmc.c
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/ic/dwc_mmc_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/evbarm/conf

2020-01-01 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Wed Jan  1 11:18:13 UTC 2020

Modified Files:
src/sys/arch/evbarm/conf: GENERIC64

Log Message:
Attach mmcpwrseq resource earlier


To generate a diff of this commit:
cvs rdiff -u -r1.122 -r1.123 src/sys/arch/evbarm/conf/GENERIC64

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

2020-01-01 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Wed Jan  1 11:17:45 UTC 2020

Modified Files:
src/sys/arch/evbarm/conf: GENERIC64

Log Message:
+ rk3399-pinebook-pro.dts


To generate a diff of this commit:
cvs rdiff -u -r1.121 -r1.122 src/sys/arch/evbarm/conf/GENERIC64

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/dts

2020-01-01 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Wed Jan  1 11:16:15 UTC 2020

Added Files:
src/sys/arch/arm/dts: rk3399-pinebook-pro.dts

Log Message:
Add Pinebook Pro dts, from Manjaro Linux.

https://gitlab.manjaro.org/tsys/linux-pinebook-pro/blob/877ca0e7283596f37845de50dc36bff5b88b91e1/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/arch/arm/dts/rk3399-pinebook-pro.dts

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



CVS commit: src/sys/arch

2020-01-01 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Wed Jan  1 10:36:43 UTC 2020

Modified Files:
src/sys/arch/amd64/conf: ALL GENERIC XEN3_DOM0
src/sys/arch/i386/conf: ALL GENERIC

Log Message:
add aq(4)


To generate a diff of this commit:
cvs rdiff -u -r1.134 -r1.135 src/sys/arch/amd64/conf/ALL
cvs rdiff -u -r1.552 -r1.553 src/sys/arch/amd64/conf/GENERIC
cvs rdiff -u -r1.169 -r1.170 src/sys/arch/amd64/conf/XEN3_DOM0
cvs rdiff -u -r1.478 -r1.479 src/sys/arch/i386/conf/ALL
cvs rdiff -u -r1.1217 -r1.1218 src/sys/arch/i386/conf/GENERIC

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



CVS commit: src/usr.bin/mkubootimage

2020-01-01 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Jan  1 10:35:10 UTC 2020

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.c

Log Message:
Adjust image size appropriately when using update_image

OK jmcneill


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/usr.bin/mkubootimage/mkubootimage.c

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



CVS commit: src/doc

2020-01-01 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Wed Jan  1 10:18:39 UTC 2020

Modified Files:
src/doc: CHANGES

Log Message:
note aq(4)


To generate a diff of this commit:
cvs rdiff -u -r1.2628 -r1.2629 src/doc/CHANGES

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



CVS commit: src/sys/modules

2020-01-01 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Wed Jan  1 10:13:16 UTC 2020

Modified Files:
src/sys/modules: Makefile
Added Files:
src/sys/modules/if_aq: Makefile if_aq.ioconf

Log Message:
Add module build for aq(4)


To generate a diff of this commit:
cvs rdiff -u -r1.233 -r1.234 src/sys/modules/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/modules/if_aq/Makefile \
src/sys/modules/if_aq/if_aq.ioconf

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



CVS commit: src

2020-01-01 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Wed Jan  1 10:11:21 UTC 2020

Modified Files:
src/distrib/sets/lists/man: mi
src/share/man/man4: Makefile
src/sys/dev/pci: files.pci
Added Files:
src/share/man/man4: aq.4
src/sys/dev/pci: if_aq.c

Log Message:
add support Aquantia AQC seriese 10G network adapters.

this driver is based on the FreeBSD version 
https://github.com/Aquantia/aqtion-freebsd ,
but drastically rewritten for NetBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.1667 -r1.1668 src/distrib/sets/lists/man/mi
cvs rdiff -u -r1.692 -r1.693 src/share/man/man4/Makefile
cvs rdiff -u -r0 -r1.1 src/share/man/man4/aq.4
cvs rdiff -u -r1.418 -r1.419 src/sys/dev/pci/files.pci
cvs rdiff -u -r0 -r1.1 src/sys/dev/pci/if_aq.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

2020-01-01 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Wed Jan  1 10:06:41 UTC 2020

Modified Files:
src/sys/dev/pci: pcidevs.h pcidevs_data.h

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.1382 -r1.1383 src/sys/dev/pci/pcidevs.h
cvs rdiff -u -r1.1381 -r1.1382 src/sys/dev/pci/pcidevs_data.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

2020-01-01 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Wed Jan  1 10:05:55 UTC 2020

Modified Files:
src/sys/dev/pci: pcidevs

Log Message:
add Aquantia AQC 10G network adapters


To generate a diff of this commit:
cvs rdiff -u -r1.1394 -r1.1395 src/sys/dev/pci/pcidevs

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



CVS commit: src/sys/net

2020-01-01 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Wed Jan  1 10:04:37 UTC 2020

Modified Files:
src/sys/net: ethertypes.h

Log Message:
Add the ETHERTYPE_QINQ for 802.1ad VLAN stacking


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/net/ethertypes.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/hid

2020-01-01 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Jan  1 09:40:17 UTC 2020

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

Log Message:
Fix small read overflows when parsing HID tables. Noticed by kASan the
other day while I was playing with vHCI.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/hid/hid.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/broadcom

2020-01-01 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Jan  1 09:35:50 UTC 2020

Modified Files:
src/sys/arch/arm/broadcom: bcm283x_platform.c

Log Message:
The DMA range doesn't cover all of memory on the bcm2711 (rpi4) - it
covers (most of) the first 1GB.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/arm/broadcom/bcm283x_platform.c

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



CVS commit: src/sys/sys

2020-01-01 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Jan  1 09:33:19 UTC 2020

Modified Files:
src/sys/sys: systm.h

Log Message:
Fix build for non-__HAVE_UCAS_FULL platforms where the symbol dance for
assembler functions isn't needed.

Suggestion from maxv.  Thanks.


To generate a diff of this commit:
cvs rdiff -u -r1.291 -r1.292 src/sys/sys/systm.h

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



CVS commit: src/usr.sbin/fstyp

2020-01-01 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Wed Jan  1 09:17:27 UTC 2020

Modified Files:
src/usr.sbin/fstyp: fstyp.c

Log Message:
fstyp: Add HAMMER1 multi-volume support (missed in "fstyp: Add HAMMER1/2 
support")

taken-from: DragonFlyBSD


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/usr.sbin/fstyp/fstyp.c

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



CVS commit: src/sys/compat/netbsd32

2020-01-01 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Jan  1 09:17:45 UTC 2020

Modified Files:
src/sys/compat/netbsd32: netbsd32_compat_43.c

Log Message:
Fix sizeof mismatch in copyin. This leads to a user-triggerable stack
overflow. On my test build at least, by luck, the compiler orders the
variables in a way that the overflow hits only local structures which
haven't yet been initialized and used, so the overflow is harmless.

Very easily seeable with kASan - just invoke the syscall from a 32bit
binary.


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/sys/compat/netbsd32/netbsd32_compat_43.c

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



CVS commit: src/usr.sbin/fstyp

2020-01-01 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Wed Jan  1 09:08:52 UTC 2020

Modified Files:
src/usr.sbin/fstyp: fstyp.c fstyp.h

Log Message:
fstyp: Cleanup and minor sync up with FreeBSD/DragonFlyBSD


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/usr.sbin/fstyp/fstyp.c
cvs rdiff -u -r1.7 -r1.8 src/usr.sbin/fstyp/fstyp.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/usb

2020-01-01 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Jan  1 09:08:28 UTC 2020

Modified Files:
src/sys/dev/usb: ucycom.c

Log Message:
Fix buffer overflows: validate the lengths at attach time, given that they
are apparently not supposed to be variable. Drop sc_ilen since it is
unused.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/dev/usb/ucycom.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/usb

2020-01-01 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Jan  1 09:05:03 UTC 2020

Modified Files:
src/sys/dev/usb: uhid.c

Log Message:
Fix buffer overflows. Also add missing mutex_exit.


To generate a diff of this commit:
cvs rdiff -u -r1.110 -r1.111 src/sys/dev/usb/uhid.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/usb

2020-01-01 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Jan  1 09:03:00 UTC 2020

Modified Files:
src/sys/dev/usb: uthum.c

Log Message:
Fix buffer overflows. sc_{o,f}len are controlled by the USB device. By
crafting the former the device can leak stack data. By crafting the latter
the device can overwrite the stack. The combination of the two means the
device can ROP the kernel and obtain code execution (demonstrated with an
actual exploit over vHCI).

Truncate the lengths to the size of the buffers, and also drop sc_ilen
since it is unused. Patch tested with vHCI+kASan.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/usb/uthum.c

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



CVS commit: src/usr.sbin/fstyp

2020-01-01 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Wed Jan  1 08:56:41 UTC 2020

Modified Files:
src/usr.sbin/fstyp: Makefile fstyp.8 fstyp.c fstyp.h
Added Files:
src/usr.sbin/fstyp: hammer.c hammer2.c hammer2_disk.h hammer_disk.h

Log Message:
fstyp: Add HAMMER1/2 support

FreeBSD has recently imported HAMMER1/2 support from DragonFlyBSD,
so why not in NetBSD as well.

taken-from: DragonFlyBSD


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/usr.sbin/fstyp/Makefile
cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/fstyp/fstyp.8
cvs rdiff -u -r1.7 -r1.8 src/usr.sbin/fstyp/fstyp.c
cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/fstyp/fstyp.h
cvs rdiff -u -r0 -r1.1 src/usr.sbin/fstyp/hammer.c \
src/usr.sbin/fstyp/hammer2.c src/usr.sbin/fstyp/hammer2_disk.h \
src/usr.sbin/fstyp/hammer_disk.h

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