OpenBSD cvs log

created 2024-02-11T10:30:16Z
begin 2024-02-08T00:00:00Z
end 2024-02-09T00:00:00Z
path src/sys
commits 14

date 2024-02-08T00:00:16Z
author jsg
files src/sys/dev/fdt/sxipio.c log diff annotate
message fix off-by-one in bounds test

found by "buffer overflow 'sc->sc_pins[i]->funcs' 10 <= 10" smatch error
ok miod@ kettenis@

date 2024-02-08T00:05:46Z
author jsg
files src/sys/net80211/ieee80211_proto.c log diff annotate
message correct size in mac address comparison

found by "'(selbs->ni_macaddr)' too small (6 vs 32)" smatch error
ok stsp@ jca@ phessler@

date 2024-02-08T11:06:50Z
author stsp
files src/sys/dev/ic/qwx.c log diff annotate
message set the mbuf length for received data frames in qwx(4)

Fixes CCMP decryption errors in the Rx path.

date 2024-02-08T11:09:53Z
author stsp
files src/sys/dev/ic/qwx.c log diff annotate
message handle fragmented mbuf DMA segments in the qwx(4) Tx path

Fixes qwx0: failed to map Tx buffer: 27

date 2024-02-08T11:13:01Z
author stsp
files src/sys/dev/ic/qwx.c log diff annotate
message fix uninitialized return from qwx_qmi_load_file_target_mem()

Fortunately this case could only be reached with an empty firmware file.

Found by jsg@

date 2024-02-08T11:16:49Z
author stsp
files src/sys/dev/ic/qwx.c log diff annotate
message fix use of uninitialized variable m in qwx_dp_rx_reap_mon_status_ring()

Found by jsg@

date 2024-02-08T11:20:29Z
author stsp
files src/sys/dev/ic/qwx.c log diff annotate
src/sys/dev/ic/qwxvar.h log diff annotate
message mark full qwx(4) Tx queues, such that the OACTIVE mechanism will be used

Not quite tested yet. It is very hard to fill the queues at present
because Tx operation will freeze when we try. To be investigated next.

date 2024-02-08T11:23:33Z
author stsp
files src/sys/dev/ic/qwx.c log diff annotate
message handle qwx(4) firmware roaming events

Gets rid of 'qwx_wmi_tlv_op_rx: unsupported event id 0xb001' in dmesg.
However, roaming does not work yet because the driver's newstate handler
does not handle resulting state transitions.

date 2024-02-08T13:00:21Z
author jsg
files src/sys/dev/mii/ytphy.c log diff annotate
message ldo bits need to be shifted

found by "'(data & (3 << 4)) == 1' is always false" smatch warning
tested by kettenis@ on VisionFive 2 1.2A and jmatthew@ on 1.3B
ok kettenis@

date 2024-02-08T14:31:53Z
author stsp
files src/sys/dev/ic/qwx.c log diff annotate
message remove qwx(4) dp_tx debug prints which should not have been committed

date 2024-02-08T14:33:40Z
author stsp
files src/sys/dev/ic/qwx.c log diff annotate
message fix qwx_dp_shadow_start_timer()

We must count all Tx attempts in order to avoid the Tx shadow
timeout handler resetting Tx ring pointers when it shouldn't.

date 2024-02-08T14:35:07Z
author stsp
files src/sys/dev/ic/qwx.c log diff annotate
src/sys/dev/ic/qwxvar.h log diff annotate
message implement qwx_dp_tx_process_htt_tx_complete()

date 2024-02-08T14:36:22Z
author stsp
files src/sys/dev/ic/qwx.c log diff annotate
message repair QWX_DEBUG build

date 2024-02-08T20:50:34Z
author kettenis
files src/sys/dev/fdt/if_dwge.c log diff annotate
message Upstream Linux finally settled on the compatible for the JH7100 Ethernet
MAC. Keep the preliminary one for now since the upstream device tree
doesn't include the USB controller yet.

ok miod@