OpenBSD cvs log

created 2023-09-21T18:01:46Z
begin 2023-09-13T00:00:00Z
end 2023-09-14T00:00:00Z
path src/sys
commits 18

date 2023-09-13T02:22:44Z
author jsg
files src/sys/dev/pci/drm/radeon/radeon_combios.c log diff annotate
message use the eMac PowerMac4,4 connector table on eMac PowerMac6,4
avoids black screen on boot

patch from Alex Deucher in
https://gitlab.freedesktop.org/drm/amd/-/issues/2844

reported and tested by Nuno Vasconcellos

date 2023-09-13T12:31:49Z
author jsg
files src/sys/dev/pci/drm/include/linux/pci.h log diff annotate
message add pcie_capability_set_word() pcie_capability_clear_and_set_word()
needed for 6.1.53 drm

date 2023-09-13T12:38:25Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c log diff annotate
message Partially revert "drm/amd/display: Fix possible underflow for displays with large vblank"

From Daniel Miess
9fc3adc6d0fe96e79e21990faebc252814ee18a4 in linux-6.1.y/6.1.53
a99a4ff6ef205d125002fc7e0857074e4e6597b6 in mainline linux

date 2023-09-13T12:40:30Z
author jsg
files src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c log diff annotate
message Revert "Revert drm/amd/display: Enable Freesync Video Mode by default"

From Aurabindo Pillai
7f483ce4699ac4158879833d08a86b57697b05b3 in linux-6.1.y/6.1.53
11b92df8a2f7f4605ccc764ce6ae4a72760674df in mainline linux

date 2023-09-13T12:42:17Z
author jsg
files src/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c log diff annotate
message drm/amd/smu: use AverageGfxclkFrequency* to replace previous GFX Curr Clock

From Jane Jian
d7b1aa3e209841834965541988154c296196a808 in linux-6.1.y/6.1.53
4a37c55b859a69f429bfa7fab4fc43ee470b60ed in mainline linux

date 2023-09-13T12:44:35Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/dcn31/dcn31_dccg.c log diff annotate
message drm/amd/display: Guard DCN31 PHYD32CLK logic against chip family

From George Shen
faa77cf5f28f4bbfbbb00f7e0caa2c8561f7dfe0 in linux-6.1.y/6.1.53
25b054c3c89cb6a7106a7982f0f70e83d0797dab in mainline linux

date 2023-09-13T12:46:32Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/dce110/dce110_hw_sequencer.c log diff annotate
message drm/amd/display: Exit idle optimizations before attempt to access PHY

From Leo Chen
ae1cb9656ef4c7aa366d1201d366866bc0989df7 in linux-6.1.y/6.1.53
de612738e9771bd66aeb20044486c457c512f684 in mainline linux

date 2023-09-13T12:48:02Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/psp_v13_0.c log diff annotate
message drm/amdgpu: Match against exact bootloader status

From Lijo Lazar
5251c835324bee81894fdad1a844d15a79e54883 in linux-6.1.y/6.1.53
d3de41ee5febe5c2d9989fe9810bce2bb54a3a8e in mainline linux

date 2023-09-13T12:50:04Z
author jsg
files src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c log diff annotate
src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c log diff annotate
message drm/amd/display: ensure async flips are only accepted for fast updates

From Hamza Mahfooz
7ac1467f9472af5e7bee1ce923569677fc84fe5b in linux-6.1.y/6.1.53
a7c0cad0dc060bb77e9c9d235d68441b0fc69507 in mainline linux

date 2023-09-13T12:51:49Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c log diff annotate
message drm/amdgpu: avoid integer overflow warning in amdgpu_device_resize_fb_bar()

From Arnd Bergmann
fd28ce30b525bccba4504499de625085a6def1c6 in linux-6.1.y/6.1.53
822130b5e8834ab30ad410cf19a582e5014b9a85 in mainline linux

date 2023-09-13T12:53:38Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c log diff annotate
message drm/amdgpu: Update min() to min_t() in 'amdgpu_info_ioctl'

From Srinivasan Shanmugam
8dcc23191a6d2181855422741d73a96d91526c87 in linux-6.1.y/6.1.53
a0cc8e1512ad72c9f97cdcb76d42715730adaf62 in mainline linux

