OpenBSD cvs log

created 2022-03-17T10:11:30Z
begin 2022-01-05T00:00:00Z
end 2022-01-12T00:00:00Z
path src/sys
commits 82

date 2022-01-05T03:32:44Z
author visa
files src/sys/arch/riscv64/conf/GENERIC log diff annotate
src/sys/arch/riscv64/conf/RAMDISK log diff annotate
src/sys/arch/riscv64/conf/files.riscv64 log diff annotate
src/sys/arch/riscv64/dev/mpfclock.c log diff annotate
message Add mpfclock(4), a driver for the PolarFire SoC MSS clock controller.

OK kettenis@

date 2022-01-05T03:53:26Z
author dlg
files src/sys/dev/pci/if_msk.c log diff annotate
message use the index provided by the txcompletion descriptor in txeof.

this replaces the use of a register in txeof to figure out how much
of the ring has been completed by the hardware. that register isn't
reset when an interface is taken down and brought up again, which
messes with the calculations of free slots on the ring, which in
turn messes up the ability to transmit packets.

this means the watchdog can't know where the hardware is up to
anymore, so just restartthe chip if the watchdog fires.

it seems to be important to start the tx ring in msk_init on the
0th ring entry that we use to reset the high address value to 0.
we still fill the 0th descriptor, but we let the first msk_start
call post it for us when a packet goes on the ring.

a slight tweak and ok jmatthew@

date 2022-01-05T05:18:24Z
author dlg
files src/sys/dev/ic/bwfm.c log diff annotate
src/sys/net/ethertypes.h log diff annotate
message rename ETHERTYPE_PAE to ETHERTYPE_EAPOL.

everyone else seems to use ETHERTYPE_EAPOL, and as a bonus it also
appears to be more correct.

ok deraadt@ stsp@

date 2022-01-05T05:18:25Z
author dlg
files src/sys/net80211/ieee80211_input.c log diff annotate
src/sys/net80211/ieee80211_output.c log diff annotate
src/sys/net80211/ieee80211_pae_output.c log diff annotate
message rename ETHERTYPE_PAE to ETHERTYPE_EAPOL.

everyone else seems to use ETHERTYPE_EAPOL, and as a bonus it also
appears to be more correct.

ok deraadt@ stsp@

date 2022-01-05T05:19:22Z
author dlg
files src/sys/net/ethertypes.h log diff annotate
message add NSH and NHRP ethertypes, mostly for tcpdump stuff.

ok deraadt@

date 2022-01-05T16:33:42Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
message In iwx(4), fix wrong pointer assignment in iwx_bar_frame_release().

This bug caused the driver to read block ack request information sent
by firmware from the wrong offset. The driver flushes buffered frames
and moves its Rx block ack window based on this information. Possible
consequences of this bug are packet loss or even stalled traffic if
the Rx BA window gets out of sync between driver and firmware. Though
this effect might get cancelled out when the driver re-syncs the BA
window in its regular Rx code path.

Spotted by Christian Ehrhardt.

date 2022-01-05T16:46:11Z
author deraadt
files src/sys/dev/pci/pci.c log diff annotate
message Compensate for i386 pcitag_t union
ok jsg kettenis

date 2022-01-05T17:06:20Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwx.c log diff annotate
message Remove unused function arguments in iwm/iwx interrupt handlers.

pointed out by + ok millert@

date 2022-01-05T17:53:44Z
author guenther
files src/sys/uvm/uvm_mmap.c log diff annotate
message Remove kbind(2)'s restriction that a target buffer not cross page
boundaries: hppa has 8-byte PLT entries that sometimes do that.

ok kettenis@

date 2022-01-05T18:54:20Z
author kettenis
files src/sys/dev/pci/ppb.c log diff annotate
message Use "bus-range" property to initialize the bus number configuration of
the bridge when present on FDT platforms. Needed on platforms like the
Apple M1 to make sure the PCI bus numbers match the IOMMU setup required
by the device tree.

ok patrick@

date 2022-01-06T01:14:15Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c log diff annotate
message unstub amdgpu_gem_force_release()

date 2022-01-06T01:37:46Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/vcn_v1_0.c log diff annotate
message drm/amdgpu: When the VCN(1.0) block is suspended, powergating is explicitly enabled

From chen gong
28863ffe21ff711d5109e3c208676258bdec3a1f in linux 5.10.y/5.10.90
b7865173cf6ae59942e2c69326a06e1c1df5ecf6 in mainline linux

date 2022-01-06T01:40:19Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_discovery.c log diff annotate
src/sys/dev/pci/drm/amd/include/discovery.h log diff annotate
message drm/amdgpu: add support for IP discovery gc_info table v2

From Alex Deucher
b8553330a07749e488d143b5704adf1042fd7c0a in linux 5.10.y/5.10.90
5e713c6afa34c0fd6f113bf7bb1c2847172d7b20 in mainline linux

date 2022-01-06T06:19:11Z
author jsg
files src/sys/dev/pci/pcidevs log diff annotate
message ati 0x15e7 confirmed to be barcelo, 2022 ryzen 5000 apus
uses the same green sardine firmware as cezanne

