CVS commit: src/distrib/sets/lists/xdebug

2018-11-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Nov 14 08:44:34 UTC 2018

Added Files:
src/distrib/sets/lists/xdebug: md.iyonix

Log Message:
Add debug files for recent xserver addition


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/distrib/sets/lists/xdebug/md.iyonix

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



CVS commit: src/sys/arch/hppa/hppa

2018-11-14 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Nov 14 10:58:04 UTC 2018

Modified Files:
src/sys/arch/hppa/hppa: fpu.c machdep.c

Log Message:
Some fixes for QEMU/hppa.

Don't call desidhash_l on pcxl2 as it doesn't support it.  QEMU emulates
this cpu and would trap on illegal instruction for the diag in desidhash_l

Allow a FPU to be missing... more fixes are likely here.

QEMU doesn't set C bit properly yet


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/hppa/hppa/fpu.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/hppa/hppa/machdep.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/evbarm/conf

2018-11-14 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Wed Nov 14 11:02:52 UTC 2018

Modified Files:
src/sys/arch/evbarm/conf: std.generic

Log Message:
Define __HAVE_PCI_MSI_MSIX


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/evbarm/conf/std.generic

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



CVS commit: src/sbin/fdisk

2018-11-14 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Wed Nov 14 12:05:29 UTC 2018

Modified Files:
src/sbin/fdisk: fdisk.c

Log Message:
In validate_bootsel, the code assumed that arr[j][i] can be accessed
with something like arr[0][j*ARRAYWIDTH+i]. gcc no longer allows such
hacks and discards the code silently because of undefined behaviour.


To generate a diff of this commit:
cvs rdiff -u -r1.155 -r1.156 src/sbin/fdisk/fdisk.c

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



CVS commit: src/external/cddl/osnet/sys/sys

2018-11-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed Nov 14 17:09:08 UTC 2018

Modified Files:
src/external/cddl/osnet/sys/sys: isa_defs.h

Log Message:
Define _LP64 or _ILP32 for all architectures.

Rather than write out a table for each architecture, rely on the C
compiler to define _LP64 for 64-bit ones, on the assumption that
anything not LP64 is ILP32, and on CTASSERTs to verify this
assumption so that if it's wrong it'll fail safely with a noisy build
failure.

Gives zfs half a chance of building on, e.g., powerpc.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/cddl/osnet/sys/sys/isa_defs.h

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



CVS commit: src/sys/compat

2018-11-14 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Wed Nov 14 17:51:37 UTC 2018

Modified Files:
src/sys/compat/linux/common: linux_socket.c
src/sys/compat/netbsd32: netbsd32_socket.c

Log Message:
Apply the recent fixes to {send,recv}mmsg() to their compat variants.


To generate a diff of this commit:
cvs rdiff -u -r1.142 -r1.143 src/sys/compat/linux/common/linux_socket.c
cvs rdiff -u -r1.48 -r1.49 src/sys/compat/netbsd32/netbsd32_socket.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/sliplogin

2018-11-14 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Wed Nov 14 18:28:18 UTC 2018

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

Log Message:
Sort sections. New sentence, new line.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/usr.sbin/sliplogin/sliplogin.8

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



CVS commit: src/sys/dev/nvmm/x86

2018-11-14 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Nov 14 19:14:40 UTC 2018

Modified Files:
src/sys/dev/nvmm/x86: nvmm_x86_svm.c

Log Message:
Take RAX from the VMCB and not the VCPU state, the latter is not
synchronized and contains old values.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/nvmm/x86/nvmm_x86_svm.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/aarch64/include

2018-11-14 Thread Jonathan A. Kollasch
Module Name:src
Committed By:   jakllsch
Date:   Wed Nov 14 20:03:29 UTC 2018

Modified Files:
src/sys/arch/aarch64/include: param.h

Log Message:
Switch to NKMEMPAGES_MAX_UNLIMITED.

This aligns aarch64 with our other modern 64-bit ports.  Significantly
improves file caching utilization on aarch64 systems with copious RAM.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/aarch64/include/param.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/ia64

2018-11-14 Thread Sean Cole
Module Name:src
Committed By:   scole
Date:   Wed Nov 14 20:13:14 UTC 2018

Modified Files:
src/sys/arch/ia64: TODO

Log Message:
add more items


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/ia64/TODO

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

2018-11-14 Thread Sean Cole
Module Name:src
Committed By:   scole
Date:   Wed Nov 14 21:10:59 UTC 2018

Modified Files:
src/sys/arch/ia64/ia64: locore.S machdep.c syscall.c vm_machdep.c
src/sys/arch/ia64/include: md_var.h proc.h

Log Message:
- When forking, use own register stack for each thread
- For UAREA, arrange layout same as FreeBSD for now to hopefully
  ease porting woes.  add some related macros
  locore.S is incorrectly assuming same layout and seems painful
  to change bspstore in startup
- use ia64_init_return same as FreeBSD
- change some "printf" to "panic" for incompleted items

