OpenBSD cvs log

created 2020-08-30T08:43:31Z
begin 2020-08-26T00:00:00Z
end 2020-08-27T00:00:00Z
path src/sys
commits 17

date 2020-08-26T03:16:53Z
author visa
files src/sys/kern/kern_sig.c log diff annotate
message Fix a race in single-thread mode switching

Extend the scope of SCHED_LOCK() to better synchronize
single_thread_set(), single_thread_clear() and single_thread_check().
This prevents threads from suspending before single_thread_set() has
finished. If a thread suspended early, ps_singlecount might get
decremented too much, which in turn could make single_thread_wait()
get stuck.

The race could be triggered for example by trying to stop
a multithreaded process with a debugger. When triggered, the race
prevents the debugger from finishing a wait4(2) call on the debuggee.
This kind of gdb hang was reported by Julian Smith on misc@.

Unfortunately, single-thread mode switching still has issues and hangs
are still possible.

OK mpi@

date 2020-08-26T03:19:09Z
author visa
files src/sys/sys/proc.h log diff annotate
message Annotate locking of ps_single.

Prompted by mpi@

date 2020-08-26T03:29:05Z
author visa
files src/sys/arch/alpha/alpha/machdep.c log diff annotate
src/sys/arch/amd64/amd64/bios.c log diff annotate
src/sys/arch/arm/mainbus/mainbus.c log diff annotate
src/sys/arch/arm64/dev/mainbus.c log diff annotate
src/sys/arch/arm64/dev/smbios.c log diff annotate
src/sys/arch/i386/i386/bios.c log diff annotate
src/sys/arch/loongson/loongson/machdep.c log diff annotate
message Declare hw_{prod,serial,uuid,vendor,ver} in <sys/systm.h>.

OK deraadt@, mpi@

date 2020-08-26T03:29:06Z
author visa
files src/sys/arch/macppc/dev/aoa.c log diff annotate
src/sys/arch/macppc/dev/snapper.c log diff annotate
src/sys/arch/macppc/macppc/clock.c log diff annotate
src/sys/arch/macppc/macppc/mainbus.c log diff annotate
src/sys/arch/powerpc64/dev/mainbus.c log diff annotate
src/sys/arch/sgi/sgi/ip22_machdep.c log diff annotate
src/sys/arch/sgi/sgi/ip27_machdep.c log diff annotate
src/sys/arch/sgi/sgi/ip30_machdep.c log diff annotate
src/sys/arch/sgi/sgi/ip32_machdep.c log diff annotate
src/sys/arch/sgi/sgi/machdep.c log diff annotate
src/sys/arch/sgi/sgi/mainbus.c log diff annotate
src/sys/arch/sparc64/sparc64/autoconf.c log diff annotate
src/sys/dev/acpi/acpials.c log diff annotate
src/sys/dev/acpi/acpiec.c log diff annotate
src/sys/dev/acpi/dsdt.c log diff annotate
src/sys/dev/i2c/iatp.c log diff annotate
src/sys/dev/ic/re.c log diff annotate
src/sys/dev/isa/asmc.c log diff annotate
src/sys/dev/isa/skgpio.c log diff annotate
src/sys/dev/pci/drm/drm_linux.c log diff annotate
src/sys/dev/pv/pvbus.c log diff annotate
message Declare hw_{prod,serial,uuid,vendor,ver} in <sys/systm.h>.

OK deraadt@, mpi@

date 2020-08-26T03:29:07Z
author visa
files src/sys/sys/systm.h log diff annotate
message Declare hw_{prod,serial,uuid,vendor,ver} in <sys/systm.h>.

OK deraadt@, mpi@

date 2020-08-26T12:36:55Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/dcn20/dcn20_resource.c log diff annotate
message drm/amdgpu/display: use GFP_ATOMIC in dcn20_validate_bandwidth_internal

From Daniel Kolesa
9917538295f9319dc7c6cf63d25eef89f302d81e in linux 5.7.y/5.7.18
f41ed88cbd6f025f7a683a11a74f901555fba11c in mainline linux

date 2020-08-26T12:39:16Z
author jsg
files src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c log diff annotate
message drm/amd/display: Fix EDID parsing after resume from suspend

From Stylon Wang
a4615f3893f39560dd3e71865e80bccd20330321 in linux 5.7.y/5.7.18
b24bdc37d03a0478189e20a50286092840f414fa in mainline linux