date 2022-01-06T06:19:41Z
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-01-06T08:46:50Z
author kettenis
files src/sys/arch/arm/include/pci_machdep.h log diff annotate
message Use a 64-bit integer for pcitag_t and define PCITAG_NODE and PCITAG_OFFSET
macros to make armv7 build again.

ok deraadt@

date 2022-01-06T15:41:53Z
author deraadt
files src/sys/arch/octeon/include/pci_machdep.h log diff annotate
message Use a 64-bit integer for pcitag_t and define PCITAG_NODE and PCITAG_OFFSET
macros to make kernel build again, same diff as armv7.
ok kettenis visa

date 2022-01-07T02:26:53Z
author guenther
files src/sys/kern/subr_hibernate.c log diff annotate
message Extract the slice from the zeroth swap device instead of assuming
it's the 'b' slice and (sanity) check against the partition count.
Also, make the "is union hibernate_info too large?" a compile time
check.

ok deraadt@

date 2022-01-07T02:47:06Z
author guenther
files src/sys/sys/hibernate.h log diff annotate
message hibernate_clear_signature() is only used by hibernate_resume(), so
pass in the already read hibernate_info instead of reading it again.

ok deraadt@

date 2022-01-07T02:47:07Z
author guenther
files src/sys/kern/subr_hibernate.c log diff annotate
message hibernate_clear_signature() is only used by hibernate_resume(), so
pass in the already read hibernate_info instead of reading it again.

ok deraadt@

date 2022-01-07T09:08:15Z
author jsg
files src/sys/dev/ic/aac.c log diff annotate
message fix aac build after -Wno-uninitialized was removed

date 2022-01-07T10:48:59Z
author visa
files src/sys/arch/octeon/stand/boot/Makefile log diff annotate
src/sys/arch/powerpc64/stand/boot/Makefile log diff annotate
message Add missing dependency.

date 2022-01-07T13:56:54Z
author kevlo
files src/sys/arch/arm64/conf/kern.ldscript log diff annotate
src/sys/arch/riscv64/conf/kern.ldscript log diff annotate
message .glue_7 is used for arm code calling thumb code, and .glue_7t is used for
thumb code calling arm code, no need to put these input sections at the text
output section.

ok jsg@ kettenis@

date 2022-01-07T16:39:18Z
author deraadt
files src/sys/net/if.c log diff annotate
message SIOCSIFXFLAGS drops into the SIOCSIFFLAGS to perform auto-up of the
interface. If this operation fails (probably due to missing firmware),
we must undo changes to the SIOCSIFXFLAGS xflags.
ok stsp.

date 2022-01-07T19:03:57Z
author kettenis
files src/sys/arch/arm64/dev/aplpcie.c log diff annotate
message Add code to initialize the PCIe host bridge hardware. We currently rely on
U-Boot to initialize the hardware for us, but it is better if we can cope
with this ourselves.

ok patrick@

date 2022-01-08T00:20:10Z
author jmatthew
files src/sys/dev/fdt/if_dwxe.c log diff annotate
message Apply mpsafe changes from dwge(4) to dwxe(4):

Rework the tx path to use the consumer and producer positions to work out
the number of slots available, and to put packets on the ring until fewer
than DWXE_NTXSEGS slots are left, making dwxe_start() and dwxe_txeof()
work independently. While here, only write to DWXE_TX_CTL1 once
per call to dwxe_start() rather than once per packet.

Adjust the rx interrupt path to check the number of slots in use and
return slots once per interrupt.

Add interrupt and ifq barriers before taking the interface down.
With all of this done, we can mark dwxe(4) mpsafe.

tested on arm64 (a64 sopine) by mlarkin@ and armv7 (h2+) by me
ok dlg@

date 2022-01-08T05:34:54Z
author visa
files src/sys/arch/octeon/include/pci_machdep.h log diff annotate
message Adjust debug printfs after pcitag_t type change.

date 2022-01-08T05:40:19Z
author visa
files src/sys/arch/octeon/conf/BOOT log diff annotate
src/sys/arch/powerpc64/conf/BOOT log diff annotate
message Remove verbose PCI and USB device info from BOOT

BOOT kernels do not print kernel messages, and currently there is no
way to change this at runtime. Remove the verbose device information
to save some space.

date 2022-01-08T15:23:42Z
author kettenis
files src/sys/arch/arm64/dev/aplns.c log diff annotate
message Oops, missed a compatible string in the previous commit.

date 2022-01-08T15:30:46Z
author kettenis
files src/sys/arch/arm64/conf/GENERIC log diff annotate
src/sys/arch/arm64/conf/RAMDISK log diff annotate
src/sys/arch/arm64/conf/files.arm64 log diff annotate
src/sys/arch/arm64/dev/Attic/apldwusb.c log diff annotate
message Remove apldwusb(4). This driver is now unused.

date 2022-01-08T22:54:49Z
author guenther
files src/sys/dev/ksyms.c log diff annotate
message __LDPGSZ hasn't been used here since rev 1.23 (2013).
Delete comment referring to it

ok jsg@

