OpenBSD cvs log

created 2020-07-28T21:41:47Z
begin 2020-05-25T00:00:00Z
end 2020-05-26T00:00:00Z
path src/sys
commits 37

date 2020-05-25T02:01:21Z
author deraadt
files src/sys/arch/octeon/stand/boot/Makefile log diff annotate
message The dependencies were insufficient.

date 2020-05-25T02:04:48Z
author deraadt
files src/sys/arch/alpha/stand/boot/disk.c log diff annotate
message Add support for write operations to diskstrategy().

date 2020-05-25T02:08:10Z
author deraadt
files src/sys/dev/pci/if_mcx.c log diff annotate
message Unfortunately, breaks UDP NFS under volume, when used on the src machine.
backout until resolved.

date 2020-05-25T06:37:52Z
author mpi
files src/sys/arch/amd64/amd64/conf.c log diff annotate
src/sys/arch/arm64/arm64/conf.c log diff annotate
message Kill unused cdev_pc_init().

ok kettenis@, visa@

date 2020-05-25T06:37:53Z
author mpi
files src/sys/arch/i386/i386/conf.c log diff annotate
src/sys/arch/i386/include/conf.h log diff annotate
message Kill unused cdev_pc_init().

ok kettenis@, visa@

date 2020-05-25T06:45:25Z
author jsg
files src/sys/arch/amd64/amd64/efifb.c log diff annotate
src/sys/arch/armv7/exynos/exdisplay.c log diff annotate
src/sys/arch/armv7/omap/omdisplay.c log diff annotate
src/sys/arch/loongson/dev/radeonfb.c log diff annotate
src/sys/arch/loongson/dev/sisfb.c log diff annotate
src/sys/arch/loongson/dev/smfb.c log diff annotate
src/sys/arch/luna88k/dev/lunafb.c log diff annotate
src/sys/arch/luna88k/dev/omrasops.c log diff annotate
src/sys/arch/macppc/macppc/ofw_machdep.c log diff annotate
src/sys/arch/macppc/pci/vgafb.c log diff annotate
src/sys/arch/sgi/dev/gbe.c log diff annotate
src/sys/arch/sgi/dev/impact.c log diff annotate
src/sys/arch/sgi/gio/grtwo.c log diff annotate
src/sys/arch/sgi/gio/light.c log diff annotate
src/sys/arch/sgi/gio/newport.c log diff annotate
src/sys/arch/sgi/xbow/odyssey.c log diff annotate
src/sys/arch/sparc64/dev/creator.c log diff annotate
src/sys/arch/sparc64/dev/fb.c log diff annotate
src/sys/dev/fdt/rkdrm.c log diff annotate
src/sys/dev/fdt/simplefb.c log diff annotate
message rename wsdisplay alloc_attr() to pack_attr()

Suggested by John Carmack. miod agrees a rename would make sense and
explained it was initially thought drivers may need to allocate storage
but in practice they don't need more than 32 bits for an attribute.

ok mpi@

date 2020-05-25T06:45:26Z
author jsg
files src/sys/dev/ic/sti.c log diff annotate
src/sys/dev/ic/vga.c log diff annotate
src/sys/dev/isa/pcdisplay.c log diff annotate
src/sys/dev/pci/tga.c log diff annotate
src/sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c log diff annotate
src/sys/dev/pci/drm/i915/i915_drv.c log diff annotate
src/sys/dev/pci/drm/radeon/radeon_kms.c log diff annotate
src/sys/dev/pcmcia/cfxga.c log diff annotate
src/sys/dev/rasops/rasops.c log diff annotate
src/sys/dev/rasops/rasops.h log diff annotate
src/sys/dev/usb/udl.c log diff annotate
src/sys/dev/wscons/wsdisplay.c log diff annotate
src/sys/dev/wscons/wsdisplayvar.h log diff annotate
src/sys/dev/wscons/wsemul_sun.c log diff annotate
src/sys/dev/wscons/wsemul_vt100.c log diff annotate
src/sys/dev/wscons/wsemul_vt100_subr.c log diff annotate
message rename wsdisplay alloc_attr() to pack_attr()

