OpenBSD cvs log

created 2022-03-17T16:29:52Z
begin 2022-03-09T00:00:00Z
end 2022-03-16T00:00:00Z
path src/sys
commits 50

date 2022-03-09T11:38:51Z
author stsp
files src/sys/dev/pci/if_iwn.c log diff annotate
message Improve stability of roaming on iwn(4), in particular with wpa_supplicant.

Clear HT-related rxon flags in firmware when switching away from RUN
or ASSOC state. This avoids fatal firmware errors.

When starting a scan, set link state down and clear ic_bss before
sending the scan command to the device, not after.

tested by mbuhl@ on eduroam
ok mbuhl@

date 2022-03-09T17:29:52Z
author claudio
files src/sys/net/rtsock.c log diff annotate
message Change the logic around rounding up the needed memory for sysctls since
the network state can change between the two sysctl calls. Adding 10%
extra works for larger routing tables but can be too little on smaller
tables to hold even a single extra message. Instead of that add at least
1024 bytes or 10% (whichever is bigger) and round the size up to the next
page. With this there are no more sporadic errors in the bgpd integration
tests.
OK sthen@

date 2022-03-10T10:30:10Z
author hastings
files src/sys/dev/acpi/pchgpio.c log diff annotate
message Add support for Sunrisepoint-H and Sunrisepoint-LP platforms.

Also mask unhandled interrupts like we do in amdgpio(4).

ok kettenis@, deraadt@

date 2022-03-10T10:46:56Z
author mpi
files src/sys/uvm/uvm_page.c log diff annotate
message Do not clear the PG_BUSY flag before passing the anon to uvm_anon_release().

Should prevent a KASSERT() from tiggering when freeing an anon after swaping-out
its memory.

This code path has been broken since at least January 2021 and is apparently not
so easy to trigger.

Found the hard way by sthen@

ok kettenis@, kn@

date 2022-03-10T11:35:13Z
author jmatthew
files src/sys/dev/pci/if_aq_pci.c log diff annotate
message Invalidate the nic's rx descriptor cache when taking the interface up
or down, and turn off the global tx and rx enables when going down.
Without this, the nic can write to mbufs that were taken off the ring
when the interface was taken down, triggering mbuf cluster pool use
after free checks.

ok dlg@

date 2022-03-10T14:12:40Z
author bluhm
files src/sys/sys/atomic.h log diff annotate
message Provide atomic load and store functions for int and long. FreeBSD
also uses these names. This implements a complete interface for
atomic operations, such functions can be used for every access.
They provide compiler barriers, but no CPU memory barriers. This
is consistent with our other atomic operations.
OK mvs@ visa@

date 2022-03-10T15:21:08Z
author bluhm
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwx.c log diff annotate
src/sys/kern/kern_synch.c log diff annotate
src/sys/netinet/ip_ipsp.c log diff annotate
src/sys/sys/proc.h log diff annotate
src/sys/sys/refcnt.h log diff annotate
message Use atomic load and store functions to access refcnt and wait
variables. Although not necessary everywhere, using atomic functions
exclusively for variables marked as atomic is clearer.
OK mvs@ visa@

date 2022-03-10T21:00:51Z
author bluhm
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwx.c log diff annotate
message KASSERT should not contain memory barriers as they change behavior.
Read the integer values without atomic operations.
OK kettenis@

date 2022-03-11T06:45:22Z
author anton
files src/sys/dev/acpi/pluart_acpi.c log diff annotate
src/sys/dev/fdt/pluart_fdt.c log diff annotate
src/sys/dev/ic/pluart.c log diff annotate
src/sys/dev/ic/pluartvar.h log diff annotate
message Enable PL011 UART FIF0 support in pluart(4). The FIFO depth depends on
the revision and ranges from 16 to 32 bytes.

Special treatment of Server Base System Architecture (SBSA) generic UART
devices is required as presence of the interrupt trigger level register
is not guaranteed. Therefore treat such devices of having a 1-byte FIFO.

With help from kettenis@ and ok visa@

date 2022-03-11T08:28:40Z
author jsg
files src/sys/dev/pci/pcidevs log diff annotate
message fix previous

date 2022-03-11T08:29:21Z
author jsg
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2022-03-11T10:05:38Z
author claudio
files src/sys/kern/kern_sig.c log diff annotate
message Revert part of rev 1.293. Using cursig() to deliver masked signals
to the debugger can cause a loop between the debugger and cursig()
if the signal is masked. cursig() has no way to know which signal
was already delivered to the debugger and so it delivers the same
signal over and over again.

