OpenBSD cvs log

created 2023-08-10T19:12:24Z
begin 2023-02-14T00:00:00Z
end 2023-02-21T00:00:00Z
path src/sys
commits 49

date 2023-02-14T08:26:59Z
author kettenis
files src/sys/dev/fdt/files.fdt log diff annotate
message Fix scmi(4) entry.

date 2023-02-14T08:34:49Z
author mvs
files src/sys/kern/sys_generic.c log diff annotate
src/sys/kern/syscalls.master log diff annotate
message Backout previous. Assertion was triggered within tsleep().

date 2023-02-14T08:35:20Z
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 2023-02-14T11:31:47Z
author jsg
files src/sys/dev/pci/drm/amd/display/dmub/inc/dmub_cmd.h log diff annotate
message use pragma pack around dmub_addr definition

Avoids warnings about alignment changing when embedded inside of a
packed struct (dmub_rb_cmd_mall) seen with clang 15 on arm64.

reported and compile tested by tb@
sent upstream to amd-gfx list

date 2023-02-14T11:34:32Z
author jsg
files src/sys/dev/pci/drm/amd/pm/powerplay/inc/smu11_driver_if.h log diff annotate
src/sys/dev/pci/drm/amd/pm/powerplay/inc/smu9_driver_if.h log diff annotate
src/sys/dev/pci/drm/amd/pm/powerplay/inc/vega12/smu9_driver_if.h log diff annotate
src/sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu11_driver_if_arcturus.h log diff annotate
src/sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu11_driver_if_navi10.h log diff annotate
src/sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu11_driver_if_sienna_cichlid.h log diff annotate
src/sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_aldebaran.h log diff annotate
src/sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_0.h log diff annotate
src/sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_7.h log diff annotate
message use pragma pack around PPTable_t definitions

Avoids warnings about alignment changing when embedded inside of a
packed struct (such as _ATOM_VEGA20_POWERPLAYTABLE) seen with clang 15
on arm64.

reported and compile tested by tb@
sent upstream to amd-gfx list

date 2023-02-14T12:14:07Z
author stsp
files src/sys/dev/pci/if_iwxreg.h log diff annotate
message jca@ points out that the field I split in iwx(4) Rx descriptors is in a union.
Keep semantics of the field intact by wrapping the split values in struct { }.
Again no size change, because of union semantics.

diff from jca@ with request to commit if ok, thanks!
build-tested again + ok tb@

date 2023-02-14T19:06:18Z
author kettenis
files src/sys/arch/arm64/conf/GENERIC log diff annotate
src/sys/arch/arm64/conf/RAMDISK log diff annotate
message enable scmi(4)

date 2023-02-15T06:08:18Z
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 a Navi 33 / Radeon RX 7600S device id

spotted in notebookcheck review of
ASUS TUF Gaming A16 Advantage Edition (2023), model FA617NS

date 2023-02-15T06:08:53Z
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-02-15T10:07:43Z
author jsg
files src/sys/dev/pci/drm/i915/display/skl_watermark.c log diff annotate
message drm/i915: Don't do the WM0->WM1 copy w/a if WM1 is already enabled

From Ville Syrjala
d05b72328810897a28fe313735481789edfef7e4 in linux-6.1.y/6.1.12
90d5e8301ac24550be80d193aa5582cab56c29fc in mainline linux

date 2023-02-15T10:07:50Z
author claudio
files src/sys/kern/kern_time.c log diff annotate
message Use the nowake channel for sys_nanosleep() instead of handrolling the same.
OK cheloha@ jca@ mvs@

date 2023-02-15T10:09:37Z
author jsg
files src/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c log diff annotate
message drm/amd/pm: add SMU 13.0.7 missing GetPptLimit message mapping

From Evan Quan
62890f3eabf80676c0fefbbdd88e0f3f12528032 in linux-6.1.y/6.1.12
0e763afcb50814e256ecb780fcc0f3bade2e1a0c in mainline linux