Suggested by John Carmack. miod agrees a rename would make sense and
explained it was initially thought drivers may need to allocate storage
but in practice they don't need more than 32 bits for an attribute.

ok mpi@

date 2020-05-25T09:55:47Z
author jsg
files src/sys/arch/amd64/amd64/efifb.c log diff annotate
message change wsdisplay attribute type from long to uint32_t

miod explained it was initially a long as it was thought drivers may
need to allocate storage but in practice they don't need more than
32 bits for an attribute.

suggested and reviewed by miod@

date 2020-05-25T09:55:48Z
author jsg
files src/sys/arch/armv7/exynos/exdisplay.c log diff annotate
src/sys/arch/armv7/omap/amdisplay.c log diff annotate
src/sys/arch/armv7/omap/omdisplay.c log diff annotate
src/sys/arch/loongson/dev/radeonfb.c log diff annotate
src/sys/arch/loongson/dev/sisfb.c log diff annotate
src/sys/arch/loongson/dev/smfb.c log diff annotate
src/sys/arch/luna88k/dev/lunafb.c log diff annotate
src/sys/arch/luna88k/dev/omrasops.c log diff annotate
src/sys/arch/macppc/macppc/ofw_machdep.c log diff annotate
src/sys/arch/macppc/pci/vgafb.c log diff annotate
src/sys/arch/sgi/dev/gbe.c log diff annotate
src/sys/arch/sgi/dev/impact.c log diff annotate
src/sys/arch/sgi/gio/grtwo.c log diff annotate
src/sys/arch/sgi/gio/light.c log diff annotate
src/sys/arch/sgi/gio/newport.c log diff annotate
src/sys/arch/sgi/xbow/odyssey.c log diff annotate
src/sys/arch/sparc64/dev/creator.c log diff annotate
src/sys/arch/sparc64/dev/fb.c log diff annotate
src/sys/arch/sparc64/dev/gfxp.c log diff annotate
src/sys/arch/sparc64/dev/ifb.c log diff annotate
src/sys/arch/sparc64/dev/machfb.c log diff annotate
src/sys/arch/sparc64/dev/pcons.c log diff annotate
src/sys/arch/sparc64/dev/radeonfb.c log diff annotate
src/sys/arch/sparc64/dev/raptor.c log diff annotate
src/sys/dev/fdt/rkdrm.c log diff annotate
src/sys/dev/fdt/simplefb.c log diff annotate
src/sys/dev/fdt/ssdfb.c log diff annotate
src/sys/dev/ic/pcdisplay_subr.c log diff annotate
src/sys/dev/ic/pcdisplayvar.h log diff annotate
src/sys/dev/ic/sti.c log diff annotate
src/sys/dev/ic/vga.c log diff annotate
src/sys/dev/isa/pcdisplay.c log diff annotate
src/sys/dev/pci/tga.c log diff annotate
src/sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c log diff annotate
message change wsdisplay attribute type from long to uint32_t

miod explained it was initially a long as it was thought drivers may
need to allocate storage but in practice they don't need more than
32 bits for an attribute.

suggested and reviewed by miod@

date 2020-05-25T09:55:49Z
author jsg
files src/sys/dev/pci/drm/i915/i915_drv.c log diff annotate
src/sys/dev/pci/drm/radeon/radeon_kms.c log diff annotate
src/sys/dev/pcmcia/cfxga.c log diff annotate
src/sys/dev/rasops/rasops.c log diff annotate
src/sys/dev/rasops/rasops.h log diff annotate
src/sys/dev/rasops/rasops1.c log diff annotate
src/sys/dev/rasops/rasops15.c log diff annotate
src/sys/dev/rasops/rasops24.c log diff annotate
src/sys/dev/rasops/rasops32.c log diff annotate
src/sys/dev/rasops/rasops4.c log diff annotate
src/sys/dev/rasops/rasops8.c log diff annotate
src/sys/dev/rasops/rasops_bitops.h log diff annotate
src/sys/dev/sbus/cgsix.c log diff annotate
src/sys/dev/sbus/mgx.c log diff annotate
src/sys/dev/sbus/zx.c log diff annotate
src/sys/dev/usb/udl.c log diff annotate
src/sys/dev/wscons/wsdisplay.c log diff annotate
src/sys/dev/wscons/wsdisplayvar.h log diff annotate
src/sys/dev/wscons/wsemul_dumb.c log diff annotate
src/sys/dev/wscons/wsemul_sun.c log diff annotate
src/sys/dev/wscons/wsemul_vt100.c log diff annotate
src/sys/dev/wscons/wsemul_vt100_subr.c log diff annotate
src/sys/dev/wscons/wsemul_vt100var.h log diff annotate
src/sys/dev/wscons/wsemulvar.h log diff annotate
message change wsdisplay attribute type from long to uint32_t

