OpenBSD cvs log

created 2023-08-10T10:39:03Z
begin 2023-01-10T00:00:00Z
end 2023-01-17T00:00:00Z
path src/sys
commits 76

date 2023-01-10T00:49:45Z
author cheloha
files src/sys/arch/i386/i386/machdep.c log diff annotate
message i386: identifycpu(): don't print cpuspeed after calibrate_cyclecounter()

The cpuspeed set during calibrate_cyclecounter() is a bogomips measurement.
It isn't an authoritative (nominal) frequency, so we shouldn't print it out
when identifying each CPU. As an added bonus, this also removes some noise
when diffing i386 dmesgs.

ok deraadt@

date 2023-01-10T01:01:18Z
author cheloha
files src/sys/arch/i386/i386/machdep.c log diff annotate
message i386: identifycpu(): only calibrate_cyclecounter() on primary CPU

On i386 during identifycpu(), we call calibrate_cyclecounter() for every
CPU in the system. This is pointless: every new call clobbers the cpuspeed
measured during the prior call. It is also extremely slow: every call to
calibrate_cyclecounter() takes about 1 second.

Instead, let's only call calibrate_cyclecounter() once, on the primary CPU.
Multiprocessor i386 machines will now boot much faster.

ok deraadt@

date 2023-01-10T01:09:14Z
author dv
files src/sys/arch/amd64/amd64/identcpu.c log diff annotate
src/sys/arch/amd64/include/specialreg.h log diff annotate
src/sys/arch/amd64/include/vmmvar.h log diff annotate
src/sys/arch/i386/i386/machdep.c log diff annotate
src/sys/arch/i386/include/specialreg.h log diff annotate
message Hide WAITPKG cpu feature from vmm(4) guests.

Alder Lake and similar-era Intel platforms introduced new userland
wait instructions. Since vmm was passing this cpuid bit into guests,
some would attempt TPAUSE instructions and trigger invalid instruction
exceptions because VMX requires additional configuration to support
emulation.

This also adds WAITPKG to i386 and amd64 cpu feature identification.

Input from anton@, cheloha@, and guenther@. Tested by jmatthew@.

OK deraadt.

date 2023-01-10T11:18:47Z
author kettenis
files src/sys/uvm/uvm_swap.c log diff annotate
message The uvm_swap_data_lock mutex can now be taken without holding the kernel
lock. So it needs IPL_MPFLOOR to prevent lock ordering issues.

ok jca@

date 2023-01-10T12:47:19Z
author tb
files src/sys/dev/wscons/wsdisplay.c log diff annotate
message rhe -> the from Crystal Kolipe

date 2023-01-10T16:33:18Z
author tobhe
files src/sys/dev/wscons/wsdisplay.c log diff annotate
message Switch to console before suspending in DUMBFB mode. Fixes frame buffer corruption
and a few other bugs/races after wakeup on Apple Silicon laptops and Lenovo x13s.

ok kettenis@ deraadt@

date 2023-01-10T17:04:01Z
author miod
files src/sys/arch/mips64/mips64/trap.c log diff annotate
message Enable the fine-grained fault type computation code added in 1.117 on all
mips64 processors, not only Octeon; needed to cope with xonly mappings.

