OpenBSD cvs log

created 2019-04-18T10:18:01Z
begin 2019-04-10T00:00:00Z
end 2019-04-11T00:00:00Z
path src/sys
commits 22

date 2019-04-10T04:17:31Z
author deraadt
files src/sys/arch/alpha/stand/boot/boot.c log diff annotate
message change marks[] array to uint64_t, so the code can track full 64-bit
details from the ELF header instead of faking it.
Proposal from mlarkin, tested on most architectures already

date 2019-04-10T04:17:33Z
author deraadt
files src/sys/arch/alpha/stand/netboot/netboot.c log diff annotate
src/sys/arch/amd64/include/loadfile_machdep.h log diff annotate
src/sys/arch/amd64/stand/libsa/exec_i386.c log diff annotate
message change marks[] array to uint64_t, so the code can track full 64-bit
details from the ELF header instead of faking it.
Proposal from mlarkin, tested on most architectures already

date 2019-04-10T04:17:34Z
author deraadt
files src/sys/arch/arm64/include/loadfile_machdep.h log diff annotate
src/sys/arch/arm64/stand/efiboot/exec.c log diff annotate
src/sys/arch/armv7/include/loadfile_machdep.h log diff annotate
src/sys/arch/armv7/stand/efiboot/exec.c log diff annotate
src/sys/arch/hppa/stand/boot/exec.c log diff annotate
src/sys/arch/hppa/stand/cdboot/cdboot.c log diff annotate
src/sys/arch/hppa/stand/cdboot/elf64.c log diff annotate
message change marks[] array to uint64_t, so the code can track full 64-bit
details from the ELF header instead of faking it.
Proposal from mlarkin, tested on most architectures already

date 2019-04-10T04:17:35Z
author deraadt
files src/sys/arch/hppa/stand/libsa/libsa.h log diff annotate
src/sys/arch/i386/include/loadfile_machdep.h log diff annotate
src/sys/arch/i386/stand/libsa/exec_i386.c log diff annotate
src/sys/arch/landisk/stand/boot/devs.c log diff annotate
src/sys/arch/loongson/stand/boot/exec.c log diff annotate
src/sys/arch/loongson/stand/boot/libsa.h log diff annotate
message change marks[] array to uint64_t, so the code can track full 64-bit
details from the ELF header instead of faking it.
Proposal from mlarkin, tested on most architectures already

date 2019-04-10T04:17:36Z
author deraadt
files src/sys/arch/luna88k/stand/boot/boot.c log diff annotate
src/sys/arch/macppc/stand/main.c log diff annotate
src/sys/arch/octeon/stand/boot/exec.c log diff annotate
src/sys/arch/octeon/stand/boot/libsa.h log diff annotate
src/sys/arch/sgi/stand/boot/boot.c log diff annotate
message change marks[] array to uint64_t, so the code can track full 64-bit
details from the ELF header instead of faking it.
Proposal from mlarkin, tested on most architectures already

date 2019-04-10T04:17:37Z
author deraadt
files src/sys/arch/socppc/stand/boot/exec.c log diff annotate
src/sys/lib/libsa/loadfile.c log diff annotate
src/sys/lib/libsa/loadfile.h log diff annotate
src/sys/lib/libsa/loadfile_elf.c log diff annotate
src/sys/stand/boot/boot.c log diff annotate
message change marks[] array to uint64_t, so the code can track full 64-bit
details from the ELF header instead of faking it.
Proposal from mlarkin, tested on most architectures already

date 2019-04-10T04:19:31Z
author deraadt
files src/sys/arch/amd64/stand/boot/conf.c log diff annotate
src/sys/arch/amd64/stand/cdboot/conf.c log diff annotate
src/sys/arch/amd64/stand/efiboot/conf.c log diff annotate
src/sys/arch/amd64/stand/pxeboot/conf.c log diff annotate
src/sys/arch/arm64/stand/efiboot/conf.c log diff annotate
message crank versions

date 2019-04-10T04:19:32Z
author deraadt
files src/sys/arch/armv7/stand/efiboot/conf.c log diff annotate
src/sys/arch/hppa/stand/boot/conf.c log diff annotate
src/sys/arch/i386/stand/boot/conf.c log diff annotate
src/sys/arch/i386/stand/cdboot/conf.c log diff annotate
src/sys/arch/i386/stand/pxeboot/conf.c log diff annotate
src/sys/arch/landisk/stand/boot/conf.c log diff annotate
src/sys/arch/loongson/stand/boot/conf.c log diff annotate
src/sys/arch/octeon/stand/boot/conf.c log diff annotate
src/sys/arch/socppc/stand/boot/conf.c log diff annotate
message crank versions

