OpenBSD cvs log

created 2021-12-25T17:41:51Z
begin 2021-12-20T00:00:00Z
end 2021-12-21T00:00:00Z
path src/sys
commits 15

date 2021-12-20T04:21:32Z
author jmatthew
files src/sys/dev/fdt/if_dwge.c log diff annotate
message Rework the tx path to use the consumer and producer positions to work out
the number of slots available, and to put packets on the ring until fewer
than DWGE_NTXSEGS slots are left, making dwge_start() and dwge_txeof()
work independently. While here, only write to GMAC_TX_POLL_DEMAND once
per call to dwge_start() rather than once per packet.

Adjust the rx interrupt path to check the number of slots in use and
return slots once per interrupt.

Add interrupt and ifq barriers before taking the interface down.
With all of this done, we can mark dwge(4) mpsafe.

ok dlg@ patrick@

date 2021-12-20T13:59:02Z
author hastings
files src/sys/dev/ic/mtwreg.h log diff annotate
src/sys/dev/usb/if_mtw.c log diff annotate
src/sys/dev/usb/if_mtwvar.h log diff annotate
message Add mtw(4), a driver for MediaTek MT7601U wifi devices.

Ported from run(4) with legacy chipsets removed.
Not yet enabled in the build.

ok stsp@ jmatthew@

date 2021-12-20T14:54:37Z
author hastings
files src/sys/arch/amd64/conf/GENERIC log diff annotate
src/sys/arch/amd64/conf/RAMDISK_CD log diff annotate
src/sys/dev/usb/files.usb log diff annotate
message Make mtw(4) known to the config(8) framework.

Not enabled yet. Pending firmware availability.

ok stsp@ jmatthew@

date 2021-12-20T15:04:58Z
author stsp
files src/sys/dev/pci/pcidevs log diff annotate
message Change a PCI device string: The "Gemini Lake CNVi" is an iwm(4) "AC 9560".

ok hastings@ (who submitted the original string, based on a datasheet)

date 2021-12-20T15:05:12Z
author stsp
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2021-12-20T15:08:10Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwmreg.h log diff annotate
src/sys/dev/pci/if_iwmvar.h log diff annotate
message Make iwm(4) attach to PCI devices with product ID 0x31dc.

This device is part of the 9560 chip family. With a small device-specific
quirk we can make iwm(4) attach and provide a working wifi interface.

Problem reported and fix tested by Joao Victor.

date 2021-12-20T15:23:32Z
author bluhm
files src/sys/netinet/ipsec_input.c log diff annotate
message Fix function name in panic string.

date 2021-12-20T15:59:09Z
author mvs
files src/sys/net/pfkeyv2_convert.c log diff annotate
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
src/sys/netinet/ip_ipsp.c log diff annotate
message Use per-CPU counters for tunnel descriptor block (TDB) statistics.
'tdb_data' struct became unused and was removed.

Tested by Hrvoje Popovski.
ok bluhm@

date 2021-12-20T15:59:10Z
author mvs
files src/sys/netinet/ip_ipsp.h log diff annotate
src/sys/netinet/ip_output.c log diff annotate
src/sys/netinet/ipsec_input.c log diff annotate
src/sys/netinet/ipsec_output.c log diff annotate
src/sys/netinet6/ip6_output.c log diff annotate
message Use per-CPU counters for tunnel descriptor block (TDB) statistics.
'tdb_data' struct became unused and was removed.

Tested by Hrvoje Popovski.
ok bluhm@

date 2021-12-20T16:21:07Z
author visa
files src/sys/kern/kern_event.c log diff annotate
message Run seltrue/dead event filter in modify and process callbacks

Do not assume event status in the modify and process callbacks. Instead
always run the event filter so that it has a chance to set knote flags.
The filter can also indicate event inactivity.

date 2021-12-20T16:22:24Z
author visa
files src/sys/miscfs/deadfs/dead_vnops.c log diff annotate
message Let poll(2) register EVFILT_EXCEPT filter with dead vnodes

This enables the system deliver POLLHUP when pollfd.events == 0.

date 2021-12-20T16:24:32Z
author visa
files src/sys/kern/kern_event.c log diff annotate
message Make filt_dead() selectively inactive with EVFILT_EXCEPT

When a knote uses the dead event filter, the knote's file descriptor is
not supposed to point to an object with pending out-of-band data. Make
the knote inactive so that userspace will not receive a spurious event.
However, kqueue-based poll(2) should still receive HUP notifications.

This lets the system use dead_filtops with less strings attached
relative to the filter type.

date 2021-12-20T17:09:18Z
author tobhe
files src/sys/netinet/ip_ah.c log diff annotate
src/sys/netinet/ip_esp.c log diff annotate
message Remove unused variable 'clen'.

ok bluhm@

date 2021-12-20T19:24:32Z
author patrick
files src/sys/dev/ic/bwfmvar.h log diff annotate
src/sys/dev/pci/if_bwfm_pci.c log diff annotate
message bus_dmamem_unmap() should not be called from interrupt context, so free
and close flowrings using bwfm_do_async().

Reported by and ok kettenis@

date 2021-12-20T22:28:48Z
author bluhm
files src/sys/dev/dt/dt_dev.c log diff annotate
message Remove useless suser assert from dt(4). The ioctl(2) path checks
the user anyway and close(2) may crash after setuid(2).
Reported-by: [email protected]
OK deraadt@