OpenBSD cvs log

created 2019-04-18T10:01:32Z
begin 2019-04-01T00:00:00Z
end 2019-04-02T00:00:00Z
path src/sys
commits 21

date 2019-04-01T02:58:56Z
author jmatthew
files src/sys/dev/pci/if_ixl.c log diff annotate
message Don't use a prefetchable mapping for the registers - the controller only
accepts specific read and write widths, so prefetching and write combining
can cause it to generate pcie errors.

ok dlg@

date 2019-04-01T03:01:14Z
author jmatthew
files src/sys/dev/pci/if_ixl.c log diff annotate
message Enable the full pre-reset code path again, now that we've fixed the cause
of the pcie errors.

ok dlg@

date 2019-04-01T03:23:45Z
author dlg
files src/sys/kern/kern_task.c log diff annotate
src/sys/sys/task.h log diff annotate
message deprecate TASKQ_CANTSLEEP since nothing uses it anymore

if we ever want it back, it's in the attic.

ok mpi@ visa@ kettenis@

date 2019-04-01T06:01:07Z
author naddy
files src/sys/dev/pci/if_wb.c log diff annotate
message repair "} if" from an ancient merge error; ok deraadt@ kn@

date 2019-04-01T06:03:57Z
author naddy
files src/sys/dev/x86emu/x86emu.c log diff annotate
message Repair "} if" and make it the intended "} else if", compare the corresponding
ror_*() functions. Also, the result doesn't actually change. ok deraadt@

date 2019-04-01T07:00:51Z
author tedu
files src/sys/arch/alpha/alpha/machdep.c log diff annotate
src/sys/arch/amd64/amd64/machdep.c log diff annotate
src/sys/arch/arm64/arm64/machdep.c log diff annotate
src/sys/arch/armv7/armv7/armv7_machdep.c log diff annotate
src/sys/arch/hppa/hppa/machdep.c log diff annotate
src/sys/arch/i386/i386/machdep.c log diff annotate
message fast track ddb> reboot command to skip anything which might panic again.
ok deraadt

date 2019-04-01T07:00:52Z
author tedu
files src/sys/arch/landisk/landisk/machdep.c log diff annotate
src/sys/arch/loongson/loongson/machdep.c log diff annotate
src/sys/arch/luna88k/luna88k/machdep.c log diff annotate
src/sys/arch/macppc/macppc/machdep.c log diff annotate
src/sys/arch/octeon/octeon/machdep.c log diff annotate
src/sys/arch/sgi/sgi/machdep.c log diff annotate
src/sys/arch/socppc/socppc/machdep.c log diff annotate
src/sys/arch/sparc64/sparc64/machdep.c log diff annotate
src/sys/ddb/db_command.c log diff annotate
src/sys/sys/reboot.h log diff annotate
message fast track ddb> reboot command to skip anything which might panic again.
ok deraadt

date 2019-04-01T07:02:04Z
author tedu
files src/sys/arch/loongson/loongson/machdep.c log diff annotate
message compile fix from visa

date 2019-04-01T08:21:04Z
author mlarkin
files src/sys/arch/amd64/include/vmmvar.h log diff annotate
message vmm(4): Don't advertise support for MCE/MCA since we don't implement
the MSRs to support them. Fixes an OOPS during Linux guest VM boot on
Ryzen.

ok deraadt

date 2019-04-01T08:40:37Z
author patrick
files src/sys/dev/fdt/imxgpc.c log diff annotate
message In the upstreamed and official device tree for i.MX8MQ the power domains are
not separate nodes, but instead part of imxgpc(4).

ok kettenis@

date 2019-04-01T08:43:04Z
author patrick
files src/sys/dev/fdt/xhci_fdt.c log diff annotate
message In the upstreamed and official device tree for i.MX8MQ the USB phys
use only one address and size cells. Also set the assigned clocks
and enable them.

ok kettenis@

date 2019-04-01T08:43:29Z
author mortimer
files src/sys/arch/amd64/amd64/locore.S log diff annotate
message Add retguard macros to kernel setjmp / longjmp.

ok deraadt@ kettenis@

