OpenBSD cvs log

created 2023-08-16T15:03:30Z
begin 2023-02-28T00:00:00Z
end 2023-03-07T00:00:00Z
path src/sys
commits 46

date 2023-03-02T09:39:45Z
author jmatthew
files src/sys/arch/armv7/conf/GENERIC log diff annotate
src/sys/arch/armv7/conf/RAMDISK log diff annotate
message Add eephy(4), found on the Turris Omnia's WAN port

date 2023-03-02T09:56:52Z
author jmatthew
files src/sys/arch/armv7/marvell/mvodog.c log diff annotate
message Add mvodog(4), a driver for the watchdog on the ARMADA 38x series.

ok kettenis@ patrick@

date 2023-03-02T09:57:43Z
author jmatthew
files src/sys/arch/armv7/marvell/mvortc.c log diff annotate
message Add mvortc(4), a driver for the RTC on the ARMADA 38x series.

ok kettenis@ patrick@

date 2023-03-02T09:59:29Z
author jmatthew
files src/sys/arch/armv7/conf/GENERIC log diff annotate
src/sys/arch/armv7/conf/RAMDISK log diff annotate
message Enable mvodog(4) and mvortc(4)

date 2023-03-03T20:16:44Z
author cheloha
files src/sys/conf/param.c log diff annotate
src/sys/kern/kern_clock.c log diff annotate
src/sys/sys/kernel.h log diff annotate
message initclocks: don't reinitialize ticks, jiffies at runtime

Various drivers use ticks/jiffies before initclocks(). It isn't
generally safe to reinitialize them at runtime. Hoist the conditional
definition of HZ from param.c into sys/kernel.h so we can see it from
kern_clock.c and statically initialize ticks/jiffies to the desired
offset.

With this change, timeouts scheduled before initclocks() do not all
fire immediately during the first softclock().

With input from kettenis@.

Link: https://marc.info/?l=openbsd-tech&m=167753870803378&w=2

date 2023-03-04T01:23:40Z
author dlg
files src/sys/dev/acpi/tipmic.c log diff annotate
message handle polling when cold in tipmic_thermal_opreg_handler().

this allows me to boot if acpitz is using tipmic instead of getting
stuck. tipmic would spin on tsleep, which returns immediately with
0 when cold, waiting for a value to be set by the tipmic interrupt
handler. cos the box is cold the interrupt is masked, so the tsleep
loop never ended.

patrick@ helped me find this
ok kettenis@

date 2023-03-04T09:03:34Z
author kn
files src/sys/netinet/if_ether.c log diff annotate
message properly initialise LIST head

This worked because the global head variable is zero-initialised,
but one must not rely on that.

OK mvs claudio

date 2023-03-04T10:42:26Z
author jmatthew
files src/sys/arch/armv7/marvell/files.marvell log diff annotate
message Add mvortc(4) and mvodog(4) here too

date 2023-03-04T10:55:37Z
author sashan
files src/sys/net/pf.c log diff annotate
message pf(4) should be enforcing TTL=1 to packets sent to 224.0.0.1 only.
Issue found and kindly reported by Luca Di Gregorio <lucdig _at_ gmail>

OK bluhm@

date 2023-03-04T14:49:37Z
author deraadt
files src/sys/arch/macppc/stand/tbxidata/bsd.tbxi log diff annotate
src/sys/conf/newvers.sh log diff annotate
src/sys/sys/param.h log diff annotate
message move to 7.3-beta

date 2023-03-04T22:34:37Z
author kettenis
files src/sys/dev/mii/bmtphy.c log diff annotate
message Use ISC licence.

ok deraadt@

date 2023-03-04T22:35:28Z
author kettenis
files src/sys/dev/mii/ytphy.c log diff annotate
message Add ytphy(4), a driver for the MotorComm YT8511 PHY.

ok deraadt@

date 2023-03-04T22:36:15Z
author kettenis
files src/sys/arch/arm64/conf/GENERIC log diff annotate
message enable ytphy(4)

date 2023-03-04T22:40:37Z
author kettenis
files src/sys/dev/mii/files.mii log diff annotate
src/sys/dev/mii/ytphy.c log diff annotate
message Add ytphy(4) to files.mii (forgotten in the previous commit).
Fix year on my copyright.

date 2023-03-04T22:48:00Z
author kettenis
files src/sys/arch/arm64/conf/RAMDISK log diff annotate
message Enable ytphy(4) here too.

date 2023-03-04T22:51:12Z
author kettenis
files src/sys/dev/fdt/rkpinctrl.c log diff annotate
message On RK356x many devices need to be explicitly routed to use alternative pin
muxings. Implement support for this.

ok patrick@

date 2023-03-04T22:54:35Z
author kettenis
files src/sys/dev/fdt/rkgpio.c log diff annotate
message Turns out the RK3566 has a different value in the GPIO_VER_ID register
than advertised in the RK3568. This value is present in the Linux
driver and implies the new register layout. So handle both values.
This makes GPIOs on the RK3566 actually work.