Instead handle traps to masked signals directly in trapsignal. This
is what rev 1.293 was mostly about. If SIGTRAP was masked by the
process breakpoints no longer worked since the signal deliver to
the debugger did not happen. Doing this case in trapsignal solves
both the problem with the loop and the delivery of masked traps.

Problem reported and fix tested by matthieu@
OK kettenis@ mpi@

date 2022-03-11T12:14:17Z
author jmatthew
files src/sys/dev/pci/if_aq_pci.c log diff annotate
message Fix receive filter handling. Update the unicast mac address in the filter
when bringing the interface up, so it's possible to change it with
ifconfig. Rearrange multicast handling so IFF_ALLMULTI is set correctly
and multicast ranges don't trigger promisc mode. Perhaps most importantly,
set RPF_MCAST_FILTER_EN to 0 when we don't want all multicast traffic -
we use mac address filters to receive specific multicast groups, and the
multicast filter is programmed to accept all multicast traffic.

based on a diff from Brad
ok dlg@

date 2022-03-11T18:00:45Z
author mpi
files src/sys/dev/pci/aac_pci.c log diff annotate
src/sys/dev/pci/adv_pci.c log diff annotate
src/sys/dev/pci/adw_pci.c log diff annotate
src/sys/dev/pci/agp.c log diff annotate
src/sys/dev/pci/agp_ali.c log diff annotate
src/sys/dev/pci/agp_amd.c log diff annotate
src/sys/dev/pci/agp_i810.c log diff annotate
src/sys/dev/pci/agp_intel.c log diff annotate
src/sys/dev/pci/agp_sis.c log diff annotate
src/sys/dev/pci/agp_via.c log diff annotate
src/sys/dev/pci/ahc_pci.c log diff annotate
src/sys/dev/pci/ahci_pci.c log diff annotate
src/sys/dev/pci/ahd_pci.c log diff annotate
src/sys/dev/pci/alipm.c log diff annotate
src/sys/dev/pci/amas.c log diff annotate
src/sys/dev/pci/amdiic.c log diff annotate
src/sys/dev/pci/amdpcib.c log diff annotate
src/sys/dev/pci/amdpm.c log diff annotate
src/sys/dev/pci/ami_pci.c log diff annotate
src/sys/dev/pci/arc.c log diff annotate
src/sys/dev/pci/auacer.c log diff annotate
src/sys/dev/pci/auglx.c log diff annotate
src/sys/dev/pci/auich.c log diff annotate
src/sys/dev/pci/auixp.c log diff annotate
src/sys/dev/pci/autri.c log diff annotate
src/sys/dev/pci/auvia.c log diff annotate
src/sys/dev/pci/azalia.c log diff annotate
src/sys/dev/pci/berkwdt.c log diff annotate
src/sys/dev/pci/cac_pci.c log diff annotate
src/sys/dev/pci/ccp_pci.c log diff annotate
src/sys/dev/pci/ciss_pci.c log diff annotate
src/sys/dev/pci/cmpci.c log diff annotate
src/sys/dev/pci/cs4280.c log diff annotate
src/sys/dev/pci/cs4281.c log diff annotate
src/sys/dev/pci/cy_pci.c log diff annotate
src/sys/dev/pci/cz.c log diff annotate
src/sys/dev/pci/dwiic_pci.c log diff annotate
src/sys/dev/pci/eap.c log diff annotate
src/sys/dev/pci/ehci_pci.c log diff annotate
src/sys/dev/pci/emuxki.c log diff annotate
src/sys/dev/pci/envy.c log diff annotate
src/sys/dev/pci/esa.c log diff annotate
src/sys/dev/pci/eso.c log diff annotate
src/sys/dev/pci/fms.c log diff annotate
src/sys/dev/pci/gcu.c log diff annotate
src/sys/dev/pci/gdt_pci.c log diff annotate
src/sys/dev/pci/glxpcib.c log diff annotate
src/sys/dev/pci/i82365_pci.c log diff annotate
src/sys/dev/pci/ichiic.c log diff annotate
src/sys/dev/pci/ichwdt.c log diff annotate
src/sys/dev/pci/if_acx_pci.c log diff annotate
src/sys/dev/pci/if_age.c log diff annotate
src/sys/dev/pci/if_alc.c log diff annotate
src/sys/dev/pci/if_ale.c log diff annotate
src/sys/dev/pci/if_an_pci.c log diff annotate
src/sys/dev/pci/if_ath_pci.c log diff annotate
src/sys/dev/pci/if_athn_pci.c log diff annotate
src/sys/dev/pci/if_atw_pci.c log diff annotate
src/sys/dev/pci/if_bce.c log diff annotate
src/sys/dev/pci/if_bge.c log diff annotate
src/sys/dev/pci/if_bnx.c log diff annotate
src/sys/dev/pci/if_bnxt.c log diff annotate
src/sys/dev/pci/if_bwfm_pci.c log diff annotate
src/sys/dev/pci/if_bwi_pci.c log diff annotate
src/sys/dev/pci/if_cas.c log diff annotate
src/sys/dev/pci/if_dc_pci.c log diff annotate
src/sys/dev/pci/if_de.c log diff annotate
src/sys/dev/pci/if_devar.h log diff annotate
src/sys/dev/pci/if_em.c log diff annotate
src/sys/dev/pci/if_ep_pci.c log diff annotate
src/sys/dev/pci/if_epic_pci.c log diff annotate
src/sys/dev/pci/if_et.c log diff annotate
src/sys/dev/pci/if_fxp_pci.c log diff annotate
src/sys/dev/pci/if_gem_pci.c log diff annotate
src/sys/dev/pci/if_hme_pci.c log diff annotate
src/sys/dev/pci/if_iavf.c log diff annotate
src/sys/dev/pci/if_ipw.c log diff annotate
src/sys/dev/pci/if_iwi.c log diff annotate
src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwn.c log diff annotate
src/sys/dev/pci/if_ix.c log diff annotate
src/sys/dev/pci/if_ixgb.c log diff annotate
src/sys/dev/pci/if_ixl.c log diff annotate
src/sys/dev/pci/if_jme.c log diff annotate
src/sys/dev/pci/if_lge.c log diff annotate
src/sys/dev/pci/if_lii.c log diff annotate
src/sys/dev/pci/if_malo_pci.c log diff annotate
src/sys/dev/pci/if_mcx.c log diff annotate
message Constify struct cfattach.

