OpenBSD cvs log

created 2022-09-11T03:02:09Z
begin 2022-09-05T00:00:00Z
end 2022-09-06T00:00:00Z
path src/sys
commits 19

date 2022-09-05T09:00:33Z
author mglocker
files src/sys/dev/usb/dwc2/dwc2.c log diff annotate
message Cleanup USB methods so that they align to what we do in other HC drivers,
like xhci(4) and ehci(4).

ok mpi@

date 2022-09-05T10:03:50Z
author kn
files src/sys/arch/macppc/stand/boot.8 log diff annotate
src/sys/arch/macppc/stand/ofdev.c log diff annotate
message Fix file specification, zap partition bits, rectify disk naming errors

In boot_macppc(8), the current format a) claims to support specific disk/MBR
partitions which ofwboot clearly does not parse as such and b) lacks markup
to make clear which optional parts can (not) be omitted in what way.

Fixing both turns
promdev:partition/filename options
into
[[promdev:]filename] [-acds]

Same goes for boot(8/macppc), which has been apparently has been copied
from boot(8/amd64) without accounting for all platform specific details.

On amd64, biosboot(8) sees disks as 'sd' which (accidentially?) matches the
kernel driver's sd(4) name; it also supports specific disklabel(5) slices,
so amd64 can do 'sd0a:/bsd'.

On macppc, disks show up as 'ide', 'cd' or 'hd' which stems from
OpenFirmware alone, not matching the wd(4) driver's name. Also, ofwboot
always boots off the 'a' label, so macppc can only do 'hd:/bsd'.


Found while installing OpenBSD/macppc from CD inside QEMU but failing to
boot from disk inside QEMU and consulting our manual pages for help wrt.
specifying a boot device. Turns out QEMU's OpenBIOS simply cannot boot from
MSDOS filesystems (thanks gkoehler), so it wouldn't work no matter what
boot file specification I'd use.


tests/agreement gkoehler
Feedback OK miod
OK tobhe
OK jmc on a previous boot_macppc.8 diff

date 2022-09-05T10:31:25Z
author mvs
files src/sys/net/rtsock.c log diff annotate
message Add missing prototypes for route_attach() and route_detach().

date 2022-09-05T14:04:28Z
author jsg
files src/sys/dev/pci/drm/include/drm/drm_bridge.h log diff annotate
message drm/bridge: Add stubs for devm_drm_of_get_bridge when OF is disabled

From Maxime Ripard
f8b07c05b69969c41efafda7022d6cb184d61bf9 in linux 5.15.y/5.15.65
59050d783848d9b62e9d8fb6ce0cd00771c2bf87 in mainline linux

date 2022-09-05T14:06:39Z
author jsg
files src/sys/dev/pci/drm/i915/gt/intel_gt.c log diff annotate
message drm/i915/gt: Skip TLB invalidations once wedged

From Chris Wilson
4676773ea117624ced48fdf9806d5e0dc051bd7f in linux 5.15.y/5.15.65
e5a95c83ed1492c0f442b448b20c90c8faaf702b in mainline linux

date 2022-09-05T14:09:09Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_mpc.c log diff annotate
src/sys/dev/pci/drm/amd/display/dc/dcn20/dcn20_mpc.c log diff annotate
message drm/amd/display: Avoid MPC infinite loop

From Josip Pavic
0c8abeceee0f58ad3fdc66e1de0c0e02b962653b in linux 5.15.y/5.15.65
8de297dc046c180651c0500f8611663ae1c3828a in mainline linux

date 2022-09-05T14:11:02Z
author jsg
files src/sys/dev/pci/drm/amd/display/modules/freesync/freesync.c log diff annotate
message drm/amd/display: Fix HDMI VSIF V3 incorrect issue

From Leo Ma
2cddd3d0b049a5e0666f93ea8c0d6ba6cc4bbec4 in linux 5.15.y/5.15.65
0591183699fceeafb4c4141072d47775de83ecfb in mainline linux

date 2022-09-05T14:12:51Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/dcn30/dcn30_hubp.c log diff annotate
message drm/amd/display: For stereo keep "FLIP_ANY_FRAME"

From Alvin Lee
e407e04a93d7b1209669220fab5eb69ab7b09baf in linux 5.15.y/5.15.65
84ef99c728079dfd21d6bc70b4c3e4af20602b3c in mainline linux

date 2022-09-05T14:15:03Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_optc.c log diff annotate
message drm/amd/display: clear optc underflow before turn off odm clock

From Fudong Wang
5ee30bcfdb32526233d2572f3d9ec371928679f1 in linux 5.15.y/5.15.65
b2a93490201300a749ad261b5c5d05cb50179c44 in mainline linux