ok patrick@

date 2023-03-05T04:30:08Z
author jmatthew
files src/sys/arch/armv7/marvell/mvmpic.c log diff annotate
message Mask off IPL flags before storing the IPL for an interrupt.
This fixes the IPL calculations in mpic_calc_mask() in the presence
of IPL_MPSAFE interrupts such as mvneta(4).

ok patrick@ kettenis@ dlg@

date 2023-03-05T09:57:32Z
author kettenis
files src/sys/dev/fdt/rktemp.c log diff annotate
message Add RK356x-specific initialization. Also initialize a few auto mode
related registers on all supported SoCs. Makes rktemp(4) work on
RK356x with U-Boot.

ok jmatthew@

date 2023-03-05T14:45:07Z
author patrick
files src/sys/arch/arm64/dev/apldc.c log diff annotate
src/sys/arch/arm64/dev/aplpinctrl.c log diff annotate
src/sys/arch/armv7/omap/omgpio.c log diff annotate
src/sys/dev/fdt/imxgpio.c log diff annotate
src/sys/dev/fdt/rkgpio.c log diff annotate
message Mask off IPL flags before storing the IPL for an interrupt.

ok kettenis@ jmatthew@

date 2023-03-05T16:21:52Z
author kettenis
files src/sys/arch/arm64/stand/efiboot/Makefile log diff annotate
message arm64 needs -DBOOT_STTY as well.

ok miod@

date 2023-03-06T02:34:53Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/dcn314/dcn314_hwseq.c log diff annotate
src/sys/dev/pci/drm/amd/display/dc/dcn314/dcn314_hwseq.h log diff annotate
src/sys/dev/pci/drm/amd/display/dc/dcn314/dcn314_init.c log diff annotate
src/sys/dev/pci/drm/amd/display/dmub/inc/dmub_cmd.h log diff annotate
message drm/amd/display: Move DCN314 DOMAIN power control to DMCUB

From Nicholas Kazlauskas
4da108082a3290804ebbd42d70ce8535c00e4637 in linux-6.1.y/6.1.15
e383b12709e32d6494c948422070c2464b637e44 in mainline linux

date 2023-03-06T02:38:01Z
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.h log diff annotate
src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c log diff annotate
message drm/amd/display: Fix race condition in DPIA AUX transfer

From Stylon Wang
075e2099c32cf4486b27266d2aecf61e95499ea4 in linux-6.1.y/6.1.15
ead08b95fa50f40618c72b93a849c4ae30c9cd50 in mainline linux

date 2023-03-06T02:40:58Z
author jsg
files src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c log diff annotate
message drm/amd/display: Properly reuse completion structure

From Stylon Wang
118ad80d27d938868299ef184f7483b21f011f0b in linux-6.1.y/6.1.15
0cf8307adbc6beb5ff3b8a76afedc6e4e0b536a9 in mainline linux

date 2023-03-06T10:16:16Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
src/sys/dev/pci/if_iwxreg.h log diff annotate
message recognize more iwx ucode TLV sections which are present in newer fw images

date 2023-03-06T10:16:17Z
author stsp
files src/sys/dev/pci/if_iwxvar.h log diff annotate
message recognize more iwx ucode TLV sections which are present in newer fw images

date 2023-03-06T10:24:15Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
src/sys/dev/pci/if_iwxreg.h log diff annotate
message add support for iwx firmware alive response version 6

date 2023-03-06T10:28:04Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
src/sys/dev/pci/if_iwxreg.h log diff annotate
message add support for iwx TLC config command v4

date 2023-03-06T10:31:58Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
src/sys/dev/pci/if_iwxreg.h log diff annotate
message change current iwx rate_n_flag field names to indicate this is API version 1

also add some missing bits found in the Linux driver while here

date 2023-03-06T10:48:05Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
src/sys/dev/pci/if_iwxreg.h log diff annotate
src/sys/dev/pci/if_iwxvar.h log diff annotate
message support iwx rate_n_flags API version 2 and delete fixed Tx rate support

As of this commit iwx will ignore 'ifconfig media' commands where the
user-specified Tx rate resolves to something other than 'autoselect'.
The existing support for forcing a Tx rate was already only partially
working in 11n and 11ac modes. I doubt anyone had a serious use case for
this. If you really need to force a specific Tx rate for data frames
sent by iwx then hack the driver instead of using 'ifconfig media'.

The firmware interface was designed for Tx rate selection in firmware.
Maintaining support for overriding the Tx rate with ifconfig in face of
complicated firmware interface changes such as this rate_n_flags change
is just not worth it. While trying to keep forced Tx rates working on top
of the new rate_n_flags format I accidentally broke the Tx rate used for
managment frames during regular operation, which caused much frustration.

date 2023-03-06T10:52:16Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
src/sys/dev/pci/if_iwxreg.h log diff annotate
message add support for the iwx RLC config command