date 2022-03-11T18:00:46Z
author mpi
files src/sys/dev/pci/if_msk.c log diff annotate
message Constify struct cfattach.

date 2022-03-11T18:00:48Z
author mpi
files src/sys/dev/pci/if_mtd_pci.c log diff annotate
src/sys/dev/pci/if_myx.c log diff annotate
src/sys/dev/pci/if_ne_pci.c log diff annotate
src/sys/dev/pci/if_nep.c log diff annotate
src/sys/dev/pci/if_nfe.c log diff annotate
src/sys/dev/pci/if_nge.c log diff annotate
src/sys/dev/pci/if_nxe.c log diff annotate
src/sys/dev/pci/if_oce.c log diff annotate
src/sys/dev/pci/if_pcn.c log diff annotate
src/sys/dev/pci/if_pgt_pci.c log diff annotate
src/sys/dev/pci/if_ral_pci.c log diff annotate
src/sys/dev/pci/if_re_pci.c log diff annotate
src/sys/dev/pci/if_rge.c log diff annotate
src/sys/dev/pci/if_rl_pci.c log diff annotate
src/sys/dev/pci/if_rtw_pci.c log diff annotate
src/sys/dev/pci/if_sf_pci.c log diff annotate
src/sys/dev/pci/if_sis.c log diff annotate
src/sys/dev/pci/if_sk.c log diff annotate
src/sys/dev/pci/if_ste.c log diff annotate
src/sys/dev/pci/if_stge.c log diff annotate
src/sys/dev/pci/if_tht.c log diff annotate
message Constify struct cfattach.

date 2022-03-11T18:00:50Z
author mpi
files src/sys/dev/pci/if_ti_pci.c log diff annotate
src/sys/dev/pci/if_tl.c log diff annotate
src/sys/dev/pci/if_txp.c log diff annotate
src/sys/dev/pci/if_vge.c log diff annotate
src/sys/dev/pci/if_vic.c log diff annotate
src/sys/dev/pci/if_vmx.c log diff annotate
src/sys/dev/pci/if_vr.c log diff annotate
src/sys/dev/pci/if_vte.c log diff annotate
src/sys/dev/pci/if_wb.c log diff annotate
src/sys/dev/pci/if_wi_pci.c log diff annotate
src/sys/dev/pci/if_wpi.c log diff annotate
src/sys/dev/pci/if_xge.c log diff annotate
src/sys/dev/pci/if_xl_pci.c log diff annotate
src/sys/dev/pci/iha_pci.c log diff annotate
src/sys/dev/pci/ips.c log diff annotate
src/sys/dev/pci/itherm.c log diff annotate
src/sys/dev/pci/jmb.c log diff annotate
src/sys/dev/pci/kate.c log diff annotate
src/sys/dev/pci/km.c log diff annotate
src/sys/dev/pci/ksmn.c log diff annotate
src/sys/dev/pci/maestro.c log diff annotate
src/sys/dev/pci/mbg.c log diff annotate
src/sys/dev/pci/mfi_pci.c log diff annotate
src/sys/dev/pci/mfii.c log diff annotate
src/sys/dev/pci/mmuagp.c log diff annotate
src/sys/dev/pci/mpi_pci.c log diff annotate
src/sys/dev/pci/mpii.c log diff annotate
message Constify struct cfattach.

