OpenBSD cvs log

created 2021-07-02T05:31:47Z
begin 2021-06-04T00:00:00Z
end 2021-06-05T00:00:00Z
path src/sys
commits 6

date 2021-06-04T00:09:34Z
author krw
files src/sys/arch/amd64/stand/efiboot/Attic/eficall.h log diff annotate
src/sys/arch/amd64/stand/efiboot/bootx64/Makefile log diff annotate
src/sys/arch/arm64/stand/efiboot/Attic/eficall.h log diff annotate
src/sys/arch/armv7/stand/efiboot/Attic/eficall.h log diff annotate
src/sys/arch/riscv64/stand/efiboot/Attic/eficall.h log diff annotate
src/sys/stand/efi/include/amd64/efibind.h log diff annotate
message yasuoka@ pointed out that amd64 clang now understands
'__attribute((ms_abi))', removing the need for the EFI_CALL
abstraction.

Nuke the amd64 EFI_CALL dance from all copies of eficall.h,
remove eficall.S from the build.

ok kettenis@ yasuoka@

date 2021-06-04T01:52:21Z
author jsg
files src/sys/dev/pci/drm/i915/i915_pci.c log diff annotate
message disable ppgtt on cherryview/braswell

With ppgtt enabled the contents of struct gen6_ppgtt are overwritten
leading to unexpected values for vma pointer such as 0 and 1.

Multiple people have reported problems with 6.9 on cherryview/braswell
with traces along the lines of

uvm_fault(0xffffffff8214ea68, 0xb8, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at i915_ggtt_pin+0x29: movq 0xb8(%rdi),%r12
i915_ggtt_pin(0,10000,20) at i915_ggtt_pin+0x29
gen6_ppgtt_pin(ffff800000cb9400) at gen6_ppgtt_pin+0x7c
__intel_context_do_pin(fffffd817dc8ad80) at __intel_context_do_pin+0xca
intel_engines_init(ffff800000104c38) at intel_engines_init+0x4b5
intel_gt_init(ffff800000104c38) at intel_gt_init+0x130
i915_gem_init(ffff800000100000) at i915_gem_init+0xa3
i915_driver_probe(ffff800000100000,ffffffff81fc6e90) at i915_driver_probe+0x7ed

The "use drm_mm from linux 5.7.y" commit made last October is
implicated in the change in behaviour but does not itself have any
cherryview/braswell specific changes. There is at least one report on
misc@ which suggests this occurred in some situations with 6.8 which
lacks that change.

Thanks to the people who reported this in particular Matthias Pressfreund
who tested many patches.

date 2021-06-04T07:29:54Z
author jsg
files src/sys/dev/pci/drm/dma-resv.c log diff annotate
message avoid a use after free in a path taken if malloc M_NOWAIT fails

date 2021-06-04T09:05:19Z
author mvs
files src/sys/kern/syscalls.master log diff annotate
message Unlock connect(2). Again.

ok mpi@

date 2021-06-04T09:06:09Z
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 2021-06-04T15:19:38Z
author krw
files src/sys/arch/amd64/stand/efiboot/Attic/eficall.S log diff annotate
message Remove now unused eficall.S.

prodded by jsg@