OpenBSD cvs log

created 2020-11-19T18:44:40Z
begin 2020-06-19T00:00:00Z
end 2020-06-20T00:00:00Z
path src/sys
commits 16

date 2020-06-19T02:08:48Z
author deraadt
files src/sys/kern/sys_pipe.c log diff annotate
src/sys/sys/pipe.h log diff annotate
message backout pipe change, it crashes some arch

date 2020-06-19T08:48:15Z
author dlg
files src/sys/net/toeplitz.c log diff annotate
src/sys/net/toeplitz.h log diff annotate
message let stoeplitz_to_key take a void * argument instead of uint8_t *.

ix(4) wants an array of uint32_ts to push into 32bit registers.

date 2020-06-19T09:17:51Z
author jsg
files src/sys/dev/pci/drm/drm_fb_helper.c log diff annotate
message reduce the diff to linux

date 2020-06-19T09:17:52Z
author jsg
files src/sys/dev/pci/drm/include/generated/autoconf.h log diff annotate
message reduce the diff to linux

date 2020-06-19T11:12:46Z
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 WPA2 (CCMP) crypto offload support to iwx(4).

Much thanks to Sara Sharon who helped me by providing hints about new
firmware behaviour.

Contrary to older iwn(4) and iwm(4) devices, key material is no longer part
of the Tx command. Instead, firmware will encrypt outgoing traffic as soon
as the station associated with a Tx queue has an encryption key configured.

Each Tx queue is created with an associated station ID (which in our case is
a constant and represents the AP) and a traffic identifier (TID). The driver
was configuring data Tx queues with the "management TID". This magic TID value
bypasses hardware encryption and resulted in plaintext frames being sent while
received frames were decrypted as expected since the station had a key.
This behaviour looked rather strange and was difficult for me to debug.

The clues which Sara provided led to the solution:
iwx(4) must configure data Tx queues with the "non-QOS TID" in order to
allow for encryption in the firmware's data Tx path.

The rest of the offload mechanism works as it did on iwn(4) and iwm(4).

Tested by sven falempin and myself.

date 2020-06-19T11:14:03Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
message Make iwx(4) reset Tx byte count table slots for frames that are done.

This fixes a "fatal firmware error" at run-time.

Thanks again to Sara Sharon who provided the hint that the error trace
I was looking at indicated that the firmware was running into a problem
while trying to flush its Tx queues, and that this could be related to
the Tx byte count table not being maintained properly.

Tested by sven falempin and myself.

date 2020-06-19T14:51:44Z
author krw
files src/sys/dev/ic/siop.c log diff annotate
src/sys/dev/ic/siop_common.c log diff annotate
message Whitespace. Two short lines to one line.

date 2020-06-19T15:00:45Z
author naddy
files src/sys/arch/amd64/stand/libsa/mdrandom.c log diff annotate
src/sys/arch/i386/stand/libsa/mdrandom.c log diff annotate
message fold the TSC value in fewer operations, same result; ok deraadt@

date 2020-06-19T17:29:33Z
author kettenis
files src/sys/arch/powerpc64/powerpc64/trap_subr.S log diff annotate
message Set %r13 with a pointer to our per-CPU info struct when setting up a
trapframe.

date 2020-06-19T19:18:59Z
author krw
files src/sys/dev/ic/wd33c93.c log diff annotate
message Whitespace.

date 2020-06-19T20:56:23Z
author kettenis
files src/sys/dev/ic/bwfm.c log diff annotate
src/sys/dev/sdmmc/if_bwfm_sdio.c log diff annotate
message Add support for BCM4359 SDIO variants such as the AP6359SA module found
on the RockPro64 WiFi module.

Note that there is no fiirmware for this chip in the bwfm-firmware package
at the moment.

ok patrick@

date 2020-06-19T21:24:01Z
author kettenis
files src/sys/arch/powerpc64/powerpc64/syscall.c log diff annotate
src/sys/arch/powerpc64/powerpc64/trap.c log diff annotate
message First stab at implementing system calls.

date 2020-06-19T22:09:49Z
author kettenis
files src/sys/arch/powerpc64/powerpc64/machdep.c log diff annotate
message Not quite correct implementations of copystr(9) and kcopy(9).

date 2020-06-19T22:20:08Z
author kettenis
files src/sys/arch/powerpc64/dev/opal.c log diff annotate
message Fix calculation of the year.

date 2020-06-19T22:29:59Z
author kettenis
files src/sys/arch/powerpc64/include/vmparam.h log diff annotate
message VM_MAXUSER_ADDRESS needs to be page-aligned.

date 2020-06-19T22:47:22Z
author procter
files src/sys/netinet/tcp_input.c log diff annotate
message Break a glass ceiling on cwnd due to integer division during congestion
avoidance. The problem and fix is noted in RFC5681 section 3.1, page 7.

Report, diff and testing from Brian Brombacher, thanks!
Testing and a cosmetic tweak by myself.

ok claudio