OpenBSD cvs log

created 2023-09-10T08:11:40Z
begin 2023-09-05T00:00:00Z
end 2023-09-06T00:00:00Z
path src/sys
commits 10

date 2023-09-05T05:08:26Z
author guenther
files src/sys/uvm/uvm_fault.c log diff annotate
message Address the case 2b version of inconsistent view across threads of
a page undergoing copy-on-write faulting. We fixed the case 1b
version in rev 1.125 (2022-02-01), but missed this other path.

jsg@ noted that in NetBSD Chuck Silvers had a relevant commit, their
rev 1.234 (2023-08-13), which looks like it fixed both cases due
to their refactoring of common code into a uvmfault_promote()
function.

ok mpi@ jca@

date 2023-09-05T11:04:06Z
author tobhe
files src/sys/arch/arm64/dev/apldc.c log diff annotate
message Fix touchpad on newer device trees. The *gpio fields moved up one layer.
The driver will work with both formats for now but we plan to remove
the old one in the future.

ok kettenis@

date 2023-09-05T13:06:01Z
author stsp
files src/sys/dev/pci/ksmn.c log diff annotate
message Make ksmn(4) attach to 19h/4x devices

Tested on:
cpu0: AMD Ryzen 5 PRO 6650U with Radeon Graphics, 2900.00 MHz, 19-44-01, patch 0a404102

ok mlarkin

date 2023-09-05T13:06:42Z
author naddy
files src/sys/dev/pci/if_em.c log diff annotate
src/sys/dev/pci/if_em_hw.c log diff annotate
message stop putting multicast addresses into the Receive Address Registers

Hash them all into the Multicast Table Array. This matches what
FreeBSD does.

This fixes a problem where the I217-LM would fail to receive packets
for some of the programmed addresses.

Approach agreed by jmatthew@ dlg@
OK claudio@

date 2023-09-05T13:06:43Z
author naddy
files src/sys/dev/pci/if_em_hw.h log diff annotate
message stop putting multicast addresses into the Receive Address Registers

Hash them all into the Multicast Table Array. This matches what
FreeBSD does.

This fixes a problem where the I217-LM would fail to receive packets
for some of the programmed addresses.

Approach agreed by jmatthew@ dlg@
OK claudio@

date 2023-09-05T14:00:40Z
author mlarkin
files src/sys/arch/amd64/amd64/vmm_machdep.c log diff annotate
message vmm(4): switch the APMI CPUID mask to an include mask

dv points out that there are other bits there that imply the existence
of other MSRs, so switching this to an include list is a better idea.

date 2023-09-05T14:00:41Z
author mlarkin
files src/sys/arch/amd64/include/vmmvar.h log diff annotate
message vmm(4): switch the APMI CPUID mask to an include mask

dv points out that there are other bits there that imply the existence
of other MSRs, so switching this to an include list is a better idea.

date 2023-09-05T22:25:41Z
author cheloha
files src/sys/kern/kern_clockintr.c log diff annotate
message clockintr: add clockintr_advance_random()

Add clockintr_advance_random(). Its sole purpose is to simplify the
implementation of statclock's pseudorandom period.

Ideally, nothing else will use it and we will get rid of it and the
pseudorandom statclock period at some point in the near future.

Suggested by mpi@.

Thread: https://marc.info/?l=openbsd-tech&m=169392340028978&w=2

ok mpi@ mlarkin@

date 2023-09-05T22:29:28Z
author cheloha
files src/sys/kern/kern_clockintr.c log diff annotate
message clockintr: remove clockintr_nsecuptime()

With the introduction of clockintr_advance_random(), this interface is
now unused. Remove it.

Suggested by mpi@.

Thread: https://marc.info/?l=openbsd-tech&m=169392340028978&w=2

ok mpi@ mlarkin@

date 2023-09-05T22:41:14Z
author cheloha
files src/sys/kern/kern_clockintr.c log diff annotate
message clockintr: remove clockintr_expiration()

With the introduction of clockintr_advance_random(), this interface is
now unused. Remove it.

Suggested by mpi@.

Thread: https://marc.info/?l=openbsd-tech&m=169392340028978&w=2

ok mpi@ mlarkin@