OpenBSD cvs log

created 2022-12-11T09:06:32Z
begin 2022-12-06T00:00:00Z
end 2022-12-07T00:00:00Z
path src/sys
commits 13

date 2022-12-06T00:08:38Z
author jca
files src/sys/arch/riscv64/include/asm.h log diff annotate
message Drop unused WEAK_REFERENCE macro

Probably coming from FreeBSD. We already have WEAK_ALIAS a few lines
above. ok mlarkin@ guenther@

date 2022-12-06T00:11:23Z
author jca
files src/sys/arch/riscv64/riscv64/machdep.c log diff annotate
src/sys/arch/riscv64/riscv64/sbi.c log diff annotate
message Print SBI vendor, version and implemented spec version

On my Unmatched:

SBI: OpenSBI v0.9, SBI Specification Version 0.2

ok mlarkin@

date 2022-12-06T00:40:09Z
author cheloha
files src/sys/arch/hppa/dev/clock.c log diff annotate
src/sys/arch/hppa/dev/cpu.c log diff annotate
src/sys/arch/hppa/include/_types.h log diff annotate
src/sys/arch/hppa/include/cpu.h log diff annotate
message hppa: switch to clockintr

- Remove hppa-specific clock interrupt scheduling bits from cpu_info.
- Rename cpu_hardclock() to itmr_intr(); it doesn't exclusively run
hardclock(9) anymore.
- Wire up itmr_intrclock.

hppa now has a randomized statclock(), stathz = hz.

Patch help, testing, and review from kettenis@ (B2000) and miod@ (C3650).
MP testing from guenther@ (dual-core J6700).

ok mlarkin@ kettenis@, "Ship it?" guenther@

date 2022-12-06T00:56:52Z
author cheloha
files src/sys/arch/luna88k/luna88k/clock.c log diff annotate
src/sys/arch/luna88k/luna88k/machdep.c log diff annotate
src/sys/arch/m88k/include/_types.h log diff annotate
src/sys/arch/m88k/include/cpu.h log diff annotate
message m88k, luna88k: switch to clockintr

- Initialize tick_nsec during cpu_initclocks()

We have no control over the interrupt clock on luna88k, so this switch
is trivial.

Bringup help and testing from aoyama@ and miod@.

Link: https://marc.info/?l=openbsd-tech&m=166776371203450&w=2

ok aoyama@ mlarkin@

date 2022-12-06T01:19:35Z
author cheloha
files src/sys/arch/sh/include/_types.h log diff annotate
src/sys/arch/sh/include/cpu.h log diff annotate
src/sys/arch/sh/sh/clock.c log diff annotate
message sh, landisk: switch to clockintr

Patch review and testing by miod@.

Link: https://marc.info/?l=openbsd-tech&m=166776412003652&w=2

ok mlarkin@, probably ok miod@

date 2022-12-06T01:56:43Z
author cheloha
files src/sys/arch/i386/i386/acpi_machdep.c log diff annotate
message i386: switch to clockintr

In lapic timer mode:

- Rip out lapic_delay(). We can't use the lapic timer to delay(9) when
it's running in one-shot mode.
- Add a randomized statclock(), stathz = hz.
- Add profiling support, profhz = stathz * 10.
- Wire up lapic_intrclock.

In i8254-mode:

- i8254's clockintr() does not have a monopoly on hardclock(9).
- mc146818's rtcintr() does not have a monopoly on statclock().
- In profiling mode, the statclock() will drift very slightly
because (profhz = 1024) does not divide into 1 billion. Need to
consider how best to fix this.

ACPI suspend/resume tested by mlarkin@ via ESXi. Tons of testing by
Scott Bennett on a Pentium 4 machine; APM suspend/resume confirmed to
work there, too.

Link: https://marc.info/?l=openbsd-tech&m=166776370803446&w=2

ok mlarkin@

date 2022-12-06T01:56:44Z
author cheloha
files src/sys/arch/i386/i386/apm.c log diff annotate
src/sys/arch/i386/i386/cpu.c log diff annotate
src/sys/arch/i386/i386/lapic.c log diff annotate
src/sys/arch/i386/include/_types.h log diff annotate
src/sys/arch/i386/include/cpu.h log diff annotate
src/sys/arch/i386/isa/clock.c log diff annotate
message i386: switch to clockintr

In lapic timer mode:

- Rip out lapic_delay(). We can't use the lapic timer to delay(9) when
it's running in one-shot mode.
- Add a randomized statclock(), stathz = hz.
- Add profiling support, profhz = stathz * 10.
- Wire up lapic_intrclock.

In i8254-mode:

- i8254's clockintr() does not have a monopoly on hardclock(9).
- mc146818's rtcintr() does not have a monopoly on statclock().
- In profiling mode, the statclock() will drift very slightly
because (profhz = 1024) does not divide into 1 billion. Need to
consider how best to fix this.

ACPI suspend/resume tested by mlarkin@ via ESXi. Tons of testing by
Scott Bennett on a Pentium 4 machine; APM suspend/resume confirmed to
work there, too.

Link: https://marc.info/?l=openbsd-tech&m=166776370803446&w=2

ok mlarkin@

date 2022-12-06T16:06:32Z
author kettenis
files src/sys/arch/arm64/dev/apliic.c log diff annotate
message For write operations, wait until the transaction completes just like we
do after sending the command for a read operation. Fixes issues with doing
multiple operations back-to-back.

ok patrick@

date 2022-12-06T16:07:14Z
author kettenis
files src/sys/arch/arm64/dev/aplpinctrl.c log diff annotate
message Implement support for shared interrupts.

ok patrick@

date 2022-12-06T18:50:59Z
author guenther
files src/sys/arch/luna88k/luna88k/locore.S log diff annotate
src/sys/arch/luna88k/luna88k/locore0.S log diff annotate
src/sys/arch/luna88k/stand/boot/locore.S log diff annotate
src/sys/arch/m88k/include/asm.h log diff annotate
src/sys/arch/m88k/m88k/atomic.S log diff annotate
src/sys/arch/m88k/m88k/eh_common.S log diff annotate
src/sys/arch/m88k/m88k/process.S log diff annotate
src/sys/arch/m88k/m88k/subr.S log diff annotate
message _C_LABEL() and _ASM_LABEL() are no longer useful in the "everything
is ELF" world. Eliminate use of them in m88k code.

ok aoyama@

date 2022-12-06T18:51:00Z
author guenther
files src/sys/lib/libkern/arch/m88k/bzero.S log diff annotate
src/sys/lib/libkern/arch/m88k/copy_subr.S log diff annotate
message _C_LABEL() and _ASM_LABEL() are no longer useful in the "everything
is ELF" world. Eliminate use of them in m88k code.

ok aoyama@

date 2022-12-06T22:19:39Z
author mvs
files src/sys/netinet/in.c log diff annotate
src/sys/netinet6/in6.c log diff annotate
message Add missing kernel lock around (*if_ioctl)() call within
in{,6}_addmulti(). Since kernel lock is no more taken while following
setsockopt() path, it should be taken in this place. Corresponding
in{,6}_delmulti() already acquire kernel lock around (*if_ioctl)().

Problem reported and diff tested by weerd@

ok kn@ bluhm@

date 2022-12-06T23:18:54Z
author kettenis
files src/sys/arch/arm64/dev/rtkit.c log diff annotate
message Add support for additional RTKit endpoint advertised by NVMe firmware that
comes with newer macOS releases.

ok patrick@