OpenBSD cvs log

created 2023-08-17T16:03:48Z
begin 2023-03-14T00:00:00Z
end 2023-03-21T00:00:00Z
path src/sys
commits 23

date 2023-03-14T00:11:58Z
author cheloha
files src/sys/kern/kern_clockintr.c log diff annotate
message clockintr: add missing newline to ddb(4) printout

Let's also print the state (running, pending, or established) of each
clockintr.

date 2023-03-14T00:24:05Z
author yasuoka
files src/sys/netinet/tcp_input.c log diff annotate
src/sys/netinet/tcp_timer.c log diff annotate
src/sys/netinet/tcp_timer.h log diff annotate
src/sys/netinet/tcp_usrreq.c log diff annotate
src/sys/netinet/tcp_var.h log diff annotate
message To avoid misunderstanding, keep variables for tcp keepalive in
milliseconds, which is the same unit of tcp_now(). However, keep the
unit of sysctl variables in seconds and convert their unit in
tcp_sysctl(). Additionally revert TCPTV_SRTTDFLT back to 3 seconds,
which was mistakenly changed to 1.5 seconds by tcp_timer.h 1.19.

ok claudio

date 2023-03-14T06:55:31Z
author jmc
files src/sys/arch/alpha/stand/nboot/boot.8 log diff annotate
message sync the boot options list, and some macro fixes;
ok miod

date 2023-03-15T08:20:52Z
author jsg
files src/sys/arch/amd64/amd64/bios.c log diff annotate
src/sys/arch/i386/i386/bios.c log diff annotate
message store bios version, needed for amdgpu Steam Deck quirk

date 2023-03-15T08:24:56Z
author jsg
files src/sys/dev/pci/drm/drm_linux.c log diff annotate
message handle dmi_get_system_info(DMI_BIOS_VERSION)

date 2023-03-15T08:36:33Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c log diff annotate
message drm/amdgpu/vcn: Disable indirect SRAM on Vangogh broken BIOSes

From Guilherme G. Piccoli in amd-staging-drm-next
https://gitlab.freedesktop.org/drm/amd/-/issues/2385

This fixes amdgpu failing to init on Steam Deck after the drm 6.1 update:

[drm] failed to load ucode VCN0_RAM(0x3A) [drm] psp gfx command LOAD_IP_FW(0x6)
failed and response status is (0xFFFF0000)
[drm] *ERROR* ring vcn_dec_0 test failed (-60)
[drm] *ERROR* hw_init of IP block <vcn_v3_0> failed -60
drm:pid0:amdgpu_device_init *ERROR* amdgpu_device_ip_init failed
drm:pid0:amdgpu_attachhook *ERROR* Fatal error during GPU init

reported and tested by bentley@ on:
bios0: vendor Valve version "F7A0113" date 11/04/2022
bios0: Valve Jupiter

date 2023-03-15T13:01:40Z
author kettenis
files src/sys/dev/acpi/acpi.c log diff annotate
message Add missing nameref resolving for the _DEP() package elements that indicate
dependencies between ACPI devices.

ok dlg@, deraadt@

date 2023-03-15T22:47:35Z
author stsp
files src/sys/dev/ic/bwfm.c log diff annotate
message make WEP encryption work on bwfm(4)

based on an initial diff by jsg@
brokenness pointed out by kn@
ok jsg@

date 2023-03-16T10:33:44Z
author kettenis
files src/sys/dev/fdt/files.fdt log diff annotate
message Add missing dependecy for rkcomphy(4); pointed out by dlg@

date 2023-03-16T18:33:19Z
author kettenis
files src/sys/dev/fdt/dwpcie.c log diff annotate
message Add code to bring up the PCIe controller on the RK356x.

ok dlg@

date 2023-03-16T22:44:35Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c log diff annotate
message after updating amdgpu-firmware from 20221214 to 20230310 a new
warning appeared in dmesg on renoir:

[drm] psp gfx command LOAD_TA(0x1) failed and response status is (0x7)
[drm] psp gfx command INVOKE_CMD(0x3) failed and response status is (0x4)
psp_securedisplay_parse_resp_status *ERROR* Secure display: Generic Failure.
psp_securedisplay_initialize *ERROR* SECUREDISPLAY: query securedisplay TA failed. ret 0x0

