OpenBSD cvs log

created 2021-01-16T23:26:54Z
begin 2021-01-13T00:00:00Z
end 2021-01-14T00:00:00Z
path src/sys
commits 9

date 2021-01-13T01:04:49Z
author jsg
files src/sys/dev/pci/drm/drm_linux.c log diff annotate
src/sys/dev/pci/drm/include/linux/mm.h log diff annotate
src/sys/dev/pci/drm/include/linux/vmalloc.h log diff annotate
message revert drm vmalloc changes

It is suspected they were to blame for a machine with inteldrm running X
(xterms and chromium) running out of resources after a few days.

ok kettenis@

date 2021-01-13T01:57:31Z
author kn
files src/sys/net/if_pair.c log diff annotate
message Send without kernel lock

The output path can run without kernel lock just fine as is.
Looking at CVS log, it seems this was not done during import
because IFXF_MPSAFE only became a thing afterwards.

OK mvs

date 2021-01-13T09:13:30Z
author mvs
files src/sys/net/if_pflog.c log diff annotate
src/sys/net/if_pflog.h log diff annotate
message Link pflog(4) instances to `pflog_ifs' list instead of allocating
`pflogifs' array. This was done to prevent panics caused by internal
malloc(9) limit.

Also we avoid the case while single pflog(4) interface with a high index
allocates an array for all indices below and eats up kernel memory.
Since we have a very little count of pflog(4) interfaces linear search
does not performance impact.

ok bluhm@ claudio@ kn@

date 2021-01-13T11:01:19Z
author kettenis
files src/sys/dev/i2c/pcf8563.c log diff annotate
message Add support for the HYM8563 RTC, which is a PCF8563 clone.

ok kurt@

date 2021-01-13T12:38:36Z
author bluhm
files src/sys/kern/uipc_mbuf.c log diff annotate
message Convert mbuf type KDASSERT() to a proper KASSERT() in m_get(9).
Should prevent to use uninitialized value as bogus counter index.
OK mvs@ claudio@ anton@

date 2021-01-13T16:28:49Z
author cheloha
files src/sys/arch/mips64/mips64/mips64_machdep.c log diff annotate
src/sys/kern/kern_clock.c log diff annotate
message kernel, sysctl(8): remove dead variable: tickadj

The global "tickadj" variable is a remnant of the old NTP adjustment
code we used in the kernel before the current timecounter subsystem
was imported from FreeBSD circa 2004 or 2005.

Fifteen years hence it is completely vestigial and we can remove it.
We probably should have removed it long ago but I guess it slipped
through the cracks. FreeBSD removed it in 2002:

https://cgit.freebsd.org/src/commit/?id=e1d970f1811e5e1e9c912c032acdcec6521b2a6d

NetBSD and DragonflyBSD can probably remove it, too.

We export tickadj via the kern.clockrate sysctl(2), so update sysctl.2
and sysctl(8) accordingly. Hypothetically this change could break
someone's sysctl(8) parsing script. I don't think that's very likely.

ok mvs@

date 2021-01-13T16:28:50Z
author cheloha
files src/sys/conf/param.c log diff annotate
src/sys/sys/kernel.h log diff annotate
src/sys/sys/time.h log diff annotate
message kernel, sysctl(8): remove dead variable: tickadj

The global "tickadj" variable is a remnant of the old NTP adjustment
code we used in the kernel before the current timecounter subsystem
was imported from FreeBSD circa 2004 or 2005.

Fifteen years hence it is completely vestigial and we can remove it.
We probably should have removed it long ago but I guess it slipped
through the cracks. FreeBSD removed it in 2002:

https://cgit.freebsd.org/src/commit/?id=e1d970f1811e5e1e9c912c032acdcec6521b2a6d

NetBSD and DragonflyBSD can probably remove it, too.

We export tickadj via the kern.clockrate sysctl(2), so update sysctl.2
and sysctl(8) accordingly. Hypothetically this change could break
someone's sysctl(8) parsing script. I don't think that's very likely.

ok mvs@

date 2021-01-13T23:50:21Z
author jmatthew
files src/sys/dev/pv/vmt.c log diff annotate
message put M_ZERO in the right place

ok dlg@

date 2021-01-13T23:56:48Z
author jmatthew
files src/sys/dev/pv/vmt.c log diff annotate
message Make vm_rpc_send_rpci_tx_buf() use the buffer passed in, not the buffer
allocated as part of the softc, though it's always been the same buffer
so far.

ok dlg@