openbsd
2 years agoRemove unused audio(9) get_props()/AUDIO_PROP_FULLDUPLEX
kn [Fri, 28 Oct 2022 15:13:59 +0000 (15:13 +0000)]
Remove unused audio(9) get_props()/AUDIO_PROP_FULLDUPLEX

All audio drivers have been cleaned up and, if needed, now check for duplex
mode in their open() handler.

OK ratchov miod

2 years agoReplace audio(9) get_props() with duplex check in open() in non-duplex drivers
kn [Fri, 28 Oct 2022 15:09:45 +0000 (15:09 +0000)]
Replace audio(9) get_props() with duplex check in open() in non-duplex drivers

Make drivers which do *not* adverise AUDIO_PROP_FULLDPLEX return ENXIO
in their open() if full-duplex mode was requested.

This way, sys/dev/audio.c:audio_open() will fail immediately rather than
later through the to-be-removed get_props() check.

These are all drivers which simply don't support full-duplex mode.

In device-tree based drivers like simpleaudio(4)/rkiis(4) and newer Apple
ones like aplaudio(4)/aplmca(4), this adds a new open() stub to the
low-level drivers which merely does the duplex check.

My Pinebook Pro keeps playing audio and recording silence with this diff
just like before (rkiis(4) is currently play-only):
simpleaudio0 at mainbus0
simpleaudio1 at mainbus0
audio0 at simpleaudio1

$ aucat -i song69.wav -o rec.wav

OK ratchov miod

2 years agoAdd DT_MIPS_RLD_MAP_REL support to the in-tree GDB.
kettenis [Fri, 28 Oct 2022 15:09:39 +0000 (15:09 +0000)]
Add DT_MIPS_RLD_MAP_REL support to the in-tree GDB.

ok deraadt@

2 years agoImplement DT_MIPS_RLD_MAP_REL support and add such an entry to PIE
kettenis [Fri, 28 Oct 2022 15:08:59 +0000 (15:08 +0000)]
Implement DT_MIPS_RLD_MAP_REL support and add such an entry to PIE
executables.

ok deraadt@

2 years agoImplement support for DT_MIPS_RLD_MAP_REL.
kettenis [Fri, 28 Oct 2022 15:07:25 +0000 (15:07 +0000)]
Implement support for DT_MIPS_RLD_MAP_REL.

ok deraadt@

2 years agoRemove audio(9) get_props() from record-only drivers
kn [Fri, 28 Oct 2022 15:02:20 +0000 (15:02 +0000)]
Remove audio(9) get_props() from record-only drivers

utvfu(4) seems to be the only driver that currently supports recording but
not playing and its open() already returns ENXIO when playing is requested,
so no need to add another duplex check after get_props() is gone.

OK ratchov miod

2 years agoReplace audio(9) get_props() with duplex check in open() in partial duplex drivers
kn [Fri, 28 Oct 2022 14:55:46 +0000 (14:55 +0000)]
Replace audio(9) get_props() with duplex check in open() in partial duplex drivers

Make drivers which do *not* adverise AUDIO_PROP_FULLDPLEX return ENXIO
in their open() if full-duplex mode was requested.

This way, sys/dev/audio.c:audio_open() will fail immediately rather than
later through the to-be-removed get_props() check.

This is the first round for drivers with logic in their get_props(), i.e.
those that only support full-duplex mode for specific hardware:

ess(4), gus(4), pas(4) and sb(4)

All of these are i386/GENERIC only and share code through
sys/dev/isa/{ad1848,sbdsp}{.c,var.h} which are not used by any other kernel.

i386/GENERIC.MP builds and boots with this diff.
OK ratchov miod

2 years agoAdd paste-buffer-deleted notification and fix name of paste-buffer-changed.
nicm [Fri, 28 Oct 2022 13:00:02 +0000 (13:00 +0000)]
Add paste-buffer-deleted notification and fix name of paste-buffer-changed.

2 years agoDo not send focus sequences when reporting is enabled, matches other
nicm [Fri, 28 Oct 2022 12:20:28 +0000 (12:20 +0000)]
Do not send focus sequences when reporting is enabled, matches other
terminals behaviour.

