OpenBSD cvs log

created 2021-11-27T20:06:19Z
begin 2021-11-22T00:00:00Z
end 2021-11-23T00:00:00Z
path src/sys
commits 24

date 2021-11-22T03:30:20Z
author jsg
files src/sys/dev/usb/uhidev.c log diff annotate
message avoid clang -Wsometimes-uninitialized warning with SMALL_KERNEL

date 2021-11-22T10:17:14Z
author mglocker
files src/sys/dev/usb/ehci.c log diff annotate
src/sys/dev/usb/if_athn_usb.c log diff annotate
src/sys/dev/usb/if_otus.c log diff annotate
src/sys/dev/usb/if_run.c log diff annotate
src/sys/dev/usb/if_wi_usb.c log diff annotate
src/sys/dev/usb/if_zyd.c log diff annotate
src/sys/dev/usb/ohci.c log diff annotate
src/sys/dev/usb/uaudio.c log diff annotate
src/sys/dev/usb/udl.c log diff annotate
src/sys/dev/usb/uhci.c log diff annotate
src/sys/dev/usb/umass_scsi.c log diff annotate
src/sys/dev/usb/utvfu.c log diff annotate
src/sys/dev/usb/uvideo.c log diff annotate
src/sys/dev/usb/xhci.c log diff annotate
message Align memory allocation for USB device drivers and USB HC drivers:

* USB device drivers use M_USBDEV instead of M_DEVBUF.
* USB HC drivers use M_USBHC instead of M_DEVBUF.

In a vanilla setup, this enlarges the USB memory pool.

ok anton@

date 2021-11-22T10:23:42Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
message Let iwm(4) resume directly in DVACT_WAKEUP instead of running the init task.

Same change as made for iwx(4) some time ago.

tested by myself and bket@

date 2021-11-22T10:31:58Z
author stsp
files src/sys/dev/pci/if_iwxreg.h log diff annotate
src/sys/dev/pci/if_iwxvar.h log diff annotate
message Fix iwx(4) Tx ring array size which was one entry too short.

Fortunately, this bug was harmless. The last Tx agg queue is never used
because ieee80211_classify() only returns TID values in the range 0 - 3.
And iterations over the txq array use nitems() to find the upper bound.

The possiblity of shrinking the txq array by 4 elements to get rid of
unused Tx agg queues could be investigated later.
For now, just fix the off-by-one error.

ok kettenis@

date 2021-11-22T10:47:55Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
message In iwx(4), fix off-by-one errors during TID value bounds checks.

The TID is used as an array index and, according to the Linux driver,
must be smaller than IWX_MAX_TID_COUNT (8). The AP might request an Rx
aggregation session using TID 8. Our driver uses the TID as an index into
an array of IEEE80211_NUM_TID (16) elements, and hence would not crash.
However, the index is exposed to firmware which could potentially crash
or raise an assertion failure for values >= 8.

ok kettenis@

date 2021-11-22T10:54:36Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
src/sys/dev/pci/if_iwxvar.h log diff annotate
message Let iwx(4) use per-Tx-queue interface timers to ensure that the interface
watchdog will trigger a device timeout if a particular Tx queue gets stuck
while other Tx queues keep working.

The Linux driver is using a similar workaround for "stuck queues".

Tested by myself and jmc@

date 2021-11-22T11:00:50Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
message Make iwm(4) update an Rx BA session's last_rx timestamp when a frame
is received which matches the session.

Tested by myself and bket@

date 2021-11-22T11:01:12Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
message Make iwx(4) update an Rx BA session's last_rx timestamp when a frame
is received which matches the session.

Same change as just made in iwm(4).

date 2021-11-22T11:29:17Z
author anton
files src/sys/dev/usb/ukbd.c log diff annotate
src/sys/dev/usb/ums.c log diff annotate
message Add missing claim multiple report ids conditionals to uhidev drivers.

date 2021-11-22T11:29:18Z
author anton
files src/sys/dev/usb/umstc.c log diff annotate
src/sys/dev/usb/utpms.c log diff annotate
src/sys/dev/usb/uwacom.c log diff annotate
message Add missing claim multiple report ids conditionals to uhidev drivers.