miod explained it was initially a long as it was thought drivers may
need to allocate storage but in practice they don't need more than
32 bits for an attribute.

suggested and reviewed by miod@

date 2020-05-25T12:45:56Z
author patrick
files src/sys/dev/usb/usbdevs log diff annotate
message ThingM blink(1)

date 2020-05-25T12:46:06Z
author patrick
files src/sys/dev/usb/usbdevs.h log diff annotate
src/sys/dev/usb/usbdevs_data.h log diff annotate
message regen

date 2020-05-25T12:56:03Z
author visa
files src/sys/arch/octeon/octeon/machdep.c log diff annotate
message Mix board information into the entropy pool.

The data are static but they introduce differences between systems.

OK deraadt@

date 2020-05-25T13:04:25Z
author visa
files src/sys/arch/octeon/octeon/machdep.c log diff annotate
src/sys/arch/octeon/stand/rdboot/rdboot.c log diff annotate
message Pass boothowto from the bootloader to the kernel on octeon.

OK deraadt@

date 2020-05-25T13:15:37Z
author visa
files src/sys/arch/loongson/dev/m41t8xclock.c log diff annotate
message Use <dev/clock_subr.h> in mfokclock(4).

Looks good to miod@

date 2020-05-25T13:16:06Z
author visa
files src/sys/arch/loongson/dev/mcclock.c log diff annotate
src/sys/arch/loongson/dev/mcclock_isa.c log diff annotate
src/sys/arch/loongson/dev/mcclockvar.h log diff annotate
message Use <dev/clock_subr.h> in mcclock(4).

Tested on Yeeloong.

Looks good to miod@

date 2020-05-25T14:00:15Z
author anton
files src/sys/dev/kcov.c log diff annotate
message Add a comment explaining the interaction between kcovclose() and
kcov_exit().

date 2020-05-25T14:12:04Z
author jsg
files src/sys/arch/amd64/amd64/efifb.c log diff annotate
message add wsmoused support to efifb

from John Carmack

date 2020-05-25T14:53:57Z
author deraadt
files src/sys/stand/boot/bootarg.h log diff annotate
message Adjust fwrandom() to return 0 for sucess, -1 for failure

date 2020-05-25T14:53:58Z
author deraadt
files src/sys/arch/arm64/stand/efiboot/efirng.c log diff annotate
message Adjust fwrandom() to return 0 for sucess, -1 for failure

date 2020-05-25T14:53:59Z
author deraadt
files src/sys/arch/amd64/stand/efi32/efirng.c log diff annotate
src/sys/arch/amd64/stand/efi64/efirng.c log diff annotate
src/sys/arch/amd64/stand/efiboot/efirng.c log diff annotate
message Adjust fwrandom() to return 0 for sucess, -1 for failure

date 2020-05-25T14:58:01Z
author deraadt
files src/sys/arch/amd64/stand/libsa/Attic/random_amd64.S log diff annotate
src/sys/arch/amd64/stand/libsa/Attic/random_i386.S log diff annotate
message Adjust mdrandom() to also return 0 for success, -1 for failure

date 2020-05-25T14:58:02Z
author deraadt
files src/sys/arch/i386/stand/libsa/Attic/random_i386.S log diff annotate
message Adjust mdrandom() to also return 0 for success, -1 for failure

