CVS: cvs.openbsd.org: src

2018-05-22 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/05/23 00:45:20

Modified files:
sys/arch/arm64/arm64: pmap.c 

Log message:
Remove unused pmap_steal_memory_implementation().  It doesn't actually work
and implementing this interface only really makes sense for architectures
that use a direct map.

ok patrick@, visa@



CVS: cvs.openbsd.org: src

2018-05-22 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2018/05/22 23:37:01

Modified files:
sys/arch/amd64/amd64: genassym.cf 
sys/arch/amd64/include: cpu.h specialreg.h 

Log message:
Move CR4_DEFAULT to specialreg.h where the CR4_* values are defined

ok mlarkin@



CVS: cvs.openbsd.org: src

2018-05-22 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2018/05/22 20:24:58

Modified files:
sys/dev/pci/drm/radeon: cik.c evergreen.c r600.c si.c 

Log message:
Add back a local change to prevent interrupt handlers claiming an
interrupt when it is shared by other devices.

Fixes a regression reported by nigel@ where USB stopped working after
the radeondrm update on a machine where ohci shared an interrupt with
radeondrm.



CVS: cvs.openbsd.org: src

2018-05-22 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2018/05/22 20:19:34

Modified files:
usr.sbin/vmd   : i8253.c 

Log message:
vmd(8): revert r1.23 (unlatched PIT reads), this made time go too fast on
some machines. Will investigate and commit a proper fix later.



CVS: cvs.openbsd.org: src

2018-05-22 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/05/22 15:17:13

Modified files:
sys/dev/acpi   : sdhc_acpi.c 

Log message:
Call acpi_attach_deps() for the child devices before attempting to power
them on.  Prevents a panic on the AZW Z83-S that is somewhat buggy and
checks whether the GPO3 controller is available and then pokes a pin on
GPO2.  It shouldn't do that but we should make sure all the devices that
it depends on attach first anyway.

ok patrick@



CVS: cvs.openbsd.org: src

2018-05-22 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/05/22 14:49:03

Modified files:
sys/dev/pci/drm/i915: i915_drv.c 

Log message:
Turns out lucky me picked the Asus T100HA to implement the heuristic to
rotate the inteldrm(4) framebuffer console.  And judging from (somewhat)
recent commits to Linux, this happens to be the only machine where the
display needs to be rotated counterclockwise.  So change the heuristic to
rotate clockwise and add a quirk for the Asus T100HA.

ok stsp@, mlarkin@, jsg@



CVS: cvs.openbsd.org: src

2018-05-22 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2018/05/22 13:15:22

Modified files:
regress/sys/kern/kqueue: Makefile kqueue-timer.c main.c main.h 
sys/kern   : kern_event.c 

Log message:
kevent: correctly check that timeout's nanoseconds are on [0, 10)

Validate the input with timespecfix before truncating to a timeval.
timespecfix does not round, so we need to to it by hand after validation.

FreeBSD and NetBSD check the input with this range, we ought to as well.

Also add a regression test for this case.

ok tb@



CVS: cvs.openbsd.org: src

2018-05-22 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2018/05/22 12:56:33

Modified files:
usr.bin/tcpbench: tcpbench.c 

Log message:
drop unnecessary timerclear; tv_sec & tv_usec are assigned immediately

>From Nan Xiao

ok tb@



CVS: cvs.openbsd.org: src

2018-05-22 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2018/05/22 12:33:41

Modified files:
regress/sys/kern/nanosleep: Makefile nanosleep.c 
sys/kern   : kern_time.c 

Log message:
nanosleep: ensure tv_nsec input is on [0, 10)

Instead of converting timespec -> timeval and truncating the input,
check with timespecfix and use tstohz(9) for the tsleep.

All other contemporary systems check this correctly.

Also add a regression test for this case.

ok tb@



CVS: cvs.openbsd.org: src

2018-05-22 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2018/05/22 09:55:30

Modified files:
sys/arch/amd64/amd64: acpi_wakecode.S locore0.S mptramp.S 
sys/arch/amd64/include: specialreg.h 

Log message:
Define CR0_DEFAULT with our default CR0_* flags for various .S files.
Replace a hex constant with the correct CR0_* define in mptramp.S.
Clean up lots and lots of whitespace glitches.

no binary change.
ok mlarkin@



CVS: cvs.openbsd.org: src

2018-05-22 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2018/05/22 09:01:16

Modified files:
regress/usr.sbin/syslogd: args-client-tcp-close.pl 
  args-client-tcp-deferred.pl 
  args-client-tcp-error.pl 
  args-client-tls-close.pl 
  args-client-tls-error.pl 
  args-client-tls-tcp.pl 
  args-selector-syslog.pl 
  args-sendsyslog-dropped.pl 
  args-server-tcp-close.pl 
  args-server-tcp-error.pl 
  args-server-tcp-reconnect.pl 
  args-server-tcp-sendback.pl 
  args-server-tls-close.pl 
  args-server-tls-error.pl 
  args-server-tls-reconnect.pl 
  args-server-tls-sendback.pl 
  args-server-tls-tcp.pl 
  args-sync-tcp.pl funcs.pl syslogd.pl 

Log message:
In the sendsyslog-dropped test the client has to write a log message
before syslogd is running.  To fix a race in regress, delay the
syslogd startup until the message has been written.  For debugging
add the process class to all die messages.



CVS: cvs.openbsd.org: src

2018-05-22 Thread Helg Bredow
CVSROOT:/cvs
Module name:src
Changes by: h...@cvs.openbsd.org2018/05/22 06:52:14

Modified files:
sys/miscfs/fuse: fuse_lookup.c 
lib/libfuse: fuse.c fuse_ops.c fuse_private.h 

Log message:
Implement support for libfuse use_ino option. This returns the file
system's ino for VOP_GETATTR(9) and VOP_READDIR(9) rather than the
internally generated fuse ino.

ok mpi@



CVS: cvs.openbsd.org: src

2018-05-22 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2018/05/22 04:53:47

Modified files:
sys/dev/pckbc  : pckbd.c 

Log message:
Do not overwrite `table' in the non-translating case.

This ensures the keyboard is using the expected scancode.

>From miod@, problem also noticed by Markus Hennecke, ok otto@



CVS: cvs.openbsd.org: src

2018-05-22 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2018/05/22 03:51:01

Modified files:
sys/kern   : uipc_syscalls.c 

Log message:
Prevent NET_LOCK() recursion when releasing the last `fp' reference.

ok bluhm@, visa@



CVS: cvs.openbsd.org: www

2018-05-22 Thread Darren Tucker
CVSROOT:/cvs
Module name:www
Changes by: dtuc...@cvs.openbsd.org 2018/05/22 03:20:06

Modified files:
build/openssh  : releases.pl 
openssh: releasenotes.html 

Log message:
Mark up ssh-add(1) links too.



CVS: cvs.openbsd.org: src

2018-05-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2018/05/22 02:49:12

Modified files:
usr.bin/tmux   : format.c tmux.1 

Log message:
Allow escaping , and } with # in #{}; GitHub issue 1332.



CVS: cvs.openbsd.org: www

2018-05-22 Thread Stuart Henderson
CVSROOT:/cvs
Module name:www
Changes by: st...@cvs.openbsd.org   2018/05/22 02:43:22

Modified files:
faq: current.html 

Log message:
mention php default version switch