OpenBSD cvs log

created 2023-05-26T22:16:57Z
begin 2023-04-08T00:00:00Z
end 2023-04-15T00:00:00Z
path src/sys
commits 42

date 2023-04-08T02:32:38Z
author dlg
files src/sys/dev/fdt/ahci_fdt.c log diff annotate
message try and cope with not having the firmware/boot loader init the hardware.

more specifically, spin up the clocks and phy, and if the device
tree has a "ports-implemented" property use it to initialise the
AHCI_REG_PI register.

this gets sata working on a banana pi bpi-r2 pro.

help from jared mcneill
ok jmatthew@ kettenis@

date 2023-04-08T05:38:25Z
author jsg
files src/sys/dev/fdt/if_mvpp.c log diff annotate
message correct write to MV_XLG_PORT_MAC_CTRL4_REG
tested by matthieu@ ok patrick@

date 2023-04-08T05:40:54Z
author jsg
files src/sys/dev/fdt/sdhc_fdt.c log diff annotate
message add missing write to XENON_EMMC_PHY_PAD_CONTROL2
ok patrick@

date 2023-04-08T13:49:38Z
author mvs
files src/sys/net/if.c log diff annotate
message Move rtm_ifannounce(IFAN_DEPARTURE) outside netlock within if_detach().
This is the mbuf(9) allocation and broadcast transmission for PF_ROUTE
sockets, netlock is not required here.

ok bluhm@

