OpenBSD cvs log

created 2020-01-18T02:19:30Z
begin 2020-01-15T00:00:00Z
end 2020-01-16T00:00:00Z
path src/sys
commits 13

date 2020-01-15T00:14:47Z
author cheloha
files src/sys/dev/mii/mii_physubr.c log diff annotate
message mii(4): tsleep(9) -> tlseep_nsec(9); ok mpi@

date 2020-01-15T00:17:21Z
author cheloha
files src/sys/dev/pci/qle.c log diff annotate
message qle(4): tsleep(9) -> tsleep_nsec(9)

These sleeps doesn't have any units, though on 100hz platforms they
are effectively 1 second sleeps. jmatthew@ says 1 second is fine, so
we'll keep them that way.

ok jmatthew@

date 2020-01-15T01:36:11Z
author jsg
files src/sys/dev/pci/drm/drm_fb_helper.c log diff annotate
message drm/fb-helper: Round up bits_per_pixel if possible

From Geert Uytterhoeven
779f5790fa47d8175b7346449a036f37f5717778 in linux 4.19.y/4.19.96
f30e27779d3031a092c2a177b7fb76adccc45241 in mainline linux

date 2020-01-15T01:39:00Z
author jsg
files src/sys/dev/pci/drm/drm_dp_mst_topology.c log diff annotate
message drm/dp_mst: correct the shifting in DP_REMOTE_I2C_READ

From Wayne Lin
ba4c2a719ee123c085e16888a448622aa24291b7 in linux 4.19.y/4.19.96
c4e4fccc5d52d881afaac11d3353265ef4eccb8b in mainline linux

date 2020-01-15T01:43:06Z
author jsg
files src/sys/dev/pci/drm/i915/intel_lrc.c log diff annotate
message drm/i915/gen9: Clear residual context state on context switch

From Akeem G Abodunrin
dd4f3b3508f65fe37975db223365216316da3998 in linux 4.19.y/4.19.96
bc8a76a152c5f9ef3b48104154a65a68a8b76946 in mainline linux

date 2020-01-15T09:34:27Z
author phessler
files src/sys/net80211/ieee80211_ioctl.c log diff annotate
src/sys/net80211/ieee80211_node.c log diff annotate
src/sys/net80211/ieee80211_node.h log diff annotate
message If join is connected to an AP, remove the node from the cache so we properly
reconnect to the AP

OK stsp@

date 2020-01-15T13:17:35Z
author mpi
files src/sys/kern/uipc_socket.c log diff annotate
src/sys/kern/uipc_socket2.c log diff annotate
src/sys/kern/uipc_syscalls.c log diff annotate
src/sys/nfs/nfs_socket.c log diff annotate
src/sys/nfs/nfs_syscalls.c log diff annotate
src/sys/sys/socketvar.h log diff annotate
src/sys/sys/time.h log diff annotate
message Keep socket timeout intervals in nsecs and use them with tsleep_nsec(9).

Introduce and use TIMEVAL_TO_NSEC() to convert SO_RCVTIMEO/SO_SNDTIMEO
specified values into nanoseconds. As a side effect it is now possible
to specify a timeout larger that (USHRT_MAX / 100) seconds.

To keep code simple `so_linger' now represents a number of seconds with
0 meaning no timeout or 'infinity'.

Yes, the 0 -> INFSLP API change makes conversions complicated as many
timeout holders are still memset()'d.

Inputs from cheloha@ and bluhm@, ok bluhm@

date 2020-01-15T14:01:19Z
author cheloha
files src/sys/dev/pci/pci.c log diff annotate
message pci(4): PCIOCSETVGA: tsleep(9) -> tsleep_nsec(9); ok mpi@

date 2020-01-15T16:43:13Z
author cheloha
files src/sys/dev/ic/lpt.c log diff annotate
message lpt(4): timeout_add(9) -> timeout_add_msec(9), tsleep(9) -> tsleep_nsec(9)

The only tricky part in this driver is the "exponential backoff" loop.
Rename "tic" to "msecs" and start with 10 milliseconds instead of 1 tick.

ok mpi@

date 2020-01-15T16:50:29Z
author cheloha
files src/sys/dev/ic/aac.c log diff annotate
message aac(4): tsleep(9) -> tsleep_nsec(9)

aac_wait_command() is odd.

It accepts a timeout in terms of ticks and passes that to tsleep(9),
but the comment above the function suggests the timeout itself is
ignored. On top of that, aac_wait_command()'s only caller passes in a
value from scsi_xfer.timeout, which is a count of milliseconds.

krw@ says not to worry too much about these discrepencies and to just
do what makes the most sense given the state of the code.

So, change aac_wait_command()'s "timeout" to "msecs" and pass that

ok krw@

date 2020-01-15T20:17:08Z
author patrick
files src/sys/dev/pci/if_bwfm_pci.c log diff annotate
message Fix off-by-one in ringbuffer code. When we insert items faster than
the hardware is processing them, the write index can catch up to the
read index. We must make sure that our write index stays smaller
than the hardware's read index, thus the difference between both has
to be bigger than 1.

ok tobhe@

date 2020-01-15T21:41:02Z
author patrick
files src/sys/dev/pci/if_bwfm_pci.c log diff annotate
message Some PCIe firmwares drop TX packets when the pktid is 0. Add
an offset to make sure they start from 1.

date 2020-01-15T22:23:55Z
author patrick
files src/sys/dev/pci/if_bwfm_pci.c log diff annotate
message Sprinkle splnet() around the ringbuffer accesses, otherwise the
task and interrupt try to concurrently submit messages on the
control ring.