date 2022-09-05T14:16:36Z
author jsg
files src/sys/dev/pci/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c log diff annotate
message drm/amd/pm: add missing ->fini_microcode interface for Sienna Cichlid

From Evan Quan
a89e753d5a9f3b321f4a3098e2755c5aabcff0af in linux 5.15.y/5.15.65
0a2d922a5618377cdf8fa476351362733ef55342 in mainline linux

date 2022-09-05T14:18:34Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/dce/dce_clock_source.c log diff annotate
message drm/amd/display: Fix pixel clock programming

From Ilya Bakoulin
4df54c493e76f3cfa0bc8c54c5c43faa3b6e78d4 in linux 5.15.y/5.15.65
04fb918bf421b299feaee1006e82921d7d381f18 in mainline linux

date 2022-09-05T14:21:08Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu.h log diff annotate
src/sys/dev/pci/drm/amd/amdgpu/gmc_v10_0.c log diff annotate
src/sys/dev/pci/drm/amd/amdgpu/gmc_v9_0.c log diff annotate
message drm/amdgpu: Increase tlb flush timeout for sriov

From Dusica Milinkovic
898467ac9bcb56090f0b651088a36331ff779e4c in linux 5.15.y/5.15.65
373008bfc9cdb0f050258947fa5a095f0657e1bc in mainline linux

date 2022-09-05T14:22:58Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/dcn21/dcn21_hubbub.c log diff annotate
message drm/amd/display: avoid doing vm_init multiple time

From Charlene Liu
85dd24ff77c15f5fc0e16bc3f288f5d1ac93e02b in linux 5.15.y/5.15.65
5544a7b5a07480192eb5fd3536462faed2c21528 in mainline linux

date 2022-09-05T14:56:08Z
author bluhm
files src/sys/kern/uipc_socket.c log diff annotate
message Use shared netlock in soreceive(). The UDP and IP divert layer
provide locking of the PCB. If that is possible, use shared instead
of exclusive netlock in soreceive(). The PCB mutex provides a per
socket lock against multiple soreceive() running in parallel.
Release and regrab both locks in sosleep_nsec().
OK mvs@

date 2022-09-05T14:56:09Z
author bluhm
files src/sys/kern/uipc_socket2.c log diff annotate
src/sys/netinet/ip_divert.c log diff annotate
src/sys/netinet/ip_divert.h log diff annotate
src/sys/netinet/udp_usrreq.c log diff annotate
src/sys/netinet/udp_var.h log diff annotate
src/sys/netinet6/ip6_divert.c log diff annotate
src/sys/netinet6/ip6_divert.h log diff annotate
src/sys/sys/protosw.h log diff annotate
src/sys/sys/socketvar.h log diff annotate
message Use shared netlock in soreceive(). The UDP and IP divert layer
provide locking of the PCB. If that is possible, use shared instead
of exclusive netlock in soreceive(). The PCB mutex provides a per
socket lock against multiple soreceive() running in parallel.
Release and regrab both locks in sosleep_nsec().
OK mvs@

date 2022-09-05T15:47:39Z
author bluhm
files src/sys/netinet6/mld6.c log diff annotate
message Move mld6 address variables from data to stack memory to make them
MP safe. Due to the KAME scope address hack, the link-local all
nodes and all routers IPv6 addresses cannot be const.
OK benno@

date 2022-09-05T16:37:47Z
author mbuhl
files src/sys/kern/kern_pledge.c log diff annotate
message Pledge sendmmsg and recvmmsg with stdio similar to their non-loop
counter parts. Input deraadt.
ok bluhm

date 2022-09-05T19:18:56Z
author kettenis
files src/sys/arch/arm64/arm64/machdep.c log diff annotate
message Don't ignore memory blocks smaller than 64KB. Some EFI implementations
(such as the one on the x13s) allocate memory with the EfiBootSevicesData
type in a semi-random fashion. Ignoring small regions with that type
results in different memory maps between boots of the same kernel.
This causes problems with upcoming hibernate support.

The decision to ignore small regions was made because we do this on
amd64 to work arounmd broken BIOS implementations and because of fears
that we would run out of physical memory segments in UVM. We have some
reasons to believe that we can trust the EFI memory map on arm64 and the
risk of running out of physical memory segments is mitigated by the fact
that we try to merge memory regions before loading them into UVM. If
for some reason we see a significant drop in physical memory on certain
machines, we should probably increase the number of items in the array
we use to store memory regions and/or increase the number of physical
memory segments in UVM.

ok mlarkin@

date 2022-09-05T20:11:44Z
author mglocker
files src/sys/dev/usb/dwc2/dwc2.c log diff annotate
message Remove some inactive code, comments, and DPRINTFs. Minor style changes.