date 2023-04-08T13:50:22Z
author mvs
files src/sys/netinet/ip_gre.c log diff annotate
message Do not reload `inp' in gre_send(). The pointer to PCB of raw socket is
immutable, we don't need to reload it again.

ok bluhm@

date 2023-04-08T18:12:08Z
author kn
files src/sys/lib/libsa/fchmod.c log diff annotate
message Return -1 on actual failure

MI boot.c's "a-x" fchmod on bsd.upgrade is the only caller that checks the
return value and that call can fail on, e.g. softraid volumes.

Stop clobbering the actual fchmod return value and get that warning printed.

OK deraadt

date 2023-04-09T17:50:02Z
author jcs
files src/sys/dev/acpi/acpithinkpad.c log diff annotate
message don't attach temperature sensors for which there is no TMP# node in
the DSDT, and verify the result of the fetch when updating it later.

ok kn

date 2023-04-09T19:48:37Z
author kettenis
files src/sys/arch/arm64/arm64/pmap.c log diff annotate
src/sys/arch/arm64/conf/Makefile.arm64 log diff annotate
message So clang 13 miscompiles dev/usb/umass_scsi.c with the combination if -Oz
and -mbranch-protection=bti. So turn off the BTI protection in ramdisk
kernels for now.

ok deraadt@, miod@, phessler@

date 2023-04-10T04:21:19Z
author jsg
files src/sys/arch/amd64/amd64/db_disasm.c log diff annotate
src/sys/arch/armv7/exynos/ec_commands.h log diff annotate
message spelling

date 2023-04-10T04:21:20Z
author jsg
files src/sys/arch/amd64/include/mpbiosreg.h log diff annotate
src/sys/arch/armv7/marvell/mvmpic.c log diff annotate
src/sys/arch/hppa/include/atomic.h log diff annotate
src/sys/arch/i386/include/mpbiosreg.h log diff annotate
src/sys/arch/luna88k/stand/boot/ufs_disksubr.c log diff annotate
src/sys/arch/sh/sh/clock.c log diff annotate
src/sys/arch/sparc64/sparc64/mdesc.c log diff annotate
src/sys/dev/dt/dtvar.h log diff annotate
src/sys/dev/fdt/fanpwr.c log diff annotate
src/sys/dev/fdt/rkpmic.c log diff annotate
src/sys/dev/pci/mbg.c log diff annotate
src/sys/uvm/uvm_map.c log diff annotate
src/sys/uvm/uvm_pmemrange.c log diff annotate
src/sys/uvm/uvm_vnode.c log diff annotate
message spelling

date 2023-04-10T12:11:22Z
author jsg
files src/sys/dev/usb/umcs.c log diff annotate
message fix setting parity bits
ok mglocker@

date 2023-04-10T15:14:04Z
author tobhe
files src/sys/arch/arm64/dev/apldc.c log diff annotate
src/sys/arch/arm64/dev/aplhidev.c log diff annotate
message Enable caps lock LED on modern Apple laptop keyboards.

ok kettenis@ patrick@

date 2023-04-10T23:18:08Z
author jsg
files src/sys/arch/sparc64/dev/sab.c log diff annotate
message add missing write of SAB_DAFO
ok miod@ who tested on Ultra 5

date 2023-04-11T00:45:06Z
author jsg
files src/sys/arch/alpha/alpha/machdep.c log diff annotate
message fix double words in comments
feedback and ok jmc@ miod, ok millert@

date 2023-04-11T00:45:07Z
author jsg
files src/sys/arch/alpha/alpha/pmap.c log diff annotate
src/sys/arch/alpha/alpha/vm_machdep.c log diff annotate
src/sys/arch/alpha/include/autoconf.h log diff annotate
src/sys/arch/amd64/amd64/pmap.c log diff annotate
src/sys/arch/amd64/amd64/vm_machdep.c log diff annotate
src/sys/arch/arm/arm/vm_machdep.c log diff annotate
src/sys/arch/arm/include/setjmp.h log diff annotate
src/sys/arch/arm64/arm64/vm_machdep.c log diff annotate
src/sys/arch/arm64/include/setjmp.h log diff annotate
src/sys/arch/i386/i386/pmap.c log diff annotate
src/sys/arch/i386/i386/pmapae.c log diff annotate
src/sys/arch/i386/i386/vm_machdep.c log diff annotate
src/sys/arch/m88k/m88k/db_trace.c log diff annotate
src/sys/arch/m88k/m88k/vm_machdep.c log diff annotate
src/sys/arch/macppc/dev/adb.c log diff annotate
src/sys/arch/macppc/pci/kauaiata.c log diff annotate
src/sys/arch/powerpc/powerpc/lock_machdep.c log diff annotate
src/sys/arch/powerpc/powerpc/vm_machdep.c log diff annotate
message fix double words in comments
feedback and ok jmc@ miod, ok millert@

date 2023-04-11T00:45:08Z
author jsg
files src/sys/arch/powerpc64/powerpc64/trap.c log diff annotate
src/sys/arch/powerpc64/powerpc64/vm_machdep.c log diff annotate
src/sys/arch/riscv64/riscv64/vm_machdep.c log diff annotate
src/sys/arch/sparc64/dev/psycho.c log diff annotate
src/sys/dev/fdt/rkpcie.c log diff annotate
src/sys/dev/ic/elink3.c log diff annotate
src/sys/dev/ic/malo.c log diff annotate
src/sys/dev/ic/tcic2reg.h log diff annotate
src/sys/dev/ic/twereg.h log diff annotate
src/sys/dev/pci/if_de.c log diff annotate
src/sys/dev/pci/if_em_hw.c log diff annotate
src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_tl.c log diff annotate
src/sys/dev/pv/hypervic.c log diff annotate
src/sys/dev/pv/xenstore.c log diff annotate
message fix double words in comments
feedback and ok jmc@ miod, ok millert@

date 2023-04-11T00:45:09Z
author jsg
files src/sys/dev/sbus/stp4020.c log diff annotate
src/sys/dev/sdmmc/sdhc.c log diff annotate
src/sys/dev/usb/umcs.h log diff annotate
src/sys/kern/kern_event.c log diff annotate
src/sys/kern/sysv_msg.c log diff annotate
src/sys/net/hfsc.c log diff annotate
src/sys/net/ofp.h log diff annotate
src/sys/net80211/ieee80211_node.c log diff annotate
src/sys/netinet/in.h log diff annotate
src/sys/scsi/ch.c log diff annotate
src/sys/scsi/scsi_changer.h log diff annotate
src/sys/sys/exec_elf.h log diff annotate
src/sys/ufs/ffs/ffs_softdep.c log diff annotate
src/sys/uvm/uvm_amap.c log diff annotate
src/sys/uvm/uvm_anon.c log diff annotate
src/sys/uvm/uvm_mmap.c log diff annotate
src/sys/uvm/uvm_page.c log diff annotate
message fix double words in comments
feedback and ok jmc@ miod, ok millert@

date 2023-04-11T04:45:11Z
author mglocker
files src/sys/dev/acpi/qcgpio.c log diff annotate
message Nuke unused function prototype.
Only acknowledge interrupts when one was active.

ok kettenis@

date 2023-04-12T02:20:07Z
author jsg
files src/sys/arch/octeon/dev/octmmc.c log diff annotate
message remove unused buffer selection code
ok visa@

date 2023-04-12T10:12:14Z
author kettenis
files src/sys/dev/pci/pcidevs log diff annotate
message Add PCI IDs for the 2nd generation Aquantio 10G NICs.

ok mlarkin@

date 2023-04-12T10:12:42Z
author kettenis
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2023-04-12T15:56:08Z
author kettenis
files src/sys/dev/pci/pcidevs log diff annotate
message Add BCM4388.

ok patrick@, deraadt@

date 2023-04-12T15:56:33Z
author kettenis
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2023-04-12T16:14:42Z
author kn
files src/sys/netinet/if_ether.c log diff annotate
message Pull MP-safe arprequest() out of kernel lock

Defer sending after unlock, reuse `refresh' from similar construct.