date 2022-01-09T05:42:36Z
author jsg
files src/sys/dev/audio.c log diff annotate
message spelling
feedback and ok tb@ jmc@ ok ratchov@

date 2022-01-09T05:42:37Z
author jsg
files src/sys/dev/rndis.h log diff annotate
src/sys/dev/softraid.c log diff annotate
src/sys/dev/softraidvar.h log diff annotate
src/sys/dev/acpi/abl.c log diff annotate
src/sys/dev/acpi/acpicpu.c log diff annotate
src/sys/dev/acpi/acpireg.h log diff annotate
src/sys/dev/acpi/amd_iommu.h log diff annotate
src/sys/dev/acpi/atk0110.c log diff annotate
src/sys/dev/acpi/tipmic.c log diff annotate
src/sys/dev/ata/atascsi.c log diff annotate
src/sys/dev/ata/atavar.h log diff annotate
src/sys/dev/ata/satareg.h log diff annotate
src/sys/dev/ata/wd.c log diff annotate
src/sys/dev/atapiscsi/atapiscsi.c log diff annotate
src/sys/dev/dt/dt_dev.c log diff annotate
src/sys/dev/dt/dtvar.h log diff annotate
src/sys/dev/fdt/amlmmc.c log diff annotate
src/sys/dev/fdt/amlusbphy.c log diff annotate
src/sys/dev/fdt/axppmic.c log diff annotate
src/sys/dev/fdt/dwmmc.c log diff annotate
src/sys/dev/fdt/if_fec.c log diff annotate
src/sys/dev/fdt/if_mvnetareg.h log diff annotate
src/sys/dev/fdt/if_mvppreg.h log diff annotate
src/sys/dev/fdt/imxccm.c log diff annotate
src/sys/dev/fdt/imxesdhc.c log diff annotate
src/sys/dev/fdt/mvclock.c log diff annotate
src/sys/dev/fdt/rkclock.c log diff annotate
src/sys/dev/fdt/rkpcie.c log diff annotate
src/sys/dev/fdt/rktemp.c log diff annotate
src/sys/dev/fdt/simplefb.c log diff annotate
src/sys/dev/hid/hidms.c log diff annotate
src/sys/dev/hil/hil.c log diff annotate
src/sys/dev/i2c/ds1307.c log diff annotate
src/sys/dev/i2c/ihidev.c log diff annotate
src/sys/dev/ic/aac.c log diff annotate
src/sys/dev/ic/aac_tables.h log diff annotate
src/sys/dev/ic/aacreg.h log diff annotate
src/sys/dev/ic/aacvar.h log diff annotate
message spelling
feedback and ok tb@ jmc@ ok ratchov@

date 2022-01-09T05:42:38Z
author jsg
files src/sys/dev/ic/acx.c log diff annotate
src/sys/dev/ic/acx100.c log diff annotate
src/sys/dev/ic/acx111.c log diff annotate
src/sys/dev/ic/acxreg.h log diff annotate
src/sys/dev/ic/aic6360.c log diff annotate
src/sys/dev/ic/aic6915.c log diff annotate
src/sys/dev/ic/aic6915.h log diff annotate
src/sys/dev/ic/aic79xx.c log diff annotate
src/sys/dev/ic/aic79xx.h log diff annotate
src/sys/dev/ic/aic79xx_inline.h log diff annotate
src/sys/dev/ic/aic7xxx.c log diff annotate
src/sys/dev/ic/aic7xxx_cam.h log diff annotate
src/sys/dev/ic/aic7xxxvar.h log diff annotate
src/sys/dev/ic/ami.c log diff annotate
src/sys/dev/ic/ar5210.c log diff annotate
src/sys/dev/ic/ar5210reg.h log diff annotate
src/sys/dev/ic/ar5210var.h log diff annotate
src/sys/dev/ic/ar5211.c log diff annotate
src/sys/dev/ic/ar5211var.h log diff annotate
src/sys/dev/ic/ar5212.c log diff annotate
src/sys/dev/ic/ar5212var.h log diff annotate
src/sys/dev/ic/ar5416.c log diff annotate
src/sys/dev/ic/ar9003.c log diff annotate
src/sys/dev/ic/ar9285.c log diff annotate
src/sys/dev/ic/ar9287.c log diff annotate
src/sys/dev/ic/ar9380.c log diff annotate
src/sys/dev/ic/atw.c log diff annotate
src/sys/dev/ic/bwfmreg.h log diff annotate
src/sys/dev/ic/bwi.c log diff annotate
src/sys/dev/ic/bwireg.h log diff annotate
src/sys/dev/ic/cac.c log diff annotate
src/sys/dev/ic/cacreg.h log diff annotate
src/sys/dev/ic/cd1190reg.h log diff annotate
src/sys/dev/ic/ciss.c log diff annotate
src/sys/dev/ic/cissreg.h log diff annotate
src/sys/dev/ic/cs4231reg.h log diff annotate
src/sys/dev/ic/dc21040reg.h log diff annotate
src/sys/dev/ic/dcreg.h log diff annotate
src/sys/dev/ic/dp8390.c log diff annotate
src/sys/dev/ic/dp8390var.h log diff annotate
src/sys/dev/ic/dwiic.c log diff annotate
src/sys/dev/ic/fxpvar.h log diff annotate
src/sys/dev/ic/hmereg.h log diff annotate
src/sys/dev/ic/i82596.c log diff annotate
src/sys/dev/ic/i82596var.h log diff annotate
src/sys/dev/ic/i8259reg.h log diff annotate
src/sys/dev/ic/i82802reg.h log diff annotate
src/sys/dev/ic/if_wi.c log diff annotate
src/sys/dev/ic/if_wi_ieee.h log diff annotate
src/sys/dev/ic/lancereg.h log diff annotate
src/sys/dev/ic/lemacreg.h log diff annotate
src/sys/dev/ic/malo.c log diff annotate
src/sys/dev/ic/mfireg.h log diff annotate
src/sys/dev/ic/mtd8xx.c log diff annotate
src/sys/dev/ic/ncr53c9x.c log diff annotate
src/sys/dev/ic/ne2000.c log diff annotate
src/sys/dev/ic/oosiop.c log diff annotate
src/sys/dev/ic/pgt.c log diff annotate
src/sys/dev/ic/rt2560.c log diff annotate
src/sys/dev/ic/rtl81x9reg.h log diff annotate
message spelling
feedback and ok tb@ jmc@ ok ratchov@

