OpenBSD cvs log

created 2023-08-08T22:08:49Z
begin 2022-10-18T00:00:00Z
end 2022-10-25T00:00:00Z
path src/sys
commits 64

date 2022-10-18T07:04:20Z
author kn
files src/sys/dev/pci/mpii.c log diff annotate
message Document and report mpii(4) RAID 1E as such

At least the built-in controller on sparc64 T4-2 machines supports 1E from
which OpenBSD boots just fine, but bioctl(8) reports it as RAID 10:

mpii0 at pci15 dev 0 function 0 "Symbios Logic SAS2008" rev 0x03: msi
mpii0: Solana On-Board, firmware 9.0.0.0 IR, MPI 2.0
scsibus1 at mpii0: 834 targets
sd0 at scsibus1 targ 0 lun 0: <LSI, Logical Volume, 3000> naa.600508e0000000006cd1dcd59022a30a
sd0: 713824MB, 512 bytes/sector, 1461911552 sectors
root on sd0a (efde5b2c6ab7b8ac.a) swap on sd0b dump on sd0b

# bioctl mpii0
Volume Status Size Device
mpii0 0 Online 748498714112 sd0 RAID10
0 Online 500107861504 0:2.0 noencl <ATA CT500MX500SSD1>
1 Online 500107861504 0:1.0 noencl <ATA CT500MX500SSD1>
2 Online 500107861504 0:0.0 noencl <ATA CT500MX500SSD1>

mpii(4) simply munged 1E into 10.
Report it as 0x1E just like softraid(4) RAID 1C is 0x1C internally:

# ./obj/bioctl mpii0 | grep RAID
mpii0 0 Online 748498714112 sd0 RAID1E

OK jsing

date 2022-10-18T08:22:18Z
author kn
files src/sys/arch/macppc/dev/awacs.c log diff annotate
src/sys/arch/macppc/dev/i2s.c log diff annotate
src/sys/dev/audio_if.h log diff annotate
src/sys/dev/isa/ad1848.c log diff annotate
src/sys/dev/isa/ess.c log diff annotate
src/sys/dev/isa/gus.c log diff annotate
src/sys/dev/isa/sbdsp.c log diff annotate
src/sys/dev/pci/auacer.c log diff annotate
message Remove unused AUDIO_PROP_{MMAP,INDEPENDENT}

AUDIO_PROP_FULLDUPLEX is the only audio(9) in use, the other two died with
commit 1cf2860827c8ca659d8097d8da94a5ae5b888c53
Author: ratchov <[email protected]>
Date: Thu Jun 25 06:43:45 2015 +0000

Reimplement the audio driver in a simpler way, removing unused/unusable
functionality. Same API and ABI except for the removed bits and no
behaviour change for programs using libsndio. With help from armani@
and mpi@, thanks.

but remained defined and set in drivers.

and the following merely moved them when they were dead code already:

commit 9215aa3dfad387bca877a805534df6dcfe8722eb
Author: ratchov <[email protected]>
Date: Wed Aug 31 07:22:43 2016 +0000

Delete unused ioctls and associated macros. Move macros that are still
used internally by low-level drivers from sys/audioio.h to
dev/audio_if.h instead of deleting them.

None of this is used in base or ports; codesearch.debian.net only shows
AUDIO_PROP_{CAPTURE,PLAYBACK} in firefox-esr, mozjs and cubeb.