This is likely related to not implementing all the HDCP paths.
Return early in psp_securedisplay_initialize() to avoid this.

I suspect the newer renoir firmware adds a TA_FW_TYPE_PSP_SECUREDISPLAY
component the older one didn't have.

reported by jmc@

date 2023-03-17T19:20:19Z
author miod
files src/sys/arch/alpha/alpha/vm_machdep.c log diff annotate
message Move annoying yet harmless diagnostic message into #ifdef DEBUG.

date 2023-03-17T22:52:22Z
author deraadt
files src/sys/conf/newvers.sh log diff annotate
message branches: 1.194.4;
remove -beta tag

date 2023-03-19T06:02:07Z
author jsg
files src/sys/conf/GENERIC log diff annotate
message disable POOL_DEBUG for release
ok deraadt@

date 2023-03-19T08:41:49Z
author kettenis
files src/sys/dev/fdt/if_dwqe_fdt.c log diff annotate
message Use a task to switch clocks on RK3568 as the clock API needs process context.

ok jmatthew@

date 2023-03-19T09:32:11Z
author kettenis
files src/sys/dev/fdt/rkclock.c log diff annotate
src/sys/dev/fdt/rkclock_clocks.h log diff annotate
message Add a few more RK3568 clocks.

ok dlg@

date 2023-03-19T09:38:06Z
author jsg
files src/sys/dev/pci/pcidevs log diff annotate
src/sys/dev/pci/drm/amd/amdgpu/amdgpu_devlist.h log diff annotate
message add another Navi 33 device id

0x7483 rev 0xcf is Radeon RX 7600M according to
Radeon Software for Linux version 22.40.3 (5.4.3) libdrm-amdgpu-common

date 2023-03-19T09:38:43Z
author jsg
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2023-03-19T09:46:40Z
author kettenis
files src/sys/dev/ic/dwqevar.h log diff annotate
message Use a task to switch clocks on RK3568 as the clock API needs process context.

ok jmatthew@

date 2023-03-19T10:18:17Z
author dlg
files src/sys/dev/fdt/rkclock.c log diff annotate
message improve dmesg output to help with debugging.

for SoCs that can provide multiple instances of rkclock, let them
provide a name that will be printed during attach so you can tell
which one is doing what.

when rkclock_set_frequency isn't handling a clock, have it print
which rkclock instance isn't handling a clock. while here, print
the clock index the same way the #define refers to them.

ok kettenis@

date 2023-03-19T11:17:16Z
author kettenis
files src/sys/dev/fdt/files.fdt log diff annotate
src/sys/dev/fdt/rkpciephy.c log diff annotate
message Add rkpciephy(4), ad friver for the PCIe 3.0 PHY dound on the RK356x.
The driver in principle supports bifurcation but this is (largely) untested.

ok dlg@

date 2023-03-19T11:18:11Z
author kettenis
files src/sys/arch/arm64/conf/GENERIC log diff annotate
src/sys/arch/arm64/conf/RAMDISK log diff annotate
message Enable rkpciephy(40.

date 2023-03-19T20:32:13Z
author kettenis
files src/sys/arch/amd64/include/vmparam.h log diff annotate
src/sys/arch/arm64/include/vmparam.h log diff annotate
src/sys/arch/mips64/include/vmparam.h log diff annotate
src/sys/arch/powerpc64/include/vmparam.h log diff annotate
src/sys/arch/riscv64/include/vmparam.h log diff annotate
src/sys/arch/sparc64/include/vmparam.h log diff annotate
src/sys/kern/exec_subr.c log diff annotate
message Aggressively randomize the location of the stack on all 64-bit architectures
except alpha. This will put the stack at a random location in the upper
1/4th of the userland virtual address space providing up to 26 additional
bits of randomness in the address. Skip alpha for now since it currently
puts the stack at a (for a 64-bit architecture) very low address. Skip
32-bit architectures for now as well since those have a much smaller
virtual address space and we need more time to figure out what a safe
amount of extra randomizations is. These architectures will continue to
use a mildly randomized stack address through the existing stackgap random
mechanism. We will revisit this after 7.3 is released.

This should make it harder for an attacker to find the stack.

ok deraadt@, miod@