CVS: cvs.openbsd.org: www

2022-12-05 Thread T . J . Townsend
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2022/12/05 19:54:45

Modified files:
build  : mirrors.dat 

Log message:
add mtl2.ca to the list of leaseweb nodes



CVS: cvs.openbsd.org: src

2022-12-05 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/12/05 19:12:05

Modified files:
lib/libcrypto/man: BN_GF2m_add.3 

Log message:
arithmethic -> arithmetic



CVS: cvs.openbsd.org: src

2022-12-05 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2022/12/05 18:56:44

Modified files:
sys/arch/i386/i386: acpi_machdep.c apm.c cpu.c lapic.c 
sys/arch/i386/isa: clock.c 
sys/arch/i386/include: cpu.h _types.h 

Log 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=166776370803446=2

ok mlarkin@



CVS: cvs.openbsd.org: src

2022-12-05 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2022/12/05 18:19:35

Modified files:
sys/arch/sh/include: cpu.h _types.h 
sys/arch/sh/sh : clock.c 

Log message:
sh, landisk: switch to clockintr

Patch review and testing by miod@.

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

ok mlarkin@, probably ok miod@



CVS: cvs.openbsd.org: src

2022-12-05 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2022/12/05 17:56:52

Modified files:
sys/arch/luna88k/luna88k: clock.c machdep.c 
sys/arch/m88k/include: cpu.h _types.h 

Log 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=166776371203450=2

ok aoyama@ mlarkin@



CVS: cvs.openbsd.org: src

2022-12-05 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2022/12/05 17:40:09

Modified files:
sys/arch/hppa/dev: clock.c cpu.c 
sys/arch/hppa/include: cpu.h _types.h 

Log 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@



CVS: cvs.openbsd.org: src

2022-12-05 Thread Jeremie Courreges-Anglas
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/12/05 17:11:23

Modified files:
sys/arch/riscv64/riscv64: machdep.c sbi.c 

Log message:
Print SBI vendor, version and implemented spec version

On my Unmatched:

SBI: OpenSBI v0.9, SBI Specification Version 0.2

ok mlarkin@



CVS: cvs.openbsd.org: src

2022-12-05 Thread Jeremie Courreges-Anglas
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/12/05 17:08:38

Modified files:
sys/arch/riscv64/include: asm.h 

Log message:
Drop unused WEAK_REFERENCE macro

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



CVS: cvs.openbsd.org: src

2022-12-05 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2022/12/05 16:18:37

Modified files:
sys/kern   : exec_elf.c exec_subr.c kern_bufq.c 
 kern_descrip.c kern_exit.c kern_ktrace.c 
 kern_pledge.c kern_sched.c kern_sensors.c 
 kern_tc.c kern_time.c kern_timeout.c 
 kern_unveil.c kern_xxx.c makesyscalls.sh 
 sched_bsd.c spec_vnops.c subr_extent.c 
 sys_pipe.c sys_process.c uipc_syscalls.c 
 uipc_usrreq.c vfs_getcwd.c 

Log message:
zap a pile of dangling tabs



CVS: cvs.openbsd.org: src

2022-12-05 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/12/05 16:14:03

Modified files:
share/man/man3 : dlfcn.3 

Log message:
make all lists non -compact, to keep spacing consistent;
from brad
ok jca

while here knock out the resulting unnecessary Pp and wrap some
long lines



CVS: cvs.openbsd.org: src

2022-12-05 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2022/12/05 14:02:52

Modified files:
usr.sbin/rpki-client: version.h 

Log message:
Prep for rpki-client 8.2



CVS: cvs.openbsd.org: src

2022-12-05 Thread Andrew Fresh
CVSROOT:/cvs
Module name:src
Changes by: afre...@cvs.openbsd.org 2022/12/05 13:12:00

Modified files:
etc: netstart 
distrib/miniroot: install.sub 
share/man/man5 : hostname.if.5 

Log message:
Add support configuring hostname.if(5) by lladdr

Original implementation by martijn@
Feedback and suggestions from kn@, sthen@, claudio@, florian@, and deraadt@.

ok deraadt



CVS: cvs.openbsd.org: xenocara

2022-12-05 Thread Mark Kettenis
CVSROOT:/cvs
Module name:xenocara
Changes by: kette...@cvs.openbsd.org2022/12/05 09:41:17

Modified files:
driver/xf86-video-amdgpu/src: amdgpu_kms.c drmmode_display.c 
  drmmode_display.h 

Log message:
Add kqueue(2) support such that the amdgpu Xorg driver notices events
signalled by the kernel driver.  This makes sure xbacklight(1) will report
the right display brightness if it is changed by using the brightness keys
on the keyboard or through wsconsctl(8).

ok jsg@, matthieu@



CVS: cvs.openbsd.org: src

2022-12-05 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/12/05 07:43:06

Modified files:
regress/lib/libssl/rust-openssl: Makefile 

Log message:
Unbreak rust-openssl-tests on sparc64

For the test compilation using the CC crate, base clang is good enough,
so we don't need to pull in another heavy dependency just for this test.



CVS: cvs.openbsd.org: src

2022-12-05 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2022/12/05 04:50:11

Modified files:
usr.sbin/bgpctl: ometric.c 

Log message:
Revert and adjust the changes in ometric_set_state() from last commit.
Calling ometric_set_int_with_labels() for a state metric fails because
there is a check in ometric_set_int comparing the type.
Use olabels_add_extras() and ometric_set_int_value() instead.



CVS: cvs.openbsd.org: src

2022-12-05 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2022/12/05 01:59:28

Modified files:
sys/arch/mips64/mips64: clock.c ipifuncs.c 

Log message:
Use evcount_percpu() with mips64 clock and ipi interrupt counters.

OK jca@ cheloha@



CVS: cvs.openbsd.org: src

2022-12-05 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2022/12/05 01:58:49

Modified files:
sys/kern   : subr_evcount.c 

Log message:
Avoid event counter re-insert in evcount_percpu()

This fixes evcount_list corruption that happened when evcount_percpu()
was called after evcount_init_percpu().

OK jca@ cheloha@ jmatthew@