OpenBSD cvs log

created 2019-02-07T02:54:57Z
begin 2018-12-27T00:00:00Z
end 2019-01-03T00:00:00Z
path src/sys
commits 44

date 2018-12-27T10:04:16Z
author anton
files src/sys/dev/kcov.c log diff annotate
src/sys/sys/kcov.h log diff annotate
message Separate kcov descriptor state and trace mode as a first step towards supporting
different trace modes.

ok mpi@

date 2018-12-27T11:04:41Z
author claudio
files src/sys/arch/sparc64/dev/pci_machdep.c log diff annotate
message Do not assign node to itself. Instead move the earlier initialisation into
the for loop. Makes clang happier.
OK otto@, deraadt@

date 2018-12-27T11:06:38Z
author claudio
files src/sys/arch/sparc64/dev/ce4231.c log diff annotate
src/sys/arch/sparc64/dev/comkbd_ebus.c log diff annotate
src/sys/arch/sparc64/dev/fd.c log diff annotate
src/sys/arch/sparc64/dev/vgafb.c log diff annotate
src/sys/arch/sparc64/dev/z8530kbd.c log diff annotate
src/sys/arch/sparc64/dev/zs.c log diff annotate
message Move away from K&R style function definitions. clang is rather picky about
them especially if char and short arguments are used.
OK otto@ deraadt@

date 2018-12-27T11:09:17Z
author claudio
files src/sys/dev/sbus/agten.c log diff annotate
src/sys/dev/sbus/spif.c log diff annotate
src/sys/dev/sbus/stp4020.c log diff annotate
message Convert K&R function definitions to modern C. clang is more picky about
them.
OK otto@ deraadt@

date 2018-12-27T16:54:01Z
author kn
files src/sys/net/pf_ioctl.c log diff annotate
src/sys/net/pf_ruleset.c log diff annotate
message Check for main ruleset explicitly

All rulesets reference their parent anchor, except for the special cased
main anchor containing the main ruleset, which's reference is always NULL
since initialization and never changes.

Replacing nullity tests with clearer equality checks makes the code less
ambigious and easier to understand.

OK sashan

date 2018-12-27T17:57:58Z
author tedu
files src/sys/dev/audio.c log diff annotate
message must remember to unref device if setting the task isn't done.
ok anton

date 2018-12-27T19:33:08Z
author anton
files src/sys/dev/kcov.c log diff annotate
src/sys/sys/kcov.h log diff annotate
message Make KIOENABLE accept a mode argument, currently limited to KCOV_MODE_TRACE_PC.

Thanks to jmc@ for improving the manual bits.

ok deraadt@ mpi@

date 2018-12-28T14:32:47Z
author bluhm
files src/sys/net/if_switch.c log diff annotate
src/sys/net/switchctl.c log diff annotate
src/sys/net/switchofp.c log diff annotate
message Fix mbuf releated crashes in switch(4). They have been found by
syzkaller as pool corruption panic. It is unclear which bug caused
what, but it should be better now.
- Check M_PKTHDR with assertion before accessing m_pkthdr.
- Do not access oh_length without m_pullup().
- After checking if there is space at the end of the mbuf, don't
overwrite the data at the beginning. Append the new content.
- Do not set m_len and m_pkthdr.len when it is unclear whether
the ofp_error header fits at all. Use m_makespace() to adjust
the mbuf.
Reported-by: syzbot+6efc0a9d5b700b54392e@syzkaller.appspotmail.com
test akoshibe@; OK claudio@

date 2018-12-28T20:35:59Z
author kettenis
files src/sys/arch/hppa/conf/RAMDISK log diff annotate
message Fix dino at uturn attachment. From miod@

date 2018-12-29T11:37:30Z
author patrick
files src/sys/dev/sdmmc/sdmmc.c log diff annotate
src/sys/dev/sdmmc/sdmmcchip.h log diff annotate
src/sys/dev/sdmmc/sdmmcvar.h log diff annotate
message Allow passing the maximum size of a segment that a SD/MMC host
controller can handle for DMA tranfers, since not all support 64k.

ok kettenis@

date 2018-12-29T11:37:54Z
author patrick
files src/sys/dev/fdt/imxesdhc.c log diff annotate
message The i.MX SD/MMC host controller does not support zero-length DMA
descriptors, which are used to encode 64k transfers since it's a
16-bit value in the descriptor, which means that we only support
a maximum segment size of 64k minus one. This fixes I/O errors
on i.MX machines.

ok kettenis@

date 2018-12-29T14:09:00Z
author patrick
files src/sys/dev/fdt/sximmc.c log diff annotate
message Remove the hand-rolled maximum segment size handling in sximmc(4)
since we now have the possibility to specify it in the attach args.

ok kettenis@

date 2018-12-29T19:02:30Z
author cheloha
files src/sys/kern/kern_time.c log diff annotate
message sys_nanosleep: switch to descriptive, idiomatic variable names; ok tedu@

