OpenBSD cvs log

created 2021-09-05T04:55:16Z
begin 2021-08-31T00:00:00Z
end 2021-09-01T00:00:00Z
path src/sys
commits 25

date 2021-08-31T04:21:04Z
author dlg
files src/sys/dev/ic/nvme.c log diff annotate
message sprinkle barriers and dmamem_syncs around the hibernate io path.

at the very least it stops the compiler omgoptimising away important
code.

tested by and ok deraadt@ jmatthew@

date 2021-08-31T05:16:45Z
author anton
files src/sys/dev/usb/ucc.c log diff annotate
message Protect against missing bit to key symbols in ucc_bit_to_sym(). This can
only happen if ucc_hid_parse() has a bug, better play it safe.

date 2021-08-31T05:17:49Z
author anton
files src/sys/dev/usb/ucc.c log diff annotate
message In enumerating mode, calculate the bit offset using the HID input
location as the product of the corresponding Report Count and Report
Size can be greater than one.

Fixes Richard Toohey's <richardjtoohey at gmail dot com> Dell keyboard.

date 2021-08-31T05:29:55Z
author robert
files src/sys/scsi/ch.c log diff annotate
src/sys/sys/chio.h log diff annotate
message add support for obtaining sense status and source slot of a media

this fixes a bug in bacula where the catalog was not properly kept
up-to-date if a tape was in a drive becuse its source slot was
unknown

based on code from FreeBSD; ok krw@

picker 0: sense: <0x00/0x00> voltag: <:0> avoltag: <:0> source: <>
slot 0: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1168L1:0> avoltag: <:0> source: <slot 0>
slot 1: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1187L1:0> avoltag: <:0> source: <slot 1>
slot 2: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1184L1:0> avoltag: <:0> source: <slot 2>
slot 3: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1195L1:0> avoltag: <:0> source: <slot 3>
slot 4: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1037L1:0> avoltag: <:0> source: <slot 4>
slot 5: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1038L1:0> avoltag: <:0> source: <slot 5>
slot 6: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1166L1:0> avoltag: <:0> source: <slot 6>
slot 7: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1167L1:0> avoltag: <:0> source: <slot 7>
slot 8: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1180L1:0> avoltag: <:0> source: <slot 8>
slot 9: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1186L1:0> avoltag: <:0> source: <slot 9>
slot 10: <ACCESS> sense: <0x00/0x00> voltag: <:0> avoltag: <:0> source: <picker 0>
slot 11: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1182L1:0> avoltag: <:0> source: <slot 11>
slot 12: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1181L1:0> avoltag: <:0> source: <slot 12>
slot 13: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1196L1:0> avoltag: <:0> source: <slot 13>
slot 14: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1169L1:0> avoltag: <:0> source: <slot 14>
slot 15: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1197L1:0> avoltag: <:0> source: <slot 15>
slot 16: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1165L1:0> avoltag: <:0> source: <slot 16>
slot 17: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1199L1:0> avoltag: <:0> source: <slot 17>
slot 18: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1189L1:0> avoltag: <:0> source: <slot 18>
slot 19: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1185L1:0> avoltag: <:0> source: <slot 19>
slot 20: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1198L1:0> avoltag: <:0> source: <slot 20>
slot 21: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1039L1:0> avoltag: <:0> source: <slot 21>
slot 22: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1035L1:0> avoltag: <:0> source: <slot 22>
slot 23: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1188L1:0> avoltag: <:0> source: <slot 23>
drive 0: <ACCESS,FULL> sense: <0x00/0x00> voltag: <XX1183L1:0> avoltag: <:0> source: <slot 10>

date 2021-08-31T08:06:56Z
author jasper
files src/sys/dev/pci/if_bgereg.h log diff annotate
message remove empty forward structs fro bge_ring_data as found with ctfconv.

tested by and ok jmatthew@

date 2021-08-31T12:24:15Z
author jan
files src/sys/arch/riscv64/dev/sfuart.c log diff annotate
src/sys/dev/fdt/amluart.c log diff annotate
src/sys/dev/fdt/imxuart.c log diff annotate
src/sys/dev/fdt/mvuart.c log diff annotate
src/sys/dev/ic/pluart.c log diff annotate
message Using suser() instead of doing it manually.

ok patrick@

date 2021-08-31T13:19:32Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
message Fix use of wrong pointer argument when freeing firmware paging info in iwx(4).

Found by mpi@ and gnezdo@
ok gnezdo@

date 2021-08-31T14:37:49Z
author mlarkin
files src/sys/arch/amd64/amd64/db_interface.c log diff annotate
message Add "machine sysregs" command to DDB

From Alex Wilson, Thanks!

date 2021-08-31T14:45:25Z
author deraadt
files src/sys/kern/subr_hibernate.c log diff annotate
message printing the hibernate image size in MB is easier on the eyes
ok mlarkin

date 2021-08-31T15:11:54Z
author kettenis
files src/sys/arch/amd64/amd64/identcpu.c log diff annotate
src/sys/arch/amd64/amd64/tsc.c log diff annotate
message Use the TSC delay(9) backend earlier on machines where we can. Also use
the TSC for delays even if there is a skew between the TSCs of the cores
as this doesn't matter for delay(9).