ratchov points out that audio_if.h and audioio.h are private interfaces
and the codesearch shows SunOS and NetBSD bits (#ifdef'd out on OpenBSD).

OK ratchov

date 2022-10-18T08:22:19Z
author kn
files src/sys/dev/pci/auglx.c log diff annotate
src/sys/dev/pci/auich.c log diff annotate
src/sys/dev/pci/auixp.c log diff annotate
src/sys/dev/pci/autri.c log diff annotate
src/sys/dev/pci/auvia.c log diff annotate
src/sys/dev/pci/azalia.c log diff annotate
src/sys/dev/pci/cmpci.c log diff annotate
src/sys/dev/pci/cs4280.c log diff annotate
src/sys/dev/pci/cs4281.c log diff annotate
src/sys/dev/pci/eap.c log diff annotate
src/sys/dev/pci/emuxki.c log diff annotate
src/sys/dev/pci/envy.c log diff annotate
src/sys/dev/pci/esa.c log diff annotate
src/sys/dev/pci/eso.c log diff annotate
src/sys/dev/pci/fms.c log diff annotate
src/sys/dev/pci/maestro.c log diff annotate
src/sys/dev/pci/neo.c log diff annotate
src/sys/dev/pci/sv.c log diff annotate
src/sys/dev/pci/yds.c log diff annotate
src/sys/dev/tc/bba.c log diff annotate
message Remove unused AUDIO_PROP_{MMAP,INDEPENDENT}

AUDIO_PROP_FULLDUPLEX is the only audio(9) in use, the other two died with
commit 1cf2860827c8ca659d8097d8da94a5ae5b888c53
Author: ratchov <[email protected]>
Date: Thu Jun 25 06:43:45 2015 +0000

Reimplement the audio driver in a simpler way, removing unused/unusable
functionality. Same API and ABI except for the removed bits and no
behaviour change for programs using libsndio. With help from armani@
and mpi@, thanks.

but remained defined and set in drivers.

and the following merely moved them when they were dead code already:

commit 9215aa3dfad387bca877a805534df6dcfe8722eb
Author: ratchov <[email protected]>
Date: Wed Aug 31 07:22:43 2016 +0000

Delete unused ioctls and associated macros. Move macros that are still
used internally by low-level drivers from sys/audioio.h to
dev/audio_if.h instead of deleting them.

None of this is used in base or ports; codesearch.debian.net only shows
AUDIO_PROP_{CAPTURE,PLAYBACK} in firefox-esr, mozjs and cubeb.

ratchov points out that audio_if.h and audioio.h are private interfaces
and the codesearch shows SunOS and NetBSD bits (#ifdef'd out on OpenBSD).

OK ratchov

date 2022-10-18T10:17:56Z
author kettenis
files src/sys/dev/efi/efi.h log diff annotate
message Add definitions for runtime services related to EFI variables and system
reset.

ok krw@

date 2022-10-18T15:12:13Z
author kettenis
files src/sys/arch/arm64/dev/aplcpu.c log diff annotate
message No longer match on "apple,cluster-cpufreq" compatible string.

ok miod@, kn@

date 2022-10-18T16:07:59Z
author mglocker
files src/sys/dev/i2c/ds1307.c log diff annotate
message Add support for the DS1339 RTC, like found on the PiJuice.

From Michal Mynar -- Thanks!

ok deraadt@

date 2022-10-19T07:57:49Z
author kn
files src/sys/dev/isa/ess.c log diff annotate
src/sys/dev/isa/pas.c log diff annotate
message Constify string tables

Each only used one for a printf() call in *_attach().
Seen while tweaking their *_hw_if struct.

OK gnezdo ratchov

date 2022-10-19T07:59:26Z
author kn
files src/sys/arch/arm64/dev/aplmca.c log diff annotate
message Constify audio_hw_if struct

The only driver with a non-const audio(9) struct.

OK gnezdo

date 2022-10-19T09:11:26Z
author kn
files src/sys/dev/pci/maestro.c log diff annotate
src/sys/dev/usb/uaudio.c log diff annotate
message Constify global tables only used in lookups, OK ratchov

date 2022-10-19T15:34:02Z
author kn
files src/sys/arch/luna88k/cbus/nec86.c log diff annotate
src/sys/arch/luna88k/cbus/nec86hw.c log diff annotate
src/sys/arch/luna88k/cbus/nec86hwvar.h log diff annotate
message Remove audio(9) setfd() stub

necsb(4/luna88k) is the only driver that "implements" it... through EIO.

Remove it so setfd can be removed from struct audio_hw_if.

Prodded by ratchov
OK aoyama

date 2022-10-19T19:14:16Z
author kn
files src/sys/arch/hppa/gsc/harmony.c log diff annotate
src/sys/arch/luna88k/cbus/nec86.c log diff annotate
src/sys/arch/macppc/dev/aoa.c log diff annotate
src/sys/arch/macppc/dev/awacs.c log diff annotate
src/sys/arch/macppc/dev/daca.c log diff annotate
src/sys/arch/macppc/dev/onyx.c log diff annotate
src/sys/arch/macppc/dev/snapper.c log diff annotate
src/sys/arch/macppc/dev/tumbler.c log diff annotate
src/sys/arch/sparc64/dev/ce4231.c log diff annotate
src/sys/dev/isa/ess.c log diff annotate
src/sys/dev/isa/gus.c log diff annotate
src/sys/dev/isa/pas.c log diff annotate
src/sys/dev/isa/sb.c log diff annotate
src/sys/dev/pci/auacer.c log diff annotate
src/sys/dev/pci/auglx.c log diff annotate
src/sys/dev/pci/auich.c log diff annotate
src/sys/dev/pci/auixp.c log diff annotate
src/sys/dev/pci/autri.c log diff annotate
src/sys/dev/pci/auvia.c log diff annotate
src/sys/dev/pci/azalia.c log diff annotate
src/sys/dev/pci/cmpci.c log diff annotate
src/sys/dev/pci/cs4280.c log diff annotate
src/sys/dev/pci/cs4281.c log diff annotate
src/sys/dev/pci/eap.c log diff annotate
src/sys/dev/pci/emuxki.c log diff annotate
src/sys/dev/pci/envy.c log diff annotate
src/sys/dev/pci/esa.c log diff annotate
message Use C99 struct init for struct audio_hw_if

This audio(9) struct will lose a member, but drivers init their struct quite
inconsistently, most pre-C99 style.

Use C99 style everywhere, to get rid of all annoying differences and allow
for easy member removals/additions:
- don't change current order of members
- no explicit NULL members
- no comments or blank lines
- trailing comma in last member line

GENERIC.MP builds fine with this on arm64, amd64, i386 and sparc64.

macppc and alpha build-tested by miod
OK ratchov miod

date 2022-10-19T19:14:17Z
author kn
files src/sys/dev/pci/eso.c log diff annotate
src/sys/dev/pci/fms.c log diff annotate
src/sys/dev/pci/maestro.c log diff annotate
src/sys/dev/pci/neo.c log diff annotate
src/sys/dev/pci/sv.c log diff annotate
src/sys/dev/pci/yds.c log diff annotate
src/sys/dev/sbus/cs4231.c log diff annotate
src/sys/dev/tc/bba.c log diff annotate
src/sys/dev/usb/uaudio.c log diff annotate
src/sys/dev/usb/utvfu.c log diff annotate
message Use C99 struct init for struct audio_hw_if

This audio(9) struct will lose a member, but drivers init their struct quite
inconsistently, most pre-C99 style.

Use C99 style everywhere, to get rid of all annoying differences and allow
for easy member removals/additions:
- don't change current order of members
- no explicit NULL members
- no comments or blank lines
- trailing comma in last member line

GENERIC.MP builds fine with this on arm64, amd64, i386 and sparc64.

macppc and alpha build-tested by miod
OK ratchov miod

date 2022-10-19T19:59:06Z
author kn
files src/sys/dev/audio.c log diff annotate
message Remove unused setfd member from struct audio_hw_if

All consumers now use C99 struct init and none of them sets `.setfd'.

OK ratchov miod

date 2022-10-19T19:59:07Z
author kn
files src/sys/dev/audio_if.h log diff annotate
message Remove unused setfd member from struct audio_hw_if

All consumers now use C99 struct init and none of them sets `.setfd'.

OK ratchov miod

date 2022-10-20T10:35:35Z
author mglocker
files src/sys/dev/i2c/ds1307.c log diff annotate
message Remove the single part string for DS1339, since that is only required on
sparc64 because OpenFirmware doesn't support the <vendor>,<part> compatible
pattern. We don't expect this chip to turn up on sparc64.

Suggested and ok kettenis@

date 2022-10-20T13:31:52Z
author mpi
files src/sys/uvm/uvm_vnode.c log diff annotate
src/sys/uvm/uvm_vnode.h log diff annotate
message Access to `u_flags' should be serialized by the `vmobjlock'.

This complete previous fix from gnezdo@. The uvm_vnp_sync() still
requires some love and isn't addressed by this diff.

Document which lock is protecting vnode variables.

ok gnezdo@

date 2022-10-20T15:36:47Z
author tb
files src/sys/lib/libz/compress.c log diff annotate
src/sys/lib/libz/crc32.c log diff annotate
src/sys/lib/libz/deflate.c log diff annotate
src/sys/lib/libz/deflate.h log diff annotate
src/sys/lib/libz/infback.c log diff annotate
src/sys/lib/libz/inflate.c log diff annotate
src/sys/lib/libz/inftrees.c log diff annotate
src/sys/lib/libz/inftrees.h log diff annotate
src/sys/lib/libz/trees.c log diff annotate
src/sys/lib/libz/zconf.h log diff annotate
src/sys/lib/libz/zlib.h log diff annotate
src/sys/lib/libz/zutil.c log diff annotate
src/sys/lib/libz/zutil.h log diff annotate
message Sync sys libz with base

date 2022-10-20T16:08:13Z
author kn
files src/sys/dev/acpi/asmc.c log diff annotate
message Constify global product table

Looking for .rodata candidates in /bsd .data symbols, this one popped up:
ffffffff82281b70 l O .data 0000000000001688 asmc_prods

OK jung

date 2022-10-20T18:43:35Z
author kettenis
files src/sys/arch/amd64/amd64/efi_machdep.c log diff annotate
src/sys/arch/arm64/dev/efi_machdep.c log diff annotate
message Don't attempt to use EFI runtime services on UEFI versions before 2.1.
The Dell Precision T1600 has a UEFI 2.0 implementation where calling
GetTime() accesses memory that isn't covered by a runtime mapping.
And frankly UEFI 2.0 is so ancient that we don't really want to use it
anyway.

This also adds the check to the arm64 version even though UEFI versions
before 2.4 don't have arm64 support. But for now I want to keep amd64
and arm64 code as similar as possible.

ok kn@

date 2022-10-20T20:35:57Z
author kettenis
files src/sys/dev/fdt/rktemp.c log diff annotate
message Add RK3568 support.

ok jmatthew@

date 2022-10-20T20:40:57Z
author kettenis
files src/sys/dev/acpi/amdgpio.c log diff annotate
src/sys/dev/acpi/aplgpio.c log diff annotate
src/sys/dev/acpi/bytgpio.c log diff annotate
src/sys/dev/acpi/chvgpio.c log diff annotate
src/sys/dev/acpi/glkgpio.c log diff annotate
src/sys/dev/acpi/pchgpio.c log diff annotate
message Add the hooks to disable and enable GPIO interrupts. Should fix potential
interrupt storms related to level-triggered interrupts.

ok mglocker@

date 2022-10-21T14:20:03Z
author kn
files src/sys/net/if_loop.c log diff annotate
message Grab the non-exclusive net lock to read-only traverse the interface list

Destroying lo(4) interfaces checks for other interfaces in the same
rdomain(4) first which does not modify anything, so allow other readers.

All interface ioctl(2)s currently run with the kernel lock held, so this
should not make a real difference...

OK mvs

date 2022-10-21T17:45:40Z
author kn
files src/sys/dev/ic/aic79xx.h log diff annotate
src/sys/dev/ic/aic7xxxvar.h log diff annotate
src/sys/dev/pci/ahc_pci.c log diff annotate
src/sys/dev/pci/ahd_pci.c log diff annotate
message constify global identity tables

ah{c,d}_find_pci_device() already return their members as const.

OK krw

date 2022-10-21T18:10:52Z
author deraadt
files src/sys/sys/exec.h log diff annotate
message automatically mark immutable certain regions in program&ld.so LOADs.
The large commented block in elf_load_psection explains the sitaution.
ok kettenis.

date 2022-10-21T18:10:56Z
author deraadt
files src/sys/kern/exec_elf.c log diff annotate
src/sys/kern/exec_subr.c log diff annotate
message automatically mark immutable certain regions in program&ld.so LOADs.
The large commented block in elf_load_psection explains the sitaution.
ok kettenis.

date 2022-10-21T18:11:55Z
author deraadt
files src/sys/kern/exec_subr.c log diff annotate
src/sys/kern/kern_exec.c log diff annotate
message sigaltstack() was adapted to work on mimmutable regions (an unfortunate
compromise...), but it means the stack can be marked immutable again.
ok kettenis

date 2022-10-21T18:29:37Z
author kn
files src/sys/dev/usb/uvideo.c log diff annotate
message constify quirks table

Not that big now, but quirks are likely to grow in the feature and there is
no reason to keep them writable.

OK and tested by mglocker

date 2022-10-21T18:55:42Z
author miod
files src/sys/arch/sparc64/dev/creator.c log diff annotate
src/sys/arch/sparc64/fpu/fpu.c log diff annotate
src/sys/arch/sparc64/fpu/fpu_emu.h log diff annotate
src/sys/arch/sparc64/fpu/fpu_extern.h log diff annotate
src/sys/arch/sparc64/include/cpu.h log diff annotate
src/sys/arch/sparc64/include/db_machdep.h log diff annotate
src/sys/arch/sparc64/include/frame.h log diff annotate
src/sys/arch/sparc64/include/pcb.h log diff annotate
src/sys/arch/sparc64/include/proc.h log diff annotate
src/sys/arch/sparc64/include/reg.h log diff annotate
src/sys/arch/sparc64/sparc64/db_interface.c log diff annotate
src/sys/arch/sparc64/sparc64/db_trace.c log diff annotate
src/sys/arch/sparc64/sparc64/emul.c log diff annotate
src/sys/arch/sparc64/sparc64/genassym.cf log diff annotate
src/sys/arch/sparc64/sparc64/intr.c log diff annotate
src/sys/arch/sparc64/sparc64/locore.s log diff annotate
src/sys/arch/sparc64/sparc64/machdep.c log diff annotate
src/sys/arch/sparc64/sparc64/process_machdep.c log diff annotate
src/sys/arch/sparc64/sparc64/trap.c log diff annotate
src/sys/arch/sparc64/sparc64/vm_machdep.c log diff annotate
message Remove vestigial bits of 32-bit binaries support; drop the `64' suffix in
struct names when the matching `32' flavour got removed.

Joint work with cheloha@, all bugs mine.

date 2022-10-21T19:13:31Z
author deraadt
files src/sys/kern/exec_subr.c log diff annotate
src/sys/kern/kern_exec.c log diff annotate
message the debug "name" parameter to uvm_map_immutable() is no longer needed

date 2022-10-21T19:13:32Z
author deraadt
files src/sys/uvm/uvm_map.c log diff annotate
message the debug "name" parameter to uvm_map_immutable() is no longer needed

date 2022-10-21T19:13:33Z
author deraadt
files src/sys/uvm/uvm_map.h log diff annotate
src/sys/uvm/uvm_mmap.c log diff annotate
message the debug "name" parameter to uvm_map_immutable() is no longer needed

date 2022-10-21T20:45:51Z
author deraadt
files src/sys/uvm/uvm_map.c log diff annotate
message Recent chrome renderers try to change some immutable RW region to R.
I really want immutable to not allow such transitions either, because it will
help bring code up to the highest standard.
For now, allow this for all processes, until we find out the underlying
reason.

date 2022-10-21T20:46:40Z
author deraadt
files src/sys/kern/exec_subr.c log diff annotate
message uvm_map_immutable() takes start,end, not start,end
I juggled my trees incorrectly.

date 2022-10-21T21:26:49Z
author gkoehler
files src/sys/arch/macppc/macppc/machdep.c log diff annotate
src/sys/arch/macppc/stand/Locore.c log diff annotate
src/sys/arch/macppc/stand/cache.c log diff annotate
src/sys/arch/macppc/stand/libsa.h log diff annotate
src/sys/arch/powerpc/include/cpu.h log diff annotate
src/sys/arch/powerpc64/powerpc64/syncicache.c log diff annotate
message Change len in syncicache(_, len) from int to size_t

The powerpc64 part is under #if 0, so this change affects only macppc.
Simplify powerpc64's __syncicache (which had size_t len) and copy it
to macppc's syncicache (which had int len).

macppc was looping while ((l -= CACHELINESIZE) > 0). The loop would
be infinite if l became an unsigned type like size_t. It is simpler
to set size_t i = 0, do i += by, and loop while (i < len). It helps
that dcbst and icbi can add 2 registers, from + i.

date 2022-10-21T22:42:36Z
author gkoehler
files src/sys/arch/macppc/dev/adb.c log diff annotate
src/sys/arch/macppc/dev/pm_direct.c log diff annotate
src/sys/arch/macppc/dev/pm_direct.h log diff annotate
src/sys/arch/macppc/include/cpu.h log diff annotate
src/sys/arch/macppc/macppc/machdep.c log diff annotate
src/sys/dev/adb/adb.h log diff annotate
src/sys/dev/adb/akbd.c log diff annotate
message hw.power, machdep.lidaction, machdep.pwraction for macppc

I can now use the power button to power off my macppcs running
OpenBSD. The new sysctls machdep.lidaction and machdep.pwraction act
like acpibtn(4), but we are missing code to suspend or hibernate a
macppc. Small kernels (bsd.rd) continue to ignore the power button.

adb(4) sends an environment interrupt when I unplug my PowerBook's AC
or close its lid. Rename PMU_INT_WAKEUP to PMU_INT_ENVIRONMENT like
other BSDs and Linux. Handle PMU_ENV_LID_CLOSED as a lid sensor and
PMU_ENV_AC_POWER by setting sysctl hw.power. Power buttons can either
use PMU_ENV_POWER_BUTTON or go through akbd(4); handle both kinds of
power buttons in the same way. Other models of macppc, with different
power buttons or lids, might not work yet. The lid sensor looks like,

$ sysctl hw.sensors
hw.sensors.adb0.indicator0=On (lid open)

kettenis@ warned against calling prsignal() from interrupt context,
and pointed me to task_add(9).

date 2022-10-22T00:58:56Z
author gkoehler
files src/sys/arch/powerpc/conf/files.powerpc log diff annotate
src/sys/arch/powerpc/include/trap.h log diff annotate
src/sys/arch/powerpc/powerpc/trap.c log diff annotate
src/sys/arch/powerpc/powerpc/vecast.S log diff annotate
message AltiVec assist for subnormal floats in vectors

The old CPU in a macppc traps AltiVec instructions when they encounter
denormal or subnormal floats. Emulate most of them. They operate on
vectors of 4 single-precision floats. The emulations either use
scalar operations (so vmaddfp becomes 4 of fmadds) or a formula (like
vrsqrtefp's 1 / sqrt(b) = 1 / sqrt(b * 2**126) * 2**63).

I am forgetting to emulate some instructions (at least vrfin, vrfiz,
vrfip, vrfim). If I don't emulate it, it will still cause SIGFPE.

Mac OS never emulated these instructions, but set AltiVec's "non-Java"
NJ bit (which changes all subnormal floats to zero). FreeBSD also
sets NJ; NetBSD does SIGFPE; Linux emulates them. The POWER9 running
OpenBSD/powerpc64 does them in hardware (without trapping).

ok kettenis@ miod@

date 2022-10-22T15:06:47Z
author deraadt
files src/sys/kern/exec_elf.c log diff annotate
message automatic immutable for base executable is not ready on mips
because DT_DEBUG isn't in the right place

date 2022-10-22T20:09:41Z
author miod
files src/sys/arch/sparc64/include/cpu.h log diff annotate
src/sys/arch/sparc64/include/frame.h log diff annotate
src/sys/arch/sparc64/include/reg.h log diff annotate
message Put struct rwindow back in reg.h, pcb.h depends on this.

date 2022-10-23T02:53:14Z
author deraadt
files src/sys/kern/exec_elf.c log diff annotate
message A better workaround for mips64 mimmutable problem. The problem is the
DT_DEBUG word is inside a R LOAD that gets marked immutable, but ld.so
does a mprotect RW + adjustment + mprotect R. DT_DEBUG is specified as
being inside the DYNAMIC range, solet's do all the immutables and then,
on mips64 only, turn around and make DYNAMIC mutable. That gives us
time to see if we can move DT_DEBUG or change what ld.so is doing.
discussed at length with kettenis

date 2022-10-23T03:43:03Z
author gkoehler
files src/sys/arch/macppc/dev/adb.c log diff annotate
src/sys/arch/macppc/dev/apm.c log diff annotate
message Connect macppc's power button and lid to the SUSPEND stubs

A kernel with option SUSPEND now calls gosleep() if I run zzz(8),
press the power button (when machdep.pwraction=2), or close the lid
(when machdep.lidaction=1). Because gosleep() is an empty stub, the
macppc does not really suspend; it only suspends some devices and
immediately resumes.

The interrupt from the power button or the lid needs some thread
(other than systq) to call sleep_state(). Use taskq_create(9) to
create another thread.

Add a call to device_register_wakeup(). Without this call,
sleep_state() does nothing.

ok kettenis@ deraadt@

date 2022-10-23T06:00:23Z
author tb
files src/sys/lib/libz/adler32.c log diff annotate
src/sys/lib/libz/compress.c log diff annotate
src/sys/lib/libz/crc32.c log diff annotate
src/sys/lib/libz/crc32.h log diff annotate
src/sys/lib/libz/deflate.c log diff annotate
src/sys/lib/libz/deflate.h log diff annotate
src/sys/lib/libz/infback.c log diff annotate
src/sys/lib/libz/inffast.c log diff annotate
src/sys/lib/libz/inffast.h log diff annotate
src/sys/lib/libz/inffixed.h log diff annotate
message Drop RCS ids in upstream zlib source

We're not maintaining a this as a fork, it's upstream source with a handful
of patches. Thus, the RCS ids aren't particularly useful or important. They
are a bit of a maintenance burden and generate noise in diffs.

ok kn, no objection millert, "kill" guess who

date 2022-10-23T06:00:24Z
author tb
files src/sys/lib/libz/inflate.c log diff annotate
src/sys/lib/libz/inflate.h log diff annotate
src/sys/lib/libz/inftrees.c log diff annotate
src/sys/lib/libz/inftrees.h log diff annotate
src/sys/lib/libz/trees.c log diff annotate
src/sys/lib/libz/trees.h log diff annotate
src/sys/lib/libz/zconf.h log diff annotate
src/sys/lib/libz/zlib.h log diff annotate
src/sys/lib/libz/zutil.c log diff annotate
src/sys/lib/libz/zutil.h log diff annotate
message Drop RCS ids in upstream zlib source

We're not maintaining a this as a fork, it's upstream source with a handful
of patches. Thus, the RCS ids aren't particularly useful or important. They
are a bit of a maintenance burden and generate noise in diffs.

ok kn, no objection millert, "kill" guess who

date 2022-10-23T08:00:10Z
author kn
files src/sys/arch/macppc/dev/pm_direct.c log diff annotate
message Constify send/receive command tables

Both only used for printf calls.

OK gkoehler

date 2022-10-23T13:45:32Z
author kettenis
files src/sys/dev/pci/if_bwfm_pci.c log diff annotate
message Bump tsleep timeout. For some reason the first attempt to load the firmware
sometimes fails. This happens more often on M2 laptops that also need to
load the touchpad firmware. Smells like we have some sort of thundering herd
at mountroot time which makes this take more time.

ok patrick@

date 2022-10-23T14:39:19Z
author krw
files src/sys/dev/vnd.c log diff annotate
src/sys/dev/ata/wd.c log diff annotate
src/sys/scsi/sd.c log diff annotate
message bzero(disklabel) or memset(disklabel,0) should be enough for
anyone. No need to also set d_flags to 0.

date 2022-10-23T18:43:00Z
author mglocker
files src/sys/arch/arm64/conf/GENERIC log diff annotate
src/sys/dev/i2c/files.i2c log diff annotate
src/sys/dev/i2c/pijuice.c log diff annotate
message Initial apm/sensor driver for the PiJuice HAT UPS, to feedback battery
status information.

ok deraadt@

date 2022-10-23T19:33:39Z
author krw
files src/sys/arch/octeon/dev/amdcf.c log diff annotate
src/sys/arch/octeon/dev/octcf.c log diff annotate
message bzero(disklabel) or memset(disklabel,0) should be enough for
anyone. No need to also set d_flags to 0.

date 2022-10-23T22:15:45Z
author tobhe
files src/sys/arch/arm64/dev/apldma.c log diff annotate
message Make sure driver is attached before allocating a channel. Fixes a crash on
M2 Macbook Air with a newer device tree where aplaudio tries to allocate a
channel after apldma_attach() failed.

ok kettenis@

date 2022-10-23T23:39:41Z
author guenther
files src/sys/arch/sparc64/sparc64/machdep.c log diff annotate
message Fix a misleading comment

ok miod@ kettenis@

date 2022-10-24T00:56:33Z
author cheloha
files src/sys/arch/amd64/amd64/tsc.c log diff annotate
src/sys/arch/amd64/include/specialreg.h log diff annotate
message tsc: AMD Family 17h, 19h: compute frequency from Core::X86::Msr:PStateDef

Compute the TSC frequency on AMD family 17h and 19h CPUs using the
PStateDef MSRs.

Link 1: https://marc.info/?l=openbsd-tech&m=166394236029484&w=2
Link 2: https://marc.info/?l=openbsd-tech&m=166446065916283&w=2
Test list: https://marc.info/?l=openbsd-tech&m=166646389821326&w=2

Reviewed by kettenis@ using the AMD documents cited in the comments.
Maybe reviewed by mlarkin@? I can't remember. He seemed supportive
of the idea at least.

ok kettenis@

date 2022-10-24T04:28:01Z
author mglocker
files src/sys/dev/i2c/pijuice.c log diff annotate
message Fix comment; sconds -> seconds

date 2022-10-24T04:54:47Z
author jsg
files src/sys/dev/pci/pcidevs log diff annotate
message add AMD family 17h model 90h (Van Gogh) ids

based on bentley's Steam Deck dmesg; can't find any documentation
ok bentley@

date 2022-10-24T04:55:20Z
author jsg
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2022-10-24T04:57:29Z
author jsg
files src/sys/dev/pci/ccp_pci.c log diff annotate
message match AMD family 17h model 90h CCP
tested by and ok bentley@

date 2022-10-24T05:54:55Z
author jsg
files src/sys/dev/pci/pcidevs log diff annotate
message add Intel 700 Series PCH ids

from: Intel 700 Series Chipset Family Platform Controller Hub
Datasheet, Volume 1 of 2. Doc. No.: 743835

date 2022-10-24T05:55:32Z
author jsg
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2022-10-24T05:57:58Z
author jsg
files src/sys/dev/pci/dwiic_pci.c log diff annotate
src/sys/dev/pci/ichiic.c log diff annotate
src/sys/dev/pci/pucdata.c log diff annotate
message match on Intel 700 Series

date 2022-10-24T05:59:17Z
author jsg
files src/sys/dev/pci/azalia.c log diff annotate
message enable snooping on Intel 700 Series

date 2022-10-24T06:10:25Z
author jsg
files src/sys/dev/pci/pcidevs log diff annotate
message include "600 Series" in 600 Series strings
missed in rev 1.1980

date 2022-10-24T06:11:00Z
author jsg
files src/sys/dev/pci/pcidevs.h log diff annotate
message regen

date 2022-10-24T06:11:01Z
author jsg
files src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2022-10-24T09:12:09Z
author jsg
files src/sys/dev/pci/pcidevs log diff annotate
message add AMD Mendocino/Radeon 610M graphics id

family 17h model A0h, Ryzen and Athlon 7020 Series:
Ryzen 5 7520U
Ryzen 3 7320U
Athlon Gold 7220U
Athlon Silver 7120U

gfx1037/GC 10.3.7/DCN 3.1.6 ?

date 2022-10-24T09:12:59Z
author jsg
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2022-10-24T15:11:56Z
author deraadt
files src/sys/uvm/uvm_map.c log diff annotate
message uvm_unmap_remove() traverses the entries in the start,end range scanning
for IMMUTABLE, before traversing for unmap. I didn't copy enough traversal
code for the scan, and thus MAP_FIXED was subtly broken.
test help from tb, ok kettenis miod