OpenBSD cvs log

created 2021-10-23T16:55:48Z
begin 2021-10-21T00:00:00Z
end 2021-10-22T00:00:00Z
path src/sys
commits 13

date 2021-10-21T08:39:33Z
author tobhe
files src/sys/netinet/ip_esp.c log diff annotate
message Remove duplicate variable ibytes, use plen instead.

ok bluhm@

date 2021-10-21T09:59:13Z
author claudio
files src/sys/kern/kern_descrip.c log diff annotate
message Move vfs_stall_barrier() from the fd layer into vn_lock() and the vfs layer.
vfs stalling is used by suspend/resume and by vmt(4) to stall any
filesystem operation from altering the state on disk. All these
operations will call vn_lock and be stalled. Adjust vfs_stall_barrier()
to allow the lock owner to still progress so that suspend can sync
the filesystems after stalling vfs operation.
OK mpi@

date 2021-10-21T09:59:14Z
author claudio
files src/sys/kern/vfs_subr.c log diff annotate
src/sys/kern/vfs_vnops.c log diff annotate
src/sys/sys/file.h log diff annotate
message Move vfs_stall_barrier() from the fd layer into vn_lock() and the vfs layer.
vfs stalling is used by suspend/resume and by vmt(4) to stall any
filesystem operation from altering the state on disk. All these
operations will call vn_lock and be stalled. Adjust vfs_stall_barrier()
to allow the lock owner to still progress so that suspend can sync
the filesystems after stalling vfs operation.
OK mpi@

date 2021-10-21T18:30:57Z
author patrick
files src/sys/arch/arm64/dev/ampintc.c log diff annotate
message Have ampintcmsi(4) go through the list of interrupt controllers to find the
correct parent. So far we were directly calling some ampintc(4) code, which
is fine for regular hardware. With Parallels on the Apple M1, ampintcmsi(4)
is combined with agintc(4), which is quite a surprise. Luckily both types of
interrupt controllers use the same API for passing interrupt information, so
we can craft one structure and both ampintc(4) and agintc(4) will happily work
with it.

ok kettenis@

date 2021-10-21T18:36:41Z
author bluhm
files src/sys/arch/alpha/conf/GENERIC log diff annotate
message Remove hifn(4), safe(4), and ubsec(4) crypto drivers. They require
the asynchronous crypto API which makes progress in MP difficult.
The hardware is rarely available. They support only obsolete crypto
algorithms. Scheduling crypto tasks via PCI is probably slower
than the CPU, especailly as modern CPUs have their own accelerators.

date 2021-10-21T18:36:42Z
author bluhm
files src/sys/arch/amd64/conf/GENERIC log diff annotate
src/sys/arch/i386/conf/GENERIC log diff annotate
src/sys/arch/macppc/conf/GENERIC log diff annotate
src/sys/arch/sparc64/conf/GENERIC log diff annotate
src/sys/dev/pci/files.pci log diff annotate
src/sys/dev/pci/Attic/hifn7751.c log diff annotate
src/sys/dev/pci/Attic/hifn7751reg.h log diff annotate
src/sys/dev/pci/Attic/hifn7751var.h log diff annotate
src/sys/dev/pci/Attic/safe.c log diff annotate
src/sys/dev/pci/Attic/safereg.h log diff annotate
src/sys/dev/pci/Attic/safevar.h log diff annotate
src/sys/dev/pci/Attic/ubsec.c log diff annotate
src/sys/dev/pci/Attic/ubsecreg.h log diff annotate
src/sys/dev/pci/Attic/ubsecvar.h log diff annotate
message Remove hifn(4), safe(4), and ubsec(4) crypto drivers. They require
the asynchronous crypto API which makes progress in MP difficult.
The hardware is rarely available. They support only obsolete crypto
algorithms. Scheduling crypto tasks via PCI is probably slower
than the CPU, especailly as modern CPUs have their own accelerators.

date 2021-10-21T21:47:41Z
author jsg
files src/sys/dev/pci/pcidevs log diff annotate
message add Gemini Lake MEI; from fkr

date 2021-10-21T21:50:16Z
author jsg
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2021-10-21T22:11:07Z
author mvs
files src/sys/kern/uipc_usrreq.c log diff annotate
message Release solock() before call unp_internalize() and take it within when
access garbage collector data.

This is the next step to make UNIX domain sockets locking fine grained.
This also moves M_WAIT/M_WAITOK allocations out from `unp_lock' rwlock(9).
The lock order between fdplock() and `unp_lock' changed and now fdplock()
should be taken first. This was not required, but helps to mpi@'s knote(9)
related work.

ok bluhm@

date 2021-10-21T22:25:03Z
author patrick
files src/sys/arch/arm64/dev/agintc.c log diff annotate
message Initialize interrupts to G1NS by configuring IGROUPR and IGRPMODR. This
makes interrupts work with Parallels on the Apple M1.

Tested by patrick@ on Ampere eMAG and MacchiatoBin
Tested by fkr@ on Pinebook Pro
ok kettenis@

date 2021-10-21T22:59:07Z
author tobhe
files src/sys/netinet/ip_ah.c log diff annotate
src/sys/netinet/ip_esp.c log diff annotate
src/sys/netinet/ip_ipcomp.c log diff annotate
message Remove code to run crypto operations in a task queue. The code was
not reachable because all callers had set the CRYPTO_F_NOQUEUE flag.

ok patrick@ mvs@ bluhm@

date 2021-10-21T22:59:08Z
author tobhe
files src/sys/crypto/crypto.c log diff annotate
src/sys/crypto/cryptodev.h log diff annotate
message Remove code to run crypto operations in a task queue. The code was
not reachable because all callers had set the CRYPTO_F_NOQUEUE flag.

ok patrick@ mvs@ bluhm@

date 2021-10-21T23:03:48Z
author tobhe
files src/sys/crypto/crypto.c log diff annotate
src/sys/crypto/cryptodev.h log diff annotate
message Remove more dead code related to crypto task queues.