date 2018-12-29T21:03:58Z
author bru
files src/sys/dev/wscons/wstpad.c log diff annotate
message Cleanup: Initialize the pointers to position data early, and use
them consistently.

date 2018-12-30T18:18:54Z
author kettenis
files src/sys/dev/fdt/rkclock.c log diff annotate
message Implement setting CPU-related clocks for RK3328.

date 2018-12-30T20:11:59Z
author kettenis
files src/sys/dev/ic/dwc_gmac.c log diff annotate
message Increase the reset timeout. The ROCK64 RK3328-based board seems to need a
bit more time after a warm reset.

date 2018-12-30T23:08:05Z
author guenther
files src/sys/arch/amd64/conf/Makefile.amd64 log diff annotate
message Turn on -mretpoline by default in clang on amd64, but turn it off
explicitly in SMALL_KERNEL kernel builds.

tweaks from jsg@ and tb@
ok deraadt@ kettenis@

date 2018-12-30T23:54:27Z
author kettenis
files src/sys/dev/fdt/rkclock.c log diff annotate
src/sys/dev/fdt/rkclock_clocks.h log diff annotate
message More RK3328 clock stuff.

date 2018-12-31T11:44:57Z
author claudio
files src/sys/arch/sparc64/stand/Makefile.inc log diff annotate
src/sys/arch/sparc64/stand/ofwboot/Locore.c log diff annotate
src/sys/arch/sparc64/stand/ofwboot/Makefile log diff annotate
src/sys/arch/sparc64/stand/ofwboot/boot.c log diff annotate
src/sys/arch/sparc64/stand/ofwboot/disk.h log diff annotate
src/sys/arch/sparc64/stand/ofwboot/diskprobe.c log diff annotate
src/sys/arch/sparc64/stand/ofwboot/elf64_exec.c log diff annotate
src/sys/arch/sparc64/stand/ofwboot/net.c log diff annotate
src/sys/arch/sparc64/stand/ofwboot/ofdev.c log diff annotate
src/sys/arch/sparc64/stand/ofwboot/ofdev.h log diff annotate
src/sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c log diff annotate
src/sys/arch/sparc64/stand/ofwboot/vers.c log diff annotate
message Cleanup bootloader code. Compile with -ffreestanding and add ffs.S as a
build dependency which is required because of that. Add various include
files and some prototypes and change some code so that clang does not issue
warnings anymore.
OK kettenis@ deraadt@

date 2018-12-31T12:42:07Z
author visa
files src/sys/arch/mips64/mips64/fp_emulate.c log diff annotate
message Set floating point condition code even if the result of an emulated
floating point comparison is unordered. The setting should be skipped
only if an invalid operation exception is taken.

This fixes incorrect emulated compare behaviour with NaN values.

NaN issue on octeon reported by afresh1@; OK miod@

date 2018-12-31T13:19:24Z
author kettenis
files src/sys/dev/fdt/rkclock.c log diff annotate
src/sys/dev/fdt/rkclock_clocks.h log diff annotate
message Revamp the way we handle clocks on the RK3328. Instead of having code for
each and every clock, use a data structure for each clock and generic code
that handles muxing and clock division based on that data structure.
This should reduce the amount of code and hopefully make the process of
adding clocks less error prone as it is easy to check the data structures
against the SoC documentation.

This approach will be used for the other Rockchip SoCs in the future as well.

date 2018-12-31T17:12:34Z
author kettenis
files src/sys/dev/audio.c log diff annotate
message Use the return value of task_add(9) to determine whether the task was
already scheduled and whether we have to unref the device ourselves.

ok tedu@, ratchov@

date 2018-12-31T18:00:53Z
author kettenis
files src/sys/arch/arm64/arm64/cpu.c log diff annotate
message Avoid calling setperf() with a negative level.
Avoid a potential use of an unitilized variable to pick an operating point.
Remove an unused (but set) variable.

ok patrick@

date 2018-12-31T18:09:36Z
author kettenis
files src/sys/dev/fdt/rkclock.c log diff annotate
src/sys/dev/fdt/rkclock_clocks.h log diff annotate
message Implement fractional PLL frequencies for RK3328 and use them for APLL and
GPLL like the Linux kernel does. Use NPLL for the CPU clock such that
adjusting the CPU frequency doesn't change the clock of other devices
anymore. Implement the last clocks that are used in the assigned-clocks
property of clock controller.

Don't enable the assigned-clocks processing yet as it results in a sub-optimal
clock for for the SD and eMMC controllers. This clock handling in dwmcc(4)
needs some further work before we can enable this.

date 2018-12-31T18:54:00Z
author cheloha
files src/sys/kern/kern_time.c log diff annotate
message nanosleep: loop tsleep(9) to ensure coverage of the full timeout range.

tsleep(9)'s maximum timeout shrinks as HZ grows, so this ensures we do
not return early from longer timeouts on alpha or on custom kernels.
POSIX says you cannot return early unless a signal is delivered, so
this makes us more compliant with the standard.