2 years agogetopt optstring doesn't need '?'.
dlg [Fri, 28 Oct 2022 11:24:49 +0000 (11:24 +0000)]
getopt optstring doesn't need '?'.

found while hacking up a comp3301 prac/assignment
ok millert@ deraadt@

2 years agoput sshkey_check_rsa_length() back in sshkey.c to unbreak
djm [Fri, 28 Oct 2022 02:47:04 +0000 (02:47 +0000)]
put sshkey_check_rsa_length() back in sshkey.c to unbreak
OPENSSL=no builds

2 years agoallow ssh-keyscan(1) to accept CIDR address ranges, e.g.
djm [Fri, 28 Oct 2022 02:29:34 +0000 (02:29 +0000)]
allow ssh-keyscan(1) to accept CIDR address ranges, e.g.
ssh-keyscan 192.168.0.0/24

If a CIDR range is passed, then it will be expanded to all possible
addresses in the range including the all-0s and all-1s addresses.

bz#976 feedback/ok markus@

2 years agorefactor sshkey_private_deserialize
djm [Fri, 28 Oct 2022 00:44:44 +0000 (00:44 +0000)]
refactor sshkey_private_deserialize

feedback/ok markus@

2 years agorefactor sshkey_private_serialize_opt()
djm [Fri, 28 Oct 2022 00:44:17 +0000 (00:44 +0000)]
refactor sshkey_private_serialize_opt()

feedback/ok markus@

2 years agorefactor certify
djm [Fri, 28 Oct 2022 00:43:30 +0000 (00:43 +0000)]
refactor certify

feedback/ok markus@

2 years agorefactor sshkey_sign() and sshkey_verify()
djm [Fri, 28 Oct 2022 00:43:08 +0000 (00:43 +0000)]
refactor sshkey_sign() and sshkey_verify()

feedback/ok markus@

2 years agorefactor sshkey_from_blob_internal()
djm [Fri, 28 Oct 2022 00:41:52 +0000 (00:41 +0000)]
refactor sshkey_from_blob_internal()

feedback/ok markus@

2 years agorefactor sshkey_from_private()
djm [Fri, 28 Oct 2022 00:41:17 +0000 (00:41 +0000)]
refactor sshkey_from_private()

feedback/ok markus@

2 years agofactor out key generation
djm [Fri, 28 Oct 2022 00:39:29 +0000 (00:39 +0000)]
factor out key generation

feedback/ok markus@

2 years agorefactor and simplify sshkey_read()
djm [Fri, 28 Oct 2022 00:38:58 +0000 (00:38 +0000)]
refactor and simplify sshkey_read()

feedback/ok markus@

2 years agofactor out public key serialization
djm [Fri, 28 Oct 2022 00:37:24 +0000 (00:37 +0000)]
factor out public key serialization

feedback/ok markus@

2 years agofactor out sshkey_equal_public()
djm [Fri, 28 Oct 2022 00:36:31 +0000 (00:36 +0000)]
factor out sshkey_equal_public()

feedback/ok markus@

2 years agobegin big refactor of sshkey
djm [Fri, 28 Oct 2022 00:35:40 +0000 (00:35 +0000)]
begin big refactor of sshkey

Move keytype data and some of the type-specific code (allocation,
cleanup, etc) out into each key type's implementation. Subsequent
commits will move more, with the goal of having each key-*.c file
owning as much of its keytype's implementation as possible.

lots of feedback + ok markus@

2 years agoIn dynamic binaries, AUX_base is the ld.so address. In static PIE binaries,
deraadt [Thu, 27 Oct 2022 23:17:18 +0000 (23:17 +0000)]
In dynamic binaries, AUX_base is the ld.so address.  In static PIE binaries,
it is the base of the binary itself.  Repair of this comment does not undo
the hair pulling that happened today.
ok guenther

2 years agoUnfortunately there are still ugly text-relocation binaries in the wild.
deraadt [Thu, 27 Oct 2022 22:48:17 +0000 (22:48 +0000)]
Unfortunately there are still ugly text-relocation binaries in the wild.
Libraries are less of a concern, because ld.so can fix them in the right
order.  So we must scan DYNAMIC for the TEXTREL marker, and not make
X LOADs immutable.  ld.so will apply changes to the text segment.  In
upcoming diff, crt0 and ld.so will then apply immutability.
ok kettenis

