OpenBSD cvs log

created 2021-08-01T04:23:31Z
begin 2021-07-28T00:00:00Z
end 2021-07-29T00:00:00Z
path src/sys
commits 9

date 2021-07-28T07:36:06Z
author tb
files src/sys/lib/libz/deflate.c log diff annotate
message Fix previous: In one spot I incorrectly used Pos (unsigned short) where
I should have used Byte (unsigned char) which led to passing twice the
correct size to free.

Found & tested by bluhm with the sys/netinet/ipsec tests on i386.

date 2021-07-28T09:55:58Z
author anton
files src/sys/dev/usb/uhidpp.c log diff annotate
message Delay installation of sensors until a device with battery support is
connected. Allows sensorsd(8) to pick up hotplugged devices.

Thanks to Laurence Tratt <laurie at tratt dot net> for the report.

date 2021-07-28T09:56:54Z
author anton
files src/sys/dev/usb/uhidpp.c log diff annotate
message Use a more descriptive name for the raw sensor which reflects the number
of battery levels the device can report.

date 2021-07-28T13:04:46Z
author patrick
files src/sys/dev/fdt/rkclock.c log diff annotate
src/sys/dev/fdt/rkclock_clocks.h log diff annotate
message Add RK3399 Type-C PHY clocks.

ok kettenis@

date 2021-07-28T13:10:28Z
author patrick
files src/sys/dev/fdt/rkclock.c log diff annotate
src/sys/dev/fdt/rkclock_clocks.h log diff annotate
message Add RK3399 PCIe PHY reference clocks.

ok kettenis@

date 2021-07-28T13:28:04Z
author kettenis
files src/sys/dev/pci/drm/drm_linux.c log diff annotate
message Switch to an MI implementation of kmap_atomic() and implement
kmap_atomic_prot(). Use this to unstub ttm_copy_io_ttm_page()
and ttm_copy_ttm_io_page(). This fixes suspend/resume of machines
with certain radeondrm(4) hardware.

Based on a diff from jsg@. Tested by Edd Barrett and Alf Schlichting.
ok jsg@

date 2021-07-28T13:28:05Z
author kettenis
files src/sys/dev/pci/drm/include/linux/highmem.h log diff annotate
src/sys/dev/pci/drm/ttm/ttm_bo_util.c log diff annotate
message Switch to an MI implementation of kmap_atomic() and implement
kmap_atomic_prot(). Use this to unstub ttm_copy_io_ttm_page()
and ttm_copy_ttm_io_page(). This fixes suspend/resume of machines
with certain radeondrm(4) hardware.

Based on a diff from jsg@. Tested by Edd Barrett and Alf Schlichting.
ok jsg@

date 2021-07-28T13:39:39Z
author patrick
files src/sys/dev/fdt/rkclock.c log diff annotate
message On some RK3399 boards the firmware disables some of the clocks. Allow
some of those clocks to be enabled.

Noticed on the NanoPi R4S, where the Ethernet controller clocks were
surprisingly turned off.

ok kettenis@

date 2021-07-28T13:43:11Z
author patrick
files src/sys/dev/fdt/if_dwge.c log diff annotate
message The clocks for the Rockchip Ethernet controller need to be enabled much
earlier. So far we haven't noticed this, as we had the assumption that
all clocks are enabled anyway. On the NanoPi R4S this does not seem to
be the case, so we need to bring the clock enable code closer to the
other bringup code.

ok kettenis@