date 2022-01-09T05:42:39Z
author jsg
files src/sys/dev/ic/rtw.c log diff annotate
src/sys/dev/ic/rtwn.c log diff annotate
message spelling
feedback and ok tb@ jmc@ ok ratchov@

date 2022-01-09T05:42:42Z
author jsg
files src/sys/dev/ic/rtwreg.h log diff annotate
src/sys/dev/ic/sili.c log diff annotate
src/sys/dev/ic/siop.c log diff annotate
src/sys/dev/ic/siop_common.c log diff annotate
src/sys/dev/ic/smc83c170.c log diff annotate
src/sys/dev/ic/smc83c170reg.h log diff annotate
src/sys/dev/ic/smc83c170var.h log diff annotate
src/sys/dev/ic/smc91cxx.c log diff annotate
src/sys/dev/ic/smc91cxxreg.h log diff annotate
src/sys/dev/ic/tcic2reg.h log diff annotate
src/sys/dev/ic/ti.c log diff annotate
src/sys/dev/ic/tireg.h log diff annotate
src/sys/dev/ic/trm.c log diff annotate
src/sys/dev/ic/Attic/wd33c93.c log diff annotate
src/sys/dev/ic/Attic/wd33c93var.h log diff annotate
src/sys/dev/ic/wdcvar.h log diff annotate
src/sys/dev/ic/xl.c log diff annotate
src/sys/dev/isa/ad1848.c log diff annotate
src/sys/dev/isa/aps.c log diff annotate
src/sys/dev/isa/ess.c log diff annotate
src/sys/dev/isa/essreg.h log diff annotate
src/sys/dev/isa/gusreg.h log diff annotate
src/sys/dev/isa/hsq.c log diff annotate
message spelling
feedback and ok tb@ jmc@ ok ratchov@

date 2022-01-09T05:42:44Z
author jsg
files src/sys/dev/isa/if_ec.c log diff annotate
src/sys/dev/isa/if_elreg.h log diff annotate
src/sys/dev/isa/if_wereg.h log diff annotate
src/sys/dev/isa/lm78_isa.c log diff annotate
src/sys/dev/isa/pcppi.c log diff annotate
src/sys/dev/isa/sbdsp.c log diff annotate
src/sys/dev/isa/sbreg.h log diff annotate
src/sys/dev/isa/tcic2_isa.c log diff annotate
src/sys/dev/mii/atphy.c log diff annotate
src/sys/dev/mii/bmtphyreg.h log diff annotate
src/sys/dev/mii/brgphyreg.h log diff annotate
src/sys/dev/mii/ciphyreg.h log diff annotate
src/sys/dev/mii/eephy.c log diff annotate
src/sys/dev/mii/eephyreg.h log diff annotate
src/sys/dev/mii/lxtphy.c log diff annotate
src/sys/dev/mii/lxtphyreg.h log diff annotate
src/sys/dev/mii/mii.c log diff annotate
src/sys/dev/mii/tlphyreg.h log diff annotate
message spelling
feedback and ok tb@ jmc@ ok ratchov@

date 2022-01-09T05:42:45Z
author jsg
files src/sys/dev/ofw/fdt.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_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/agpvar.h log diff annotate
src/sys/dev/pci/ahc_pci.c log diff annotate
src/sys/dev/pci/ahd_pci.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/auacerreg.h 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/azalia.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/cs4280reg.h log diff annotate
src/sys/dev/pci/cs4281.c log diff annotate
src/sys/dev/pci/cz.c log diff annotate
src/sys/dev/pci/czreg.h log diff annotate
src/sys/dev/pci/emuxki.c log diff annotate
src/sys/dev/pci/envyreg.h log diff annotate
src/sys/dev/pci/gcu.c log diff annotate
src/sys/dev/pci/glxpcib.c log diff annotate
message spelling
feedback and ok tb@ jmc@ ok ratchov@

