OpenBSD cvs log

created 2024-08-25T01:20:29Z
begin 2024-08-20T00:00:00Z
end 2024-08-21T00:00:00Z
path src/sys
commits 16

date 2024-08-20T00:09:12Z
author dlg
files src/sys/dev/pci/if_rge.c log diff annotate
src/sys/dev/pci/if_rgereg.h log diff annotate
message rework rge tx start and completion to better bus_dmamap_sync tx descriptors

ok patrick@
thanks to kettenis@ for reminding me how computers work again.

date 2024-08-20T05:36:38Z
author jsg
files src/sys/dev/ic/ufshci.c log diff annotate
message add (), | has higher precedence than ?:
ok mglocker@

date 2024-08-20T07:04:29Z
author sf
files src/sys/dev/fdt/virtio_mmio.c log diff annotate
message virtio_mmio: Return early if no device

If there is no device, don't write to any registers.

ok jan@

date 2024-08-20T07:44:36Z
author mvs
files src/sys/dev/audio.c log diff annotate
src/sys/kern/kern_sysctl.c log diff annotate
message Unlock sysctl_audio().

It is the only KERN_AUDIO_RECORD. `audio_record_enable' is atomically
accessed integer.

Reasonable from deraadt

date 2024-08-20T07:46:27Z
author mvs
files src/sys/netinet/igmp.c log diff annotate
src/sys/netinet/in_proto.c log diff annotate
src/sys/netinet6/in6_proto.c log diff annotate
message Unlock igmp_sysctl(), pfsync_sysctl() and rip6_sysctl(). Each of them is
the only IGMPCTL_STATS, PFSYNCCTL_STATS and RIPV6CTL_STATS per-CPU
counters.

sysctl_rdstruct() has "newp != NULL" check within and also returns
EPERM, no need for redundant check in igmp_sysctl().

ok bluhm

date 2024-08-20T07:47:25Z
author mvs
files src/sys/net/if_etherip.c log diff annotate
src/sys/netinet/in_proto.c log diff annotate
message Unlock etherip_sysctl().

- ETHERIPCTL_ALLOW - atomically accessed integer;
- ETHERIPCTL_STATS - per-CPU counters

ok bluhm

date 2024-08-20T07:48:23Z
author mvs
files src/sys/conf/param.c log diff annotate
src/sys/kern/kern_fork.c log diff annotate
src/sys/kern/kern_resource.c log diff annotate
src/sys/kern/kern_sysctl.c log diff annotate
message Unlock KERN_MAXPROC and KERN_MAXTHREAD from `kern_vars'. Both
`maxprocess' and `maxthread' are atomically accessed integers.

ok mpi

date 2024-08-20T11:45:31Z
author bluhm
files src/sys/arch/amd64/amd64/bus_dma.c log diff annotate
message Calculate used bounce buffers in amd64 bus dma correctly.

There was an off-by-one bug when comparing the used pages for bounce
buffers with the available pages. As a result _bus_dmamap_load_buffer()
returned ENOMEM although there was one buffer left.
Also the _dm_nused field was updated and never reset in case of an
error. Use a local variable to count the used pages and update
global map->_dm_nused only if _bus_dmamap_load_buffer() was successful.
This fixes hanging network transmits if bounce buffers are enforced
for vio(4).

OK sf@ hshoexer@

date 2024-08-20T12:17:48Z
author jsg
files src/sys/dev/pci/pcidevs log diff annotate
message add Samsung PM9C1 and PM9C1a
from bmercer@ and Bryan Vyhmeister

date 2024-08-20T12:18:36Z
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 2024-08-20T12:36:09Z
author sf
files src/sys/arch/amd64/amd64/bus_dma.c log diff annotate
message fix bus_dmamap_destroy

With bounce buffers, we must pass a larger size to free()

ok bluhm@ hshoexer@

date 2024-08-20T13:29:25Z
author mvs
files src/sys/conf/param.c log diff annotate
src/sys/kern/kern_descrip.c log diff annotate
src/sys/kern/kern_resource.c log diff annotate
src/sys/kern/kern_sysctl.c log diff annotate
message Unlock KERN_MAXFILES.

`maxfiles' is atomically accessed integer which is lockless and
read-only accessed in file descriptors layer.

lim_startup() called during kernel bootstrap, no need to
atomic_load_int() within.

ok mpi

date 2024-08-20T15:30:29Z
author bluhm
files src/sys/arch/amd64/amd64/bus_dma.c log diff annotate
message Fix whitespace in amd64 bus dma.

date 2024-08-20T16:24:50Z
author deraadt
files src/sys/arch/armv7/omap/omehci.c log diff annotate
src/sys/arch/armv7/omap/omohci.c log diff annotate
message match the config_activate_children() sequences found in other usb host
controller drivers.

date 2024-08-20T21:23:18Z
author patrick
files src/sys/dev/ic/qwz.c log diff annotate
src/sys/dev/ic/qwzvar.h log diff annotate
message Introduce and update HAL SRNG ops.

date 2024-08-20T21:24:15Z
author patrick
files src/sys/dev/ic/qwz.c log diff annotate
src/sys/dev/ic/qwzvar.h log diff annotate
src/sys/dev/pci/if_qwz_pci.c log diff annotate
message Update handling of transfer rings.