OK bluhm

date 2023-04-13T02:19:04Z
author jsg
files src/sys/arch/arm64/arm64/ast.c log diff annotate
src/sys/arch/arm64/arm64/cpu.c log diff annotate
src/sys/arch/arm64/arm64/syscall.c log diff annotate
src/sys/arch/landisk/stand/boot/getsecs.c log diff annotate
message remove duplicate includes
ok deraadt@ miod@ krw@

date 2023-04-13T02:19:05Z
author jsg
files src/sys/arch/loongson/loongson/conf.c log diff annotate
src/sys/arch/loongson/loongson/gdium_machdep.c log diff annotate
src/sys/arch/octeon/octeon/conf.c log diff annotate
src/sys/arch/powerpc64/powerpc64/trap.c log diff annotate
src/sys/arch/riscv64/riscv64/ast.c log diff annotate
src/sys/arch/riscv64/riscv64/syscall.c log diff annotate
src/sys/arch/sparc64/stand/ofwboot/boot.c log diff annotate
src/sys/arch/sparc64/stand/ofwboot/elf64_exec.c log diff annotate
src/sys/dev/diskmap.c log diff annotate
src/sys/dev/acpi/acpidmar.c log diff annotate
src/sys/dev/dt/dt_prov_syscall.c log diff annotate
src/sys/dev/fdt/if_mvneta.c log diff annotate
src/sys/dev/pci/virtio_pci.c log diff annotate
src/sys/dev/rasops/rasops.c log diff annotate
src/sys/isofs/udf/udf_vfsops.c log diff annotate
src/sys/isofs/udf/udf_vnops.c log diff annotate
src/sys/net/if_gre.c log diff annotate
src/sys/net/if_pflow.c log diff annotate
src/sys/net/if_vxlan.c log diff annotate
message remove duplicate includes
ok deraadt@ miod@ krw@

date 2023-04-13T15:05:19Z
author miod
files src/sys/arch/alpha/include/vmparam.h log diff annotate
message Move USRSTACK to the end of userland address space.

date 2023-04-13T15:07:43Z
author miod
files src/sys/arch/hppa/dev/sti_pci_machdep.c log diff annotate
src/sys/arch/macppc/pci/vgafb.c log diff annotate
src/sys/arch/sparc64/dev/vgafb.c log diff annotate
src/sys/dev/pci/pci_map.c log diff annotate
src/sys/dev/pci/pcivar.h log diff annotate
src/sys/dev/pci/ppb.c log diff annotate
src/sys/dev/pci/rtsx_pci.c log diff annotate
src/sys/dev/pci/sti_pci.c log diff annotate
message Remove intentionally undocumented pci_{io,mem}_find and convert their last
few users to pci_mapreg_info().

ok jsg@

date 2023-04-13T15:23:21Z
author miod
files src/sys/arch/alpha/alpha/pmap.c log diff annotate
src/sys/arch/alpha/include/pmap.h log diff annotate
src/sys/arch/amd64/amd64/pmap.c log diff annotate
src/sys/arch/amd64/include/pmap.h log diff annotate
message pmap_copy() has never, ever, been implemented in any of the platforms OpenBSD
ever ran on, and it's unlikely to ever be implemented, so remove it.
ok jsg@

date 2023-04-13T15:23:22Z
author miod
files src/sys/arch/arm/include/pmap.h log diff annotate
src/sys/arch/arm64/arm64/pmap.c log diff annotate
src/sys/arch/hppa/include/pmap.h log diff annotate
src/sys/arch/i386/i386/pmap.c log diff annotate
src/sys/arch/i386/i386/pmapae.c log diff annotate
src/sys/arch/i386/include/pmap.h log diff annotate
src/sys/arch/m88k/include/pmap.h log diff annotate
src/sys/arch/mips64/mips64/pmap.c log diff annotate
src/sys/arch/powerpc/include/pmap.h log diff annotate
src/sys/arch/powerpc64/powerpc64/pmap.c log diff annotate
src/sys/arch/riscv64/riscv64/pmap.c log diff annotate
src/sys/arch/sh/include/pmap.h log diff annotate
src/sys/arch/sparc64/sparc64/pmap.c log diff annotate
message pmap_copy() has never, ever, been implemented in any of the platforms OpenBSD
ever ran on, and it's unlikely to ever be implemented, so remove it.
ok jsg@

