OpenBSD cvs log

created 2023-10-04T12:14:03Z
begin 2023-09-19T00:00:00Z
end 2023-09-20T00:00:00Z
path src/sys
commits 16

date 2023-09-19T10:43:33Z
author claudio
files src/sys/kern/kern_pledge.c log diff annotate
src/sys/kern/kern_sig.c log diff annotate
message Before coredump or in pledge_fail use SINGLE_UNWIND to stop all threads.

SINGLE_UNWIND unwinds to the kernel boundary. On the other hand
SINGLE_SUSPEND will sleep inside tsleep(9) and other sleep functions.
Since the code will exit1() very soon after it is better to already unwind.
Now one could argue that for coredumps all threads should stop asap to
get a clean dump. Using SINGLE_UNWIND the sleep will fail with ERESTART
and no copyout should happen in that case.

This is a bit of a workaround since SINGLE_SUSPEND has a small race
where single_thread_wait() returns before all threads are really stopped.
When SINGLE_EXIT is called quickly after this can blow up inside
sleep_finish.

Reported-by: [email protected]

OK mpi@ kettenis@

date 2023-09-19T11:31:51Z
author claudio
files src/sys/kern/kern_sched.c log diff annotate
message Add a KASSERT for p->p_wchan == NULL to setrunqueue()

There is the same check in sched_chooseproc() but that is too late
to know where the bad insertion into the runqueue was done.
OK mpi@

date 2023-09-19T11:35:30Z
author claudio
files src/sys/ddb/db_command.c log diff annotate
src/sys/kern/kern_proc.c log diff annotate
message Improve the output of ddb "show proc" command

Include missing fields -- like the sleep channel and message -- and
show both the PID and TID of the proc.
Also add '/t' as an argument that can be used to specify a proc by TID
instead of by address.
OK mpi@

date 2023-09-19T12:30:02Z
author jsg
files src/sys/dev/pci/drm/i915/i915_request.c log diff annotate
src/sys/dev/pci/drm/i915/gt/intel_engine_types.h log diff annotate
src/sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c log diff annotate
message drm/i915: mark requests for GuC virtual engines to avoid use-after-free

From Andrzej Hajda
8017a27cec32eac8c8f9430b0a3055840136b856 in linux-6.1.y/6.1.54
5eefc5307c983b59344a4cb89009819f580c84fa in mainline linux

date 2023-09-19T12:31:43Z
author jsg
files src/sys/dev/pci/drm/i915/gvt/gtt.c log diff annotate
message drm/i915/gvt: Verify pfn is "valid" before dereferencing "struct page"

From Sean Christopherson
f5738399ed965be3ba734bd039bf96a455bb5ac0 in linux-6.1.y/6.1.54
f046923af79158361295ed4f0a588c80b9fdcc1d in mainline linux

date 2023-09-19T12:34:56Z
author jsg
files src/sys/dev/pci/drm/i915/gvt/gtt.c log diff annotate
message drm/i915/gvt: Put the page reference obtained by KVM's gfn_to_pfn()

From Sean Christopherson
2b7510bb92c1fc19292801778e971cbb46e2499f in linux-6.1.y/6.1.54
708e49583d7da863898b25dafe4bcd799c414278 in mainline linux

date 2023-09-19T12:36:35Z
author jsg
files src/sys/dev/pci/drm/i915/gvt/gtt.c log diff annotate
src/sys/dev/pci/drm/i915/gvt/gtt.h log diff annotate
message drm/i915/gvt: Drop unused helper intel_vgpu_reset_gtt()

From Sean Christopherson
bd9bd085c6816885dedcd690de22d088975e6df2 in linux-6.1.y/6.1.54
a90c367e5af63880008e21dd199dac839e0e9e0f in mainline linux

date 2023-09-19T12:39:18Z
author jsg
files src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c log diff annotate
message drm/amd/display: enable cursor degamma for DCN3+ DRM legacy gamma

From Melissa Wen
e1769b1dfcaebb7e4272528fa2f198c6549f619b in linux-6.1.y/6.1.54
57a943ebfcdb4a97fbb409640234bdb44bfa1953 in mainline linux

date 2023-09-19T12:42:34Z
author jsg
files src/sys/dev/pci/drm/amd/display/modules/freesync/freesync.c log diff annotate
message drm/amd/display: prevent potential division by zero errors

From Hamza Mahfooz
ff536a96687cf976d89bed08d40fcaae6bf50304 in linux-6.1.y/6.1.54
07e388aab042774f284a2ad75a70a194517cdad4 in mainline linux

date 2023-09-19T12:46:20Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c log diff annotate
message drm/amd/display: always switch off ODM before committing more streams

From Wenjing Liu
2d7a6fcb1f232c91fe405161d2ba5731ccb97a34 in linux-6.1.y/6.1.54
49a30c3d1a2258fc93cfe6eea8e4951dabadc824 in mainline linux

date 2023-09-19T12:49:35Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c log diff annotate
src/sys/dev/pci/drm/amd/display/dc/dcn20/dcn20_hwseq.c log diff annotate
message drm/amd/display: Remove wait while locked

From Gabe Teeger
b53fee19ec5e07e5553f362cad8a3e00cf6d16ab in linux-6.1.y/6.1.54
5a3ccb1400339268c5e3dc1fa044a7f6c7f59a02 in mainline linux

date 2023-09-19T12:52:45Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c log diff annotate
message drm/amdgpu: register a dirty framebuffer callback for fbcon

From Hamza Mahfooz
cb30ff2adb10a660ded094b088aca763aaf74dea in linux-6.1.y/6.1.54
0a611560f53bfd489e33f4a718c915f1a6123d03 in mainline linux

date 2023-09-19T12:54:40Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_mpc.c log diff annotate
message drm/amd/display: Fix a bug when searching for insert_above_mpcc

From Wesley Chalmers
77b49370a261c9c79587d4a83960d5db39ee6cfa in linux-6.1.y/6.1.54
3d028d5d60d516c536de1ddd3ebf3d55f3f8983b in mainline linux

date 2023-09-19T14:14:35Z
author jsg
files src/sys/dev/pci/if_aq_pci.c log diff annotate
message avoid c99 for-scope variable decl
ok jmatthew@

date 2023-09-19T19:15:08Z
author kettenis
files src/sys/arch/riscv64/dev/stfclock.c log diff annotate
message Instead of adjusting PLL0 to scale the CPU frequency, use the divider
of the actual CPU clock. This prevents one of the GMAC0 clocks changing
when we change the CPU frequency, which would break one of the Ethernet
ports on the VisionFive 2 v1.2a.

However, since the firmware configures PLL0 to 1 GHz, we still need to
bump it up to 1.5 GHz in order to reach the highest supported CPU clock
rates.

ok jmatthew@, jca@, jsing@

date 2023-09-19T19:20:33Z
author kettenis
files src/sys/arch/riscv64/include/cpu.h log diff annotate
src/sys/arch/riscv64/riscv64/cpu.c log diff annotate
message Import the DVFS code from arm64.

ok jca@, jmatthew@, jsing@