2 years agohppa and mips64 have private copies of RCRT0_RELRO(), which should
deraadt [Thu, 27 Oct 2022 19:40:21 +0000 (19:40 +0000)]
hppa and mips64 have private copies of RCRT0_RELRO(), which should
also perform mimmutable()
ok guenther

2 years agoVMCMD_SYSCALL cannot be incorporated into flags variable, because flags
deraadt [Thu, 27 Oct 2022 16:01:18 +0000 (16:01 +0000)]
VMCMD_SYSCALL cannot be incorporated into flags variable, because flags
is inspected narrowly for base address later.
ok kettenis

2 years agoPrint the pid in some additional debug messages to be able to match them
claudio [Thu, 27 Oct 2022 13:24:22 +0000 (13:24 +0000)]
Print the pid in some additional debug messages to be able to match them
with the fork messages.
OK tb@

2 years agoMatch ure(4) on Windows Dev Kit 2023
patrick [Thu, 27 Oct 2022 13:21:14 +0000 (13:21 +0000)]
Match ure(4) on Windows Dev Kit 2023

ok jsg@

2 years agoregen
patrick [Thu, 27 Oct 2022 13:20:16 +0000 (13:20 +0000)]
regen

2 years agoAdd USB device id for integrated ure(4) on Windows Dev Kit 2023
patrick [Thu, 27 Oct 2022 13:19:42 +0000 (13:19 +0000)]
Add USB device id for integrated ure(4) on Windows Dev Kit 2023

ok jsg@

2 years agoUpdate libexpat to 2.5.0. This fixes CVE-2022-43680. Relevant for
bluhm [Thu, 27 Oct 2022 12:58:37 +0000 (12:58 +0000)]
Update libexpat to 2.5.0.  This fixes CVE-2022-43680.  Relevant for
OpenBSD are security fixes #616 #649 #650 and bug fixes #612 #645
#613 #654 #616 #652 #653.  No library bump necessary.
OK tb@

2 years agosync
deraadt [Thu, 27 Oct 2022 04:12:09 +0000 (04:12 +0000)]
sync

2 years agoEnable waitid(2) regress tests and a new test derived from NetBSD's
kettenis [Wed, 26 Oct 2022 23:18:01 +0000 (23:18 +0000)]
Enable waitid(2) regress tests and a new test derived from NetBSD's
wait6(2) tests.

ok millert@, deraadt@

2 years agoAdd waitid(2) syscall stub.
kettenis [Wed, 26 Oct 2022 23:16:24 +0000 (23:16 +0000)]
Add waitid(2) syscall stub.

Minor bump to both libc and libpthread: make sure you install a new kernel!

ok millert@, deraadt@

2 years agodtlstest: Ensure the timeouts are at least 10 ms. This makes these tests
tb [Wed, 26 Oct 2022 20:31:38 +0000 (20:31 +0000)]
dtlstest: Ensure the timeouts are at least 10 ms. This makes these tests
a bit less flaky if the machine is otherwise under load.

from jsing

2 years agoMake audio(9) get_props() optional, remove it from duplex drivers
kn [Wed, 26 Oct 2022 20:19:06 +0000 (20:19 +0000)]
Make audio(9) get_props() optional, remove it from duplex drivers

The property bits of audio(9) are obsolete and ought to be removed
completely.

sys/dev/audio.c:audio_open() currently uses get_props() to bail out if
read *and* write was requested on a non-duplex driver.

Drivers that currently support playing but not recording need adjustment
before the API can be cleaned up.

Drivers that advertise themselves as full duplex, i.e. those that always
return AUDIO_PROP_FULLDUPLEX unconditionally in their get_props() currently
always succeed this check.

As this is the only property, losen audio_open()'s DIAGNOSTIC check and only
do the duplex check if the driver provides get_props().

This allows for simple removal of get_props() from full-duplex drivers
without adding any other code or without changing functionality.

This includes all audio drivers under sys/dev/pci/ (maestro(4) being the
only unfinished exception here).

Other drivers as well as the API change can then follow in smaller diffs.