date 2023-04-13T15:23:23Z
author miod
files src/sys/uvm/uvm_map.c log diff annotate
src/sys/uvm/uvm_pmap.h log diff annotate
message pmap_copy() has never, ever, been implemented in any of the platforms OpenBSD
ever ran on, and it's unlikely to ever be implemented, so remove it.
ok jsg@

date 2023-04-13T15:36:28Z
author miod
files src/sys/arch/sparc64/sparc64/locore.s log diff annotate
src/sys/dev/pci/pci.c log diff annotate
message Grammar fixes in comments.

date 2023-04-13T18:29:35Z
author miod
files src/sys/dev/ic/pcdisplay_chars.c log diff annotate
message Catch up with box drawing characters which have been standardized in unicode
after the original wscons code was written and chose placeholder values.

From NetBSD (wsemul_vt100_chars.c r1.8 and r1.14) via Crystal Kolipe, thanks!

date 2023-04-13T18:29:36Z
author miod
files src/sys/dev/wscons/unicode.h log diff annotate
src/sys/dev/wscons/wsemul_vt100_chars.c log diff annotate
message Catch up with box drawing characters which have been standardized in unicode
after the original wscons code was written and chose placeholder values.

From NetBSD (wsemul_vt100_chars.c r1.8 and r1.14) via Crystal Kolipe, thanks!

date 2023-04-13T19:39:50Z
author miod
files src/sys/arch/alpha/include/alpha_cpu.h log diff annotate
src/sys/arch/alpha/include/vmparam.h log diff annotate
message Sprinkle UL suffix to constant literals which don't fit in int. NFCI

date 2023-04-13T23:02:12Z
author dlg
files src/sys/net/ethertypes.h log diff annotate
message add the "local experiments" ethertypes

date 2023-04-14T01:11:32Z
author dlg
files src/sys/dev/fdt/rkrng.c log diff annotate
message add support for "rockchip,cryptov2-rng"

the steps to operate rockchip,cryptov2-rng are basically the same
as the existing rockchip,cryptov1-rng support, but the registers
and bits have moved around. add some abstraction for the register
differences and have the state machine call the different backends.

this is present on rk356x chips as the "True Random Number Generator
(TRNG)".

tested on a bunch of different rk3568 boards.
ok kettenis@

date 2023-04-14T12:45:10Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwx.c log diff annotate
message Wire up the iwm_updatechan and iwx_updatechan callbacks.

These callbacks were not reachable by mistake. This change is a first step
towards preventing iwx SYSASSERT 0x20101A28 as seen by beck@ and Mikhail
when an 11ac AP switches channel width. The callbacks may still not trigger
after this change. Possibly because APs use channel switch announcements (CSA)
which we currently ignore. We only check the 11n HTOP IE for channel info.
We may eventually need to add CSA support in order to detect channel
width changes in 11ac mode.

No regressions seen by jmc@ on iwx, nor by florian@, millert@ on iwm

date 2023-04-14T18:27:31Z
author dv
files src/sys/arch/amd64/include/specialreg.h log diff annotate
message add VMX/VMCS defines for amd64 endbr64 features

"these are fine," mlarkin@

date 2023-04-14T20:27:47Z
author dv
files src/sys/arch/amd64/amd64/vmm_support.S log diff annotate
message vmm(4): add NENTRY/END macros around asm functions.

Part of prep for endbr64 on amd64 hosts.

ok mlarkin@

date 2023-04-14T22:41:28Z
author mbuhl
files src/sys/ufs/ffs/ffs_vfsops.c log diff annotate
message Use designated initializer for ffs_vtbl.
OK kn

date 2023-04-14T23:56:57Z
author dv
files src/sys/arch/amd64/amd64/vmm_support.S log diff annotate
message vmm: NENTRY -> ENTRY

Originally used NENTRY macros in the asm, but the plan is for endbr64
to appear in the ENTRY macros.

cluestick from deraadt@