date 2022-03-11T18:00:51Z
author mpi
files src/sys/dev/pci/neo.c log diff annotate
src/sys/dev/pci/nviic.c log diff annotate
src/sys/dev/pci/nvme_pci.c log diff annotate
src/sys/dev/pci/ohci_pci.c log diff annotate
src/sys/dev/pci/pccbb.c log diff annotate
src/sys/dev/pci/pchtemp.c log diff annotate
src/sys/dev/pci/pci.c log diff annotate
src/sys/dev/pci/pciide.c log diff annotate
src/sys/dev/pci/pcscp.c log diff annotate
src/sys/dev/pci/piixpm.c log diff annotate
src/sys/dev/pci/ppb.c log diff annotate
src/sys/dev/pci/puc.c log diff annotate
src/sys/dev/pci/pwdog.c log diff annotate
src/sys/dev/pci/qla_pci.c log diff annotate
src/sys/dev/pci/qle.c log diff annotate
src/sys/dev/pci/qlw_pci.c log diff annotate
src/sys/dev/pci/rtsx_pci.c log diff annotate
src/sys/dev/pci/sdhc_pci.c log diff annotate
src/sys/dev/pci/sili_pci.c log diff annotate
src/sys/dev/pci/siop_pci.c log diff annotate
src/sys/dev/pci/sti_pci.c log diff annotate
src/sys/dev/pci/sv.c log diff annotate
message Constify struct cfattach.

date 2022-03-11T18:00:52Z
author mpi
files src/sys/dev/pci/tcpcib.c log diff annotate
src/sys/dev/pci/tga.c log diff annotate
src/sys/dev/pci/twe_pci.c log diff annotate
src/sys/dev/pci/uhci_pci.c log diff annotate
src/sys/dev/pci/vga_pci.c log diff annotate
src/sys/dev/pci/viapm.c log diff annotate
src/sys/dev/pci/virtio_pci.c log diff annotate
src/sys/dev/pci/vmwpvs.c log diff annotate
src/sys/dev/pci/wdt.c log diff annotate
src/sys/dev/pci/xhci_pci.c log diff annotate
src/sys/dev/pci/xspd.c log diff annotate
src/sys/dev/pci/yds.c log diff annotate
message Constify struct cfattach.

date 2022-03-11T18:00:53Z
author mpi
files src/sys/dev/pci/bktr/bktr_os.c log diff annotate
src/sys/dev/pci/drm/drm_drv.c log diff annotate
src/sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c log diff annotate
src/sys/dev/pci/drm/i915/i915_drv.c log diff annotate
src/sys/dev/pci/drm/radeon/radeon_kms.c log diff annotate
message Constify struct cfattach.

date 2022-03-11T19:02:15Z
author bluhm
files src/sys/sys/atomic.h log diff annotate
message Declare membar_datadep_consumer() inline to fix build on sparc64.

date 2022-03-11T19:24:19Z
author kettenis
files src/sys/uvm/uvm_extern.h log diff annotate
src/sys/uvm/uvm_glue.c log diff annotate
src/sys/uvm/uvm_io.c log diff annotate
src/sys/uvm/uvm_map.c log diff annotate
src/sys/uvm/uvm_map.h log diff annotate
message Hold a read lock on the map while copying out data during a sysctl(2) call
to prevent another thread from unmapping the memory and triggering
an assertion or even corrupting random physical memory pages.

This fix is similar to the change in uvm_glue.c rev. 1.74. However in this
case we need to be careful since some sysctl(2) calls look at the map of
the current process. In those cases we must not attempt to lock the map
again.

ok mpi@

Should fix:
Reported-by: [email protected]

date 2022-03-12T06:54:05Z
author jmatthew
files src/sys/dev/pci/if_rge.c log diff annotate
message Constify struct cfattach, not struct cfdriver

date 2022-03-12T08:11:07Z
author mpi
files src/sys/uvm/uvm_extern.h log diff annotate
src/sys/uvm/uvm_glue.c log diff annotate
src/sys/uvm/uvm_io.c log diff annotate
src/sys/uvm/uvm_map.c log diff annotate
src/sys/uvm/uvm_map.h log diff annotate
message Revert holding a read lock on the map while copying out data during sysctl(2).

This introduced a lock ordering issue reported by naddy@, anton@ and syzkaller.

Reported-by: [email protected]

