OpenBSD cvs log

created 2019-06-08T11:09:40Z
begin 2019-06-03T00:00:00Z
end 2019-06-04T00:00:00Z
path src/sys
commits 8

date 2019-06-03T00:43:26Z
author kettenis
files src/sys/dev/fdt/dwpcie.c log diff annotate
src/sys/dev/fdt/rkpcie.c log diff annotate
message Change pci_intr_handle_t into a struct and replace duplicated code that
implements mapping of MSI and MSI-X interrupts with new generic functions.
Fixes a use-after-free in sone PCI device drivers that call pci_intr_string(9)
after pci_intr_establish(9).

ok deraadt@

date 2019-06-03T01:27:30Z
author cheloha
files src/sys/kern/kern_tc.c log diff annotate
src/sys/kern/kern_time.c log diff annotate
src/sys/sys/time.h log diff annotate
message Switch from bintime_add() et al. to bintimeadd(9).

Basically just make all the bintime routines look and behave more like
the timeradd(3) macros.

Switch to three-argument forms for structure math, introduce and use
bintimecmp(9), and rename the structure conversion routines to resemble

Document all of this in a new bintimeadd.9 page.

Code input from mpi@, manpage input from schwarze@.

code ok mpi@, docs ok schwarze@, docs probably still ok jmc@

date 2019-06-03T01:52:53Z
author kevlo
files src/sys/dev/pci/if_alc.c log diff annotate
message - Remove a redundant check within alc_mii_readreg_813x().
The PHY address is already checked within alc_miibus_readreg().
- Remove redundant call to alc_stop_queue().
First thing alc_stop_mac() does is call alc_stop_queue().

From Brad

date 2019-06-03T04:38:30Z
author jmatthew
files src/sys/dev/pci/if_mcx.c log diff annotate
message Implement rx filtering using the flow table. Now we have three flow groups,
one that will match any packet, used in promisc mode; one that matches on the
low bit of the first byte of the destination mac address, used to receive all
multicast packets; and one that matches on the whole destination mac address,
used to receive unicast, broadcast and specific multicast addresses. As we
add multicast addresses, we create flow entries to match them, but if we run
out, we create an all-multicast flow entry.

ok dlg@

date 2019-06-03T08:48:10Z
author kettenis
files src/sys/arch/arm64/dev/agintc.c log diff annotate
message Fix priorities of LIPs to match the other changes made in rev 1.17.
Makes MSI/MSI-X actually work reliably on machines with agintc(4).

ok patrick@

date 2019-06-03T13:09:56Z
author patrick
files src/sys/arch/arm64/include/bus.h log diff annotate
message Map the raw bus space operations to the regular ones.

ok kettenis@

date 2019-06-03T16:46:49Z
author anton
files src/sys/dev/ic/pckbc.c log diff annotate
message Prevent corruption of the pckbc command queue. If multiple synchronous
commands are in flight and all corresponding threads are sleeping
waiting for a response, the first command to timeout will clear the
command queue. The remaining threads once awake will then try to remove
a dequeued command from the queue, leading to corruption. Instead,
remove commands from the queue before waking up the sleeping thread.
A quirk is still needed to handle the case where tsleep() returns
successfully during suspend.

ok mpi@ visa@


date 2019-06-03T19:39:16Z
author anton
files src/sys/kern/subr_kubsan.c log diff annotate
message sort struct declarations