date 2020-05-25T15:00:22Z
author deraadt
files src/sys/arch/alpha/alpha/machdep.c log diff annotate
message Pass boothowto from bootblock to kernel

date 2020-05-25T15:00:23Z
author deraadt
files src/sys/arch/alpha/include/autoconf.h log diff annotate
src/sys/arch/alpha/stand/boot/boot.c log diff annotate
message Pass boothowto from bootblock to kernel

date 2020-05-25T15:10:18Z
author deraadt
files src/sys/arch/macppc/macppc/machdep.c log diff annotate
src/sys/arch/macppc/stand/main.c log diff annotate
message Bootblocks convert RB_GOODRANDOM to -R option, kernel converts it back into howto

date 2020-05-25T15:24:30Z
author deraadt
files src/sys/kern/init_main.c log diff annotate
message Pass bootblock indicator RB_GOODRANDOM to random_start(). Future work
will frantically compensate.
ok kettenis

date 2020-05-25T15:24:32Z
author deraadt
files src/sys/dev/rnd.c log diff annotate
src/sys/dev/Attic/rndvar.h log diff annotate
message Pass bootblock indicator RB_GOODRANDOM to random_start(). Future work
will frantically compensate.
ok kettenis

date 2020-05-25T15:28:21Z
author deraadt
files src/sys/stand/boot/boot.c log diff annotate
message If either mdrandom() or fwrandom() return 0, set RB_GOODRANDOM
ok kettenis

date 2020-05-25T15:31:59Z
author kettenis
files src/sys/arch/sparc64/include/boot_flag.h log diff annotate
src/sys/arch/sparc64/sparc64/autoconf.c log diff annotate
src/sys/arch/sparc64/stand/ofwboot/elf64_exec.c log diff annotate
src/sys/arch/sparc64/stand/ofwboot/vers.c log diff annotate
message Pass boothowto from bootloader to kernel using .openbsd.bootdata. To make
sure that an old bootloader can boot a new kernel and a new bootloader
can still boot an old kernel some hackery is needed as old kernels check for
an exact size of the openbsd_bootdata struct.

tested (with softraid) by kn@
ok stsp@, deraadt@

date 2020-05-25T15:49:41Z
author deraadt
files src/sys/arch/alpha/stand/boot/boot.c log diff annotate
message make loadrandom() return 0 for success, -1 for failure. While here,
relax the fstat() check because the system will have left the file
in the right mode.
ok visa kettenis

date 2020-05-25T15:49:42Z
author deraadt
files src/sys/arch/luna88k/stand/boot/boot.c log diff annotate
src/sys/arch/sgi/stand/boot/boot.c log diff annotate
src/sys/arch/sparc64/stand/ofwboot/boot.c log diff annotate
src/sys/stand/boot/boot.c log diff annotate
src/sys/stand/boot/bootarg.h log diff annotate
message make loadrandom() return 0 for success, -1 for failure. While here,
relax the fstat() check because the system will have left the file
in the right mode.
ok visa kettenis

date 2020-05-25T15:53:14Z
author deraadt
files src/sys/arch/octeon/stand/boot/Makefile log diff annotate
message that dependency change breaks something else. sigh.

date 2020-05-25T15:54:10Z
author visa
files src/sys/kern/kern_event.c log diff annotate
src/sys/sys/event.h log diff annotate
message Revert "Add kqueue_scan_state struct"

sthen@ has reported that the patch might be causing hangs with X.

date 2020-05-25T16:27:05Z
author deraadt
files src/sys/arch/sgi/stand/libsa/Makefile log diff annotate
message fchmod() will be needed soon.
ok kettenis

date 2020-05-25T16:27:07Z
author deraadt
files src/sys/arch/sparc64/stand/libsa/Makefile log diff annotate
message fchmod() will be needed soon.
ok kettenis

date 2020-05-25T17:52:57Z
author naddy
files src/sys/dev/rnd.c log diff annotate
message For large reads from /dev/random, use the arc4random_ctx_*() functions
instead of hand-rolling the same code to set up a temporary ChaCha
instance.
tweak/ok semarie@, ok deraadt@