This builds on amd64, arm64, i386, macppc and sparc64.
amd64 with azalia(4) still plays, records as well as plays and records
at the same time on my X230 as tested with

        $ aucat -i play.wav [-o rec.wav]

alpha and hppa tests by miod
OK ratchov miod

2 years agoLimit wireguard peers listing to -A or wg-interface
kn [Wed, 26 Oct 2022 17:06:31 +0000 (17:06 +0000)]
Limit wireguard peers listing to -A or wg-interface

ifconfig(8) output can get too long when always printing `wgpeers' for all
wg(4) interfaces, so omit it output is requested and/or output is limited
to the interface group "wg" or a specific interface "wgX".

No install media size change as wireguard code is under #ifndef SMALL.

Diff from Mikolaj Kucharski <mikolaj AT kucharski DOT name>
makes Hrvoje Popovski happy
manual bits from jmc
OK sthen

2 years agoConstify device table
kn [Wed, 26 Oct 2022 16:07:28 +0000 (16:07 +0000)]
Constify device table

OK jcs

2 years agoConstify battery check table
kn [Wed, 26 Oct 2022 16:06:42 +0000 (16:06 +0000)]
Constify battery check table

OK jcs

2 years agoFix handling of PGIDs in wait4(2) that I broke with the previous commit.
kettenis [Wed, 26 Oct 2022 13:31:06 +0000 (13:31 +0000)]
Fix handling of PGIDs in wait4(2) that I broke with the previous commit.

ok anton@, millert@

2 years agocompress: fix minor TOCTOU when checking for existing file
millert [Wed, 26 Oct 2022 00:40:40 +0000 (00:40 +0000)]
compress: fix minor TOCTOU when checking for existing file
Use open(2) + fstat(2) instead of stat(2) + open(2).  The file open
code has been moved into its own functions so it can be shared
between docompress() and dodecompress().

2 years agoMake the floating-point computations a sligthly teeny bit more complex (but
miod [Tue, 25 Oct 2022 19:55:31 +0000 (19:55 +0000)]
Make the floating-point computations a sligthly teeny bit more complex (but
real), to prevent llvm panzers from optimizing too aggressively and generating
code which does not touch the slightest floating point register on some
platforms.

ok otto@

2 years agoCalculate approx. battery re-charge time.
mglocker [Tue, 25 Oct 2022 19:32:18 +0000 (19:32 +0000)]
Calculate approx. battery re-charge time.

2 years agoStore mod/ref flags using md pg_flags values rather than a specific field in
miod [Tue, 25 Oct 2022 18:44:36 +0000 (18:44 +0000)]
Store mod/ref flags using md pg_flags values rather than a specific field in
vm_page_md, which allows this struct to shrink a bit.

2 years agoInitialize context before testing it.
nicm [Tue, 25 Oct 2022 17:53:31 +0000 (17:53 +0000)]
Initialize context before testing it.

2 years agotrim DESCRIPTION
kn [Tue, 25 Oct 2022 17:10:13 +0000 (17:10 +0000)]
trim DESCRIPTION

- just call it (a sh(1)) script, in line with MAKEDEV(8) and rc.d(8)
- use only .Nm thereafter instead of .Nm/the .Nm script/...
- zap the additional rc.conf(8) bits for they can be found in this manual
- zap unhelpful "(or can be)"

Feedback OK jmc

2 years agoMove CLOCKS_PER_SEC to sys/_time.h so the kernel has access to it.
millert [Tue, 25 Oct 2022 16:30:30 +0000 (16:30 +0000)]
Move CLOCKS_PER_SEC to sys/_time.h so the kernel has access to it.
This will be used in waitid(2) to set si_utime and si_stime.
The definition of struct timespec also moves from time.h to sys/_time.h
for struct itimerspec.  OK kettenis@

2 years agoregen
kettenis [Tue, 25 Oct 2022 16:11:29 +0000 (16:11 +0000)]
regen

2 years agomplement waitid(2) which is now part of POSIX and used by mozilla.
kettenis [Tue, 25 Oct 2022 16:10:31 +0000 (16:10 +0000)]
mplement waitid(2) which is now part of POSIX and used by mozilla.
This includes a change of siginfo_r which is technically an ABI break but
this should have no real-world impact since the members involved are
never touched by the kernel.

ok millert@, deraadt@

2 years agoImplement waitid(2) which is now part of POSIX and used by mozilla.
kettenis [Tue, 25 Oct 2022 16:08:26 +0000 (16:08 +0000)]
Implement waitid(2) which is now part of POSIX and used by mozilla.
This includes a change of siginfo_r which is technically an ABI break but
this should have no real-world impact since the members involved are
never touched by the kernel.

ok millert@, deraadt@

2 years agoConsistently use 'proc_trampoline' as the name of the trampoline
guenther [Tue, 25 Oct 2022 15:15:38 +0000 (15:15 +0000)]
Consistently use 'proc_trampoline' as the name of the trampoline
used by cpu_fork()

ok miod@ kettenis@ mpi@ deraadt@

2 years agoAdd more chance to process IPI in the interrupt service routine.
aoyama [Tue, 25 Oct 2022 11:39:33 +0000 (11:39 +0000)]
Add more chance to process IPI in the interrupt service routine.

This prevents "luna88k_ext_int: cpu0 level 1 interrupt" message on
heavy load.

"This makes sense" miod@, tested by me.

2 years agoFix LDADD and DPADD.
martijn [Tue, 25 Oct 2022 10:46:59 +0000 (10:46 +0000)]
Fix LDADD and DPADD.
DPADD bit pointed out by deraadt@

"No kidding" deraadt@

2 years agoFix several "bytes" in DESCRIPTION to their clearly intended "packets".
martijn [Tue, 25 Oct 2022 09:54:24 +0000 (09:54 +0000)]
Fix several "bytes" in DESCRIPTION to their clearly intended "packets".

Found by Alec olp_76 <at> yahoo <dot> ca
OK sthen@, denis@

2 years agoFix a memory leak, from Japin Li in GitHub issue 3358.
nicm [Tue, 25 Oct 2022 09:12:05 +0000 (09:12 +0000)]
Fix a memory leak, from Japin Li in GitHub issue 3358.

2 years agoDo not fire redraw callback if NULL.
nicm [Tue, 25 Oct 2022 09:04:49 +0000 (09:04 +0000)]
Do not fire redraw callback if NULL.

2 years agoImprove DESCRIPTION
kn [Tue, 25 Oct 2022 08:40:25 +0000 (08:40 +0000)]
Improve DESCRIPTION

- use plural to clarify how more than interface may be passed
- drop the distinction between interface and bridge
- drop useless example:  netstart is as trivial as echo(1)
- mention options the usual way, this also adds tags which makes ":tn" work
  as expected in the pager to jump to `-n's definition

