OpenBSD cvs log

created 2018-11-29T16:00:01Z
begin 2018-05-22T00:00:00Z
end 2018-05-23T00:00:00Z
path src/sys
commits 11

date 2018-05-22T01:41:15Z
author mlarkin
files src/sys/dev/acpi/acpithinkpad.c log diff annotate
message acpithinkpad(4): add port replicator indicator sensor

Note: the sensor will report state UNKNOWN until at least one port
replicator event (docked / undocked) is received.

Diff from Tobias Tschinkowitz, thanks.

ok stsp@. deraadt@ also ok'ed an earlier version of the diff

date 2018-05-22T02:13:42Z
author guenther
files src/sys/arch/alpha/alpha/machdep.c log diff annotate
src/sys/arch/amd64/amd64/machdep.c log diff annotate
src/sys/arch/hppa/hppa/machdep.c log diff annotate
src/sys/arch/mips64/mips64/sendsig.c log diff annotate
src/sys/arch/sparc64/sparc64/machdep.c log diff annotate
message Delete antique sigdebug definitions

ok kettenis@

date 2018-05-22T06:33:35Z
author guenther
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message Factor out the common FPU handling from vcpu_run_{vmx,svm}() into
vmm_fpu{restore,save}()

ok mlarkin@

date 2018-05-22T09:51:01Z
author mpi
files src/sys/kern/uipc_syscalls.c log diff annotate
message Prevent NET_LOCK() recursion when releasing the last `fp' reference.

ok bluhm@, visa@

date 2018-05-22T10:53:47Z
author mpi
files src/sys/dev/pckbc/pckbd.c log diff annotate
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@

date 2018-05-22T12:52:14Z
author helg
files src/sys/miscfs/fuse/fuse_lookup.c log diff annotate
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@

date 2018-05-22T15:55:30Z
author guenther
files src/sys/arch/amd64/amd64/acpi_wakecode.S log diff annotate
src/sys/arch/amd64/amd64/locore0.S log diff annotate
src/sys/arch/amd64/amd64/mptramp.S log diff annotate
src/sys/arch/amd64/include/specialreg.h log diff annotate
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@

date 2018-05-22T18:33:41Z
author cheloha
files src/sys/kern/kern_time.c log diff annotate
message nanosleep: ensure tv_nsec input is on [0, 1000000000)

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@

date 2018-05-22T19:15:22Z
author cheloha
files src/sys/kern/kern_event.c log diff annotate
message kevent: correctly check that timeout's nanoseconds are on [0, 1000000000)

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@

date 2018-05-22T20:49:03Z
author kettenis
files src/sys/dev/pci/drm/i915/i915_drv.c log diff annotate
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@

date 2018-05-22T21:17:13Z
author kettenis
files src/sys/dev/acpi/sdhc_acpi.c log diff annotate
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@