date 2023-02-15T10:11:09Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_vm_pt.c log diff annotate
message drm/amdgpu: Use the TGID for trace_amdgpu_vm_update_ptes

From Friedrich Vock
a2e60fee4b7681bb9664f6a638d9630102ac978b in linux-6.1.y/6.1.12
e53448e0a1efa5133c7db78f1df1f4caf177676b in mainline linux

date 2023-02-15T10:13:02Z
author jsg
files src/sys/dev/pci/drm/amd/pm/swsmu/inc/smu_v13_0.h log diff annotate
src/sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_0.h log diff annotate
message drm/amd/pm: bump SMU 13.0.0 driver_if header version

From Evan Quan
daaa0760cd0b6cf5985384d24e991f6c23a236e7 in linux-6.1.y/6.1.12
9874cc2df4e892c8744aa0472866cbf7c3cf1862 in mainline linux

date 2023-02-15T10:15:00Z
author jsg
files src/sys/dev/pci/drm/amd/pm/amdgpu_pm.c log diff annotate
message drm/amdgpu: Add unique_id support for GC 11.0.1/2

From Kent Russell
e379d5662c26b65384d95674559f9343be132851 in linux-6.1.y/6.1.12
c108a18462949fe709ebd6b0be68398d643bc285 in mainline linux

date 2023-02-15T10:16:50Z
author jsg
files src/sys/dev/pci/drm/amd/pm/swsmu/inc/smu_v13_0.h log diff annotate
src/sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_7.h log diff annotate
message drm/amd/pm: bump SMU 13.0.7 driver_if header version

From Evan Quan
d82e6903b395aafc5c94b7282eccdd13903942a3 in linux-6.1.y/6.1.12
dc38b996db968f51f0fe45845a519c5cd7f6bd04 in mainline linux

date 2023-02-15T10:18:26Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_fence.c log diff annotate
message drm/amdgpu/fence: Fix oops due to non-matching drm_sched init/fini

From Guilherme G. Piccoli
2bcbbef9cace772f5b7128b11401c515982de34b in linux-6.1.y/6.1.12
5ad7bbf3dba5c4a684338df1f285080f2588b535 in mainline linux

date 2023-02-15T10:21:11Z
author jsg
files src/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c log diff annotate
message drm/amdgpu/smu: skip pptable init under sriov

From Jane Jian
4609e1773222670af42e71c3a7bbf0453438d74a in linux-6.1.y/6.1.12
c6ac406cd8ff610a2d5da298b1d3071acfcde7f0 in mainline linux

date 2023-02-15T10:23:28Z
author jsg
files src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c log diff annotate
message drm/amd/display: properly handling AGP aperture in vm setup

From Alex Deucher
8d81e1c6865e7114d9829b0f3c73a66cd3a0963d in linux-6.1.y/6.1.12
5c4e8c71d1202cd84d870e7e5cb8d6b52f9c3507 in mainline linux

date 2023-02-15T10:26:50Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c log diff annotate
message drm/amd/display: fix cursor offset on rotation 180

From Melissa Wen
5af27a53a881ed49e071875c10760b0fc13996a1 in linux-6.1.y/6.1.12
49d0555976f0972af68397ed996375c135b38ba7 in mainline linux

date 2023-02-15T10:28:39Z
author jsg
files src/sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c log diff annotate
message drm/i915: Move fd_install after last use of fence

From Rob Clark
bfa700d12274bd3509b64fd545d1046eef89d564 in linux-6.1.y/6.1.12
251e8c5b1b1fadcc387a8e618c7437d330bdac3e in mainline linux

date 2023-02-15T10:31:23Z
author jsg
files src/sys/dev/pci/drm/i915/gem/i915_gem_shmem.c log diff annotate
message drm/i915: Initialize the obj flags for shmem objects

From Aravind Iddamsetty
baaed8c92927e2530a799daf2e909e6688dc2943 in linux-6.1.y/6.1.12
44e4c5684fcc82d8f099656c4ea39d9571e2a8ac in mainline linux