date 2022-03-12T11:28:55Z
author kettenis
files src/sys/arch/arm64/dev/aplintc.c log diff annotate
message Unfortunately some last-minute changes were made to the AIC2 device tree
bindings before it was accepted in Linux. But handling both the
preliminary and (hopefully) final bindings can be done in a fairly clean
way.

ok jsg@

date 2022-03-12T12:34:22Z
author mpi
files src/sys/uvm/uvm_page.c log diff annotate
src/sys/uvm/uvm_pdaemon.c log diff annotate
message Uncompress some one line comments to reduce the difference with NetBSD.

No functionnal change.

date 2022-03-12T14:40:41Z
author mpi
files src/sys/arch/arm/arm/cpu.c log diff annotate
src/sys/arch/arm/cortex/agtimer.c log diff annotate
src/sys/arch/arm/cortex/ampintc.c log diff annotate
src/sys/arch/arm/cortex/amptimer.c log diff annotate
src/sys/arch/arm/cortex/arml2cc.c log diff annotate
src/sys/arch/arm/cortex/cortex.c log diff annotate
src/sys/arch/arm/mainbus/mainbus.c log diff annotate
src/sys/arch/arm/simplebus/simplebus.c log diff annotate
message Constify struct cfattach.

ok patrick@

date 2022-03-12T23:54:53Z
author jmatthew
files src/sys/dev/pci/if_aq_pci.c log diff annotate
message Transmit segmented packets using multiple tx ring slots rather than
defragging them first.

ok dlg@

date 2022-03-13T08:04:13Z
author mpi
files src/sys/arch/alpha/alpha/cpu.c log diff annotate
src/sys/arch/alpha/alpha/mainbus.c log diff annotate
src/sys/arch/alpha/isa/mcclock_isa.c log diff annotate
src/sys/arch/alpha/mcbus/mcbus.c log diff annotate
src/sys/arch/alpha/mcbus/mcmem.c log diff annotate
src/sys/arch/alpha/pci/apecs.c log diff annotate
src/sys/arch/alpha/pci/cia.c log diff annotate
src/sys/arch/alpha/pci/irongate.c log diff annotate
src/sys/arch/alpha/pci/lca.c log diff annotate
src/sys/arch/alpha/pci/mcpcia.c log diff annotate
src/sys/arch/alpha/pci/sio.c log diff annotate
src/sys/arch/alpha/pci/tsc.c log diff annotate
src/sys/arch/alpha/tc/ioasic.c log diff annotate
src/sys/arch/alpha/tc/mcclock_ioasic.c log diff annotate
src/sys/arch/alpha/tc/tcasic.c log diff annotate
message Constify struct cfattach.

ok miod@

date 2022-03-13T08:04:38Z
author mpi
files src/sys/arch/hppa/dev/astro.c log diff annotate
src/sys/arch/hppa/dev/com_dino.c log diff annotate
src/sys/arch/hppa/dev/com_ssio.c log diff annotate
src/sys/arch/hppa/dev/cpu.c log diff annotate
src/sys/arch/hppa/dev/dino.c log diff annotate
src/sys/arch/hppa/dev/elroy.c log diff annotate
src/sys/arch/hppa/dev/gecko.c log diff annotate
src/sys/arch/hppa/dev/lcd.c log diff annotate
src/sys/arch/hppa/dev/lpt_ssio.c log diff annotate
src/sys/arch/hppa/dev/mongoose.c log diff annotate
src/sys/arch/hppa/dev/pdc.c log diff annotate
src/sys/arch/hppa/dev/phantomas.c log diff annotate
src/sys/arch/hppa/dev/power.c log diff annotate
src/sys/arch/hppa/dev/siop_sgc.c log diff annotate
src/sys/arch/hppa/dev/ssio.c log diff annotate
src/sys/arch/hppa/dev/sti_sgc.c log diff annotate
src/sys/arch/hppa/dev/uturn.c log diff annotate
src/sys/arch/hppa/gsc/com_gsc.c log diff annotate
src/sys/arch/hppa/gsc/fdc_gsc.c log diff annotate
src/sys/arch/hppa/gsc/gsckbc.c log diff annotate
src/sys/arch/hppa/gsc/harmony.c log diff annotate
src/sys/arch/hppa/gsc/hil_gsc.c log diff annotate
src/sys/arch/hppa/gsc/if_ie_gsc.c log diff annotate
src/sys/arch/hppa/gsc/lpt_gsc.c log diff annotate
src/sys/arch/hppa/gsc/mongoose_gsc.c log diff annotate
src/sys/arch/hppa/gsc/oosiop_gsc.c log diff annotate
src/sys/arch/hppa/gsc/osiop_gsc.c log diff annotate
src/sys/arch/hppa/gsc/siop_gsc.c log diff annotate
src/sys/arch/hppa/hppa/mainbus.c log diff annotate
src/sys/arch/hppa/hppa/mem.c log diff annotate
message Constify struct cfattach.

