OpenBSD cvs log

created 2018-12-30T10:51:03Z
begin 2018-12-10T00:00:00Z
end 2018-12-11T00:00:00Z
path src/sys
commits 8

date 2018-12-10T05:40:34Z
author visa
files src/sys/arch/sgi/dev/if_mec.c log diff annotate
message Fix phy discovery on O2 systems.

After a cold boot, the mii bus appears to take some time to initialize;
the phy does not answer to address 8 but to a larger address (10 or 11),
then, after being reset, to its correct address of 8.

So the kernel would discover the phy at a wrong address, attach it, and
after it gets reset, reading from the phy at the wrong address would
return either all bits clear or all bits set, confusing the link speed
logic without any way to recover.

Work around the issue by resetting all phys found when the interface is
reset for the first time. Thus, by the time mii_attach() runs and walks
the bus again, the phy will answer at the right address.

From miod@

date 2018-12-10T05:42:34Z
author visa
files src/sys/arch/sgi/dev/if_mec.c log diff annotate
src/sys/arch/sgi/dev/if_mecreg.h log diff annotate
message Clean up the mec(4) MII read/write routines a bit.

The PHY register offsets are adjusted because the registers are accessed
using 64-bit loads and stores.

From miod@

date 2018-12-10T13:35:54Z
author landry
files src/sys/sys/sensors.h log diff annotate
message Add a velocity sensor type (displayed as m/s)

Change distance sensor type to be displayed as meters with 3 decimals
instead of millimeters.

ok mpi@ kettenis@

date 2018-12-10T16:48:05Z
author jsing
files src/sys/arch/amd64/stand/libsa/exec_i386.c log diff annotate
src/sys/arch/i386/stand/libsa/exec_i386.c log diff annotate
message Do not call free on a non-allocated pointer.

ok deraadt@

date 2018-12-10T16:48:15Z
author kn
files src/sys/net/if_pflog.c log diff annotate
src/sys/net/pf.c log diff annotate
src/sys/net/pf_if.c log diff annotate
src/sys/net/pf_ioctl.c log diff annotate
src/sys/net/pf_lb.c log diff annotate
src/sys/net/pf_table.c log diff annotate
src/sys/net/pfvar.h log diff annotate
message Remove useless macros

These are just unhelpful case conversion.

OK sashan henning

date 2018-12-10T16:52:02Z
author jsing
files src/sys/arch/amd64/stand/libsa/exec_i386.c log diff annotate
src/sys/arch/i386/stand/libsa/exec_i386.c log diff annotate
message Ensure that we close the file descriptor after loading microcode.

Otherwise we end up keeping file descriptor and inode related buffers
around, that are unnecessarily consuming memory.

ok deraadt@ patrick@

date 2018-12-10T21:13:59Z
author claudio
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message Start passing the IO ports 0x510, 0x511, 0x514, and 0x518 to vmd(8).
These IO ports are used by qemu's fw_cfg interface and vmd(8) will start
using it to pass options to SeaBIOS.
OK mlarkin@

date 2018-12-10T23:00:01Z
author bluhm
files src/sys/netinet6/icmp6.c log diff annotate
message When forwarding IPv6 packets, generated ICMP6 packets used the
interface address of the route as source address. To avoid using
link-local addresses in ICMP6 packets sent into networks where they
are out of scope, use the regular IPv6 source selection algorithm
also in this icmp6_reflect() case.
reported by sthen@; fix from Arnaud BRAND; OK claudio@