New firmware wants to be told about MIMO antenna configuration via
a separate command, rather than via the good old PHY context command.

date 2023-03-06T11:00:41Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
src/sys/dev/pci/if_iwxreg.h log diff annotate
message support the new IWX_STA_MAC_DATA_API_S_VER_2 API

MAC context command fields which firmware has been ignoring since the iwm
hardware generation have been repurposed for information related to 11ax.
Just set these fields to zero. Firmware -71 and up will panic otherwise.

date 2023-03-06T11:03:29Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
src/sys/dev/pci/if_iwxreg.h log diff annotate
message implement support for iwx PHY context cmd version 4

date 2023-03-06T11:08:56Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
src/sys/dev/pci/if_iwxreg.h log diff annotate
src/sys/dev/pci/if_iwxvar.h log diff annotate
message add support for the iwx BAID allocation config command

This command is required to set up Rx aggregation on new firmware.

date 2023-03-06T11:18:37Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
src/sys/dev/pci/if_iwxreg.h log diff annotate
message support the new iwx SCD_QUEUE_CONFIG command

Required for adding/removing Tx queues on new firmware versions.

Semantics have changed yet again. Good old iwm(4) required manual
removal of related Tx queues when a station is removed from firmware.
At some point iwx(4) firmware removed this requirement and demanded
that queue removal would be done implicitly by firmware instead.
And now the firmware engineers at Intel have again changed their
minds about this, and explicit queue removal is required again.
It is sad that we are being driven through such a marathon of changes
just in order to pick up some firmware security fixes...

date 2023-03-06T11:21:24Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
message fix iwx session protection event duration

Firmware expects time in TU units.
Use 900 TU for the session protection timeout, like the linux driver does.

verified with Johannes Berg from Linux/Intel, thanks for the support!

date 2023-03-06T11:28:01Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
message always provide a subset of STA info in the MAC context command

We used to provide beacon-related information only once our station was
associated. New firmware wants to see this information earlier, when are
about to send an AUTH frame. Otherwise SYSASSERT 0x2000011A is raised.

Problem diagnosed with help from Johannes Berg, thanks!

date 2023-03-06T11:30:46Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
message ignore iwx DATA_PATH group notification 0xf8

Undocumented and ignored by the Linux driver, too.
Apparently only used by the Windows driver.
Confirmed by Johannes Berg.

date 2023-03-06T11:33:57Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
message Avoid trying to remove keys if the station is not active in iwx firmware.

Fixes a firmware panic I encountered while working on firmware upgrades.

date 2023-03-06T11:37:14Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
message fix previous: only ignore request to delete key while doing crypto in hardware

date 2023-03-06T11:42:11Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
message Make iwx(4) get the primary channel number from AP beacon info, rather
than assuming that it always matches our currently configured channel.
Should prevent problems on 40/80Mhz channels if there is a mismatch.

date 2023-03-06T11:53:24Z
author stsp
files src/sys/dev/pci/if_iwxvar.h log diff annotate
message Switch all iwx(4) devices to -77 firmware images.

New firmware versions address some security issues, as outlined here:
https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00621.html
https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00699.html

Firmware has been available in fw_update for some time so systems which
track -current should already have the new -77 images.

Tested:
ax200: jmc, hrvoje, stsp
ax201: Mikhail, Sven Wolf, stsp
ax210: lraab, stsp
ax211: Mikhail, dv

date 2023-03-06T17:14:44Z
author miod
files src/sys/dev/wscons/wsemul_subr.c log diff annotate
src/sys/dev/wscons/wsemul_sun.c log diff annotate
src/sys/dev/wscons/wsemul_vt100.c log diff annotate
src/sys/dev/wscons/wsemul_vt100var.h log diff annotate
src/sys/dev/wscons/wsemulvar.h log diff annotate
message Replace old'n'wrong UTF-8 logic with a better one borrowed from Citrus;
issue reported by Crystal Kolipe on tech@

date 2023-03-06T17:20:05Z
author miod
files src/sys/arch/amd64/amd64/conf.c log diff annotate
message In iskmemdev(), do not check for the minor of /dev/io. It has been
deprecated more than 25 years ago and removed more than 20.
From Crystal Kolipe, thanks!

date 2023-03-06T17:20:06Z
author miod
files src/sys/arch/arm64/arm64/conf.c log diff annotate
src/sys/arch/i386/i386/conf.c log diff annotate
src/sys/arch/riscv64/riscv64/conf.c log diff annotate
message In iskmemdev(), do not check for the minor of /dev/io. It has been
deprecated more than 25 years ago and removed more than 20.
From Crystal Kolipe, thanks!

date 2023-03-06T20:34:35Z
author miod
files src/sys/dev/wscons/wsemul_sun.c log diff annotate
src/sys/dev/wscons/wsemul_vt100.c log diff annotate
message branches: 1.36.4;
Correctly account the number of bytes processed when outputting UTF-8 encoded
characters.