context switching is still broken but maybe less so


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/ia64/ia64/locore.S
cvs rdiff -u -r1.38 -r1.39 src/sys/arch/ia64/ia64/machdep.c
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/ia64/ia64/syscall.c
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/ia64/ia64/vm_machdep.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/ia64/include/md_var.h
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/ia64/include/proc.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/arm/cortex

2018-11-14 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Thu Nov 15 00:01:38 UTC 2018

Modified Files:
src/sys/arch/arm/cortex: gicv3.c

Log Message:
Instead of disabling preemption, set the binary point field to the minimum 
supported value


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/arm/cortex/gicv3.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

2018-11-14 Thread Emmanuel Dreyfus
Module Name:src
Committed By:   manu
Date:   Thu Nov 15 02:35:23 UTC 2018

Modified Files:
src/sys/dev/usb: usb_quirks.c usb_quirks.h usbdi.c

Log Message:
Workaround NBP PN533 USB toggle bit bugs

The PN533 is known to mishandle the USB toggle bit, causing replies to
be filtered out by the host controller. As a result, the kernel sees
a timed out operation.

Vendor errata suggests that userland applications should detect the
situation on read timeout, and write a dumy frame to resync the toggle bit.
NFC Tools's libnfc does just that, but in order to succeed, the dummy
frame write must not be reported as timed out.

We therefore introduce a new USB quirk for devices known to miss output
acks. When that occur, we pretend that the operation succeeded, leaving
userland the duty to check that everything went okay.

This workaround lets libnfc recover from interrupted communications
without the need te reboot the system.


To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/sys/dev/usb/usb_quirks.c
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/usb/usb_quirks.h
cvs rdiff -u -r1.178 -r1.179 src/sys/dev/usb/usbdi.c

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



CVS commit: src/lib/libcurses

2018-11-14 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Thu Nov 15 03:17:51 UTC 2018

Modified Files:
src/lib/libcurses: addbytes.c

Log Message:
_cursesi_addbyte - fix function comment after what looks like an
editing accident.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/lib/libcurses/addbytes.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/include

2018-11-14 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Thu Nov 15 03:50:22 UTC 2018

Modified Files:
src/sys/arch/x86/include: specialreg.h

Log Message:
 Add MAWAU (for BND{LD,ST}X instruction) from the latest Intel SDM.


To generate a diff of this commit:
cvs rdiff -u -r1.131 -r1.132 src/sys/arch/x86/include/specialreg.h

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



CVS commit: src/sbin/ifconfig

2018-11-14 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Thu Nov 15 04:36:46 UTC 2018

Modified Files:
src/sbin/ifconfig: ifconfig.c

Log Message:
ifconfig: add linkstr/-linkstr to the help message


To generate a diff of this commit:
cvs rdiff -u -r1.236 -r1.237 src/sbin/ifconfig/ifconfig.c

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



CVS commit: src/sbin/ifconfig

2018-11-14 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Thu Nov 15 04:37:20 UTC 2018

Modified Files:
src/sbin/ifconfig: ifconfig.8

Log Message:
Fix the format of ifconfig linkstr; it takes an argument


To generate a diff of this commit:
cvs rdiff -u -r1.115 -r1.116 src/sbin/ifconfig/ifconfig.8

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

2018-11-14 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Thu Nov 15 04:53:54 UTC 2018

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

Log Message:
- I misread ci_acpiid as ci_apicid... LAPIC ID is in ci_cpuid.
  Print it correctly.
- ci_initapicid(Initial APIC ID) is uint32_t, so use %u.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/x86/x86/procfs_machdep.c

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



CVS commit: src/external/cddl/osnet/dist/uts/common/fs/zfs

2018-11-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Nov 15 04:55:06 UTC 2018

Modified Files:
src/external/cddl/osnet/dist/uts/common/fs/zfs: vdev.c

Log Message:
"PRIu64", not llu, to print uint64_t.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 \
src/external/cddl/osnet/dist/uts/common/fs/zfs/vdev.c

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



CVS commit: src/external/cddl/osnet/sys/sys

2018-11-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Nov 15 04:55:26 UTC 2018

Modified Files:
src/external/cddl/osnet/sys/sys: proc.h

Log Message:
Omit unused definition with broken cpp conditional.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/cddl/osnet/sys/sys/proc.h

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



CVS commit: src/external/cddl/osnet/dist/uts/common/sys

2018-11-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Nov 15 04:55:17 UTC 2018

Modified Files:
src/external/cddl/osnet/dist/uts/common/sys: dtrace.h

Log Message:
Omit conflicting definition that breaks build on aarch64.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 \
src/external/cddl/osnet/dist/uts/common/sys/dtrace.h

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



CVS commit: src/external/cddl/osnet/dist/uts/common/fs/zfs

2018-11-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Nov 15 04:55:49 UTC 2018

Modified Files:
src/external/cddl/osnet/dist/uts/common/fs/zfs: zfs_vnops.c

Log Message:
Need  for mm_md_direct_mapped_phys.

It turns out this code always sees __HAVE_MM_MD_DIRECT_MAPPED_PHYS as
disabled on amd64, for reasons that I shall address forthwith, but it
is enabled on aarch64 and so the MKZFS=yes build breaks.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 \
src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c

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