ok miod@

date 2022-03-13T10:13:54Z
author jmatthew
files src/sys/dev/pci/if_aq_pci.c log diff annotate
message Enable vlan promisc and header stripping, and use vlan rx/tx offloads.
The vlan tx information takes up an extra slot on the tx ring, so this
affects the point at which we stop putting packets on the ring too.

ok dlg@

date 2022-03-13T12:33:01Z
author mpi
files src/sys/arch/macppc/dev/abtn.c log diff annotate
src/sys/arch/macppc/dev/adb.c log diff annotate
src/sys/arch/macppc/dev/aoa.c log diff annotate
src/sys/arch/macppc/dev/apm.c log diff annotate
src/sys/arch/macppc/dev/asms.c log diff annotate
src/sys/arch/macppc/dev/awacs.c log diff annotate
src/sys/arch/macppc/dev/daca.c log diff annotate
src/sys/arch/macppc/dev/dfs.c log diff annotate
src/sys/arch/macppc/dev/if_bm.c log diff annotate
src/sys/arch/macppc/dev/if_wi_obio.c log diff annotate
src/sys/arch/macppc/dev/kiic.c log diff annotate
src/sys/arch/macppc/dev/macgpio.c log diff annotate
src/sys/arch/macppc/dev/macintr.c log diff annotate
src/sys/arch/macppc/dev/mediabay.c log diff annotate
src/sys/arch/macppc/dev/onyx.c log diff annotate
src/sys/arch/macppc/dev/pgs.c log diff annotate
src/sys/arch/macppc/dev/piic.c log diff annotate
src/sys/arch/macppc/dev/smu.c log diff annotate
src/sys/arch/macppc/dev/snapper.c log diff annotate
src/sys/arch/macppc/dev/sysbutton.c log diff annotate
src/sys/arch/macppc/dev/tumbler.c log diff annotate
src/sys/arch/macppc/dev/wdc_obio.c log diff annotate
src/sys/arch/macppc/dev/xlights.c log diff annotate
src/sys/arch/macppc/dev/zs.c log diff annotate
src/sys/arch/macppc/macppc/cpu.c log diff annotate
src/sys/arch/macppc/macppc/mainbus.c log diff annotate
src/sys/arch/macppc/macppc/mem.c log diff annotate
src/sys/arch/macppc/pci/ht.c log diff annotate
src/sys/arch/macppc/pci/kauaiata.c log diff annotate
src/sys/arch/macppc/pci/macobio.c log diff annotate
src/sys/arch/macppc/pci/mpcpcibus.c log diff annotate
src/sys/arch/macppc/pci/pchb.c log diff annotate
message Constify struct cfattach.

ok miod@

date 2022-03-13T13:34:54Z
author mpi
files src/sys/dev/sbus/agten.c log diff annotate
src/sys/dev/sbus/apio.c log diff annotate
src/sys/dev/sbus/asio.c log diff annotate
src/sys/dev/sbus/be.c log diff annotate
src/sys/dev/sbus/bwtwo.c log diff annotate
src/sys/dev/sbus/cgsix.c log diff annotate
src/sys/dev/sbus/cgthree.c log diff annotate
src/sys/dev/sbus/cgtwelve.c log diff annotate
src/sys/dev/sbus/cs4231.c log diff annotate
src/sys/dev/sbus/dma_sbus.c log diff annotate
src/sys/dev/sbus/esp_sbus.c log diff annotate
src/sys/dev/sbus/if_gem_sbus.c log diff annotate
src/sys/dev/sbus/if_hme_sbus.c log diff annotate
src/sys/dev/sbus/if_le.c log diff annotate
src/sys/dev/sbus/if_le_lebuffer.c log diff annotate
src/sys/dev/sbus/if_le_ledma.c log diff annotate
src/sys/dev/sbus/if_ti_sbus.c log diff annotate
src/sys/dev/sbus/lebuffer.c log diff annotate
src/sys/dev/sbus/magma.c log diff annotate
src/sys/dev/sbus/mgx.c log diff annotate
src/sys/dev/sbus/qe.c log diff annotate
src/sys/dev/sbus/qec.c log diff annotate
src/sys/dev/sbus/qla_sbus.c log diff annotate
src/sys/dev/sbus/qlw_sbus.c log diff annotate
src/sys/dev/sbus/rfx.c log diff annotate
src/sys/dev/sbus/spif.c log diff annotate
src/sys/dev/sbus/tvtwo.c log diff annotate
src/sys/dev/sbus/uperf_sbus.c log diff annotate
src/sys/dev/sbus/vigra.c log diff annotate
src/sys/dev/sbus/xbox.c log diff annotate
src/sys/dev/sbus/zx.c log diff annotate
message Constify struct cfattach.