date 2022-01-09T05:42:46Z
author jsg
files src/sys/dev/pci/ichreg.h log diff annotate
src/sys/dev/pci/if_alcreg.h log diff annotate
src/sys/dev/pci/if_alereg.h 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_bgereg.h log diff annotate
src/sys/dev/pci/if_bnx.c log diff annotate
message spelling
feedback and ok tb@ jmc@ ok ratchov@

date 2022-01-09T05:42:47Z
author jsg
files src/sys/dev/pci/if_bnxreg.h log diff annotate
src/sys/dev/pci/if_bnxtreg.h log diff annotate
src/sys/dev/pci/if_casreg.h log diff annotate
message spelling
feedback and ok tb@ jmc@ ok ratchov@

date 2022-01-09T05:42:50Z
author jsg
files src/sys/dev/pci/if_casvar.h 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_em.h log diff annotate
src/sys/dev/pci/if_em_hw.c log diff annotate
src/sys/dev/pci/if_em_hw.h log diff annotate
src/sys/dev/pci/if_et.c log diff annotate
src/sys/dev/pci/if_etreg.h log diff annotate
src/sys/dev/pci/if_igc.h log diff annotate
src/sys/dev/pci/if_ipw.c log diff annotate
src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwmreg.h log diff annotate
message spelling
feedback and ok tb@ jmc@ ok ratchov@

date 2022-01-09T05:42:52Z
author jsg
files src/sys/dev/pci/if_iwmvar.h log diff annotate
src/sys/dev/pci/if_iwn.c log diff annotate
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_ix.h log diff annotate
src/sys/dev/pci/if_ixgb.c log diff annotate
message spelling
feedback and ok tb@ jmc@ ok ratchov@

date 2022-01-09T05:42:54Z
author jsg
files 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_jmereg.h 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_mcx.c log diff annotate
src/sys/dev/pci/if_msk.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_ocereg.h log diff annotate
src/sys/dev/pci/if_pcn.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
src/sys/dev/pci/if_skreg.h log diff annotate
message spelling
feedback and ok tb@ jmc@ ok ratchov@

date 2022-01-09T05:42:56Z
author jsg
files 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_ti_pci.c log diff annotate
src/sys/dev/pci/if_tl.c log diff annotate
src/sys/dev/pci/if_vge.c log diff annotate
src/sys/dev/pci/if_vgereg.h 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_wi_pci.c log diff annotate
src/sys/dev/pci/if_xge.c log diff annotate
src/sys/dev/pci/ixgb_ee.c log diff annotate
src/sys/dev/pci/ixgb_hw.c log diff annotate
src/sys/dev/pci/ixgbe_82598.c log diff annotate
src/sys/dev/pci/ixgbe_phy.c log diff annotate
src/sys/dev/pci/ixgbe_type.h log diff annotate
src/sys/dev/pci/ixgbe_x540.c log diff annotate
src/sys/dev/pci/ixgbe_x550.c log diff annotate
src/sys/dev/pci/mmuagp.c log diff annotate
src/sys/dev/pci/mpii.c log diff annotate
message spelling
feedback and ok tb@ jmc@ ok ratchov@

date 2022-01-09T05:42:58Z
author jsg
files src/sys/dev/pci/neo.c log diff annotate
src/sys/dev/pci/pciide.c log diff annotate
src/sys/dev/pci/pciide_cy693_reg.h log diff annotate
src/sys/dev/pci/pciide_natsemi_reg.h log diff annotate
src/sys/dev/pci/pciide_pdc202xx_reg.h log diff annotate
src/sys/dev/pci/pciide_piix_reg.h log diff annotate
src/sys/dev/pci/pcscpreg.h log diff annotate
src/sys/dev/pci/pucdata.c log diff annotate
src/sys/dev/pci/sv.c log diff annotate
src/sys/dev/pci/tga.c log diff annotate
src/sys/dev/pci/tgareg.h log diff annotate
src/sys/dev/pci/vga_pci.c log diff annotate
src/sys/dev/pci/yds.c log diff annotate
src/sys/dev/pci/bktr/bktr_audio.c log diff annotate
src/sys/dev/pci/bktr/bktr_core.c log diff annotate
src/sys/dev/pci/bktr/bktr_core.h log diff annotate
src/sys/dev/pci/bktr/bktr_tuner.c log diff annotate
src/sys/dev/pckbc/pckbd.c log diff annotate
src/sys/dev/pcmcia/if_malo.c log diff annotate
src/sys/dev/pv/hvs.c log diff annotate
src/sys/dev/pv/if_hvnreg.h 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/dev/pv/vioblk.c log diff annotate
src/sys/dev/pv/vioscsi.c log diff annotate
src/sys/dev/pv/virtio.c log diff annotate
src/sys/dev/pv/vmt.c log diff annotate
src/sys/dev/pv/xenreg.h log diff annotate
src/sys/dev/pv/xenstore.c log diff annotate
src/sys/dev/sbus/bereg.h log diff annotate
src/sys/dev/sbus/cgtwelve.c log diff annotate
src/sys/dev/sbus/qec.c log diff annotate
src/sys/dev/sbus/spifvar.h log diff annotate
src/sys/dev/sbus/tvtwo.c log diff annotate
src/sys/dev/sbus/uperf_sbus.c log diff annotate
message spelling
feedback and ok tb@ jmc@ ok ratchov@