date 2023-09-13T12:55:18Z
author jsg
files src/sys/dev/pci/drm/amd/pm/amdgpu_pm.c log diff annotate
message drm/amd/pm: fix variable dereferenced issue in amdgpu_device_attr_create()

From Yang Wang
f27dff881f0b8f1a5bc64d48a19802dd520bc482 in linux-6.1.y/6.1.53
25e6373a5b8efc623443f2699d2b929bf3067d76 in mainline linux

date 2023-09-13T12:59:27Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_cik.c log diff annotate
src/sys/dev/pci/drm/amd/amdgpu/amdgpu_si.c log diff annotate
message drm/amdgpu: Use RMW accessors for changing LNKCTL

From Ilpo Jarvinen
a0f0daf60bc1d3d78afded5931a56a015f2a17e8 in linux-6.1.y/6.1.53
ce7d88110b9ed5f33fe79ea6d4ed049fb0e57bce in mainline linux

date 2023-09-13T13:01:54Z
author jsg
files src/sys/dev/pci/drm/radeon/cik.c log diff annotate
src/sys/dev/pci/drm/radeon/si.c log diff annotate
message drm/radeon: Use RMW accessors for changing LNKCTL

From Ilpo Jarvinen
433330fb1296119d74cc5c8f1e05b5829ddc52f9 in linux-6.1.y/6.1.53
7189576e8a829130192b33c5b64e8a475369c776 in mainline linux

date 2023-09-13T13:04:19Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/dcn301/dcn301_init.c log diff annotate
message drm/amd/display: register edp_backlight_control() for DCN301

From Hamza Mahfooz
9a9b8596c3dce99a0bac3951ed257e87f30d0445 in linux-6.1.y/6.1.53
1611917f39bee1abfc01501238db8ac19649042d in mainline linux

date 2023-09-13T13:07:29Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn315/dcn315_smu.c log diff annotate
message drm/amd/display: Add smu write msg id fail retry process

From Fudong Wang
b23c96589ff7f25ad2232524f6c74e0067be2369 in linux-6.1.y/6.1.53
72105dcfa3d12b5af49311f857e3490baa225135 in mainline linux

date 2023-09-13T14:24:37Z
author mvs
files src/sys/dev/pci/drm/include/drm/drm_device.h log diff annotate
message Replace sys/selinfo.h header with sys/event.h. drm_device.h has no
selinfo stuff, but the `note' member of 'drm_device' structure with type
of klist.

ok jsg

date 2023-09-13T14:25:49Z
author claudio
files src/sys/kern/kern_exit.c log diff annotate
src/sys/kern/kern_fork.c log diff annotate
src/sys/kern/kern_resource.c log diff annotate
src/sys/kern/kern_sig.c log diff annotate
src/sys/kern/kern_synch.c log diff annotate
src/sys/sys/proc.h log diff annotate
message Revert commitid: yfAefyNWibUyjkU2, ESyyH5EKxtrXGkS6 and itscfpFvJLOj8mHB;

The change to the single thread API results in crashes inside exit1()
as found by Syzkaller. There seems to be a race in the exit codepath.
What exactly fails is not really clear therefor revert for now.

This should fix the following Syzkaller reports:
Reported-by: [email protected]
Reported-by: [email protected]
and maybe more.

Reverted commits:
----------------------------
Protect ps_single, ps_singlecnt and ps_threadcnt by the process mutex.

The single thread API needs to lock the process to enter single thread
mode and does not need to stop the scheduler.

This code changes ps_singlecount from a count down to zero to ps_singlecnt
which counts up until equal to ps_threadcnt (in which case all threads
are properly asleep).

Tested by phessler@, OK mpi@ cheloha@
----------------------------
Change how ps_threads and p_thr_link are locked away from using SCHED_LOCK.

The per process thread list can be traversed (read) by holding either
the KERNEL_LOCK or the per process ps_mtx (instead of SCHED_LOCK).
Abusing the SCHED_LOCK for this makes it impossible to split up the
scheduler lock into something more fine grained.

Tested by phessler@, ok mpi@
----------------------------
Fix SCHED_LOCK() leak in single_thread_set()

In the (q->p_flag & P_WEXIT) branch is a continue that did not release
the SCHED_LOCK. Refactor the code a bit to simplify the places SCHED_LOCK
is grabbed and released.

Reported-by: [email protected]
OK kettenis@