ok miod@

date 2022-03-13T21:17:52Z
author kettenis
files src/sys/dev/acpi/pluart_acpi.c log diff annotate
src/sys/dev/fdt/pluart_fdt.c log diff annotate
src/sys/dev/ic/pluart.c log diff annotate
src/sys/dev/ic/pluartvar.h log diff annotate
message Revert previous commit. It breaks the serial console on my rpi4.

date 2022-03-13T21:38:32Z
author bluhm
files src/sys/net/pfkeyv2.c log diff annotate
src/sys/netinet/ip_ipsp.h log diff annotate
src/sys/netinet/ip_spd.c log diff annotate
message Hrvoje has hit a crash with IPsec acquire while testing the parallel
IP forwarding diff. Add mutex and refcount to make memory management
of struct ipsec_acquire MP safe.
testing Hrvoje Popovski; input sashan@; OK mvs@

date 2022-03-14T13:08:32Z
author kettenis
files src/sys/arch/arm64/dev/apldart.c log diff annotate
message Make sure the apldart(4) implementation of bus_dmamap_destroy(9) does the
equivalent of bus_dmamap_unload(9) if active mappings exist. This fixes
the kerenal panics seen with bringing bwfm(4) down and up again.

ok jsg@, patrick@

date 2022-03-14T14:15:33Z
author stsp
files src/sys/dev/ic/r92creg.h log diff annotate
message Fix Tx performance on urtwn(4) RTL8192EU devices.

The "driver rate" bit which tells firmware to use the driver-provided
Tx rate is in a different spot of Tx descriptor double word 3.
Fix the corresponding macro definition.

The device was sending all frames at CCK1 because of this bug, regardless
of the Tx rate the driver had chosen.

tcpbench before:
Conn: 1 Mbps: 0.808 Peak Mbps: 1.108 Avg Mbps: 0.808

tcpbench with fix:
Conn: 1 Mbps: 21.078 Peak Mbps: 21.078 Avg Mbps: 21.078

ok jmatthew@

date 2022-03-14T15:06:04Z
author stsp
files src/sys/net80211/ieee80211_radiotap.h log diff annotate
message sync ieee80211 channel flags over to radiotap

date 2022-03-14T15:07:24Z
author stsp
files src/sys/net80211/ieee80211.c log diff annotate
src/sys/net80211/ieee80211.h log diff annotate
src/sys/net80211/ieee80211_input.c log diff annotate
src/sys/net80211/ieee80211_ioctl.h log diff annotate
src/sys/net80211/ieee80211_node.c log diff annotate
src/sys/net80211/ieee80211_node.h log diff annotate
src/sys/net80211/ieee80211_output.c log diff annotate
src/sys/net80211/ieee80211_proto.c log diff annotate
src/sys/net80211/ieee80211_proto.h log diff annotate
src/sys/net80211/ieee80211_var.h log diff annotate
message Add initial 802.11ac (VHT) support to net80211.

Add VHT capability and operation IE definitions to ieee80211.h.
Introduce channel flags to identify 80MHz and 160MHz capable channels.

Parse VHT IEs in beacons, announce the driver's VHT capabilities in
probe requests and assoc requests, and hop into 11ac mode after
association to the AP if possible.

Enable VHT by default if the driver announces support for it.

ok claudio@

date 2022-03-14T15:08:50Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
src/sys/dev/pci/if_iwxreg.h log diff annotate
src/sys/dev/pci/if_iwxvar.h log diff annotate
message Add initial support for 802.11ac (VHT) to the iwx(4) driver.

This makes it possible to use 80MHz channels and VHT-specific MCS.
Other 11ac features remain disabled for now.

Tested:
ax200: Matthias Schmidt, phessler, dv, kevlo, Joel Carnat, hrvoje, jmc, stsp
ax201: mlarkin, stsp
iwm (regression testing): stsp

date 2022-03-14T17:23:00Z
author bluhm
files src/sys/kern/kern_sysctl.c log diff annotate
src/sys/netinet/in_pcb.c log diff annotate
src/sys/netinet/in_pcb.h log diff annotate
src/sys/netinet/raw_ip.c log diff annotate
src/sys/netinet/udp_usrreq.c log diff annotate
src/sys/netinet6/in6_pcb.c log diff annotate
src/sys/netinet6/raw_ip6.c log diff annotate
message pf_socket_lookup() calls in_pcbhashlookup() in the PCB layer. To
run pf in parallel, make parts of the stack MP safe. Protect the
list and hashes in the PCB tables with a mutex.
Note that the protocol notify functions may call pf via tcp_output().
As the pf lock is a sleeping rw_lock, we must not hold a mutex. To
solve this for now, collect these PCBs in inp_notify list and protect
it with exclusive netlock.
OK sashan@