date 2023-02-15T10:33:03Z
author jsg
files src/sys/dev/pci/drm/i915/display/intel_bios.c log diff annotate
message drm/i915: Fix VBT DSI DVO port handling

From Ville Syrjala
7fa83855852e4b13dd05702569f3f0bb3e1c624d in linux-6.1.y/6.1.12
6a7ff131f17f44c593173c5ee30e2c03ef211685 in mainline linux

date 2023-02-15T12:43:32Z
author aoyama
files src/sys/arch/luna88k/stand/boot/Makefile log diff annotate
src/sys/arch/luna88k/stand/boot/bmc.c log diff annotate
src/sys/arch/luna88k/stand/boot/bmd.c log diff annotate
src/sys/arch/luna88k/stand/boot/logo.c log diff annotate
src/sys/arch/luna88k/stand/boot/samachdep.h log diff annotate
message Now Puffy comes on luna88k bootloader!

"Of course!" miod@

date 2023-02-15T14:06:43Z
author kettenis
files src/sys/dev/fdt/rkclock.c log diff annotate
src/sys/dev/fdt/rkclock_clocks.h log diff annotate
message Add GMAC-related RK356x clocks.

ok patrick@

date 2023-02-15T14:10:58Z
author kettenis
files src/sys/dev/fdt/if_dwqe_fdt.c log diff annotate
src/sys/dev/ic/dwqe.c log diff annotate
message Don't print the version twice, but do print a newline before attaching the
PHY.
Put the DMA address of the mbuf into the rx descriptors (instead of the
length). Use the correct value when setting the tx ring tail pointer.
This make sending and receiving packets work as long as the interface
is in promiscuous mode.

ok patrick@

date 2023-02-15T14:13:38Z
author kettenis
files src/sys/arch/arm64/stand/efiboot/conf.c log diff annotate
src/sys/arch/arm64/stand/efiboot/efiboot.c log diff annotate
message The GMAC on the Rockchip RK356x and RK3588 SoCs can only do 32-bit DMA
so set the appropriate DMA constraint.

ok patrick@

date 2023-02-15T18:11:47Z
author sashan
files src/sys/net/if_pfsync.c log diff annotate
message pfsync(4) panics on NULL pointer dereference if there
are no data ready for bulk transfer. reported and fix
kindly tested by hrvoje@

OK bluhm@

