OpenBSD cvs log

created 2021-07-10T23:06:56Z
begin 2021-07-08T00:00:00Z
end 2021-07-09T00:00:00Z
path src/sys
commits 16

date 2021-07-08T00:12:49Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwmreg.h log diff annotate
src/sys/dev/pci/if_iwmvar.h log diff annotate
message Back out support for newer MCC update commands in iwm(4) for now.
This seems to cause "could not init LAR" errors on some devices.

Reported by dv@ (8265) and sthen@ (9560)

date 2021-07-08T09:22:30Z
author bluhm
files src/sys/arch/amd64/amd64/aesni.c log diff annotate
src/sys/arch/amd64/amd64/via.c log diff annotate
src/sys/arch/arm64/arm64/cryptox.c log diff annotate
src/sys/arch/i386/i386/via.c log diff annotate
src/sys/arch/i386/pci/glxsb.c log diff annotate
src/sys/arch/octeon/dev/octcrypto.c log diff annotate
src/sys/crypto/cryptosoft.c log diff annotate
src/sys/crypto/cryptosoft.h log diff annotate
src/sys/crypto/xform.c log diff annotate
src/sys/crypto/xform.h log diff annotate
src/sys/netinet/ip_ah.c log diff annotate
src/sys/netinet/ip_esp.c log diff annotate
src/sys/netinet/ip_ipcomp.c log diff annotate
src/sys/netinet/ip_ipsp.h log diff annotate
message The properties of the crypto algorithms never change. Declare them
constant. Then they are mapped as read only.
OK deraadt@ dlg@

date 2021-07-08T13:07:53Z
author jsg
files src/sys/dev/pci/drm/include/drm/drm_mm.h log diff annotate
message revert drm_mm to our previous drm 5.7.y version

Josh Rickmar and several developers reported X would sometimes fail to
start on laptops with raven ridge and picasso apus using amdgpu.

drm:pid71504:amdgpu_bo_pin_restricted *ERROR* 0xffff800001836e18 pin failed
[drm] *ERROR* Failed to pin framebuffer with error -12

ttm_bo_mem_space() ret -ENOMEM
ttm_bo_move_buffer()
ttm_bo_validate()
amdgpu_bo_pin_restricted()

By all reports this does not occur with the old drm_mm.

date 2021-07-08T13:07:54Z
author jsg
files src/sys/dev/pci/drm/drm_mm.c log diff annotate
message revert drm_mm to our previous drm 5.7.y version

Josh Rickmar and several developers reported X would sometimes fail to
start on laptops with raven ridge and picasso apus using amdgpu.

drm:pid71504:amdgpu_bo_pin_restricted *ERROR* 0xffff800001836e18 pin failed
[drm] *ERROR* Failed to pin framebuffer with error -12

ttm_bo_mem_space() ret -ENOMEM
ttm_bo_move_buffer()
ttm_bo_validate()
amdgpu_bo_pin_restricted()

By all reports this does not occur with the old drm_mm.

date 2021-07-08T13:20:26Z
author patrick
files src/sys/dev/fdt/imxiomuxc.c log diff annotate
message Attach imxiomuxc(4) to i.MX8MP as well.

date 2021-07-08T13:33:05Z
author claudio
files src/sys/kern/kern_unveil.c log diff annotate
src/sys/kern/vfs_syscalls.c log diff annotate
src/sys/sys/namei.h log diff annotate
message Remove the code to store intermediary vnodes in the unveil list.
These traversed vnodes are a leftover from early times where realpath(3)
was still all done in userland.
OK semarie@

date 2021-07-08T15:13:14Z
author bluhm
files src/sys/net/pfkeyv2_parsemessage.c log diff annotate
src/sys/netinet/ip_ah.c log diff annotate
src/sys/netinet/ip_esp.c log diff annotate
src/sys/netinet/ip_ipcomp.c log diff annotate
src/sys/netinet/ip_ipip.c log diff annotate
src/sys/netinet/ip_ipsp.c log diff annotate
src/sys/netinet/ip_output.c log diff annotate
src/sys/netinet/ipsec_input.c log diff annotate
src/sys/netinet/ipsec_output.c log diff annotate
src/sys/netinet6/ip6_output.c log diff annotate
message Debug printfs in encdebug were inconsistent, some missing newlines
produced ugly output. Move the function name and the newline into
the DPRINTF macro. This simplifies the debug statements.
OK tobhe@

