OpenBSD cvs log

created 2021-06-06T21:27:50Z
begin 2021-02-25T00:00:00Z
end 2021-02-26T00:00:00Z
path src/sys
commits 13

date 2021-02-25T01:19:35Z
author dlg
files src/sys/conf/GENERIC log diff annotate
message enable veb(4), it's time for wider testing.

apart from the semantic differences between bridge(4) and veb(4),
the only missing bits in veb(4) is the transparent ipsec interception
support, and spanning tree.

date 2021-02-25T02:43:31Z
author dlg
files src/sys/sys/mbuf.h log diff annotate
message let m_copydata use a void * instead of caddr_t

i'm not a fan of having to cast to caddr_t when we have modern
inventions like void *s we can take advantage of.

ok claudio@ mvs@ bluhm@

date 2021-02-25T02:43:32Z
author dlg
files src/sys/kern/uipc_mbuf.c log diff annotate
message let m_copydata use a void * instead of caddr_t

i'm not a fan of having to cast to caddr_t when we have modern
inventions like void *s we can take advantage of.

ok claudio@ mvs@ bluhm@

date 2021-02-25T02:48:19Z
author dlg
files src/sys/arch/armv7/sunxi/sxie.c log diff annotate
src/sys/arch/octeon/dev/octcrypto.c log diff annotate
src/sys/dev/ic/acx.c log diff annotate
message we don't have to cast to caddr_t when calling m_copydata anymore.

the first cut of this diff was made with coccinelle using this spatch:

@rule@
type caddr_t;
expression m, off, len, cp;
@@
-m_copydata(m, off, len, (caddr_t)cp)
+m_copydata(m, off, len, cp)

i had fix it's opinionated idea of formatting by hand though, so
i'm not sure it was worth it.

ok deraadt@ bluhm@

date 2021-02-25T02:48:20Z
author dlg
files src/sys/dev/ic/an.c log diff annotate
src/sys/dev/ic/if_wi.c log diff annotate
src/sys/dev/pci/if_bwfm_pci.c log diff annotate
src/sys/dev/pci/if_mcx.c log diff annotate
src/sys/dev/pci/safe.c log diff annotate
src/sys/dev/pci/ubsec.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_rsu.c log diff annotate
src/sys/dev/usb/if_uath.c log diff annotate
src/sys/dev/usb/if_urtw.c log diff annotate
message we don't have to cast to caddr_t when calling m_copydata anymore.

the first cut of this diff was made with coccinelle using this spatch:

@rule@
type caddr_t;
expression m, off, len, cp;
@@
-m_copydata(m, off, len, (caddr_t)cp)
+m_copydata(m, off, len, cp)

i had fix it's opinionated idea of formatting by hand though, so
i'm not sure it was worth it.

ok deraadt@ bluhm@

date 2021-02-25T02:48:21Z
author dlg
files src/sys/net/bridgectl.c log diff annotate
src/sys/net/if_bridge.c log diff annotate
src/sys/net/if_pfsync.c log diff annotate
src/sys/net/if_pppx.c log diff annotate
src/sys/net/if_switch.c log diff annotate
src/sys/net/if_vlan.c log diff annotate
src/sys/net/if_vxlan.c log diff annotate
src/sys/net/pipex.c log diff annotate
src/sys/net/rtsock.c log diff annotate
src/sys/net/switchofp.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_icmp.c log diff annotate
src/sys/netinet/tcp_subr.c log diff annotate
src/sys/netinet6/ip6_input.c log diff annotate
message we don't have to cast to caddr_t when calling m_copydata anymore.

the first cut of this diff was made with coccinelle using this spatch:

@rule@
type caddr_t;
expression m, off, len, cp;
@@
-m_copydata(m, off, len, (caddr_t)cp)
+m_copydata(m, off, len, cp)

i had fix it's opinionated idea of formatting by hand though, so
i'm not sure it was worth it.

ok deraadt@ bluhm@

date 2021-02-25T07:30:36Z
author jan
files src/sys/dev/ic/nvme.c log diff annotate
message Prevent zero size devices from attaching

This also fixes two NULL ptr derefs in later code path.

OK patick@, krw@

date 2021-02-25T22:14:54Z
author kettenis
files src/sys/dev/ofw/ofw_misc.c log diff annotate
src/sys/dev/ofw/ofw_misc.h log diff annotate
message Add a framework for IOMMUs.

ok patrick@

date 2021-02-25T23:07:48Z
author patrick
files src/sys/arch/arm/include/pci_machdep.h log diff annotate
src/sys/arch/arm64/dev/acpipci.c log diff annotate
src/sys/arch/arm64/dev/Attic/pciecam.c log diff annotate
src/sys/arch/arm64/include/pci_machdep.h log diff annotate
src/sys/arch/armv7/marvell/mvpcie.c log diff annotate
src/sys/arch/armv7/vexpress/pciecam.c log diff annotate
message Add some infrastructure in the PCI chipset tag for pci_probe_device_hook()
so that we can provide IOMMU-hooked bus DMA tags for each PCI device.

ok kettenis@

date 2021-02-25T23:07:49Z
author patrick
files src/sys/dev/fdt/bcm2711_pcie.c log diff annotate
src/sys/dev/fdt/dwpcie.c log diff annotate
src/sys/dev/fdt/mvkpcie.c log diff annotate
src/sys/dev/fdt/rkpcie.c log diff annotate
message Add some infrastructure in the PCI chipset tag for pci_probe_device_hook()
so that we can provide IOMMU-hooked bus DMA tags for each PCI device.

ok kettenis@

date 2021-02-25T23:26:05Z
author patrick
files src/sys/dev/pci/if_bwfm_pci.c log diff annotate
src/sys/dev/pci/if_bwfm_pci.h log diff annotate
message Support for version 7 of the bwfm(4) PCIe interface. The size of the items
on the rx/tx complete rings has increased slightly to accomodate possible
new features.

date 2021-02-25T23:55:41Z
author patrick
files src/sys/dev/ic/bwfm.c log diff annotate
src/sys/dev/pci/if_bwfm_pci.c log diff annotate
message Some newer chips have two D11/802.11 cores, and we need to reset both at
the same time.

date 2021-02-25T23:59:54Z
author patrick
files src/sys/dev/pci/if_bwfm_pci.c log diff annotate
message The firmware replaces the last 32-bit on RAM with a shared DRAM address.
While the for-loop checks that thie value has changed since we wrote to
it, the timeout-condition checked for non-zero, which is wrong. This
means that we didn't realize the firmware wasn't started. While there,
make sure the shared DRAM address is inside the chip's address space.