date 2023-02-15T20:43:41Z
author mvs
files src/sys/kern/kern_synch.c log diff annotate
message Relax kernel lock assertion within tsleep(9). The `nowake' channel is
the special case which doesn't expect wakeup(9), so allow to use it
without kernel lock held.

Discussed with and ok by claudio@

date 2023-02-16T04:42:06Z
author deraadt
files src/sys/kern/syscalls.master log diff annotate
message Add pinsyscall(2). With this you can tell the kernel the location
(start,len) of the syscall stub in libc.so for a specified syscall
(using SYS_* notation). Only SYS_execve is supported at this time.
ok gnezdo mortimer kettenis

date 2023-02-16T04:42:07Z
author deraadt
files src/sys/uvm/uvm_extern.h log diff annotate
message Add pinsyscall(2). With this you can tell the kernel the location
(start,len) of the syscall stub in libc.so for a specified syscall
(using SYS_* notation). Only SYS_execve is supported at this time.
ok gnezdo mortimer kettenis

date 2023-02-16T04:42:08Z
author deraadt
files src/sys/uvm/uvm_mmap.c log diff annotate
message Add pinsyscall(2). With this you can tell the kernel the location
(start,len) of the syscall stub in libc.so for a specified syscall
(using SYS_* notation). Only SYS_execve is supported at this time.
ok gnezdo mortimer kettenis

date 2023-02-16T04:42:27Z
author deraadt
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 sync

date 2023-02-16T08:50:57Z
author claudio
files src/sys/kern/kern_ktrace.c log diff annotate
message Like other ktrace functions make ktruser() callable without kernel lock
by takeing the lock around ktrwrite2().
OK miod@ cheloha@

date 2023-02-16T08:53:16Z
author claudio
files src/sys/kern/syscalls.master log diff annotate
message utrace(2) can run without kernel lock. Now ktruser() will take the
lock only when needed.
OK miod@ cheloha@

date 2023-02-16T08:54:47Z
author claudio
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 2023-02-16T14:43:53Z
author kettenis
files src/sys/dev/ic/dwqereg.h log diff annotate
message Fix MAC address register offsets.

ok patrick@

date 2023-02-16T14:44:48Z
author kettenis
files src/sys/arch/arm64/conf/GENERIC log diff annotate
src/sys/arch/arm64/conf/RAMDISK log diff annotate
message Enable dwqe(4).

date 2023-02-16T20:32:39Z
author miod
files src/sys/arch/arm64/include/pmap.h log diff annotate
src/sys/arch/riscv64/include/pmap.h log diff annotate
message Remove obsolete __HAVE_VM_PAGE_MD define - all platforms provide vm_page_md
those days, and nothing checks for that symbol anymore.

date 2023-02-17T08:01:03Z
author jsg
files src/sys/dev/ic/ufshcireg.h log diff annotate
message spelling
ok mglocker@

date 2023-02-17T18:02:07Z
author deraadt
files src/sys/sys/ktrace.h log diff annotate
message Do not need KTRC_CODE__SYSCALL in the ktrace files anymore, because
__syscall() was removed.

date 2023-02-17T18:08:32Z
author deraadt
files src/sys/kern/kern_exec.c log diff annotate
message Validate execve() libc stub location if kernel knows it. (due to ld.so
telling the kernel with pinsyscall(2)

date 2023-02-18T14:32:02Z
author dv
files src/sys/dev/acpi/acpipwrres.c log diff annotate
message acpipwrres(4): remove unused aml_value's.

ok kettenis@

date 2023-02-19T12:23:27Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
message Do not let the iwx init task run in parallel to wakeup code during resume.

The driver will resume in the ACPI thread and run code to wake the device.
If a firmware error occurs then the init task will be scheduled and could
then run in parallel to the wakeup code. This would lead to panics as the
init task ran while we were not yet done with device initialization.

To prevent this problem we now grab the rwlock during wakeup, the same
lock which is used to prevent races between the init task and ioctls.
Problem found by mvs@, who also suggested the fix implemented here and
tested the changes.

ok mvs@

date 2023-02-19T17:16:13Z
author kettenis
files src/sys/arch/arm64/arm64/cpu.c log diff annotate
src/sys/arch/arm64/include/cpu.h log diff annotate
src/sys/dev/fdt/psci.c log diff annotate
src/sys/dev/fdt/pscivar.h log diff annotate
message Add support for deep(er) idle states that can be entered using PSCI. For
now this only supports states advertised in device trees, but ACPI support
could be added as well. The parsing of the idle states as well as the
heuristic to pick the deepest one is probably a bit to simple, but more
complex cases can be added later. Worst case cores will use WFI and use
more power in suspend.

ok phessler@

date 2023-02-19T18:46:46Z
author anton
files src/sys/kern/kern_pledge.c log diff annotate
message Make pinsyscall(2) always available for pledged processes. Needed by pledge
execpromises, as noted by regress/sys/kern/pledge/execpromise.

sure deraadt@

date 2023-02-20T00:01:16Z
author patrick
files src/sys/arch/arm64/arm64/cpu.c log diff annotate
message Unbreak RAMDISK build by adding a check for MULTIPROCESSOR.

date 2023-02-20T09:08:47Z
author miod
files src/sys/dev/pci/sti_pci.c log diff annotate
message Wrap all printf calls in sti_check_rom() in order to automagically cope with
ROM enable/disable; makes addition of debug code more fool-proof. NFC (yet)

date 2023-02-20T11:31:16Z
author miod
files src/sys/dev/pci/sti_pci.c log diff annotate
message Rewrite the ROM walk logic to correctly iterate over non-STI ROMs (and skip
them), such as x86 bios ROMs.