OpenBSD cvs log

created 2018-11-29T23:17:59Z
begin 2018-07-09T00:00:00Z
end 2018-07-10T00:00:00Z
path src/sys
commits 28

date 2018-07-09T07:50:28Z
author krw
files src/sys/nfs/nfsm_subs.h log diff annotate
message Nuke unused define 'nfsm_writereply()'.

ok beck@ deraadt@ guenther@ mpi@

date 2018-07-09T08:35:36Z
author guenther
files src/sys/arch/amd64/include/frameasm.h log diff annotate
message Use a slightly more efficient zeroing idiom when clearing GPRs

ok mlarkin@ mortimer@

date 2018-07-09T08:39:28Z
author mortimer
files src/sys/arch/amd64/amd64/aes_intel.S log diff annotate
message Add retguard macros to aes_intel.
ok sthen@

date 2018-07-09T08:46:30Z
author bluhm
files src/sys/kern/kern_malloc.c log diff annotate
message Make free(9) MP safe. It was wrong to set ku_indx to 0 after freeing
the memory in uvm. Another process could use the false 0 then. To
be on the safe side, protect all access to ku_indx and ku_pagecnt
with a mutex. Update ku_indx and ku_pagecnt before calling
uvm_km_free(). Update ksp after uvm_km_free() to keep accounting
correct.
tested by sthen@; OK mpi@ visa@ deraadt@

date 2018-07-09T09:24:22Z
author patrick
files src/sys/arch/armv7/marvell/mvmbus.c log diff annotate
src/sys/arch/armv7/marvell/mvmbusvar.h log diff annotate
message Add an API to add and delete windows in the mvmbus(4) controller. This
will be used by the PCIe controller to set up the memory regions for the
PCIe devices. Also export the PCIe IO and MEM address regions. These
will be used to setup the PCIe extents.

ok kettenis@

date 2018-07-09T09:51:43Z
author patrick
files src/sys/arch/arm/cortex/ampintc.c log diff annotate
src/sys/arch/arm/cortex/amptimer.c log diff annotate
src/sys/arch/arm/cortex/files.cortex log diff annotate
message Implement ampintcmsi(4) in ampintc(4) to support MSI. The GICv2M is an
extension to the GIC controller, which is represented as subnode in the
device tree. There can be multiple GICv2Ms, so it makes sense to attach
those to ampintc(4) as some kind of simplebus. The GICv2M is simply an
interrupt generator that can be used by PCIe devices to ring the door
bell. There is no need for further configuration, we only need to find
out which SPIs we are allowed to use for MSI and to register an edge
triggered interrupt on a (randomly) allocated SPI.

Implement support for interrupt types. The GIC only seems to support
level triggered active-high or egdge triggered low-to-high interrupts.
We currently always configure them to be level triggered, which is a
sane default for most controllers. Since MSI interupts on the GIC are
edge triggered, we need to be able to parse the type information and to
configure the interrupt correspondingly.

ok kettenis@

date 2018-07-09T09:53:06Z
author patrick
files src/sys/arch/arm/include/pci_machdep.h log diff annotate
src/sys/arch/armv7/include/pci_machdep.h log diff annotate
message Add PCI machdep headers based on the arm64 port.

ok kettenis@

date 2018-07-09T09:54:01Z
author patrick
files src/sys/arch/armv7/vexpress/files.vexpress log diff annotate
src/sys/arch/armv7/vexpress/pciecam.c log diff annotate
message Introduce pciecam(4), a driver for generic ECAM compatible PCI host
controllers.

ok kettenis@

date 2018-07-09T09:55:06Z
author patrick
files src/sys/arch/armv7/conf/GENERIC log diff annotate
src/sys/arch/armv7/conf/RAMDISK log diff annotate
message Enable ampintcmsi(4), pciecam(4) and PCIVERBOSE.

ok kettenis@

date 2018-07-09T09:58:40Z
author patrick
files src/sys/arch/armv7/conf/GENERIC log diff annotate
src/sys/arch/armv7/conf/RAMDISK log diff annotate
src/sys/arch/armv7/marvell/files.marvell log diff annotate
src/sys/arch/armv7/marvell/mvpcie.c log diff annotate
message dd mvpcie(4), a driver for the Marvell ARMADA 38x PCIe controller,
as implemented in the SolidRun Clearfog and Turris Omnia.

ok kettenis@

date 2018-07-09T10:02:28Z
author patrick
files src/sys/arch/armv7/conf/GENERIC log diff annotate
src/sys/arch/armv7/conf/RAMDISK log diff annotate
message Add a few common PCIe devices based on the arm64 kernel configs.

date 2018-07-09T10:46:15Z
author jmatthew
files src/sys/dev/pci/files.pci log diff annotate
src/sys/dev/pci/if_bnxt.c log diff annotate
src/sys/dev/pci/if_bnxtreg.h log diff annotate
message Add bnxt(4), a driver for Broadcom NetXtreme-C/E 10G+ ethernet.
Sort of a port from freebsd, but I had to write all the interesting bits
myself. Not very complete yet, but good enough to commit over.

ok kettenis@ deraadt@