date 2020-08-26T12:41:45Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/core/dc_link.c log diff annotate
message drm/amd/display: Blank stream before destroying HDCP session

From Jaehyun Chung
cdda25b43e0efb8df20a6f9956ff9091a1355328 in linux 5.7.y/5.7.18
79940e4d10df9c737a394630968471c632246ee0 in mainline linux

date 2020-08-26T12:44:22Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/dcn20/dcn20_hwseq.c log diff annotate
message drm/amd/display: Fix DFPstate hang due to view port changed

From Paul Hsieh
3f88e2e7a7943ef07a384f653f01832600bb91dd in linux 5.7.y/5.7.18
8e80d482608a4e6a97c75272ef8b4bcfc5d0c490 in mainline linux

date 2020-08-26T12:47:35Z
author jsg
files src/sys/dev/pci/drm/amd/display/include/fixed31_32.h log diff annotate
message drm/amd/display: fix pow() crashing when given base 0

From Krunoslav Kovac
b9d077f3781412f304968cf806f636ee91b4470e in linux 5.7.y/5.7.18
d2e59d0ff4c44d1f6f8ed884a5bea7d1bb7fd98c in mainline linux

date 2020-08-26T12:51:26Z
author jsg
files src/sys/dev/pci/drm/ttm/ttm_bo_vm.c log diff annotate
message drm/ttm: fix offset in VMAs with a pg_offs in ttm_bo_vm_access

From Felix Kuehling
be580abecf13ebdcf6c16ec79d941c35017c94be in linux 5.7.y/5.7.18
c0001213d195d1bac83e0744c06ff06dd5a8ba53 in mainline linux

date 2020-08-26T12:55:57Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/core/dc_link.c log diff annotate
src/sys/dev/pci/drm/amd/display/dc/core/dc_link_dp.c log diff annotate
src/sys/dev/pci/drm/amd/display/dc/dce110/dce110_hw_sequencer.c log diff annotate
message Revert "drm/amd/display: Improve DisplayPort monitor interop"

From Alex Deucher
813b2c197929540e700dc3d42b2c8136795c5d4c in linux 5.7.y/5.7.18

date 2020-08-26T13:57:19Z
author krw
files src/sys/dev/ata/atascsi.c log diff annotate
src/sys/dev/ic/mpi.c log diff annotate
src/sys/dev/pci/mpii.c log diff annotate
message Remove needless uses of SDEV_ONLYBIG. It was always set when SDEV_UMASS was set,
and was always checked in concert with SDEV_ATAPI. Just rely on SDEV_ATAPI and
SDEV_UMASS in all but the one place sd(4) where SDEV_ONLYBIG is set
independently of SDEV_ATAPI/_UMASS.

ok jmatthew@

date 2020-08-26T13:57:20Z
author krw
files src/sys/dev/usb/umass_quirks.c log diff annotate
src/sys/dev/usb/umass_scsi.c log diff annotate
src/sys/scsi/cd.c log diff annotate
src/sys/scsi/scsiconf.h log diff annotate
src/sys/scsi/sd.c log diff annotate
message Remove needless uses of SDEV_ONLYBIG. It was always set when SDEV_UMASS was set,
and was always checked in concert with SDEV_ATAPI. Just rely on SDEV_ATAPI and
SDEV_UMASS in all but the one place sd(4) where SDEV_ONLYBIG is set
independently of SDEV_ATAPI/_UMASS.

ok jmatthew@

date 2020-08-26T17:10:49Z
author kettenis
files src/sys/dev/acpi/acpicpu.c log diff annotate
src/sys/dev/acpi/dsdt.c log diff annotate
message Let aml_copyvalue() handle AML_OBJTYPE_DEVICE.

ok jmatthew@

date 2020-08-26T17:12:00Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwx.c log diff annotate
message Reset the Rx block ack session counter when an iwm/iwx interface disassociates
from an access point or is put down via ifconfig. Otherwise new Rx block ack
sessions could be refused upon reassociation due to a bogus counter value.

Found by zxystd from the OpenIntelWireless project (drivers for macOS).

Testing by jmc@, kevlo@, and Sven Falempin.

ok phessler@ mpi@ kevlo@

date 2020-08-26T22:27:02Z
author kettenis
files src/sys/arch/powerpc64/stand/rdboot/disk.c log diff annotate
message Improve detection of the proper boot device by picking the disk that
matches the bootduid of the boot kernel.

ok visa@