CVS commit: src/external/cddl/osnet/dist/uts/common/fs/zfs

2018-11-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Nov 15 04:55:38 UTC 2018

Modified Files:
src/external/cddl/osnet/dist/uts/common/fs/zfs: spa_misc.c
src/external/cddl/osnet/dist/uts/common/fs/zfs/sys: spa_impl.h

Log Message:
Be consistent about _KERNEL vs _HARDKERNEL in zfs.

As it happens, on x86 both _HARDKERNEL and _KERNEL get defined; see
the conditional in sys/rump/Makefile.rump that _refrains_ from
defining _RUMPKERNEL on x86.

So the only version of this code that has been tested is the one with
all of it included.  But on, e.g., aarch64, we do not get _HARDKERNEL
here, and the code fails to build because some things use the field
struct spa::spa_deadman_cycid under _KERNEL when it is declared only
under _HARDKERNEL.

If there's a reason _not_ to use this in rump -- and it's not obvious
to me why -- then all access to the field needs to agree to use
_HARDKERNEL.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/cddl/osnet/dist/uts/common/fs/zfs/spa_misc.c
cvs rdiff -u -r1.2 -r1.3 \
src/external/cddl/osnet/dist/uts/common/fs/zfs/sys/spa_impl.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/aarch64/include

2018-11-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Nov 15 04:56:52 UTC 2018

Modified Files:
src/sys/arch/aarch64/include: param.h

Log Message:
Respect the __HIDE_DELAY kludge like on other ports.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/aarch64/include/param.h

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



CVS commit: src/sys/modules/arch/powerpc/powerpc-booke

2018-11-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Nov 15 04:57:00 UTC 2018

Modified Files:
src/sys/modules/arch/powerpc/powerpc-booke: bsd.powerpc-booke.mk

Log Message:
Include  before using ACTIVE_CC.  Fixes make errors.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/sys/modules/arch/powerpc/powerpc-booke/bsd.powerpc-booke.mk

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



CVS commit: src/sys

2018-11-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Nov 15 04:59:02 UTC 2018

Modified Files:
src/sys/arch/amd64/amd64: machdep.c
src/sys/arch/amd64/include: types.h
src/sys/arch/x86/x86: efi.c
src/sys/rump/librump/rumpkern/arch/generic: Makefile.inc
src/sys/rump/librump/rumpkern/arch/x86_64: Makefile.inc
Added Files:
src/sys/rump/librump/rumpkern/arch/generic: rump_generic_directmap.c

Log Message:
Make the direct-map API always available, but fail if KASAN or rump.

(Only for architectures that support it at all; on others,
__HAVE_MM_MD_DIRECT_MAPPED_PHYS/IO are still undefined and the
functions unimplemented.)

This gives modules like zfs an opportunity to use it.

While here, fix the one caller of mm_md_direct_mapped_phys that
ignored the return value (and make sure to call pmap_kremove/update
before uvm_km_free).


To generate a diff of this commit:
cvs rdiff -u -r1.321 -r1.322 src/sys/arch/amd64/amd64/machdep.c
cvs rdiff -u -r1.57 -r1.58 src/sys/arch/amd64/include/types.h
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/x86/x86/efi.c
cvs rdiff -u -r1.2 -r1.3 \
src/sys/rump/librump/rumpkern/arch/generic/Makefile.inc
cvs rdiff -u -r0 -r1.1 \
src/sys/rump/librump/rumpkern/arch/generic/rump_generic_directmap.c
cvs rdiff -u -r1.8 -r1.9 \
src/sys/rump/librump/rumpkern/arch/x86_64/Makefile.inc

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



CVS commit: src/tests/lib/libm

2018-11-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Nov 15 05:14:20 UTC 2018

Modified Files:
src/tests/lib/libm: t_cbrt.c

Log Message:
cbrtl_powl is xfail only if long double has more bits than double.


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

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



CVS commit: src/external/cddl/osnet/sys/sys

2018-11-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Nov 15 05:43:57 UTC 2018

Modified Files:
src/external/cddl/osnet/sys/sys: zfs_context.h

Log Message:
Use callout_halt, not callout_stop, for FreeBSD callout_drain shim.

Callers expect callout_drain will wait for it to complete if it has
fired.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/external/cddl/osnet/sys/sys/zfs_context.h

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



CVS commit: src/sys/external/bsd/drm2/pci

2018-11-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Nov 15 06:53:58 UTC 2018

Modified Files:
src/sys/external/bsd/drm2/pci: drm_pci.c

Log Message:
Don't try to interpret the second half of a 64-bit BAR as another one.

>From msaitoh@.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/external/bsd/drm2/pci/drm_pci.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/tprof/arch

2018-11-14 Thread Kengo NAKAHARA
Module Name:src
Committed By:   knakahara
Date:   Thu Nov 15 07:20:31 UTC 2018

Modified Files:
src/usr.sbin/tprof/arch: tprof_x86.c

Log Message:
tprof: Add silvermont, airmont support.

I tested on Atom C2758 (Rangeley).


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/tprof/arch/tprof_x86.c

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