date 2023-01-10T17:10:57Z
author miod
files src/sys/arch/luna88k/stand/boot/Makefile log diff annotate
src/sys/arch/luna88k/stand/boot/Attic/awaitkey.c log diff annotate
src/sys/arch/luna88k/stand/boot/Attic/bcd.c log diff annotate
src/sys/arch/luna88k/stand/boot/bmc.c log diff annotate
src/sys/arch/luna88k/stand/boot/Attic/boot.c log diff annotate
src/sys/arch/luna88k/stand/boot/boot.ldscript log diff annotate
src/sys/arch/luna88k/stand/boot/dev_net.c log diff annotate
src/sys/arch/luna88k/stand/boot/dev_net.h log diff annotate
src/sys/arch/luna88k/stand/boot/devopen.c log diff annotate
src/sys/arch/luna88k/stand/boot/exec.c log diff annotate
src/sys/arch/luna88k/stand/boot/Attic/getline.c log diff annotate
src/sys/arch/luna88k/stand/boot/getsecs.c log diff annotate
src/sys/arch/luna88k/stand/boot/if_le.c log diff annotate
src/sys/arch/luna88k/stand/boot/init_main.c log diff annotate
src/sys/arch/luna88k/stand/boot/kbd.c log diff annotate
src/sys/arch/luna88k/stand/boot/lance.c log diff annotate
src/sys/arch/luna88k/stand/boot/libsa.h log diff annotate
src/sys/arch/luna88k/stand/boot/Attic/parse.c log diff annotate
src/sys/arch/luna88k/stand/boot/Attic/prf.c log diff annotate
src/sys/arch/luna88k/stand/boot/rcvbuf.h log diff annotate
src/sys/arch/luna88k/stand/boot/samachdep.h log diff annotate
src/sys/arch/luna88k/stand/boot/sc.c log diff annotate
src/sys/arch/luna88k/stand/boot/sio.c log diff annotate
message Switch the luna88k boot loader to the MI boot code, to ease future maintainence
of it. Crank version to 0.8.
ok aoyama@

date 2023-01-10T17:38:10Z
author miod
files src/sys/arch/sparc64/sparc64/pmap.c log diff annotate
message In pmap_bootstrap, when importing the PROM translations into the kernel pmap,
be sure to clear all software bits from the TTEs, for these bits will have
different meanings in OpenBSD.

Tested on a large set of sun4u and sun4v systems of different eras to not
cause any regression, should be safe enough.

date 2023-01-10T21:27:12Z
author gkoehler
files src/sys/arch/powerpc/powerpc/pmap.c log diff annotate
message Use atomic ops on the set of used segment registers