date 2019-04-01T08:46:16Z
author patrick
files src/sys/arch/arm64/conf/GENERIC log diff annotate
src/sys/arch/arm64/conf/RAMDISK log diff annotate
src/sys/dev/fdt/files.fdt log diff annotate
src/sys/dev/fdt/Attic/imxdwusb.c log diff annotate
src/sys/dev/fdt/Attic/imxpd.c log diff annotate
message imxdwusb(4) and imxpd(4) are no longer needed.

ok kettenis@

date 2019-04-01T08:49:35Z
author patrick
files src/sys/dev/fdt/imxccm.c log diff annotate
src/sys/dev/fdt/imxccm_clocks.h log diff annotate
message In the upstreamed and official device tree for i.MX8MQ the clocks
have changed. The clocks are not split into SRC, PRE_DIV, DIV and
CG anymore. There is only a single index for each clock and we
need to handle them as composite clocks internally.

ok kettenis@

date 2019-04-01T09:28:24Z
author tedu
files src/sys/ddb/db_command.c log diff annotate
message remove prototype from earlier version of reboot code. spotted by anton

date 2019-04-01T10:31:46Z
author kn
files src/sys/dev/pci/if_iwm.c log diff annotate
message Fix interrupt handler to set RUNNING flag when RF switch is enabled

With an UP and RUNNING interface, turning off the hardware kill switch
removes the RUNNING flag and powers down the device.

Iff still UP, switching it back would not reset the flag accordingly.

Fix this in analogy to sys/dev/pci/if_iwn.c revision 1.204 by scheduling
iwm_init() unconditionally on both hardware kill switch edges; it'll take
care of everything else.

Tested with

iwm0 at pci2 dev 0 function 0 "Intel Dual Band Wireless AC 7260" rev 0xbb,
msi iwm0: hw rev 0x140, fw ver 16.242414.0

OK deraadt stsp

date 2019-04-01T10:47:13Z
author kn
files src/sys/dev/pci/if_iwm.c log diff annotate
message Enable RF_KILL interrupts on resume

Like the interrupt handler, the resume path needs to check the register to
update flags in order to propagate the hardware kill switch state, otherwise
the driver would still consider the switch to be off after resume even
though it may have changed while in S3.

Fix the resume path by simply applying the same idiom already found in
iwm_start_hw(). This will ensure seemless operation no matter which
combination of switch toggling and suspend/resume users will follow.

OK stsp

date 2019-04-01T12:02:43Z
author mlarkin
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
src/sys/arch/amd64/include/vmmvar.h log diff annotate
message vmm(4): Don't advertise support for SSBD and related speculative exec
control features on AMD. Linux tries to use them and since these are not
fully implemented yet, it results in an OOPS during boot on recent
hardware.

When these are properly passed through, we can restore advertising
support for this feature.

ok deraadt@

date 2019-04-01T12:45:49Z
author mlarkin
files src/sys/arch/amd64/include/pmap.h log diff annotate
message vmm(4): flush EPT when uvm removes mappings from a nested page table

Ensure TLB is flushed to avoid stale entries when uvm removes
entries from a guest VM's EPT. This is done on VM teardown and when uvm
pages out pages in low memory situations. Prompted by a conversation with
Maxime from NetBSD a few months back.

ok deraadt

date 2019-04-01T12:45:50Z
author mlarkin
files src/sys/arch/amd64/amd64/pmap.c log diff annotate
src/sys/arch/amd64/amd64/vmm.c log diff annotate
message vmm(4): flush EPT when uvm removes mappings from a nested page table

Ensure TLB is flushed to avoid stale entries when uvm removes
entries from a guest VM's EPT. This is done on VM teardown and when uvm
pages out pages in low memory situations. Prompted by a conversation with
Maxime from NetBSD a few months back.

ok deraadt

date 2019-04-01T15:19:56Z
author patrick
files src/sys/dev/ic/bwfm.c log diff annotate
message Correctly extract the RSSI information from the structure. It's
a 16-bit value, so we have to use letoh16() instead of letoh32().
Also properly cast it to signed, so that it can be sign-extended
properly.

ok stsp@