date 2022-01-09T05:42:59Z
author jsg
files src/sys/dev/sbus/zx.c log diff annotate
message spelling
feedback and ok tb@ jmc@ ok ratchov@

date 2022-01-09T05:43:00Z
author jsg
files src/sys/dev/sun/sunms.c log diff annotate
src/sys/dev/tc/zs_ioasic.c log diff annotate
src/sys/dev/usb/ehci.c log diff annotate
src/sys/dev/usb/files.usb log diff annotate
src/sys/dev/usb/if_athn_usb.h log diff annotate
src/sys/dev/usb/if_atu.c log diff annotate
src/sys/dev/usb/if_atureg.h log diff annotate
src/sys/dev/usb/if_axen.c log diff annotate
src/sys/dev/usb/if_smsc.c log diff annotate
src/sys/dev/usb/if_smscreg.h log diff annotate
src/sys/dev/usb/if_udavreg.h log diff annotate
src/sys/dev/usb/if_umb.c log diff annotate
src/sys/dev/usb/if_upgt.c log diff annotate
src/sys/dev/usb/if_upgtvar.h log diff annotate
src/sys/dev/usb/if_urtw.c log diff annotate
src/sys/dev/usb/if_wi_usb.c log diff annotate
src/sys/dev/usb/if_zyd.c log diff annotate
src/sys/dev/usb/ohci.c log diff annotate
src/sys/dev/usb/uaudio.c log diff annotate
src/sys/dev/usb/ucc.c log diff annotate
src/sys/dev/usb/udl.c log diff annotate
src/sys/dev/usb/ugold.c log diff annotate
src/sys/dev/usb/uhci.c log diff annotate
src/sys/dev/usb/uhidpp.c log diff annotate
src/sys/dev/usb/ukbd.c log diff annotate
message spelling
feedback and ok tb@ jmc@ ok ratchov@

date 2022-01-09T05:43:01Z
author jsg
files src/sys/dev/usb/umcs.c log diff annotate
src/sys/dev/usb/umcs.h log diff annotate
src/sys/dev/usb/umidivar.h log diff annotate
src/sys/dev/usb/umsm.c log diff annotate
src/sys/dev/usb/uoak.h log diff annotate
src/sys/dev/usb/uoak_subr.c log diff annotate
src/sys/dev/usb/uoaklux.c log diff annotate
src/sys/dev/usb/uoakrh.c log diff annotate
message spelling
feedback and ok tb@ jmc@ ok ratchov@

date 2022-01-09T05:43:02Z
author jsg
files src/sys/dev/usb/uoakv.c log diff annotate
src/sys/dev/usb/uonerng.c log diff annotate
src/sys/dev/usb/usb.c log diff annotate
src/sys/dev/usb/usb_subr.c log diff annotate
src/sys/dev/usb/usbcdc.h log diff annotate
src/sys/dev/usb/uthum.c log diff annotate
src/sys/dev/usb/utpms.c log diff annotate
src/sys/dev/usb/utrh.c log diff annotate
src/sys/dev/usb/uvideo.c log diff annotate
src/sys/dev/usb/uvscom.c log diff annotate
src/sys/dev/usb/xhci.c log diff annotate
src/sys/dev/usb/xhcireg.h log diff annotate
src/sys/dev/videomode/edid.c log diff annotate
src/sys/dev/videomode/vesagtf.c log diff annotate
src/sys/dev/x86emu/x86emu.c log diff annotate
message spelling
feedback and ok tb@ jmc@ ok ratchov@

date 2022-01-09T10:28:07Z
author claudio
files src/sys/kern/kern_unveil.c log diff annotate
src/sys/sys/namei.h log diff annotate
message Add an UNVEIL_USERSET flag which is set when a unveil node is added via
unveil(2). It is not set for nodes that are added as a result of a file
being added via unveil(2). Use this flag to test if backtracking should
be done or not. Also introduce UNVEIL_MASK which checks if any user flags
are set and is used to properly return EACCES vs ENOENT.

This fixes a problem where unveil("/", "r") & unveil("/usr/bin/id", "rx")
cause an error when read accessing "/usr/bin". It also makes sure that
unveil(path, "") will return ENOENT for any access of anything under path.

Reported by and OK semarie@

date 2022-01-09T13:26:08Z
author visa
files src/sys/conf/files log diff annotate
message Add attribute for indicating sdhc dependency.

OK deraadt@ phessler@

date 2022-01-09T13:27:47Z
author visa
files src/sys/arch/armv7/marvell/files.marvell log diff annotate
message Indicate that mvpxa(4) depends on sdhc code.

OK deraadt@ phessler@

date 2022-01-09T23:28:19Z
author patrick
files src/sys/dev/pci/if_igc.c log diff annotate
message Simplify igc_rxrinfo() to improve consistency and appease Coverity.