date 2021-11-22T11:30:16Z
author anton
files src/sys/dev/usb/uhidev.c log diff annotate
src/sys/dev/usb/uhidev.h log diff annotate
message Drop the old problematic claim multiple report ids logic now that all
uhidev drivers have been fixed.

date 2021-11-22T11:46:11Z
author mglocker
files src/sys/dev/usb/ehci.c log diff annotate
message M_USB -> M_USBHC

date 2021-11-22T12:55:40Z
author dv
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message vmm(4): copyout guest state on VM_EXIT_NONE

Partly related to a bug reported by kn@. We should be copying out
the guest exit state (including registers) when we succesfully
return from the vcpu run loop even if we don't require an emulation
assist from userland/vmd(8). This condition was introduced when I
removed the use of yield() and instead exit the kernel if the
scheduler says we've hogged the cpu.

ok mlarkin@

date 2021-11-22T12:56:04Z
author jsg
files src/sys/net/pf_table.c log diff annotate
message move PFR_TFLAG_CONST test, missed in rev 1.138
prompted by uninitialised var found by bluhm@ running regress on sparc64
ok sashan@

date 2021-11-22T13:47:10Z
author bluhm
files src/sys/netinet/ip_input.c log diff annotate
src/sys/netinet6/ip6_forward.c log diff annotate
message Copy code from ip_forward() to ip6_forward() to fix Path MTU discovery
in IPsec IPv6 tunnel. Implement sending ICMP6 packet too big
messages. Also implement the pf error case in ip6_forward(). While
there, do some cleanup and make the IPv4 and IPv6 code look similar.
OK tobhe@

date 2021-11-22T14:00:52Z
author jsg
files src/sys/dev/pci/if_igc.c log diff annotate
message avoid uninitialised variable use in igc(4)

read icr reg before testing bit in result
add missing block in rxeof from ix

ok kevlo@ patrick@

date 2021-11-22T14:57:17Z
author visa
files src/sys/kern/sys_futex.c log diff annotate
message Let futex_wait() run without kernel lock

The KERNEL_LOCK() is no longer necessary with rwsleep() and PCATCH
because the sleep machinery now does the locking internally.

OK mpi@

date 2021-11-22T14:59:03Z
author visa
files src/sys/kern/sys_generic.c log diff annotate
message Translate POLLNVAL in ppollcollect()

This makes the kqueue-based poll(2) behave more similarly to the old
code when a monitored file descriptor is closed by another thread.

OK mpi@

date 2021-11-22T17:15:05Z
author visa
files src/sys/kern/sys_generic.c log diff annotate
message Revert poll(2) back to the original implementation

The translation to and from kqueue still has major shortcomings.

Discussed with deraadt@

date 2021-11-22T19:22:59Z
author kettenis
files src/sys/arch/arm64/arm64/cpu.c log diff annotate
src/sys/arch/arm64/include/cpu.h log diff annotate
message Hack alert! Apple M1 systems still don't work with an MP kernel.
In order to make progress (and protect myself from things dumping cores
left and right when I run sysupgrade) abuse the hw.smt mechanism to
only schedule processes on the primary CPU.

ok deraadt@, patrick@

date 2021-11-22T20:19:23Z
author kettenis
files src/sys/dev/i2c/pcf8523.c log diff annotate
src/sys/dev/i2c/pcf8563.c log diff annotate
message Remove unused header files and make some cosmetic changes.

ok patrick@

date 2021-11-22T20:20:20Z
author kettenis
files src/sys/dev/i2c/files.i2c log diff annotate
src/sys/dev/i2c/pcf85063.c log diff annotate
message Add pcyrtc(4), a driver for the NXP PCF85063A/TP RTC chips.

ok patrick@

date 2021-11-22T20:25:50Z
author kettenis
files src/sys/arch/arm64/conf/GENERIC log diff annotate
src/sys/arch/arm64/conf/RAMDISK log diff annotate
message Enable iicmux(4) and pcyrtc(4).

date 2021-11-22T22:12:37Z
author jcs
files src/sys/dev/usb/ubcmtp.c log diff annotate
message use ISC license for ubcmtp