OpenBSD cvs log

created 2020-05-02T17:54:44Z
begin 2020-04-29T00:00:00Z
end 2020-04-30T00:00:00Z
path src/sys
commits 13

date 2020-04-29T02:25:48Z
author beck
files src/sys/kern/vfs_bio.c log diff annotate
message Ensure that if we are doing a delayed write with a NOCACHE buffer, we
clear the NOCACHE flag, since if we are doing a delayed write the buffer
must be cached or it is thrown away when the "write" is done.
fixes vnd on mfs regress tests.

ok kettenis@ deraadt@

date 2020-04-29T07:04:32Z
author dlg
files src/sys/netinet/ip_carp.c log diff annotate
message remove some trailing whitespace. no functional change.

date 2020-04-29T08:53:45Z
author kettenis
files src/sys/arch/i386/i386/machdep.c log diff annotate
src/sys/arch/i386/include/cpu.h log diff annotate
src/sys/arch/i386/isa/clock.c log diff annotate
message Use the same inittodr()/resettodr() implementation as on
amd64/arm64/armv7/sparc64 and move it to the end of machdep.c. Rework the
actual implementation for the MC14818 compatible RTC into something that can
be used as a todr_handle just like on amd64.

ok sthen@

date 2020-04-29T09:44:49Z
author patrick
files src/sys/dev/sdmmc/sdmmc_cis.c log diff annotate
message According to the SDIO Simplified Specification 3.0, a tuple length
(aka link field) of 0 specifies an empty tuple body. This implies
that a tuple length of 0 is actually allowed, so we don't need to
error out if we encounter one. Seen on an SDIO-connected ath10k.

ok kettenis@

date 2020-04-29T13:13:29Z
author stsp
files src/sys/dev/ic/athn.c log diff annotate
message Add the 'nomimo' nwflag which disables MIMO in 11n mode.

This flag restricts a wireless driver to MCS0 - MCS7 for both transmission
and reception. It can be set to work around packet loss in 11n mode caused
by unused antenna connectors on a MIMO-capable wireless network device.

man page tweak from tracey@
ok deraadt@

date 2020-04-29T13:13:30Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwx.c log diff annotate
src/sys/net80211/ieee80211_ioctl.h log diff annotate
message Add the 'nomimo' nwflag which disables MIMO in 11n mode.

This flag restricts a wireless driver to MCS0 - MCS7 for both transmission
and reception. It can be set to work around packet loss in 11n mode caused
by unused antenna connectors on a MIMO-capable wireless network device.

man page tweak from tracey@
ok deraadt@

date 2020-04-29T15:25:07Z
author kettenis
files src/sys/arch/arm/arm/bus_dma.c log diff annotate
src/sys/arch/arm/cortex/cortex.c log diff annotate
src/sys/arch/arm/include/bus.h log diff annotate
src/sys/arch/arm/mainbus/mainbus.c log diff annotate
src/sys/arch/arm/simplebus/simplebus.c log diff annotate
src/sys/arch/arm/simplebus/simplebusvar.h log diff annotate
src/sys/arch/armv7/armv7/armv7.c log diff annotate
src/sys/arch/armv7/broadcom/bcm2835_dwctwo.c log diff annotate
message Let the armv7 bus_dma layer and simplebus(4) implementation deal with
DMA remapping in the same way as arm64. This relies on the dma-ranges
property in the device tree and allows us to get rid of the hack for
the Raspberry Pi in the dwctwo(4) driver.

Note that this does not include the hack in simplebus(4) that we have on
arm64 since firmware that has the dma-ranges is in widespread use now.

ok patrick@

date 2020-04-29T15:50:48Z
author patrick
files src/sys/dev/i2c/abx80x.c log diff annotate
message The function to write to abcrtc(4)'s configuration registers
unfortunately did not write the data to the register, but the
register offset. Oops.

ok kettenis@

date 2020-04-29T15:52:25Z
author patrick
files src/sys/dev/i2c/abx80x.c log diff annotate
message Configure abcrtc(4)'s trickle charger. This uses information
from the device tree to configures the RTC to be able to charge
a connected battery or capacitor.

ok kettenis@

date 2020-04-29T18:44:28Z
author patrick
files src/sys/dev/i2c/abx80x.c log diff annotate
message Writing and reading time has been broken in abcrtc(4) as well. I was
being too clever trying to use the SMBus block reads/writes. Instead
the registers were written with an offset: Seconds were stored in the
minutes, minutes were stored in the hours. No wonder time was ticking
so slowly. Removing the bogus length field and simply writing/reading
the time register values is enough.

ok kettenis@

date 2020-04-29T19:00:18Z
author patrick
files src/sys/dev/i2c/abx80x.c log diff annotate
message Update the trickle charger diode defines based on the datasheet, and
enable the trickle charger.

date 2020-04-29T19:18:31Z
author patrick
files src/sys/dev/i2c/abx80x.c log diff annotate
message Enable the trickle charger after setting the control register.

date 2020-04-29T19:30:58Z
author kettenis
files src/sys/arch/armv7/conf/GENERIC log diff annotate
src/sys/arch/armv7/conf/RAMDISK log diff annotate
message Enable a bunch of drivers needed for full Raspberry Pi 2/3 support.