OpenBSD cvs log

created 2020-02-07T01:56:51Z
begin 2020-01-21T00:00:00Z
end 2020-01-22T00:00:00Z
path src/sys
commits 14

date 2020-01-21T00:18:13Z
author cheloha
files src/sys/nfs/nfs_kq.c log diff annotate
src/sys/nfs/nfs_socket.c log diff annotate
message sys/nfs: misc. tsleep(9) -> tsleep_nsec(9); ok mpi@

date 2020-01-21T00:21:55Z
author kettenis
files src/sys/dev/ofw/ofw_misc.c log diff annotate
src/sys/dev/ofw/ofw_misc.h log diff annotate
message Add the beginnings of an nvmem "framework".

ok patrick@

date 2020-01-21T01:40:46Z
author tedu
files src/sys/arch/amd64/conf/GENERIC log diff annotate
message remove a few disabled drivers that don't compile and seem unlikely to
become interesting in the future.
ok deraadt krw

date 2020-01-21T01:41:47Z
author tedu
files src/sys/arch/macppc/conf/GENERIC log diff annotate
src/sys/arch/macppc/conf/files.macppc log diff annotate
src/sys/arch/macppc/dev/Attic/esp.c log diff annotate
message remove unfinished macppc esp driver.
ok deraadt krw

date 2020-01-21T02:01:50Z
author mlarkin
files src/sys/arch/amd64/amd64/ipi.c log diff annotate
message Whitespace/style fixes. No code change.

date 2020-01-21T02:59:37Z
author mlarkin
files src/sys/arch/amd64/amd64/ipifuncs.c log diff annotate
message Remove some prototypes under #ifdef HIBERNATE that we don't use anymore.

No functional change.

date 2020-01-21T03:06:39Z
author mlarkin
files src/sys/arch/amd64/amd64/trap.c log diff annotate
message Whitespace fixes. No code change.

date 2020-01-21T06:37:24Z
author claudio
files src/sys/dev/pci/piixpm.c log diff annotate
src/sys/dev/pci/piixreg.h log diff annotate
message Fix support for additional I2C busses in piixpm(4) for older SB800 SMBus
controllers. Devices where SB800_PMREG_SMB0SELEN returns 0 will only use
the first port.

Also clean up the PCI_PRODUCT_AMD_HUDSON2_SMB detection a bit more.
The PCI ID 1022:780b is used by AMD Bolton FCH and AMD Family 16h
model 30h-3fh. The problem is the former uses old register layout while
the latter uses the new FCH layout. Make sure AMD Bolton FCH uses the
old code path.

Finally fix a confusion about the IRQ / SMI detection. The logic was
reversed since if the bit is 0 then SMI is used.

This should fix attaching sensors 4 times on old AMD machines.
OK kettenis@

date 2020-01-21T07:43:48Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/soc15.c log diff annotate
message Enable mmhub power gating on picasso. Matches linux 4.20.
mmhub on soc15 is a memory controller hub for sdma, uvd and vce.

ok kettenis@

date 2020-01-21T15:20:47Z
author visa
files src/sys/kern/kern_fork.c log diff annotate
src/sys/kern/kern_synch.c log diff annotate
src/sys/kern/syscalls.master log diff annotate
src/sys/sys/proc.h log diff annotate
message Make __thrsleep(2) and __thrwakeup(2) MP-safe

Threads in __thrsleep(2) are tracked using queues, one queue per each
process for synchronization between threads of a process, and one
system-wide queue for the special ident -1 handling. Each of these
queues has an associated rwlock that serializes access.

The queue lock is released when calling copyin() and copyout() in
thrsleep(). This preserves the existing behaviour where a blocked copy
operation does not prevent other threads from making progress.

Tested by anton@, claudio@
OK anton@, claudio@, tedu@, mpi@

date 2020-01-21T15:21:41Z
author visa
files src/sys/kern/init_sysent.c log diff annotate
src/sys/kern/syscalls.c log diff annotate
message regen

date 2020-01-21T15:21:42Z
author visa
files src/sys/sys/syscall.h log diff annotate
src/sys/sys/syscallargs.h log diff annotate
message regen

date 2020-01-21T16:16:22Z
author mpi
files src/sys/arch/amd64/amd64/conf.c log diff annotate
src/sys/arch/arm/arm/conf.c log diff annotate
src/sys/arch/arm64/arm64/conf.c log diff annotate
src/sys/arch/i386/i386/conf.c log diff annotate
src/sys/arch/landisk/landisk/conf.c log diff annotate
src/sys/arch/loongson/loongson/conf.c log diff annotate
message Import dt(4) a driver and framework for Dynamic Profiling.

The design is fairly simple: events, in the form of descriptors on a
ring, are being produced in any kernel context and being consumed by
a userland process reading /dev/dt.

Code and hooks are all guarded under '#if NDT > 0' so this commit
shouldn't introduce any change as long as dt(4) is disable in GENERIC.

ok kettenis@, visa@, jasper@, deraadt@

date 2020-01-21T16:16:23Z
author mpi
files src/sys/arch/luna88k/luna88k/conf.c log diff annotate
src/sys/arch/macppc/macppc/conf.c log diff annotate
src/sys/arch/octeon/octeon/conf.c log diff annotate
src/sys/arch/sgi/sgi/conf.c log diff annotate
src/sys/arch/sparc64/sparc64/conf.c log diff annotate
src/sys/conf/GENERIC log diff annotate
src/sys/conf/files log diff annotate
src/sys/dev/dt/dt_dev.c log diff annotate
src/sys/dev/dt/dt_prov_profile.c log diff annotate
src/sys/dev/dt/dt_prov_static.c log diff annotate
src/sys/dev/dt/dt_prov_syscall.c log diff annotate
src/sys/dev/dt/dtvar.h log diff annotate
src/sys/kern/kern_clock.c log diff annotate
src/sys/kern/kern_sched.c log diff annotate
src/sys/kern/kern_synch.c log diff annotate
src/sys/kern/sched_bsd.c log diff annotate
src/sys/sys/conf.h log diff annotate
src/sys/sys/syscall_mi.h log diff annotate
src/sys/sys/tracepoint.h log diff annotate
message Import dt(4) a driver and framework for Dynamic Profiling.

The design is fairly simple: events, in the form of descriptors on a
ring, are being produced in any kernel context and being consumed by
a userland process reading /dev/dt.

Code and hooks are all guarded under '#if NDT > 0' so this commit
shouldn't introduce any change as long as dt(4) is disable in GENERIC.

ok kettenis@, visa@, jasper@, deraadt@