date 2019-04-10T05:17:48Z
author kevlo
files src/sys/dev/usb/if_urereg.h log diff annotate
message Fix URE_WDT6_SET_MODE register definition.
Based on FreeBSD r346028, this fixes ure(4) not detected after a reboot.

ok deraadt@

date 2019-04-10T08:27:35Z
author ratchov
files src/sys/dev/usb/xhci.c log diff annotate
message Handle missed service errors, specific to isochronous transfers.

After each MSE, ensuire usbd_complete_transfer() is called for each
missed transfer, for which there's no transfer completion event. Fixes
crashes and deadlocks in upper layers caused by the missing
completion.

ok deraadt, patrick; help from mpi, patrick, gmlocker

date 2019-04-10T09:49:22Z
author dlg
files src/sys/net/if.h log diff annotate
message add struct if_sffpage so userland can read a page of sfp/qsfp info

this will be used by ifconfig so it can show you things like who
mades what module you're using and when it was made, and on some
modules you get diag info like temperature, vcc, and rx and tx
powers.

im putting the kernel side in so we can keep fiddling with the
userland printf side of things.

this work was done based on a question by rachel roch
ok deraadt@
enthusiasm from many including mikeb@ sthen@ patrick@

date 2019-04-10T09:49:50Z
author dlg
files src/sys/sys/sockio.h log diff annotate
message add SIOCGIFSFFPAGE, for getting sfp/qsfp module info from nics.

date 2019-04-10T09:51:35Z
author dlg
files src/sys/net/if.c log diff annotate
message do custom checks for SIOCGIFSFFPAGE.

this should only be used by root, and it should not tak the NET_LOCK
because a bunch of i2c reads can take a relatively long time during
which packets would be blocked.

while here make sure userland only requests pages from the eeprom
and diag i2c addresses.

ok deraadt@

date 2019-04-10T09:55:02Z
author dlg
files src/sys/dev/pci/if_ix.c log diff annotate
src/sys/dev/pci/if_ix.h log diff annotate
src/sys/dev/pci/ixgbe_type.h log diff annotate
message add support for SIOCGIFSFFPAGE so userland can read sfp module info

access to the ioctl is serialised by a per ifp rwlock so userland
reads of different pages in the same device address do not confuse
each other.

this was pretty straightforward because a lot of the plumbing for
accessing the i2c bus was already in place.

date 2019-04-10T10:03:10Z
author dlg
files src/sys/dev/pci/if_ixl.c log diff annotate
message implement support for SIOCGIFSFFPAGE

this relies on some firmware commands for accessing the i2c bus
that are not available until a relatively recent API version. our
nics using API 1.4 and 1.5 don't handle the command, but the API
1.7 nic we have is happy to talk to the module that is plugged into
it.

xl710 cards (the 40g ones with a qsfp+ connector) can be split up
into 4 functions that represent lanes on a single port. you can get
qsfp+ to 4x sfp+ cables so you can use the different lanes/functions
as completely independent interfaces. however, because each lane/
function is one port and therefore module, we need to serialise
access to the module by at least the port. this is to prevent
concurrent reads of different pages of the one module from stepping
on each other. i took the easy path and made a single ixlsff lock,
which is at least conservative.

date 2019-04-10T13:54:06Z
author phessler
files src/sys/dev/pci/pcidevs log diff annotate
message Add support for X722 to ixl(4)

full list of pci ids from sthen@

OK sthen@, jmatthew@, deraadt@

date 2019-04-10T13:54:56Z
author phessler
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message sync

date 2019-04-10T13:56:09Z
author phessler
files src/sys/dev/pci/if_ixl.c log diff annotate
message Add support for X722 to ixl(4)

full list of pci ids from sthen@

OK sthen@, jmatthew@, deraadt@

date 2019-04-10T15:14:49Z
author ratchov
files src/sys/dev/usb/uaudio.c log diff annotate
message Hide debug printfs.

ok deraadt

date 2019-04-10T19:41:03Z
author florian
files src/sys/stand/boot/boot.c log diff annotate
message Unbreak "boot bsd.up" line in /etc/boot.conf
Found the hard way by Raf Czlonka (rczlonka AT gmail), thanks!
OK deraadt

date 2019-04-10T22:02:03Z
author aoyama
files src/sys/arch/luna88k/stand/boot/boot.c log diff annotate
message Add (uint32_t) cast on marks[] to avoid warning in gcc3.

"Yes, fix that" deraadt@

date 2019-04-10T22:18:39Z
author ians
files src/sys/arch/armv7/omap/amdisplay.c log diff annotate
message KNF per naddy@