OpenBSD cvs log

created 2023-11-12T08:40:42Z
begin 2023-11-10T00:00:00Z
end 2023-11-11T00:00:00Z
path src/sys
commits 8

date 2023-11-10T12:14:04Z
author jsg
files src/sys/dev/pci/pcidevs log diff annotate
src/sys/dev/pci/drm/amd/amdgpu/amdgpu_devlist.h log diff annotate
message add "Phoenix 2" APU device id

Phoenix 2 parts include both Zen4 and Zen4c cores
used by Ryzen Z1, Ryzen 5 7545U, Ryzen 3 7440U with cpuid 19-78-00

date 2023-11-10T12:14:33Z
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 2023-11-10T15:51:19Z
author bluhm
files src/sys/arch/armv7/omap/if_cpsw.c log diff annotate
src/sys/arch/armv7/sunxi/sxie.c log diff annotate
src/sys/arch/octeon/dev/if_cnmac.c log diff annotate
src/sys/dev/fdt/if_dwge.c log diff annotate
src/sys/dev/fdt/if_dwxe.c log diff annotate
src/sys/dev/fdt/if_mvneta.c log diff annotate
src/sys/dev/fdt/if_mvpp.c log diff annotate
message Make ifq and ifiq interface MP safe.

Rename ifq_set_maxlen() to ifq_init_maxlen(). This function neither
uses WRITE_ONCE() nor a mutex and is called before the ifq mutex
is initialized. The new name expresses that it should be used only
during interface attach when there is no concurrency.

Protect ifq_len(), ifq_empty(), ifiq_len(), and ifiq_empty() with
READ_ONCE(). They can be used without lock as they only read a
single integer.

OK dlg@

date 2023-11-10T15:51:20Z
author bluhm
files src/sys/dev/ic/acx.c log diff annotate
src/sys/dev/ic/aic6915.c log diff annotate
src/sys/dev/ic/ath.c log diff annotate
src/sys/dev/ic/bcmgenet.c log diff annotate
src/sys/dev/ic/bwi.c log diff annotate
src/sys/dev/ic/dc.c log diff annotate
src/sys/dev/ic/dwqe.c log diff annotate
src/sys/dev/ic/elink3.c log diff annotate
src/sys/dev/ic/fxp.c log diff annotate
src/sys/dev/ic/gem.c log diff annotate
src/sys/dev/ic/malo.c log diff annotate
src/sys/dev/ic/pgt.c log diff annotate
src/sys/dev/ic/re.c log diff annotate
src/sys/dev/ic/smc83c170.c log diff annotate
src/sys/dev/ic/ti.c log diff annotate
src/sys/dev/ic/xl.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_aq_pci.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_cas.c log diff annotate
src/sys/dev/pci/if_em.c log diff annotate
src/sys/dev/pci/if_et.c log diff annotate
src/sys/dev/pci/if_iavf.c log diff annotate
src/sys/dev/pci/if_igc.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_mcx.c log diff annotate
src/sys/dev/pci/if_msk.c log diff annotate
src/sys/dev/pci/if_myx.c log diff annotate
src/sys/dev/pci/if_nfe.c log diff annotate
src/sys/dev/pci/if_ngbe.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_rge.c log diff annotate
src/sys/dev/pci/if_se.c log diff annotate
src/sys/dev/pci/if_sis.c log diff annotate
src/sys/dev/pci/if_sk.c log diff annotate
message Make ifq and ifiq interface MP safe.

Rename ifq_set_maxlen() to ifq_init_maxlen(). This function neither
uses WRITE_ONCE() nor a mutex and is called before the ifq mutex
is initialized. The new name expresses that it should be used only
during interface attach when there is no concurrency.

Protect ifq_len(), ifq_empty(), ifiq_len(), and ifiq_empty() with
READ_ONCE(). They can be used without lock as they only read a
single integer.

OK dlg@

date 2023-11-10T15:51:24Z
author bluhm
files 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
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_vte.c log diff annotate
src/sys/dev/pci/if_wb.c log diff annotate
src/sys/dev/pci/if_xge.c log diff annotate
src/sys/dev/pv/if_hvn.c log diff annotate
src/sys/dev/pv/if_vio.c log diff annotate
src/sys/dev/pv/if_xnf.c log diff annotate
src/sys/net/if.c log diff annotate
src/sys/net/if_spppsubr.c log diff annotate
src/sys/net/ifq.c log diff annotate
src/sys/net/ifq.h log diff annotate
message Make ifq and ifiq interface MP safe.

Rename ifq_set_maxlen() to ifq_init_maxlen(). This function neither
uses WRITE_ONCE() nor a mutex and is called before the ifq mutex
is initialized. The new name expresses that it should be used only
during interface attach when there is no concurrency.

Protect ifq_len(), ifq_empty(), ifiq_len(), and ifiq_empty() with
READ_ONCE(). They can be used without lock as they only read a
single integer.

OK dlg@

date 2023-11-10T17:43:39Z
author krw
files src/sys/scsi/sd.c log diff annotate
message scsi_xs_get() sets xs->flags via scsi_xs_io(). There is no need
to separately add another flag via SET(). Just pass the correct
combo to scsi_xs_get().

ok dlg@

date 2023-11-10T20:05:22Z
author bluhm
files src/sys/net/art.c log diff annotate
src/sys/net/art.h log diff annotate
src/sys/net/route.c log diff annotate
src/sys/net/route.h log diff annotate
src/sys/net/rtable.c log diff annotate
src/sys/net/rtable.h log diff annotate
src/sys/netinet/in.h log diff annotate
message rtable_match() takes constant destination.

For implementing MP safe route lookup, it helps to know which
function parameters are constant. Add some const declarations, so
that the compiler guarantees that sockaddr dst parameter of
rtable_match() does not change.

OK dlg@

date 2023-11-10T20:05:23Z
author bluhm
files src/sys/netinet6/in6.h log diff annotate
message rtable_match() takes constant destination.

For implementing MP safe route lookup, it helps to know which
function parameters are constant. Add some const declarations, so
that the compiler guarantees that sockaddr dst parameter of
rtable_match() does not change.

OK dlg@