OK jmc

2 years agoSTACK_OFFSET was to support it varying when compiling some code for
guenther [Tue, 25 Oct 2022 06:05:57 +0000 (06:05 +0000)]
STACK_OFFSET was to support it varying when compiling some code for
either 32bit or 64bit.  With the elimination of 32bit sparc bits
it was just a superfluous indirection of BIAS.  Also, CCFSZ is gone.

ok miod@

2 years agorwindow32 is gone and won't be coming back. ok miod@
guenther [Tue, 25 Oct 2022 06:00:34 +0000 (06:00 +0000)]
rwindow32 is gone and won't be coming back.  ok miod@

2 years agotweak DESCRIPTION; ok mglocker
jmc [Tue, 25 Oct 2022 05:49:40 +0000 (05:49 +0000)]
tweak DESCRIPTION; ok mglocker

2 years agoBe more paranoid with host/domain names coming from the resolver:
djm [Mon, 24 Oct 2022 22:43:36 +0000 (22:43 +0000)]
Be more paranoid with host/domain names coming from the resolver:
don't follow CNAMEs with invalid characters when canonicalising
and never write a name with bad characters to a known_hosts file.

reported by David Leadbeater, ok deraadt@

2 years agoregress test for unmatched glob characters; fails before previous
djm [Mon, 24 Oct 2022 21:52:50 +0000 (21:52 +0000)]
regress test for unmatched glob characters; fails before previous
commit but passes now. bz3488; prodded by dtucker@