While here, remove the 100 million second upper bound. It is an
artifact from itimerfix() and it serves no discernible purpose.

ok tedu@ visa@

date 2018-12-31T21:17:45Z
author kettenis
files src/sys/dev/fdt/rkclock.c log diff annotate
src/sys/dev/fdt/rkclock_clocks.h log diff annotate
message Use data structures for the RK3399 as well.

date 2018-12-31T21:24:37Z
author kettenis
files src/sys/dev/fdt/dwmmc.c log diff annotate
message Force base clock to 50 MHz on Rockchip SoCs. This increases the chance that
we end up with an optimal clock frequency for SD and eMMC.

ok patrick@

date 2018-12-31T21:53:52Z
author kettenis
files src/sys/dev/fdt/rkclock.c log diff annotate
message Set assigned-clocks on RK3328.

date 2018-12-31T21:59:44Z
author kettenis
files src/sys/dev/fdt/rkiic.c log diff annotate
message Set assigned-clocks.

date 2019-01-01T03:19:37Z
author guenther
files src/sys/arch/amd64/amd64/vector.S log diff annotate
message Fix comment typo

date 2019-01-01T07:06:44Z
author jsg
files src/sys/kern/init_main.c log diff annotate
message copyright++;

date 2019-01-01T11:15:15Z
author kettenis
files src/sys/dev/fdt/rkclock.c log diff annotate
message Fix typo in RK3328 fractional PLL frequency code.

date 2019-01-01T12:19:57Z
author kettenis
files src/sys/dev/fdt/rkclock.c log diff annotate
message Make sure we don't exceed the maximum clock divider.

date 2019-01-01T12:35:41Z
author kettenis
files src/sys/dev/fdt/rkclock.c log diff annotate
message Implement switching to different parent clocks in order to get as close
to the desired frequency as possible when setting the frequency of a clock.

date 2019-01-01T14:41:46Z
author kettenis
files src/sys/dev/fdt/rkclock.c log diff annotate
src/sys/dev/fdt/rkclock_clocks.h log diff annotate
message Add RK3328 TSADC clock.

date 2019-01-01T15:54:33Z
author kettenis
files src/sys/dev/fdt/rkclock.c log diff annotate
src/sys/dev/fdt/rkclock_clocks.h log diff annotate
message Add RK3399 TSADC clock.

date 2019-01-01T15:56:19Z
author kettenis
files src/sys/dev/fdt/rktemp.c log diff annotate
message Set assigned-clocks.

date 2019-01-01T17:12:58Z
author kettenis
files src/sys/dev/fdt/rkclock.c log diff annotate
src/sys/dev/fdt/rkclock_clocks.h log diff annotate
message Add some additional RK3399 clocks that are used by the current Linux
mainline device tree.

date 2019-01-02T18:48:06Z
author patrick
files src/sys/dev/ofw/ofw_regulator.c log diff annotate
message A fixed regulator's minimum voltage attribute is called regulator-min-microvolt
instead of regulator-min-voltage.

ok kettenis@

date 2019-01-02T18:50:15Z
author patrick
files src/sys/dev/ofw/ofw_regulator.c log diff annotate
message Setting a fixed voltage regulator to the voltage it is fixed to
should not throw an error.

ok kettenis@

date 2019-01-02T19:12:10Z
author patrick
files src/sys/dev/fdt/imxccm_clocks.h log diff annotate
message Fix PCIe clock definitions.

date 2019-01-02T21:15:47Z
author patrick
files src/sys/arch/arm64/conf/GENERIC log diff annotate
src/sys/arch/arm64/conf/RAMDISK log diff annotate
src/sys/dev/i2c/abx80x.c log diff annotate
src/sys/dev/i2c/files.i2c log diff annotate
message abcrtc(4), a driver for the Abracon AB1805 RTC and similar variants.

ok kettenis@

date 2019-01-02T21:20:41Z
author anton
files src/sys/arch/amd64/stand/boot/boot.8 log diff annotate
src/sys/arch/hppa/stand/boot/boot.8 log diff annotate
src/sys/arch/i386/stand/boot/boot.8 log diff annotate
src/sys/arch/landisk/stand/boot/boot.8 log diff annotate
src/sys/arch/macppc/stand/boot.8 log diff annotate
src/sys/arch/socppc/stand/boot/boot.8 log diff annotate
message markup boot prompt commands using Ic, not Nm; ok jmc@

date 2019-01-02T23:08:35Z
author kettenis
files src/sys/arch/powerpc/powerpc/pmap.c log diff annotate
message In pmap_page_protect(), zap the PTE before unlinking. At that point the
PTED_VA_MANAGED_M flag is still set so proper MOD/REF accounting will
happen. Fixes memory corruption that would invariably happen when a
machine started swapping.

Giant cluestick from George Koehler.
ok visa@, mpi@