CID 1510483

ok kevlo@

date 2022-01-10T04:11:13Z
author dlg
files src/sys/dev/pci/if_msk.c log diff annotate
src/sys/dev/pci/if_mskvar.h log diff annotate
message handle the status ring entries as 64bit words instead of a struct.

the status ring entries are 8 bytes/64bit, and depending on the
type of entry it has fields all over the place. this loads the
descriptor with a single 64bit read, and then shifts and masks the
bits out of it depending on the type of descriptor. this looks
cleaner for the tx completions in particular.

date 2022-01-10T04:47:53Z
author dlg
files src/sys/dev/pci/if_msk.c log diff annotate
src/sys/dev/pci/if_mskvar.h log diff annotate
message provide access to the hardware counters (MIB counters in the doc) via kstat

date 2022-01-10T09:07:28Z
author kettenis
files src/sys/arch/arm64/conf/GENERIC log diff annotate
src/sys/arch/arm64/conf/files.arm64 log diff annotate
src/sys/arch/arm64/dev/aplns.c log diff annotate
src/sys/arch/arm64/dev/aplsmc.c log diff annotate
src/sys/arch/arm64/dev/rtkit.c log diff annotate
src/sys/arch/arm64/dev/rtkit.h log diff annotate
message Add aplsmc(4), a driver for the SMC found on Apple M1 SoCs.

The SMC implements a lot of functionality. For now the driver only
implements a bunch of sensors. This is a small subset of the sensors
that are made available by the SMC as we don't know what measurments
are provided for most sensors.

ok patrick@

date 2022-01-10T09:20:27Z
author kettenis
files src/sys/arch/arm64/arm64/pmap.c log diff annotate
message In pmap_enter(9), only perform a TLB flush if we actually changed a PTE.
To make this intent more obvious, group the call to the TLB flush function
togther with the call that inserts/updates/removes a PTE.
Remove an incorrect comment related to this.

ok patrick@

date 2022-01-10T14:07:59Z
author jan
files src/sys/net/if_vxlan.c log diff annotate
message Use NULL instead of 0 for pointers.

OK bluhm@

date 2022-01-10T16:21:19Z
author visa
files src/sys/arch/octeon/dev/octboot.c log diff annotate
message Initialize variables that are touched in the error path.

Reminded by LLVM scan-build.

date 2022-01-10T18:23:39Z
author tobhe
files src/sys/dev/sdmmc/sdmmc_mem.c log diff annotate
message Return ENOMEM on malloc errors to prevent use of uninitialized stack
memory. Cleanup error handling while here.

ok stsp@ visa@

date 2022-01-10T23:40:37Z
author jsg
files src/sys/dev/pci/pcidevs log diff annotate
message add Intel Jasper Lake devices
from Intel Pentium Silver and Intel Celeron Processors Datasheet 633935

date 2022-01-10T23:41:12Z
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-01-11T00:37:23Z
author jsg
files src/sys/dev/pci/azalia.c log diff annotate
src/sys/dev/pci/dwiic_pci.c log diff annotate
src/sys/dev/pci/ichiic.c log diff annotate
message match on Intel Jasper Lake

cavs/hda is pci class multimedia subclass audio so not automatically
matched by azalia but confirmed to work after matched

tested by Sven Wolf on Acer Swift 1 SF114-34 with Pentium Silver N6000

date 2022-01-11T03:13:58Z
author jsg
files src/sys/isofs/cd9660/cd9660_lookup.c log diff annotate
message spelling
ok jmc@

date 2022-01-11T03:13:59Z
author jsg
files src/sys/isofs/udf/ecma167-udf.h log diff annotate
src/sys/isofs/udf/udf_vfsops.c log diff annotate
src/sys/msdosfs/msdosfs_lookup.c log diff annotate
src/sys/nfs/nfs_aiod.c log diff annotate
src/sys/nfs/nfs_socket.c log diff annotate
src/sys/nfs/nfs_subs.c log diff annotate
src/sys/ntfs/ntfs.h log diff annotate
src/sys/ntfs/ntfs_subr.c log diff annotate
src/sys/ntfs/ntfs_vfsops.c log diff annotate
src/sys/ufs/ext2fs/ext2fs_lookup.c log diff annotate
src/sys/ufs/ffs/fs.h log diff annotate
src/sys/ufs/ufs/dirhash.h log diff annotate
src/sys/ufs/ufs/ufs_lookup.c log diff annotate
message spelling
ok jmc@

date 2022-01-11T06:00:41Z
author anton
files src/sys/dev/kcov.c log diff annotate
message In revision 1.43 of kcov.c, the redundant conditional of checking for
an exising kcov descriptor with the given device minor was removed since
kcov is a cloning device; i.e. the device minor should always be unique.

However, there's one edge case to still consider in which one thread
have tracing enabled while another thread closes the same kcov
descriptor. The kcov descriptor is kept alive until thread with tracing
enabled exits to prevent usage after free. This does however cause the
spec file layer above to flag the device minor as unused. Any subsequent
open of /dev/kcov would trip on the assertion in kcovopen() until the
thread with tracing enabled exits.