Gets rid of te unreasonable clock speed reports on Intel Tiget Lake CPUs
where the i8254 behaves in weird ways.

ok patrick@, deraadt@, mlarkin@

date 2021-08-31T15:20:06Z
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/aplpinctrl.c log diff annotate
message Add aplpinctrl(4), a driver for the Apple GPIO controller found on M1 SoCs.

ok patrick@

date 2021-08-31T15:21:19Z
author kettenis
files src/sys/arch/arm64/dev/aplpcie.c log diff annotate
message Do pinctrl stuff.

ok patrick@

date 2021-08-31T15:31:28Z
author claudio
files src/sys/kern/vfs_subr.c log diff annotate
message Swap lock flags so that LK_EXCLUSIVE is first like in all other places.

date 2021-08-31T15:52:10Z
author patrick
files src/sys/dev/pv/hyperv.c log diff annotate
src/sys/dev/pv/pvbus.c log diff annotate
message When running on Hyper-V, make use of its timecounter as delay func in case
we're still using the i8254 for that. On Hyper-V Gen 2 VMs there is no
i8254 we can trust, so we need some kind of fallback, especially if there
is no TSC either.

Discussed with the hackroom
ok kettenis@

date 2021-08-31T15:52:59Z
author patrick
files src/sys/arch/amd64/amd64/identcpu.c log diff annotate
src/sys/arch/amd64/amd64/mainbus.c log diff annotate
message Identify the paravirtual bus earlier, as we need to make sure that we have
a working delay func ready before the first occurence of delay(). This is
necessary on Hyper-V Gen 2 VMs where we don't use the TSC.

Discussed with the hackroom
ok kettenis@

date 2021-08-31T15:53:36Z
author patrick
files src/sys/arch/amd64/amd64/lapic.c log diff annotate
message Only use the i8254 delay code if we are specifically using the i8254 as
delay func. Otherwise simply delay for a second to calibrate the LAPIC.
Install the lapic delay func only if we were using the i8254 before as
delay func.

Discussed with the hackroom
ok kettenis@

date 2021-08-31T17:40:59Z
author dv
files src/sys/arch/amd64/amd64/cpu.c log diff annotate
src/sys/arch/amd64/amd64/ipifuncs.c log diff annotate
src/sys/arch/amd64/amd64/vmm.c log diff annotate
src/sys/arch/amd64/include/cpu.h log diff annotate
src/sys/arch/amd64/include/intrdefs.h log diff annotate
src/sys/arch/amd64/include/vmmvar.h log diff annotate
message vmm(4): add ipi for vmclear, unlock kernel

On Intel VMX hosts, when a guest migrates cpus, VMCS state needs
to be flushed to physical memory before being reloaded on the new
cpu. This diff adds a new ipi to allow a guest resuming on a new
cpu to signal to the old that it needs to vmclear.

To better surface the potential race conditions, unlock the kernel
after handling the ioctl to vmm and simplify the run loops for both
vmx and svm. This requires a new vcpu lock.

Tested by some on tech@. "go for it" @mlarkin

date 2021-08-31T20:58:51Z
author patrick
files src/sys/dev/pci/if_bwfm_pci.c log diff annotate
message Initialize ring read/write pointers to make sure that upon reinit, caused
by a suspend/resume cycle, the pointers are set to a sane default.

date 2021-08-31T21:02:09Z
author patrick
files src/sys/dev/pci/if_bwfm_pci.c log diff annotate
message Initialize some struct variables to make sure that upon reinit, caused by
a suspend/resume cycle, the values are set to a sane default.

date 2021-08-31T21:13:24Z
author patrick
files src/sys/dev/pci/if_bwfm_pci.c log diff annotate
message Properly deallocate some more structures upon detach, and make sure we're
not considered initialized anymore.

date 2021-08-31T21:46:00Z
author patrick
files src/sys/dev/ic/bwfm.c log diff annotate
message Clean up the list of chips upon detach and mark us uninitialized.

date 2021-08-31T22:55:56Z
author jmatthew
files src/sys/dev/usb/usbdevs log diff annotate
message Add Aquantia USB ethernet devices

from Brad originally

date 2021-08-31T22:56:24Z
author jmatthew
files src/sys/dev/usb/usbdevs.h log diff annotate
src/sys/dev/usb/usbdevs_data.h log diff annotate
message regen

date 2021-08-31T23:05:11Z
author patrick
files src/sys/dev/ic/bwfm.c log diff annotate
src/sys/dev/ic/bwfmvar.h log diff annotate
src/sys/dev/pci/if_bwfm_pci.c log diff annotate
src/sys/dev/pci/if_bwfm_pci.h log diff annotate
message Implement suspend/resume for bwfm(4) with PCIe backend. We try to send the
device into D3 and do a hot-resume if possible. Otherwise we need to clean
up the resources to allow complete HW re-initialization to take place.

date 2021-08-31T23:53:42Z
author kn
files src/sys/kern/Makefile log diff annotate
message Honour netinet6 when generating symlinks to tags files

"make tags" needs "make links" to have tags available in subdirectories and
netinet6 has been missing all the time.

OK tb