Each pmap sets a bit in usedsr to claim 16 unique VSIDs for its
segment registers. Use atomic_cas_uint to set this bit (checking that
the other cpu didn't steal it) and atomic_clearbits_int to clear it.
Stop using splvm.

ok miod@

date 2023-01-11T02:49:34Z
author cheloha
files src/sys/arch/i386/i386/machdep.c log diff annotate
message i386/machdep.c: revert revisions 1.659 and 1.660

"put it back" kettenis@

date 2023-01-11T03:17:56Z
author visa
files src/sys/arch/mips64/include/pte.h log diff annotate
src/sys/arch/mips64/mips64/db_machdep.c log diff annotate
src/sys/arch/mips64/mips64/pmap.c log diff annotate
message Add MIPS64r2 TLB read inhibit support

OK deraadt@ miod@

date 2023-01-11T03:19:52Z
author visa
files src/sys/arch/mips64/include/cpu.h log diff annotate
src/sys/arch/mips64/include/pmap.h log diff annotate
src/sys/arch/mips64/mips64/fp_emulate.c log diff annotate
src/sys/arch/mips64/mips64/pmap.c log diff annotate
src/sys/arch/mips64/mips64/trap.c log diff annotate
message Add TLB bypass for instruction emulation

copyinsn() fetches a userland instruction through the direct map.
This lets emulation work with execute-only virtual memory mappings.

OK deraadt@

date 2023-01-11T03:20:52Z
author visa
files src/sys/arch/octeon/octeon/machdep.c log diff annotate
message Enable TLB read inhibit on OCTEON Plus and newer SoCs.

OK deraadt@

date 2023-01-11T03:28:42Z
author visa
files src/sys/arch/octeon/conf/BOOT log diff annotate
src/sys/arch/octeon/conf/GENERIC log diff annotate
src/sys/arch/octeon/conf/RAMDISK log diff annotate
message Use 64-bit page table entries on octeon

This (over-)compensates for the frame bit reduction related to the
TLB read inhibit support. However, the memory overhead of page tables
is increased.

OK miod@

date 2023-01-11T11:09:17Z
author kettenis
files src/sys/arch/arm64/arm64/pmap.c log diff annotate
message Make sure we also remove read access in pmap_page_ro() when the new
permissions only allow execution. Make sure we completely invalidate
the PTE if the intersection between the old and new permissions is the
empty set.

ok drahn@, deraadt@, mpi@

date 2023-01-11T11:10:25Z
author kettenis
files src/sys/arch/riscv64/riscv64/pmap.c log diff annotate
message Make sure we also remove read access in pmap_page_ro() when the new
permissions only allow execution. Make sure we completely invalidate
the PTE if the intersection between the old and new permissions is the
empty set.

ok deraadt@, mpi@

date 2023-01-11T12:47:04Z
author nicm
files src/sys/dev/rasops/rasops.c log diff annotate
message Remove rasops_isgray, this is no longer used. From Crystal Kolipe
kolipe.c at exoticsilicon dot com.

ok miod

date 2023-01-11T19:57:17Z
author miod
files src/sys/arch/sparc64/sparc64/genassym.cf log diff annotate
src/sys/arch/sparc64/sparc64/locore.s log diff annotate
message Implement X-only mappings on sun4u by not letting the dtlb miss handler
allow ttes with the "exec only" bit; joint work with deraadt@, unfortunately
no effect on sun4v due to the lack of software bits in ttes to fit an
"exec only" bit.

ok deraadt@ kettenis@

date 2023-01-11T19:57:18Z
author miod
files src/sys/arch/sparc64/sparc64/pmap.c log diff annotate
message Implement X-only mappings on sun4u by not letting the dtlb miss handler
allow ttes with the "exec only" bit; joint work with deraadt@, unfortunately
no effect on sun4v due to the lack of software bits in ttes to fit an
"exec only" bit.

ok deraadt@ kettenis@

date 2023-01-12T00:27:26Z
author bluhm
files src/sys/dev/pci/drm/i915/i915_gpu_error.c log diff annotate
message Compiling kernel with witness option failed since drm update. Do
not define struct rwlock variable within function, witness needs
global access.
OK jsg@

date 2023-01-12T10:59:36Z
author mvs
files src/sys/kern/uipc_syscalls.c log diff annotate
message Use solock() instead solock_shared() within sys_getsockopt(). Otherwise
we acquiring kernel lock with mutex(9) held. This partially reverts
rev 1.205 of sys/kern/uipc_syscalls.c. Shared solock() is still fine for
getsockname(2) and getpeername(2).

Reported-by: [email protected]

ok kn@ claudio@

date 2023-01-12T12:23:40Z
author nicm
files src/sys/dev/wscons/wsemul_vt100_subr.c log diff annotate
message Add some missing cursor movement and scrolling escape sequences that are
supported by xterm. From Crystal Kolipe kolipe.c at exoticsilicon dot
com.

ok miod

date 2023-01-12T12:28:08Z
author nicm
files src/sys/dev/rasops/rasops.c log diff annotate
src/sys/dev/wscons/wsemul_vt100_subr.c log diff annotate
message Add aixterm bright colour sequences (SGR 90-97 and 100-107). From
Crystal Kolipe kolipe.c at exoticsilicon dot com.

ok miod

date 2023-01-12T12:34:06Z
author nicm
files src/sys/dev/wscons/wsemul_vt100_subr.c log diff annotate
message Add CBT (cursor back tab) sequence, from Crystal Kolipe kolipe.c at
exoticsilicon dot com.

ok miod

date 2023-01-12T13:09:47Z
author bluhm
files src/sys/net/pf.c log diff annotate
src/sys/netinet/tcp_input.c log diff annotate
message Binding the accept socket in TCP input relies on the fact that the
listen port is not bound to port 0. With a matching pf divert-to
rule this assumption is no longer true and could crash the kernel
with kassert. In both pf and stack drop TCP packets with destination
port 0 before they can do harm.
OK sashan@ claudio@

date 2023-01-12T19:37:53Z
author miod
files src/sys/arch/luna88k/stand/Makefile log diff annotate
src/sys/arch/luna88k/stand/boot/Makefile log diff annotate
src/sys/arch/luna88k/stand/boot/boot.8 log diff annotate
message Update luna88k boot procedure; help & tweaks jmc@

date 2023-01-12T20:13:28Z
author miod
files src/sys/dev/wscons/wsemul_vt100.c log diff annotate
message free(NULL) has been allowed in the kernel since 5.4; remove checks.

date 2023-01-12T20:39:37Z
author nicm
files src/sys/dev/wscons/wscons_features.h log diff annotate
src/sys/dev/wscons/wsemul_vt100.c log diff annotate
src/sys/dev/wscons/wsemul_vt100_subr.c log diff annotate
src/sys/dev/wscons/wsemul_vt100var.h log diff annotate
message Disable double width and height escape sequences under SMALL_KERNEL.

ok miod

date 2023-01-13T01:27:41Z
author jsg
files src/sys/dev/pci/drm/include/acpi/video.h log diff annotate
message add acpi_video_report_nolcd() for 6.1.5 drm

date 2023-01-13T01:32:39Z
author jsg
files src/sys/dev/pci/drm/i915/gvt/scheduler.c log diff annotate
message drm/i915: unpin on error in intel_vgpu_shadow_mm_pin()

From Dan Carpenter
20a07570c1667a48fe50fdfa59f4ece57775b69a in linux-6.1.y/6.1.5
3792fc508c095abd84b10ceae12bd773e61fdc36 in mainline linux

date 2023-01-13T01:34:34Z
author jsg
files src/sys/dev/pci/drm/i915/gvt/gtt.c log diff annotate
message drm/i915/gvt: fix double free bug in split_2MB_gtt_entry

From Zheng Wang
1022519da69d99d455c58ca181a6c499c562c70e in linux-6.1.y/6.1.5
4a61648af68f5ba4884f0e3b494ee1cabc4b6620 in mainline linux

date 2023-01-13T01:37:01Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_object.c log diff annotate
message drm/amdgpu: Fix size validation for non-exclusive domains (v4)

From Luben Tuikov
8ba7c55e112f4ffd2a95b99be1cb1c891ef08ba1 in linux-6.1.y/6.1.5
7554886daa31eacc8e7fac9e15bbce67d10b8f1f in mainline linux

date 2023-01-13T01:38:35Z
author jsg
files src/sys/dev/pci/drm/amd/amdkfd/kfd_process.c log diff annotate
message drm/amdkfd: Fix kfd_process_device_init_vm error handling

From Philip Yang
9d74d1f52e16d8e07f7fbe52e96d6391418a2fe9 in linux-6.1.y/6.1.5
29d48b87db64b6697ddad007548e51d032081c59 in mainline linux

date 2023-01-13T01:40:51Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd.h log diff annotate
src/sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c log diff annotate
src/sys/dev/pci/drm/amd/amdkfd/kfd_process.c log diff annotate
message drm/amdkfd: Fix double release compute pasid

From Philip Yang
a02c07b619899179384fde06f951530438a3512d in linux-6.1.y/6.1.5
1a799c4c190ea9f0e81028e3eb3037ed0ab17ff5 in mainline linux

date 2023-01-13T01:42:45Z
author jsg
files src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c log diff annotate
message drm/amd/display: Report to ACPI video if no panels were found

From Mario Limonciello
adaf41b56803fe7a9a4ac625c7e41615ef23591f in linux-6.1.y/6.1.5
c573e240609ff781a0246c0c8c8351abd0475287 in mainline linux

date 2023-01-13T01:46:41Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu.h log diff annotate
src/sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c log diff annotate
src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c log diff annotate
message Revert "drm/amd/display: Enable Freesync Video Mode by default"

From Michel Daenzer
d54f66bc9c371e4765d78144c8dac568a59a31dd in linux-6.1.y/6.1.5
6fe6ece398f7431784847e922a2c8c385dc58a35 in mainline linux

date 2023-01-13T01:49:06Z
author jsg
files src/sys/dev/pci/drm/include/drm/drm_plane_helper.h log diff annotate
message drm/plane-helper: Add the missing declaration of drm_atomic_state

From Ma Jun
c7041ec41036f64db5104f33348c45a1aedcf098 in linux-6.1.y/6.1.5
4e699e34f923188175986ad8a74ab99f7034075e in mainline linux

date 2023-01-13T01:50:53Z
author jsg
files src/sys/dev/pci/drm/amd/amdkfd/kfd_topology.c log diff annotate
message drm/amdkfd: Fix kernel warning during topology setup

From Mukul Joshi
306888b1246bf44e703b6f1ccc746c2746c1a981 in linux-6.1.y/6.1.5
cf97eb7e47d4671084c7e114c5d88a3d0540ecbd in mainline linux

date 2023-01-13T01:52:52Z
author jsg
files src/sys/dev/pci/drm/i915/gvt/debugfs.c log diff annotate
message drm/i915/gvt: fix gvt debugfs destroy

From Zhenyu Wang
fe340500baf84b6531c9fc508b167525b9bf6446 in linux-6.1.y/6.1.5
c4b850d1f448a901fbf4f7f36dec38c84009b489 in mainline linux

date 2023-01-13T01:54:11Z
author jsg
files src/sys/dev/pci/drm/i915/gvt/debugfs.c log diff annotate
message drm/i915/gvt: fix vgpu debugfs clean in remove

From Zhenyu Wang
44c0e07e3972e3f2609d69ad873d4f342f8a68ec in linux-6.1.y/6.1.5
704f3384f322b40ba24d958473edfb1c9750c8fd in mainline linux

date 2023-01-13T01:56:44Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/dml/display_mode_vba.h log diff annotate
src/sys/dev/pci/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c log diff annotate
src/sys/dev/pci/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c log diff annotate
src/sys/dev/pci/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.h log diff annotate
message drm/amd/display: Add check for DET fetch latency hiding for dcn32

From Dillon Varone
4ac1437d64efdd2788f8c511276243f594e946fd in linux-6.1.y/6.1.5
6d4727c80947de0e6fad58b196a9d215e3b32608 in mainline linux

date 2023-01-13T01:58:55Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c log diff annotate
message drm/amd/display: Uninitialized variables causing 4k60 UCLK to stay at DPM1 and not DPM0

From Samson Tam
d179f9d27f1e31fdcf6b02c4f1658dd69985f602 in linux-6.1.y/6.1.5
f3c23bea598ab7e8e4b8c5ca66598921310f718e in mainline linux

date 2023-01-13T02:01:14Z
author jsg
files src/sys/dev/pci/drm/i915/i915_irq.c log diff annotate
src/sys/dev/pci/drm/i915/i915_reg.h log diff annotate
src/sys/dev/pci/drm/i915/display/intel_dsi_vbt.c log diff annotate
message drm/i915/dsi: add support for ICL+ native MIPI GPIO sequence

From Jani Nikula
c7229577d93d53870fd77e961143305aeec97a7b in linux-6.1.y/6.1.5
963bbdb32b47cfa67a449e715e1dcc525fbd01fc in mainline linux

date 2023-01-13T02:03:06Z
author jsg
files src/sys/dev/pci/drm/i915/display/intel_dsi_vbt.c log diff annotate
message drm/i915/dsi: fix MIPI_BKLT_EN_1 native GPIO index

From Jani Nikula
0c84b7de26588f4032992ee2a1df6c3d367be829 in linux-6.1.y/6.1.5
6217e9f05a74df48c77ee68993d587cdfdb1feb7 in mainline linux

date 2023-01-13T03:22:18Z
author cheloha
files src/sys/arch/sparc64/include/_types.h log diff annotate
src/sys/arch/sparc64/include/cpu.h log diff annotate
src/sys/arch/sparc64/sparc64/clock.c log diff annotate
message sparc64: switch to clockintr

- Remove all use of timer(4/sparc64) from sparc64/clock.c.
- Don't map interrupts in timer_match(), effectively disabling
timer(4/sparc64). The driver will be completely removed in a
later commit.
- Wire up tick_intrclock, stick_intrclock, and sys_tick_intrclock.
- All sparc64 machines now have a randomized statclock; stathz = hz,
profhz = stathz * 10.

Very special thanks to miod@, without whom this would have been impossible.

sun4v testing by kmos@, mlarkin@, and kn@. sun4u testing (%tick and the
oddball USIIe %stick) by miod@. With input from miod@, mlarkin@, and
kettenis@.

v1: https://marc.info/?l=openbsd-tech&m=166776418803680&w=2
v2: https://marc.info/?l=openbsd-tech&m=167287772220176&w=2
v3: https://marc.info/?l=openbsd-tech&m=167322011602530&w=2

ok mlarkin@ kettenis@ miod@

date 2023-01-13T14:15:49Z
author dv
files src/sys/arch/amd64/amd64/Attic/vmm.c log diff annotate
message Retake kernel lock in error paths of vmmioctl.

From Christian Ludwig.

date 2023-01-13T15:49:26Z
author deraadt
files src/sys/arch/luna88k/stand/boot/Makefile log diff annotate
message put man page in the right place

date 2023-01-13T17:53:30Z
author miod
files src/sys/arch/sparc64/include/asm.h log diff annotate
message Drop PICCY_SET() and RODATA() macros now that libc no longer needs them.

ok kettenis@

date 2023-01-13T23:02:43Z
author kettenis
files src/sys/kern/exec_elf.c log diff annotate
src/sys/kern/kern_exec.c log diff annotate
message Since the signal trampoline is now execute-only we no longer write it
into core dumps. As a result backtraces through signal handlers no
longer work in gdb and other debuggers.

Fix this by keeping a read-only mapping of the signal trampoline in the
kernel and writing it into the core dump at the virtual address where it
is mapped in the process.

ok deraadt@, tb@

date 2023-01-13T23:02:44Z
author kettenis
files src/sys/uvm/uvm_unix.c log diff annotate
message Since the signal trampoline is now execute-only we no longer write it
into core dumps. As a result backtraces through signal handlers no
longer work in gdb and other debuggers.

Fix this by keeping a read-only mapping of the signal trampoline in the
kernel and writing it into the core dump at the virtual address where it
is mapped in the process.

ok deraadt@, tb@

date 2023-01-14T01:04:55Z
author cheloha
files src/sys/kern/kern_sysctl.c log diff annotate
message sysctl(2): KERN_CPUSTATS: zero struct cpustats before copyout

date 2023-01-14T03:21:17Z
author jsg
files src/sys/arch/amd64/include/specialreg.h log diff annotate
message sync cr4 and xcr0 bits with intel dec 2022 sdm
ok deraadt@

date 2023-01-14T03:28:51Z
author jsg
files src/sys/arch/amd64/amd64/identcpu.c log diff annotate
src/sys/arch/amd64/include/specialreg.h log diff annotate
message recognise protection keys for supervisor-mode (PKS) in cpuid
ok deraadt@

date 2023-01-14T03:37:13Z
author jsg
files src/sys/arch/amd64/include/pte.h log diff annotate
message add protection-key violation error code for page-fault exceptions
ok deraadt@

date 2023-01-14T12:11:10Z
author kettenis
files src/sys/arch/amd64/amd64/conf.c log diff annotate
src/sys/arch/amd64/amd64/efi_machdep.c log diff annotate
src/sys/arch/amd64/conf/files.amd64 log diff annotate
src/sys/arch/amd64/include/efivar.h log diff annotate
message Implement access to EFI variables and ESRT through an ioctl(2) interface
that is compatible with what FreeBSD and NetBSD have. Setting EFI
variables is only allowed at securelevel 0 and below.

Heavily based on work done by Sergii Dmytruk.

ok yasuoka@

date 2023-01-14T12:11:11Z
author kettenis
files src/sys/arch/arm64/arm64/conf.c log diff annotate
src/sys/arch/arm64/conf/files.arm64 log diff annotate
src/sys/arch/arm64/dev/efi_machdep.c log diff annotate
src/sys/arch/arm64/include/efivar.h log diff annotate
src/sys/dev/efi/efi.c log diff annotate
src/sys/dev/efi/efi.h log diff annotate
src/sys/dev/efi/efiio.h log diff annotate
src/sys/dev/efi/files.efi log diff annotate
src/sys/sys/conf.h log diff annotate
message Implement access to EFI variables and ESRT through an ioctl(2) interface
that is compatible with what FreeBSD and NetBSD have. Setting EFI
variables is only allowed at securelevel 0 and below.

Heavily based on work done by Sergii Dmytruk.

ok yasuoka@

date 2023-01-14T17:02:57Z
author kettenis
files src/sys/dev/fdt/if_dwge.c log diff annotate
message Add support for "enhanced descriptor" mode found on some variants of the
Synopsys DesignWare GMAC.

ok mlarkin@

date 2023-01-14T23:35:09Z
author kettenis
files src/sys/arch/arm64/dev/aplaudio.c log diff annotate
message Assign (stereo) channel numbers based on "sound-name-prefix" properties.

ok patrick@, ratchov@

date 2023-01-14T23:38:23Z
author kettenis
files src/sys/arch/arm64/arm64/cpu.c log diff annotate
message Change suspend idle loop from WFE to WFI. This avoids spurious wakeups
while other CPUs are still active. And prepares us for deeper sleep states
which require an interrupt for wakeup anyway.

ok patrick@

date 2023-01-15T13:51:59Z
author jsg
files src/sys/dev/pci/drm/drm_client.c log diff annotate
src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c log diff annotate
message restore strscpy() paths to reduce diff to linux

date 2023-01-16T00:04:47Z
author deraadt
files src/sys/arch/amd64/include/pte.h log diff annotate
message 3 new defines: he PTE protection key mask, the specific key value we use
for execute-only, and the PKU value used by userland to use that key.

date 2023-01-16T00:05:18Z
author deraadt
files src/sys/arch/amd64/amd64/genassym.cf log diff annotate
message export PGK_VALUE so that .S files can use it

date 2023-01-16T05:32:04Z
author deraadt
files src/sys/arch/alpha/alpha/trap.c log diff annotate
src/sys/arch/amd64/amd64/trap.c log diff annotate
src/sys/arch/arm/arm/syscall.c log diff annotate
message we spent far too long debugging a weird go library problem (incorrect
arguments to mmap) because it was using syscall(2) and that callpath
is invisible in ktrace. make it visible, it will now show "(via syscall)"
and such.
ok guenther

date 2023-01-16T05:32:05Z
author deraadt
files src/sys/arch/arm64/arm64/syscall.c log diff annotate
src/sys/arch/hppa/hppa/trap.c log diff annotate
src/sys/arch/i386/i386/trap.c log diff annotate
src/sys/arch/m88k/m88k/trap.c log diff annotate
src/sys/arch/mips64/mips64/trap.c log diff annotate
src/sys/arch/powerpc/powerpc/trap.c log diff annotate
src/sys/arch/powerpc64/powerpc64/syscall.c log diff annotate
src/sys/arch/riscv64/riscv64/syscall.c log diff annotate
src/sys/arch/sh/sh/trap.c log diff annotate
src/sys/arch/sparc64/sparc64/trap.c log diff annotate
src/sys/sys/ktrace.h log diff annotate
src/sys/sys/syscall_mi.h log diff annotate
message we spent far too long debugging a weird go library problem (incorrect
arguments to mmap) because it was using syscall(2) and that callpath
is invisible in ktrace. make it visible, it will now show "(via syscall)"
and such.
ok guenther

date 2023-01-16T07:09:11Z
author guenther
files src/sys/kern/exec_elf.c log diff annotate
src/sys/sys/proc.h log diff annotate
src/sys/uvm/uvm_mmap.c log diff annotate
message branches: 1.180.4;
Currently we disable kbind(2) for static program from libc.a's
preinit hook. Delete that and instead have the kernel disable kbind
at exec-time if the program doesn't have an ELF interpreter. For
now, permit userland calls to disable it when already disabled so
existing static programs continue to work.

prompted by deraadt@ questioning about the call in libc.a

ok deraadt@ miod@

date 2023-01-16T07:29:32Z
author deraadt
files src/sys/arch/alpha/stand/OSFpal.c log diff annotate
src/sys/arch/alpha/stand/bootxx.c log diff annotate
src/sys/arch/alpha/stand/prom.c log diff annotate
src/sys/arch/alpha/stand/puts.c log diff annotate
message roughly cleanup terrible pre-ansi practices
ok miod

date 2023-01-16T07:29:34Z
author deraadt
files src/sys/arch/alpha/stand/boot/boot.c log diff annotate
message roughly cleanup terrible pre-ansi practices
ok miod

date 2023-01-16T07:29:35Z
author deraadt
files src/sys/arch/alpha/stand/boot/devopen.c log diff annotate
src/sys/arch/alpha/stand/boot/disk.c log diff annotate
src/sys/arch/alpha/stand/netboot/dev_net.c log diff annotate
src/sys/arch/alpha/stand/netboot/getsecs.c log diff annotate
src/sys/arch/alpha/stand/netboot/if_prom.c log diff annotate
message roughly cleanup terrible pre-ansi practices
ok miod

date 2023-01-16T10:11:39Z
author kettenis
files src/sys/arch/arm64/arm64/aesv8-armx.S log diff annotate
message Don't put data in .text.

ok deraadt@, miod@

date 2023-01-16T18:41:53Z
author deraadt
files src/sys/arch/alpha/include/prom.h log diff annotate
message some kernel prototypes should also be made available to _STANDALONE

date 2023-01-16T20:07:48Z
author patrick
files src/sys/arch/arm64/dev/mainbus.c log diff annotate
message Attach drivers on nodes under /firmware.

ok kettenis@

date 2023-01-16T20:12:38Z
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/qcrtc.c log diff annotate
src/sys/dev/fdt/qcscm.c log diff annotate
message Manage RTC offset through UEFI variables handled by a TEE application that
can be interacted with using SMC calls.

ok kettenis@

date 2023-01-16T21:30:46Z
author kn
files src/sys/arch/riscv64/stand/efiboot/softraid_riscv64.c log diff annotate
src/sys/arch/riscv64/stand/efiboot/softraid_riscv64.h log diff annotate
message Sync with original arm64 copy to get RAID 1C bits, fix include guard

OK kettenis

date 2023-01-16T21:32:12Z
author kn
files src/sys/arch/riscv64/stand/efiboot/conf.c log diff annotate
message bump minor after RAID 1C support synced form arm64

date 2023-01-16T22:08:50Z
author jmatthew
files src/sys/dev/usb/if_urtwn.c log diff annotate
message Fix transmit queue selection based on frame type. I introduced an error
here when I split up urtwn_tx() to add support for RTL8192EU devices.

from Mikhail (mp395990 at gmail)
ok stsp@