Therefore unconditionally remove the kcov descriptor from the global
list of active descriptors which is fine since the same kcov descriptor
will later be freed in kcov_exit().

I have never seen this in the wild but realized while hunting another
bug.

date 2022-01-11T06:23:05Z
author anton
files src/sys/dev/kcov.c log diff annotate
message Add temporary verbose logging when remote coverage fails to attach.
In the hopes of tracking down a rare bug seen on syzkaller.

date 2022-01-11T06:35:03Z
author visa
files src/sys/lib/libsa/readdir.c log diff annotate
message Remove dead store to f and avoid use of unvalidated fd.

Found by LLVM scan-build.

OK millert@ deraadt@

date 2022-01-11T07:31:50Z
author semarie
files src/sys/kern/kern_unveil.c log diff annotate
message move kern_unveil.c to use DPRINTF()

Changes the way printf debug is done in kern_unveil.c

Currently, each printf() is enclosed in #ifdef DEBUG_UNVEIL. It moves
to using DPRINTF(), and reduces the number of #ifdef inside the file.

Also changes some strings to use __func__ instead of using the
function name verbatim.

ok visa@

date 2022-01-11T08:09:14Z
author mvs
files src/sys/kern/syscalls.master log diff annotate
message Unlock getpeername(2). For inet and unix sockets it follows the code
which was unlocked with accept(2) unlocking. For key management and
route domain sockets it just copies the read-only data.

ok bluhm@

date 2022-01-11T08:10:03Z
author mvs
files src/sys/kern/init_sysent.c log diff annotate
src/sys/kern/syscalls.c log diff annotate
src/sys/sys/syscall.h log diff annotate
src/sys/sys/syscallargs.h log diff annotate
message regen

date 2022-01-11T09:00:17Z
author sashan
files src/sys/net/pf_ioctl.c log diff annotate
message move allocations in DIOCSADDRULE and DIOCHANGERULE outside of locks.
this diff lets pf_rule_copyin() to be called outside of PF_LOCK()/NET_LOCK().

OK bluhm@

date 2022-01-11T09:21:34Z
author jsg
files src/sys/lib/libkern/mcount.c log diff annotate
src/sys/lib/libkern/arch/amd64/strlen.S log diff annotate
message spelling

date 2022-01-11T09:21:35Z
author jsg
files src/sys/lib/libkern/arch/hppa/milli.S log diff annotate
src/sys/lib/libkern/arch/m88k/bzero.S log diff annotate
message spelling

date 2022-01-11T10:23:17Z
author uaa
files src/sys/dev/fdt/sxirsb.c log diff annotate
message fix RSB_DMCR_DEVICE_MODE_DATA value to enter RSB mode correctly
ok kettenis@ patrick@

date 2022-01-11T10:34:13Z
author claudio
files src/sys/dev/usb/if_umb.c log diff annotate
message Remove KASSERT(0) and default switch case. No other sc_ncm_format
switch has a default case and umb_ncm_setup_format() ensures that
only 16 and 32bit formats are accepted. Fixes build error without
DIAGNOSTIC set.
Found by and OK robert@

date 2022-01-11T11:51:14Z
author uaa
files src/sys/dev/fdt/com_fdt.c log diff annotate
src/sys/dev/ic/com.c log diff annotate
src/sys/dev/ic/comreg.h log diff annotate
src/sys/dev/ic/comvar.h log diff annotate
src/sys/dev/ic/ns16550reg.h log diff annotate
message add Synopsys Degisnware UART (dw-apb-uart) support

To fix Allwinner H6's UART problem, need to add dw-apb-uart special code.
ok kettenis@

date 2022-01-11T16:54:58Z
author kettenis
files src/sys/arch/armv7/include/vmparam.h log diff annotate
message Bump KVA space up to 512MB (and a bit).

ok phessler@, deraadt@, miod@

date 2022-01-11T20:34:22Z
author tobhe
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message Make sure 'out' is initialized to 0 before adding flags.

ok dv@ mlarkin@

date 2022-01-11T21:41:15Z
author jsg
files src/sys/dev/pci/sdhc_pci.c log diff annotate
message Jasper Lake eMMC needs the same 0V quirk as Apollo Lake and Gemini Lake

fixes accessing eMMC on Acer Swift 1 SF114-34
problem reported and fix tested by Sven Wolf

date 2022-01-11T23:10:11Z
author jsg
files src/sys/scsi/cd.c log diff annotate
src/sys/scsi/ch.c log diff annotate
src/sys/scsi/scsi_all.h log diff annotate
src/sys/scsi/scsi_changer.h log diff annotate
src/sys/scsi/scsi_disk.h log diff annotate
src/sys/scsi/st.c log diff annotate
message spelling

date 2022-01-11T23:59:55Z
author jsg
files src/sys/sys/gmon.h log diff annotate
src/sys/sys/namei.h log diff annotate
src/sys/sys/stat.h log diff annotate
src/sys/sys/sysctl.h log diff annotate
src/sys/sys/unpcb.h log diff annotate
message spelling