2 years agowhen scp(1) is using the SFTP protocol for transport (the default),
djm [Mon, 24 Oct 2022 21:51:55 +0000 (21:51 +0000)]
when scp(1) is using the SFTP protocol for transport (the default),
better match scp/rcp's handling of globs that don't match the globbed
characters but do match literally (e.g. trying to transfer "foo.[1]").

Previously scp(1) in SFTP mode would not match these pathnames but
legacy scp/rcp mode would.

Reported by Michael Yagliyan in bz3488; ok dtucker@

2 years agodo not wait for autoconf in dry-run
kn [Mon, 24 Oct 2022 20:51:07 +0000 (20:51 +0000)]
do not wait for autoconf in dry-run

If there is no default route but some interface has AUTOCONF, printing
what would be done still waits for... nothing to happen.

OK tb

2 years agoupdate the maxrtc entry;
jmc [Mon, 24 Oct 2022 20:43:23 +0000 (20:43 +0000)]
update the maxrtc entry;
while here, knock out the Tn macros and patch up AUTHORS;

2 years agoWe recently added support for the DS1339.
mglocker [Mon, 24 Oct 2022 18:34:29 +0000 (18:34 +0000)]
We recently added support for the DS1339.

2 years agoAdd required sh(1) to synopsis
kn [Mon, 24 Oct 2022 17:58:43 +0000 (17:58 +0000)]
Add required sh(1) to synopsis

Contrary to other scripts in base like rc.d(8) or MAKEDEV(8), netstart(8)
itself is not executable and must be passed as file to sh(1):
$ man -h netstart
/etc/netstart [-n] [interface ...]
$ /etc/netstart
ksh: /etc/netstart: cannot execute - Permission denied

Fix usage and synopsis to provide required usage:
$ man -h netsart
sh /etc/netstart [-n] [interface ...]

OK jmc

2 years agoFix DH group lookup when checking if PFS is required. Compare ID
tobhe [Mon, 24 Oct 2022 15:52:39 +0000 (15:52 +0000)]
Fix DH group lookup when checking if PFS is required. Compare ID
directly instead of calling group_get() and leaking the result.

ok markus@

2 years agouvm_unmap_remove() traverses the entries in the start,end range scanning
deraadt [Mon, 24 Oct 2022 15:11:56 +0000 (15:11 +0000)]
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

2 years agoremove unused references to httpd.sock; found by dante catalfamo
jmc [Mon, 24 Oct 2022 15:02:01 +0000 (15:02 +0000)]
remove unused references to httpd.sock; found by dante catalfamo
ok florian

2 years agoMake x509_init_oid() table based
tb [Mon, 24 Oct 2022 10:26:59 +0000 (10:26 +0000)]
Make x509_init_oid() table based

Reduces the amount of copy-paste and makes things easier on the eye.

ok claudio job

2 years agoimprove grammar
jsg [Mon, 24 Oct 2022 09:23:27 +0000 (09:23 +0000)]
improve grammar
with and ok jmc@ ok mglocker@

2 years agoregen
jsg [Mon, 24 Oct 2022 09:12:59 +0000 (09:12 +0000)]
regen

2 years agoadd AMD Mendocino/Radeon 610M graphics id
jsg [Mon, 24 Oct 2022 09:12:09 +0000 (09:12 +0000)]
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 ?

2 years agoregen
jsg [Mon, 24 Oct 2022 06:11:00 +0000 (06:11 +0000)]
regen

2 years agoinclude "600 Series" in 600 Series strings
jsg [Mon, 24 Oct 2022 06:10:25 +0000 (06:10 +0000)]
include "600 Series" in 600 Series strings
missed in rev 1.1980

2 years agoenable snooping on Intel 700 Series
jsg [Mon, 24 Oct 2022 05:59:17 +0000 (05:59 +0000)]
enable snooping on Intel 700 Series

2 years agomatch on Intel 700 Series
jsg [Mon, 24 Oct 2022 05:57:58 +0000 (05:57 +0000)]
match on Intel 700 Series

2 years agoregen
jsg [Mon, 24 Oct 2022 05:55:32 +0000 (05:55 +0000)]
regen

