OpenBSD cvs log

created 2019-05-08T04:05:18Z
begin 2017-12-18T00:00:00Z
end 2017-12-19T00:00:00Z
path src/sys
commits 19

date 2017-12-18T00:08:28Z
author patrick
files src/sys/dev/ic/bwfm.c log diff annotate
message Support setting the Cortex-A7 cores to active/passive mode and
fix up the code for the Cortex-R4 which works the same.

date 2017-12-18T05:51:53Z
author cheloha
files src/sys/kern/kern_time.c log diff annotate
src/sys/sys/_time.h log diff annotate
message Add the CLOCK_BOOTTIME clockid for use with clock_gettime(2)
and put it to use in userspace in lieu of the kern.boottime
sysctl.

Its absolute value is the time that has elapsed since the
system booted, i.e., the system uptime.

Use in top(1), w(1), and snmpd(8) eliminates a race with
settimeofday(2), adjtime(2), etc. inherent to deriving the
system uptime via the kern.boottime sysctl.

Product of a great deal of discussion/revision with jca@, tb@,
and guenther@.

ok tb@ jca@ guenther@ dlg@ mlarkin@ tom@

date 2017-12-18T09:13:47Z
author kettenis
files src/sys/dev/ofw/ofw_regulator.c log diff annotate
src/sys/dev/ofw/ofw_regulator.h log diff annotate
message Add support for enabling registered regulators. Make sure that we leave
regulators with a "regulator-always-on" property alone.

ok patrick@

date 2017-12-18T09:40:17Z
author mpi
files src/sys/net/rtsock.c log diff annotate
message Size for free(9).

From

date 2017-12-18T10:05:43Z
author mpi
files src/sys/kern/kern_rwlock.c log diff annotate
message Make rw_exit() always succeed after a panic.

Prevents a deadlock in if_downall() when rw_enter() succeed without
really grabbing the lock.

Reported by and ok phessler@

date 2017-12-18T10:07:55Z
author mpi
files src/sys/kern/uipc_socket.c log diff annotate
src/sys/miscfs/fifofs/fifo_vnops.c log diff annotate
src/sys/sys/socketvar.h log diff annotate
message Revert grabbing the socket lock in kqueue(2) filters.

This change exposed or created a situation where a CPU started to be
irresponsive while holding the KERNEL_LOCK(). These led to lockups and
even with MP_LOCKDEBUG it was not clear what happened to this CPU.

These situations have been experience by dhill@ with dcrwallet and jcs@
with syncthing. Both applications are written in Go and do kevent(2)
& networking across multiple threads.

date 2017-12-18T10:10:53Z
author mpi
files src/sys/kern/kern_event.c log diff annotate
src/sys/sys/event.h log diff annotate
message Revert support for multiple threads to enter kqueue_scan() in parallel.

It is not clear if this change is responsible for the lockups experienced
by dhill@ and jcs@ but since we're no longer grabbing the socket lock in
kqueue(2) filters there's no need for this change.

date 2017-12-18T10:13:45Z
author kettenis
files src/sys/dev/fdt/simplefb.c log diff annotate
message Map framebuffer into userland as non-cachable (but normal) memory. We still
map the framebuffer as device memory in the kernel. Using mismatched
memory attributes like this is discouraged (and we should probably fix this
at some point) but this particular case is well-defined and the potential
side-effects should not matter for thus use-case.

ok patrick@

date 2017-12-18T10:50:13Z
author kettenis
files src/sys/dev/fdt/Attic/axp20x.c log diff annotate
src/sys/dev/fdt/axppmic.c log diff annotate
src/sys/dev/fdt/files.fdt log diff annotate
message Add i2c interface code to the new axppmic(4) code and add support for the
AXP152 and AXP209 here as well. The AXP209 is extended to support
regulators and sensors. The ACIN and VBUS indicators are now exported as
sensors. Retire the old AXP152/AXP209 support code.

date 2017-12-18T10:51:24Z
author kettenis
files src/sys/arch/armv7/conf/GENERIC log diff annotate
message Enable RSB attachment for axppmic(4).

date 2017-12-18T12:53:33Z
author fcambus
files src/sys/arch/amd64/stand/libsa/diskprobe.c log diff annotate
src/sys/arch/amd64/stand/libsa/softraid_amd64.c log diff annotate
src/sys/arch/i386/stand/libsa/diskprobe.c log diff annotate
src/sys/arch/i386/stand/libsa/softraid_i386.c log diff annotate
message Add sizes for free() in libsa for amd64 and i386.

OK tom@, deraadt@

date 2017-12-18T16:33:37Z
author patrick
files src/sys/dev/ic/bwfm.c log diff annotate
src/sys/dev/ic/bwfmreg.h log diff annotate
message Pass scan type directly to the scan command instead of using the global
variable.

date 2017-12-18T16:44:49Z
author patrick
files src/sys/dev/ic/bwfm.c log diff annotate
message Pass the BSSID to the join command so that we connect to the AP that
we chose instead of any AP the firmware chooses based on the SSID.

date 2017-12-18T18:40:50Z
author patrick
files src/sys/dev/ic/bwfm.c log diff annotate
message Read RAM size for chips with SOCRAM like the BCM4334 on one of my
Intel machines.

date 2017-12-18T18:42:33Z
author patrick
files src/sys/dev/ic/bwfmreg.h log diff annotate
message Read RAM size for chips with SOCRAM like the BCM4334 on one of my
Intel machines.

date 2017-12-18T19:40:12Z
author kettenis
files src/sys/dev/fdt/files.fdt log diff annotate
message Use axppmic as a dependency instead of axppmic_rsb.

date 2017-12-18T20:03:48Z
author kettenis
files src/sys/arch/arm64/arm64/trap.c log diff annotate
message Generate SIGBUS/BUS_ADRALN when we see a PC Alignment Exception from userland.

ok patrick@

date 2017-12-18T20:21:06Z
author kettenis
files src/sys/dev/fdt/axppmic.c log diff annotate
message Add sensors for the AXP809.

date 2017-12-18T20:23:16Z
author kettenis
files src/sys/arch/armv7/conf/GENERIC log diff annotate
src/sys/arch/armv7/conf/RAMDISK log diff annotate
src/sys/dev/fdt/files.fdt log diff annotate
message Properly implement the rsb attribute and actually use it.