OpenBSD cvs log

created 2018-11-29T14:29:27Z
begin 2018-04-29T00:00:00Z
end 2018-04-30T00:00:00Z
path src/sys
commits 9

date 2018-04-29T08:35:28Z
author stsp
files src/sys/net80211/ieee80211_proto.c log diff annotate
message INIT->RUN transitions are valid in monitor mode, so don't
debug print "invalid transition" to dmesg in this case.

date 2018-04-29T08:42:16Z
author sf
files src/sys/dev/pci/if_em_hw.c log diff annotate
src/sys/dev/pci/if_em_hw.h log diff annotate
message em: Improve access logic for software flag

Some em chips have a semaphore ("software flag") to synchronize access
to certain registers between OS and firmware (ME/AMT).

Make the logic to get the flag match the logic in freebsd. This includes
higher timeouts and waiting for a previous unlock to complete before
trying a lock again.

ok mikeb@

date 2018-04-29T08:45:01Z
author sf
files src/sys/dev/pci/if_em_hw.c log diff annotate
src/sys/dev/pci/if_em_hw.h log diff annotate
message em: Make em_get_software_flag() recursive

The em driver calls em_get_software_flag() recursively, which causes the
semaphore to be unlocked too early. Make em_get_software_flag and
em_release_software_flag handle this correctly. Freebsd does not do
this, but they have a mutex that probably allows them to detect
recursive calls to e1000_acquire_swflag_ich8lan(). Reworking the
openbsd driver to not recursively get the semaphore would be very
invasive.

ok mikeb@

date 2018-04-29T08:47:10Z
author sf
files src/sys/dev/pci/if_em_hw.c log diff annotate
message em: Add magic delay for HP elitebook 820 G3

Add another magic 1ms delay that seems to help with some remaining "Hardware
Initialization Failed" issues on an HP elitebook 820 G3 with i219LM. A printf()
at the same place helps, too.

ok mikeb@

date 2018-04-29T08:50:04Z
author krw
files src/sys/dev/pckbc/pms.c log diff annotate
message 'juming' -> 'jumping' in comment.

Pointed out by Ryan Lennox via tech@

date 2018-04-29T08:57:48Z
author mpi
files src/sys/dev/usb/usbdi.c log diff annotate
message Fail early when transfers aren't completed in order.

ok pirofti@, visa@

date 2018-04-29T09:00:42Z
author mpi
files src/sys/dev/usb/xhci.c log diff annotate
message Unsigned values are always >= 0, fix Coverity 1468443.

date 2018-04-29T12:11:48Z
author stsp
files src/sys/net80211/ieee80211_input.c log diff annotate
message Don't bother with background scans while the desired BSSID is fixed.
Patch by Jesper Wallin

date 2018-04-29T17:26:31Z
author anton
files src/sys/kern/kern_subr.c log diff annotate
message In hash{free,init}(), there's no need to calculate the size of the hash table if
the given number of elements already is a power of 2.

ok visa@, "seems like a good plan" deraadt@