date 2018-07-09T10:58:21Z
author claudio
files src/sys/kern/uipc_usrreq.c log diff annotate
message branches: 1.134.2;
Use function name in panic string, like in some other places.
OK henning@ benno@

date 2018-07-09T12:58:43Z
author guenther
files src/sys/arch/amd64/amd64/cpu.c log diff annotate
message Rest the FPU's fcw and mxcsr before initializing the "FPU reset state" area

problem discovered on bluhm@'s old opteron
ok deraadt@ kettenis@

date 2018-07-09T13:33:32Z
author mlarkin
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message vmm(4): inject #UD on vmx instructions, instead of dropping into the
unhandled exit function.

ok phessler

date 2018-07-09T14:01:13Z
author kettenis
files src/sys/arch/arm64/stand/efiboot/efiacpi.c log diff annotate
message Add a phandle to v2m nodes.

date 2018-07-09T16:30:13Z
author patrick
files src/sys/dev/fdt/if_mvneta.c log diff annotate
message Basic support for SFP modules in mvneta(4). SFP modules are basically
hotpluggable PHYs whose status can either be read using an I2C-connected
PHY, or using in-band status management implemented in the controller
itself over SGMII. With this, 802.3z SFPs work on mvneta(4).

date 2018-07-09T16:49:36Z
author claudio
files src/sys/net/rtsock.c log diff annotate
message Inline the raw_usrreq() function into route_usrreq(). This simplifies the
route code since there is no more special wrapping needed and in some
places the PRU cases get easier because route(4) for example always connected.
OK bluhm@ henning@ mpi@

date 2018-07-09T16:51:29Z
author claudio
files src/sys/net/pfkeyv2.c log diff annotate
message Inline the raw_usrreq() function into pfkeyv2_usrreq(). Similar to the
change to rtsock.c. This simplifies the pfkey code since there is no special
wrapping needed and in general the PRU cases get easier.
OK bluhm@ henning@ mpi@

date 2018-07-09T18:48:52Z
author patrick
files src/sys/dev/i2c/files.i2c log diff annotate
src/sys/dev/i2c/pca9554.c log diff annotate
message Strip down the (not enabled) pcagpio(4) GPIO extender. This removes
the sensors code and user-controllable GPIO bus attachment but at the
same time hooks pcagpio(4) into the OFW GPIO framework so that it can
be used by other device tree based drivers.

Discussed with deraadt@
ok kettenis@

date 2018-07-09T18:50:38Z
author patrick
files src/sys/arch/armv7/conf/GENERIC log diff annotate
src/sys/arch/armv7/conf/RAMDISK log diff annotate
message Enable pcagpio(4).

date 2018-07-09T19:20:29Z
author guenther
files src/sys/arch/amd64/include/psl.h log diff annotate
src/sys/arch/i386/conf/GENERIC log diff annotate
src/sys/arch/i386/conf/files.i386 log diff annotate
src/sys/arch/i386/i386/locore.s log diff annotate
src/sys/arch/i386/i386/machdep.c log diff annotate
src/sys/arch/i386/i386/process_machdep.c log diff annotate
src/sys/arch/i386/i386/sys_machdep.c log diff annotate
message Delete the VM86 kernel option and i386_vm86(3) API: it's required
a custom kernel for over 20 years.

testing mlarkin@
ok deraadt@ phessler@ jca@ matthieu@

date 2018-07-09T19:20:30Z
author guenther
files src/sys/arch/i386/i386/trap.c log diff annotate
src/sys/arch/i386/i386/Attic/vm86.c log diff annotate
src/sys/arch/i386/include/cpu.h log diff annotate
src/sys/arch/i386/include/psl.h log diff annotate
src/sys/arch/i386/include/segments.h log diff annotate
src/sys/arch/i386/include/Attic/vm86.h log diff annotate
src/sys/arch/i386/isa/icu.s log diff annotate
message Delete the VM86 kernel option and i386_vm86(3) API: it's required
a custom kernel for over 20 years.

testing mlarkin@
ok deraadt@ phessler@ jca@ matthieu@

date 2018-07-09T19:38:33Z
author kettenis
files src/sys/arch/amd64/isa/clock.c log diff annotate
message Mark the i8254 clock interrupt MPSAFE. It isn't, but it doesn't matter
as it is impossoble to run an anything but a single-CPU machine with it.

ok mpi@, guenther@

date 2018-07-09T20:02:18Z
author bluhm
files src/sys/kern/kern_malloc.c log diff annotate
message Fix trailing whitespaces and too long line.

date 2018-07-09T20:06:12Z
author jasper
files src/sys/dev/usb/uonerng.c log diff annotate
message use UE_GET_XFERTYPE(); no binary change

date 2018-07-09T20:09:00Z
author jasper
files src/sys/dev/usb/urng.c log diff annotate
message sprinkle comments and rename iface to match its use to ctl_iface_idx

ok abieber@

date 2018-07-09T22:07:14Z
author mlarkin
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message vmm(4): prohibit setting/clearing invalid bits in %cr0/%cr4. This was
previously caught later but resulted in a guest termination, now we
use #GP as the SDM recommends.