2 years agoadd Intel 700 Series PCH ids
jsg [Mon, 24 Oct 2022 05:54:55 +0000 (05:54 +0000)]
add Intel 700 Series PCH ids

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

2 years agomatch AMD family 17h model 90h CCP
jsg [Mon, 24 Oct 2022 04:57:29 +0000 (04:57 +0000)]
match AMD family 17h model 90h CCP
tested by and ok bentley@

2 years agoregen
jsg [Mon, 24 Oct 2022 04:55:20 +0000 (04:55 +0000)]
regen

2 years agoadd AMD family 17h model 90h (Van Gogh) ids
jsg [Mon, 24 Oct 2022 04:54:47 +0000 (04:54 +0000)]
add AMD family 17h model 90h (Van Gogh) ids

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

2 years agoFix comment; sconds -> seconds
mglocker [Mon, 24 Oct 2022 04:28:01 +0000 (04:28 +0000)]
Fix comment;  sconds -> seconds

2 years agoorder Xr by section
jsg [Mon, 24 Oct 2022 03:50:17 +0000 (03:50 +0000)]
order Xr by section

2 years agonew sentence, new line
jsg [Mon, 24 Oct 2022 03:47:57 +0000 (03:47 +0000)]
new sentence, new line

2 years agosync
deraadt [Mon, 24 Oct 2022 03:26:55 +0000 (03:26 +0000)]
sync

2 years agotsc: AMD Family 17h, 19h: compute frequency from Core::X86::Msr:PStateDef
cheloha [Mon, 24 Oct 2022 00:56:33 +0000 (00:56 +0000)]
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@

2 years agoFix a misleading comment
guenther [Sun, 23 Oct 2022 23:39:41 +0000 (23:39 +0000)]
Fix a misleading comment

ok miod@ kettenis@

2 years agoMake sure driver is attached before allocating a channel. Fixes a crash on
tobhe [Sun, 23 Oct 2022 22:15:45 +0000 (22:15 +0000)]
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@

2 years agobzero(disklabel) or memset(disklabel,0) should be enough for
krw [Sun, 23 Oct 2022 19:33:39 +0000 (19:33 +0000)]
bzero(disklabel) or memset(disklabel,0) should be enough for
anyone. No need to also set d_flags to 0.

2 years agoThe cat_opts and decomp_opts fields in struct compressor are unused
millert [Sun, 23 Oct 2022 19:06:35 +0000 (19:06 +0000)]
The cat_opts and decomp_opts fields in struct compressor are unused
so just remove them.  Also mark functions private to main.c as
static.  For SMALL, longopts can be NULL instead of an empty array.
OK kn@

2 years agoInitial apm/sensor driver for the PiJuice HAT UPS, to feedback battery
mglocker [Sun, 23 Oct 2022 18:43:00 +0000 (18:43 +0000)]
Initial apm/sensor driver for the PiJuice HAT UPS, to feedback battery
status information.

ok deraadt@

2 years agobzero(disklabel) or memset(disklabel,0) should be enough for
krw [Sun, 23 Oct 2022 14:39:19 +0000 (14:39 +0000)]
bzero(disklabel) or memset(disklabel,0) should be enough for
anyone. No need to also set d_flags to 0.

2 years agoBump tsleep timeout. For some reason the first attempt to load the firmware
kettenis [Sun, 23 Oct 2022 13:45:32 +0000 (13:45 +0000)]
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@

2 years agopowerpc64 and riscv64: sync pbuild class with amd64 and arm64
jca [Sun, 23 Oct 2022 09:29:48 +0000 (09:29 +0000)]
powerpc64 and riscv64: sync pbuild class with amd64 and arm64

From Brad

2 years agoadd libexec/snmpd; help from jsg
jmc [Sun, 23 Oct 2022 08:00:29 +0000 (08:00 +0000)]
add libexec/snmpd; help from jsg

2 years agoConstify send/receive command tables
kn [Sun, 23 Oct 2022 08:00:10 +0000 (08:00 +0000)]
Constify send/receive command tables

Both only used for printf calls.

OK gkoehler

2 years agoadd a little spacing and fix Nd;
jmc [Sun, 23 Oct 2022 06:12:06 +0000 (06:12 +0000)]
add a little spacing and fix Nd;