date 2022-03-14T19:09:32Z
author kettenis
files src/sys/arch/arm64/stand/efiboot/Makefile log diff annotate
src/sys/arch/arm64/stand/efiboot/conf.c log diff annotate
src/sys/arch/arm64/stand/efiboot/dt_blob.S log diff annotate
src/sys/arch/arm64/stand/efiboot/fdt.c log diff annotate
src/sys/arch/armv7/stand/efiboot/fdt.c log diff annotate
src/sys/arch/riscv64/stand/efiboot/fdt.c log diff annotate
message The current FDT code we use in the bootloader is buggy and will write into
memory beyond the actual FDT data structure when adding information to the
device tree. This is especially problematic on ACPI systems where we add
lots of information to the device tree based on ACPI tables. Fix the FDT
code to never write beyond the end of the data structure and panic if we
run out of free space. Raise the amount of free space frm 4K to 16K for
the proto-FDT we use on ACPI systems. Bump the version number of the
arm64 bootloader.

ok visa@, patrick@

date 2022-03-14T22:38:43Z
author tb
files src/sys/kern/kern_sysctl.c log diff annotate
src/sys/netinet/in_pcb.c log diff annotate
src/sys/netinet/in_pcb.h log diff annotate
src/sys/netinet/raw_ip.c log diff annotate
src/sys/netinet/udp_usrreq.c log diff annotate
src/sys/netinet6/in6_pcb.c log diff annotate
src/sys/netinet6/raw_ip6.c log diff annotate
message Unbreak the tree, revert commitid aZ8fm4iaUnTCc0ul

This reverts the commit protecting the list and hashes in the PCB tables
with a mutex since the build of sysctl(8) breaks, as found by kettenis.

ok sthen

date 2022-03-14T23:41:42Z
author dlg
files src/sys/dev/pci/if_bnxt.c log diff annotate
message unload the dmamap in bnxt_dmamem_free.

this is technically not necessary, but it makes it feel symmetrical
with bnxt_dmamem_alloc which loads it.

ok jmatthew@

date 2022-03-15T02:07:21Z
author jmatthew
files src/sys/dev/pci/if_aq_pci.c log diff annotate
message Enable checksum offloads. The nic does all the work here, so we don't
need to calculate header offsets for it.

ok dlg@

date 2022-03-15T08:15:23Z
author jsg
files src/sys/net/Attic/if_vxlan.h log diff annotate
message remove if_vxlan.h unused after if_vxlan.c rev 1.84
ok kevlo@ claudio@

date 2022-03-15T09:22:56Z
author stsp
files src/sys/dev/pci/if_rtwn.c log diff annotate
message Fix Tx rate used by rtwn(4) and urtwn(4) for RTS frames.

Using ni_txrate for RTS is a bad choice since it could go up to 54 Mbit/s.
The AP needs to receive our RTS frame reliably. Usually, 1 Mbit/s is used
for RTS, but this hurts throughput and does not really make sense on today's
wifi networks.

Use 1 Mbit/s in 11b mode, and otherwise use 24 Mbit/s, as damien@
already hard-coded in urtwn long ago.

ok kevlo@

date 2022-03-15T09:23:01Z
author stsp
files src/sys/dev/usb/if_urtwn.c log diff annotate
message Fix Tx rate used by rtwn(4) and urtwn(4) for RTS frames.

Using ni_txrate for RTS is a bad choice since it could go up to 54 Mbit/s.
The AP needs to receive our RTS frame reliably. Usually, 1 Mbit/s is used
for RTS, but this hurts throughput and does not really make sense on today's
wifi networks.

Use 1 Mbit/s in 11b mode, and otherwise use 24 Mbit/s, as damien@
already hard-coded in urtwn long ago.

ok kevlo@

date 2022-03-15T11:22:10Z
author jan
files src/sys/dev/pci/if_ix.c log diff annotate
message Enable IP header checksum offloading in ix(4).

ok jmatthew@

date 2022-03-15T18:46:15Z
author kettenis
files src/sys/arch/arm64/dev/aplsmc.c log diff annotate
message Implement additional error checking for aplsmc_read_key() such that we can
detect when we read a key that isn't supported by the firmware.
Only provide RTC functionality if the "CLKM" key is implemented.
Fixes reading the time on machines with old SMC firmware from macOS 11.x.

ok jsg@