date 2021-07-08T16:39:55Z
author mvs
files src/sys/net/pfkeyv2.c log diff annotate
src/sys/net/pfkeyv2.h log diff annotate
src/sys/netinet/ip_spd.c log diff annotate
message Initialize `ipsec_acquire_pool' pool (9) within pfkey_init() instead of
doing that in runtime within ipsp_acquire_sa().

ok bluhm@

date 2021-07-08T17:14:08Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwmreg.h log diff annotate
src/sys/dev/pci/if_iwmvar.h log diff annotate
message Support MCC update response used by newer iwm(4) firmware, and verify
the size of the response we receive for MCC_UPDATE commands (even
though we aren't doing anything with this response yet).

With the correct expected response length this time. The driver needs
to expect the maximum response size, not sizeof() the response struct.
The actual response size depends on the number of channels stored
in the "world" regulatory profile of the device.

ok sthen@

date 2021-07-08T20:02:42Z
author deraadt
files src/sys/lib/libz/Makefile log diff annotate
src/sys/lib/libz/zutil.h log diff annotate
message In recent libz update, tb@ overzealously attempted codesize reduction with
option BUILDFIXED -- which is incompatible with kernel hibernate unpack since
it places side-effects into BSS, rather than inside z_streamp or using
the private allocator. While here DYNAMIC_CRC_TABLE could cause similar
problems, so disable this also.
Space savings for the media is best done with bootblock-specific libz
compile options, coming in the following commit.
ok tb mlarkin

date 2021-07-08T20:04:56Z
author deraadt
files src/sys/arch/amd64/stand/boot/Makefile log diff annotate
message sys/lib/libz isn't configured for lazy optimizations to save space because
those options are incompatible with the kernel anymore. Set DYNAMIC_CRC_TABLE
and BUILDFIXED for these bootblocks, to save space on the media
ok tb mlarkin

date 2021-07-08T20:04:57Z
author deraadt
files src/sys/arch/amd64/stand/cdboot/Makefile log diff annotate
src/sys/arch/amd64/stand/pxeboot/Makefile log diff annotate
message sys/lib/libz isn't configured for lazy optimizations to save space because
those options are incompatible with the kernel anymore. Set DYNAMIC_CRC_TABLE
and BUILDFIXED for these bootblocks, to save space on the media
ok tb mlarkin

date 2021-07-08T20:04:58Z
author deraadt
files src/sys/arch/i386/stand/boot/Makefile log diff annotate
src/sys/arch/i386/stand/cdboot/Makefile log diff annotate
src/sys/arch/i386/stand/pxeboot/Makefile log diff annotate
message sys/lib/libz isn't configured for lazy optimizations to save space because
those options are incompatible with the kernel anymore. Set DYNAMIC_CRC_TABLE
and BUILDFIXED for these bootblocks, to save space on the media
ok tb mlarkin

date 2021-07-08T21:07:19Z
author bluhm
files src/sys/netinet/ip_ah.c log diff annotate
src/sys/netinet/ip_esp.c log diff annotate
src/sys/netinet/ip_ipcomp.c log diff annotate
src/sys/netinet/ip_ipip.c log diff annotate
src/sys/netinet/ip_ipsp.c log diff annotate
src/sys/netinet/ip_ipsp.h log diff annotate
src/sys/netinet/tcp_subr.c log diff annotate
message The xformsw array never changes. Declare struct xformsw constant
and map data read only.
OK deraadt@ mvs@ mpi@

date 2021-07-08T22:43:59Z
author dlg
files src/sys/dev/ic/nvme.c log diff annotate
message fix the hibernate io path.

a botched merge meant i was posting the previously used slot to the
chip to process before posting the current slot.

ok deraadt@

date 2021-07-08T23:19:51Z
author mlarkin
files src/sys/kern/subr_hibernate.c log diff annotate
message whitespace fixes, no code change.