openbsd
2 years agoDrop orphaned pv_flags values.
miod [Mon, 12 Sep 2022 19:28:19 +0000 (19:28 +0000)]
Drop orphaned pv_flags values.

2 years agoAdd support for level-triggered GPIO events.
kettenis [Mon, 12 Sep 2022 17:42:31 +0000 (17:42 +0000)]
Add support for level-triggered GPIO events.

ok mlarkin@

2 years agosxirintc(4)
kettenis [Mon, 12 Sep 2022 17:30:32 +0000 (17:30 +0000)]
sxirintc(4)

2 years agoqcgpio(4) and qciic(4)
kettenis [Mon, 12 Sep 2022 15:59:16 +0000 (15:59 +0000)]
qcgpio(4) and qciic(4)

2 years agoqcgpio(4) and qciic(4)
kettenis [Mon, 12 Sep 2022 15:49:36 +0000 (15:49 +0000)]
qcgpio(4) and qciic(4)

2 years agozap extra .Pp
tb [Mon, 12 Sep 2022 14:36:09 +0000 (14:36 +0000)]
zap extra .Pp

2 years agoStop documenting i2c_ASN1_INTEGER.
tb [Mon, 12 Sep 2022 14:33:47 +0000 (14:33 +0000)]
Stop documenting i2c_ASN1_INTEGER.

This is no longer public API. Also remove some comments about i2c and c2i
functions being intentionally undocumented since they are no longer public.

2 years agodisable Panel Self Refresh (PSR) by default in inteldrm
jsg [Mon, 12 Sep 2022 14:18:17 +0000 (14:18 +0000)]
disable Panel Self Refresh (PSR) by default in inteldrm

After i915_drv.c 1.144 PSR changed to being on by default.
On a TUXEDO InfinityBook Pro 14 Gen6 (Tiger Lake) this introduced screen
flicker.  Reported and tested by Matthias Schmidt.

Should also avoid flicker problem on Dell XPS 13 7390 (Comet Lake)
reported by James Cook.

2 years agoAdd CBC, CFB64 and OFB64 test coverage for RC2
tb [Mon, 12 Sep 2022 13:11:36 +0000 (13:11 +0000)]
Add CBC, CFB64 and OFB64 test coverage for RC2

From Joshua Sing

2 years agoHook up installboot(8) tests on all covered archs
kn [Mon, 12 Sep 2022 13:10:03 +0000 (13:10 +0000)]
Hook up installboot(8) tests on all covered archs

Those that still fail (softraid+keydisk or explicit-stage-files) have fixes on tech@.

2 years agowhitespace nits
tb [Mon, 12 Sep 2022 13:09:01 +0000 (13:09 +0000)]
whitespace nits

2 years agoBump version for upcoming -portable release
claudio [Mon, 12 Sep 2022 12:04:55 +0000 (12:04 +0000)]
Bump version for upcoming -portable release

2 years agoDon't use options from pane if pane is NULL.
nicm [Mon, 12 Sep 2022 12:02:17 +0000 (12:02 +0000)]
Don't use options from pane if pane is NULL.

2 years agoacpihpet(4): acpihpet_delay: only use lower 32 bits of counter
cheloha [Mon, 12 Sep 2022 10:58:05 +0000 (10:58 +0000)]
acpihpet(4): acpihpet_delay: only use lower 32 bits of counter

We can't use acpihpet_r() to implement acpihpet_delay().  Even if we
made acpihpet_r() atomic on amd64, i386 would still be incapable of
doing atomic 8-byte reads.  As-is, the code does a split read on all
platforms, which may or may not already be causing problems with TSC
calibration:

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

Switch from acpihpet_r() to bus_space_read_4() and only use the lower
32 bits of the counter.  This makes acpihpet_delay() slightly larger,
but unless we want two acpihpet_delay() implementations we have no
choice.

Link: https://marc.info/?l=openbsd-tech&m=166165347220077&w=2
ok jsg@

2 years agospelling
jsg [Mon, 12 Sep 2022 10:16:09 +0000 (10:16 +0000)]
spelling

2 years agoIntroduce tree walkers that only walk a subtree of the RIB.
claudio [Mon, 12 Sep 2022 10:03:17 +0000 (10:03 +0000)]
Introduce tree walkers that only walk a subtree of the RIB.

In some cases only a "small" part of the RIB needs to be looked at. Like
bgpctl show rib 10/8 or-longer that only needs to travers nodes under
10/8 all other RIB entries do not matter. By setting the start node to
the RB_NFIND(10/8) the all nodes below this point can be skipped.
Using prefix_compare() while walking the tree with RB_NEXT() the walker
know when it steps outside of the 10/8 subtree and stops.
With this the or-longer commands become a lot faster.

Looks good to tb@

2 years agoSIOCGIFPARENT uses struct if_parent not ireq
jsg [Mon, 12 Sep 2022 09:18:30 +0000 (09:18 +0000)]
SIOCGIFPARENT uses struct if_parent not ireq
ok jmc@

2 years agoSIOCGVNETID uses struct ifreq not if_parent
jsg [Mon, 12 Sep 2022 09:15:29 +0000 (09:15 +0000)]
SIOCGVNETID uses struct ifreq not if_parent
ok jmc@

2 years agoMove division by two out of sizeof()
tb [Mon, 12 Sep 2022 04:26:38 +0000 (04:26 +0000)]
Move division by two out of sizeof()

2 years agoError checks for EVP_*
tb [Mon, 12 Sep 2022 04:20:59 +0000 (04:20 +0000)]
Error checks for EVP_*

CID 356777

2 years agoMove division by two out of sizeof()
tb [Mon, 12 Sep 2022 04:12:39 +0000 (04:12 +0000)]
Move division by two out of sizeof()

CID 356778

2 years agoAdd regression tests for the sendmmsg and recvmmsg system calls.
mbuhl [Sun, 11 Sep 2022 20:51:44 +0000 (20:51 +0000)]
Add regression tests for the sendmmsg and recvmmsg system calls.

2 years agoRemove the DKF_LABELVALID flag from struct disk. Instead, trust disk drivers
miod [Sun, 11 Sep 2022 19:34:40 +0000 (19:34 +0000)]
Remove the DKF_LABELVALID flag from struct disk. Instead, trust disk drivers
to always be able to provide a duid, and keep ignoring whole zero duids.

This fixes a race in vnd setup where the disk_attach callback could run
before any I/O occurs on the vnd, thus not having a label available yet.

noticed by otto@ and kn@; ok kn@

2 years agoAdd the new inout vmm(4) tracepoint to dt(4).
dv [Sun, 11 Sep 2022 19:05:44 +0000 (19:05 +0000)]
Add the new inout vmm(4) tracepoint to dt(4).

Forgot to put it in the list of static tracepoints when I committed
the tracepoint at g2k22. Woops.

2 years agoEnforce the minimum TLS version requirement for QUIC.
jsing [Sun, 11 Sep 2022 18:13:30 +0000 (18:13 +0000)]
Enforce the minimum TLS version requirement for QUIC.

ok tb@

2 years agoAdjust for opaque structs in ts.h
tb [Sun, 11 Sep 2022 18:08:17 +0000 (18:08 +0000)]
Adjust for opaque structs in ts.h

ok jsing

2 years agoAdjust for opaque structs in pkcs12.h
tb [Sun, 11 Sep 2022 18:07:46 +0000 (18:07 +0000)]
Adjust for opaque structs in pkcs12.h

ok jsing

2 years agoRegister the I2C controller with ACPI. Skip this on the SC8280XP SoC for
kettenis [Sun, 11 Sep 2022 18:07:26 +0000 (18:07 +0000)]
Register the I2C controller with ACPI.  Skip this on the SC8280XP SoC for
now as the AML on the Lenovo X13S tries to do I2C transactions to a device
that doesn't respond leading to the ACPI thread spinning until the
transaction times out.

ok mlarkin@, deraadt@

2 years agosync
tb [Sun, 11 Sep 2022 17:45:14 +0000 (17:45 +0000)]
sync

2 years agobump major after libcrypto and libssl major bump
tb [Sun, 11 Sep 2022 17:43:27 +0000 (17:43 +0000)]
bump major after libcrypto and libssl major bump

2 years agoCrank major after symbol addition and libcrypto major bump
tb [Sun, 11 Sep 2022 17:42:55 +0000 (17:42 +0000)]
Crank major after symbol addition and libcrypto major bump

2 years agoUpdate Symbols.list
tb [Sun, 11 Sep 2022 17:42:09 +0000 (17:42 +0000)]
Update Symbols.list

ok jsing

2 years agoExpose SSL_get_share_{group,curve}() and related #defines
tb [Sun, 11 Sep 2022 17:39:46 +0000 (17:39 +0000)]
Expose SSL_get_share_{group,curve}() and related #defines

ok jsing

2 years agoExpose some error codes needed for QUIC support
tb [Sun, 11 Sep 2022 17:38:58 +0000 (17:38 +0000)]
Expose some error codes needed for QUIC support

ok jsing

2 years agoDefine LIBRESSL_HAS_QUIC
tb [Sun, 11 Sep 2022 17:36:34 +0000 (17:36 +0000)]
Define LIBRESSL_HAS_QUIC

ok jsing

2 years agoBump major after symbol addition and removal and struct visibility changes
tb [Sun, 11 Sep 2022 17:34:41 +0000 (17:34 +0000)]
Bump major after symbol addition and removal and struct visibility changes

2 years agoUpdate Symbols.list
tb [Sun, 11 Sep 2022 17:32:01 +0000 (17:32 +0000)]
Update Symbols.list

ok jsing

2 years agoMake structs in ts.h opaque
tb [Sun, 11 Sep 2022 17:31:19 +0000 (17:31 +0000)]
Make structs in ts.h opaque

ok jsing

2 years agoMake structs in pkcs12.h opaque
tb [Sun, 11 Sep 2022 17:30:13 +0000 (17:30 +0000)]
Make structs in pkcs12.h opaque

ok jsing

2 years agoExpose EVP_chacha20_poly1305()
tb [Sun, 11 Sep 2022 17:29:24 +0000 (17:29 +0000)]
Expose EVP_chacha20_poly1305()

ok jsing

2 years agoExpose various EVP AEAD constants for EVP ChaCha and QUIC
tb [Sun, 11 Sep 2022 17:28:33 +0000 (17:28 +0000)]
Expose various EVP AEAD constants for EVP ChaCha and QUIC

ok jsing

2 years agoExpose OPENSL_cleanup()
tb [Sun, 11 Sep 2022 17:26:51 +0000 (17:26 +0000)]
Expose OPENSL_cleanup()

ok jsing

2 years agoMake BIO_info_cb() identical to bio_info_cb()
tb [Sun, 11 Sep 2022 17:26:03 +0000 (17:26 +0000)]
Make BIO_info_cb() identical to bio_info_cb()

Various projects use bio_info_cb and BIO_info_cb interchangeably, for
example mupdf and freerdp. This is because this was changed in OpenSSL
commit fce78bd4 (2017), triggered by new warnings in gcc 8.

https://github.com/openssl/openssl/pull/4493

This results in some scary compiler warnings and useless patches in ports.
Nobody seems to be using the old bio_info_cb() version.

ok jsing

2 years agoRemove c2i_* and i2c_* from public visibility
tb [Sun, 11 Sep 2022 17:22:52 +0000 (17:22 +0000)]
Remove c2i_* and i2c_* from public visibility

This removes c2i_ASN1_OBJECT(), {c2i,i2c}_ASN1_BIT_STRING() and
{c2i,i2c}_ASN1_INTEGER(). These are not part of the OpenSSL 1.1
API and should never have been exposed in the first place.

ok jsing

2 years agolink asn1object test statically in preparation for upcoming bump
tb [Sun, 11 Sep 2022 15:24:53 +0000 (15:24 +0000)]
link asn1object test statically in preparation for upcoming bump

2 years agoReplace "echo 'w\ny\nq\n' | disklabel -E" with equivalent
krw [Sun, 11 Sep 2022 15:05:27 +0000 (15:05 +0000)]
Replace "echo 'w\ny\nq\n' | disklabel -E" with equivalent
'disklabel -dw'.

Tested & ok visa@

2 years agoBe stricter with middlebox compatibility mode in the TLSv1.3 server.
jsing [Sun, 11 Sep 2022 14:39:44 +0000 (14:39 +0000)]
Be stricter with middlebox compatibility mode in the TLSv1.3 server.

Only allow a TLSv1.3 client to request middlebox compatibility mode if
this is permitted. Ensure that the legacy session identifier is either
zero length or 32 bytes in length. Additionally, only allow CCS messages
on the server side if the client actually requested middlebox compatibility
mode.

ok tb@

2 years agoOnly permit CCS messages if requesting middlebox compatibility mode.
jsing [Sun, 11 Sep 2022 14:33:07 +0000 (14:33 +0000)]
Only permit CCS messages if requesting middlebox compatibility mode.

Currently the TLSv1.3 client always permits the server to send CCS
messages. Be more strict and only permit this if the client is actually
requesitng middlebox compatibility mode.

ok tb@

2 years agodrop the -beta
deraadt [Sun, 11 Sep 2022 14:27:09 +0000 (14:27 +0000)]
drop the -beta

2 years agoUse CBS when procesing a CCS message in the legacy stack.
jsing [Sun, 11 Sep 2022 13:51:25 +0000 (13:51 +0000)]
Use CBS when procesing a CCS message in the legacy stack.

ok tb@

2 years agoEnsure there is no trailing data for a CCS received by the TLSv1.3 stack.
jsing [Sun, 11 Sep 2022 13:50:41 +0000 (13:50 +0000)]
Ensure there is no trailing data for a CCS received by the TLSv1.3 stack.

ok tb@

2 years ago.Li in previous didn;t make sense;
jmc [Sun, 11 Sep 2022 11:56:28 +0000 (11:56 +0000)]
.Li in previous didn;t make sense;

2 years agoAdd #define's for GPT partition attribute bits REQUIRED, IGNORE
krw [Sun, 11 Sep 2022 11:47:55 +0000 (11:47 +0000)]
Add #define's for GPT partition attribute bits REQUIRED, IGNORE
and BOOTABLE, set BOOTABLE attribute bit instead of using the
incorrect GPTDOSACTIVE value, have 'fdisk -v' print out GPT
partition attributes if any of the 64 bits are set, don't spoof
any partition with REQUIRED bit set.

Prompted by kettenis@ stumbling across a machine with 40+ (!!)
REQUIRED GPT partitions.

Tested & ok kettenis@

2 years agocorrect argument to VMM_IOC_READVMPARAMS
jsg [Sun, 11 Sep 2022 11:41:04 +0000 (11:41 +0000)]
correct argument to VMM_IOC_READVMPARAMS

2 years agoReplace "echo 'w\ny\nq\n' | disklabel -E" with equivalent
krw [Sun, 11 Sep 2022 11:12:39 +0000 (11:12 +0000)]
Replace "echo 'w\ny\nq\n' | disklabel -E" with equivalent
'disklabel -dw'.

Tested & ok miod@

2 years agoWhen looking up a symble using kvm_nlist(3), we need to prepend an
kettenis [Sun, 11 Sep 2022 10:40:35 +0000 (10:40 +0000)]
When looking up a symble using kvm_nlist(3), we need to prepend an
underscore.  This fixes acpidump on arm64.  How this ever worked before
is unclear, but part of the puzzle is that we didn't properly check the
return value of the kvm_nlist(3) calls.  So fix that too.

ok deraadt@, mglocker@

2 years agoAdd wsmux(4) such that systems with multiple keyboards work in bsd.rd.
kettenis [Sun, 11 Sep 2022 10:37:54 +0000 (10:37 +0000)]
Add wsmux(4) such that systems with multiple keyboards work in bsd.rd.

ok deraadt@, mpi@

2 years agoOn smmu(4) instances without coherent page table walk we need to make sure
patrick [Sun, 11 Sep 2022 10:28:56 +0000 (10:28 +0000)]
On smmu(4) instances without coherent page table walk we need to make sure
changes to the page tables are made visible, as needed on the Lenovo x13s.

2 years agoMake an attempt at taking over existing streams on Qualcomm machines. Some
patrick [Sun, 11 Sep 2022 10:18:54 +0000 (10:18 +0000)]
Make an attempt at taking over existing streams on Qualcomm machines.  Some
of the stream mappings on the Lenovo x13s match on a single stream id, and
others use a mask to match on multiple stream ids.  For now we only care
about the single ones, which is enough to capture e.g. the xhci(4) nodes.

2 years agoReplace archaic \*(Lt and \*(Gt by plain < and >, respectively,
schwarze [Sun, 11 Sep 2022 09:58:06 +0000 (09:58 +0000)]
Replace archaic \*(Lt and \*(Gt by plain < and >, respectively,
because these inspire devotion to cargo cult in developers.
Cleanup suggested by kn@.

2 years agoFinally expand and delete the macro SCALE_VS_INIT().
schwarze [Sun, 11 Sep 2022 09:12:47 +0000 (09:12 +0000)]
Finally expand and delete the macro SCALE_VS_INIT().
It's nothing but obfuscation and only used at three places in a single file.
Removing it also makes the code three lines shorter.
The ugliness was already pointed out six years ago by mmcc@.

2 years agodocument actual MACHINE_ARCH/ARCH values since I always get these mixed up
espie [Sun, 11 Sep 2022 08:51:51 +0000 (08:51 +0000)]
document actual MACHINE_ARCH/ARCH values since I always get these mixed up
(and I'm not the only one!)

2 years agoHandle if pci_intr_establish() failed. This actually happens if many
yasuoka [Sun, 11 Sep 2022 08:38:39 +0000 (08:38 +0000)]
Handle if pci_intr_establish() failed.  This actually happens if many
VMXNET3 are configured.  from IIJ.

ok jmatthew

2 years agoChange OF_getnodebyname() such that lokking up a node using just the name
kettenis [Sun, 11 Sep 2022 08:33:03 +0000 (08:33 +0000)]
Change OF_getnodebyname() such that lokking up a node using just the name
without a unit number (so without the @1234 bit) works as well.

ok patrick@, gkoehler@

2 years agoFix build after previous
miod [Sun, 11 Sep 2022 07:38:33 +0000 (07:38 +0000)]
Fix build after previous

2 years ago- put sections in a more standard order
jmc [Sun, 11 Sep 2022 06:41:36 +0000 (06:41 +0000)]
- put sections in a more standard order
(moved FILES and DIAGNOSTICS nearer page end)

- BUGS AND LIMITATIONS -> BUGS

ok sthen espie

2 years ago.Li -> .Vt where appropriate;
jmc [Sun, 11 Sep 2022 06:38:10 +0000 (06:38 +0000)]
.Li -> .Vt where appropriate;
from josiah frentsos, tweaked by schwarze

ok schwarze

2 years agofix repeated words
jsg [Sun, 11 Sep 2022 04:39:46 +0000 (04:39 +0000)]
fix repeated words

2 years agoUse installboot -p in install.md for macppc, powerpc64
gkoehler [Sun, 11 Sep 2022 04:38:28 +0000 (04:38 +0000)]
Use installboot -p in install.md for macppc, powerpc64

ok kn@

2 years agoRemove pmap_collect() when a no-op, define __HAVE_PMAP_COLLECT otherwise.
miod [Sat, 10 Sep 2022 20:35:28 +0000 (20:35 +0000)]
Remove pmap_collect() when a no-op, define __HAVE_PMAP_COLLECT otherwise.
Use that define to shunt uvm_swapout_threads(), which is a noop when
pmap_collect() does nothing.

ok mpi@

2 years agoIncrement the input and output position for EVP AES CFB1.
jsing [Sat, 10 Sep 2022 17:45:10 +0000 (17:45 +0000)]
Increment the input and output position for EVP AES CFB1.

The length is decremented, however the input is repeatedly read from and
output written to the same position. Correct this by actually incrementing
the input and output pointers.

Found via OpenSSL 604e591ed7,

ok tb@

2 years agoUse correct length for EVP CFB mode ciphers.
jsing [Sat, 10 Sep 2022 17:39:47 +0000 (17:39 +0000)]
Use correct length for EVP CFB mode ciphers.

The BLOCK_CIPHER_* macros contained a bug where the total length is passed
to the underlying cipher implementation, rather than the length of the
current chunk. Correct this and use the chunk length instead.

Should address the remaining issues reported by Coverity.

ok tb@

2 years agoUse correct option name.
nicm [Sat, 10 Sep 2022 17:01:33 +0000 (17:01 +0000)]
Use correct option name.

2 years agotop(1): remove last vestiges of "last pid" support
cheloha [Sat, 10 Sep 2022 16:58:51 +0000 (16:58 +0000)]
top(1): remove last vestiges of "last pid" support

millert@ removed most of the "last pid" support from top(1) in 1997.
See, e.g. top/machine.c,v1.7:

http://cvsweb.openbsd.org/src/usr.bin/top/machine.c?rev=1.7&content-type=text/x-cvsweb-markup

Let's remove the rest of it:

- Eliminate system_info.last_pid.

- Remove mpid parameter and "last pid" printing code from i_loadave().

Link: https://marc.info/?l=openbsd-tech&m=166277253606823&w=2
ok millert@

2 years agoGet rid of the extra vnode reference known as UVM_VNODE_CANPERSIST.
mpi [Sat, 10 Sep 2022 16:14:36 +0000 (16:14 +0000)]
Get rid of the extra vnode reference known as UVM_VNODE_CANPERSIST.

Back in the 4.4BSD days the VM subystem had a OBJ_CANPERSIST flag to
enter objects in a global cached list.  Some of this logic seem to have
been copied to UVM but without the global list.

Unfortunately keeping UVM vnode objects alive after munmap(2)ing the
corresponding region without incrementing the reference count of the
related vnode led to many bugs when the vnode was recycled and/or when
it data where written back to disk (via the page daemon).

The problem is that VM pages might have a non-accounted reference to a
vnode via `pg->uobject'.

Fix "vref used where vget required" panic reported by bluhm@, gkoehler@
and Andrew Krasavinseen on bugs@.

Thanks a lot to semarie@ for co-debugging this issue!

Tested by bluhm@, tb@, miod@.

ok kettenis@, semarie@

2 years agoUse CBS to parse TLS alerts in the legacy stack.
jsing [Sat, 10 Sep 2022 15:37:13 +0000 (15:37 +0000)]
Use CBS to parse TLS alerts in the legacy stack.

ok tb@

2 years agoProvide a version of ssl_msg_callback() that takes a CBS.
jsing [Sat, 10 Sep 2022 15:29:33 +0000 (15:29 +0000)]
Provide a version of ssl_msg_callback() that takes a CBS.

Use this from the TLSv1.3 code.

ok tb@

2 years agoAdd another pin to the SC7180 map function.
kettenis [Sat, 10 Sep 2022 14:32:53 +0000 (14:32 +0000)]
Add another pin to the SC7180 map function.

2 years agoDon't restrict GPIO events to pin numbers below 256. With the _EVT()
kettenis [Sat, 10 Sep 2022 13:18:31 +0000 (13:18 +0000)]
Don't restrict GPIO events to pin numbers below 256.  With the _EVT()
method events corresponding to larger numbers are possible.

Fixes lid state detection on the x13s.

ok patrick@

2 years agoGeneralize the code such that it works on SC7180 SoCs as well.
kettenis [Sat, 10 Sep 2022 13:14:39 +0000 (13:14 +0000)]
Generalize the code such that it works on SC7180 SoCs as well.

ok mglocker@, patrick@

2 years agoAdd _HID for SC7180 SoCs.
kettenis [Sat, 10 Sep 2022 13:05:41 +0000 (13:05 +0000)]
Add _HID for SC7180 SoCs.

ok mglocker@

2 years agocarrier return character -> carriage return character
jsg [Sat, 10 Sep 2022 12:36:18 +0000 (12:36 +0000)]
carrier return character -> carriage return character
ok jmc@ miod@

2 years agofix repeated words
jsg [Sat, 10 Sep 2022 10:22:46 +0000 (10:22 +0000)]
fix repeated words
ok ok miod@ ack ack jmc@

2 years agoThinkpad -> ThinkPad
jsg [Sat, 10 Sep 2022 10:10:29 +0000 (10:10 +0000)]
Thinkpad -> ThinkPad

2 years agoapm(1): Display unknown recharge time estimate instead of -1
sdk [Sat, 10 Sep 2022 10:10:09 +0000 (10:10 +0000)]
apm(1): Display unknown recharge time estimate instead of -1

OK miod@

2 years agoSocs -> SoCs
jsg [Sat, 10 Sep 2022 10:07:44 +0000 (10:07 +0000)]
Socs -> SoCs

2 years agodupex -> duplex
jsg [Sat, 10 Sep 2022 10:06:08 +0000 (10:06 +0000)]
dupex -> duplex

2 years agowireless LANS -> wireless LANs
jsg [Sat, 10 Sep 2022 10:01:54 +0000 (10:01 +0000)]
wireless LANS -> wireless LANs

2 years agofix repeated words
jsg [Sat, 10 Sep 2022 08:50:53 +0000 (08:50 +0000)]
fix repeated words
ok miod@ jmc@

2 years agoremove apostrophe on possesive its
jsg [Sat, 10 Sep 2022 08:18:06 +0000 (08:18 +0000)]
remove apostrophe on possesive its
ok jmc@

2 years agoFinally, only allocate the number of frames for isoc transfers which we
mglocker [Sat, 10 Sep 2022 08:13:16 +0000 (08:13 +0000)]
Finally, only allocate the number of frames for isoc transfers which we
really need.  The static allocation workaround in the code
(DWC2_MAXISOCPACKETS) was required because the NetBSD allocx USB method
has a second argument to pass nframes already there, which we don't
have.

Regression tested with video play, audio play, audio record.

ok mpi@

2 years agoAdd EABI strong aliases for __fixunssfdi and __fixunsdfdi added recently on
miod [Sat, 10 Sep 2022 06:48:31 +0000 (06:48 +0000)]
Add EABI strong aliases for __fixunssfdi and __fixunsdfdi added recently on
armv7; ok mbuhl@

2 years agoPACKAGES_REPOSITORY -> PACKAGE_REPOSITORY; from john verne
jmc [Sat, 10 Sep 2022 05:50:40 +0000 (05:50 +0000)]
PACKAGES_REPOSITORY -> PACKAGE_REPOSITORY; from john verne

2 years agoamd64, i386: lapic_initclocks: install i8254 before lapic_startclock()
cheloha [Sat, 10 Sep 2022 01:30:14 +0000 (01:30 +0000)]
amd64, i386: lapic_initclocks: install i8254 before lapic_startclock()

In the future, the clock interrupt code will need a working
timecounter to do its job.  In lapic_initclocks(), call
i8254_inittimecounter_simple() before lapic_startclock().

The i8254 may be be a piece of junk, but one timecounter is better
than none.

2 years agoinit(8): fix signal handler boolean type and qualifier
cheloha [Sat, 10 Sep 2022 00:49:47 +0000 (00:49 +0000)]
init(8): fix signal handler boolean type and qualifier

The variable "clang" is modified from a signal handler.  Change it
from an 'int' to a 'sig_atomic_t' and mark it 'volatile', as we
recommend in signal(3).

ok millert@ kn@

2 years agoLet pool_get(9) do the memory initialisation directly.
mglocker [Fri, 9 Sep 2022 21:16:54 +0000 (21:16 +0000)]
Let pool_get(9) do the memory initialisation directly.

ok kettenis@

2 years agoRecognize Qualcomm Krys 400 series cores.
kettenis [Fri, 9 Sep 2022 18:15:30 +0000 (18:15 +0000)]
Recognize Qualcomm Krys 400 series cores.

ok jsg@

2 years agoadd recvmmsg to NAME;
jmc [Fri, 9 Sep 2022 16:48:25 +0000 (16:48 +0000)]
add recvmmsg to NAME;

2 years agoReflect script failure in exit code
kn [Fri, 9 Sep 2022 15:53:16 +0000 (15:53 +0000)]
Reflect script failure in exit code

installboot(8) runs newfs(8) and fsck(8) via system(3) but only checks
failures of the function itself, always returning zero no matter what the
programs/shell returned.

This is bad for regress tests relying on correct return codes.

create_filesystem() itself must not exit as write_filesystem() calls it and
cleans up temporary files upon failure.

Make it return -1 if the script returned non-zero so write_filesystem()
handles it as error, cleans up and makes installboot exit 1.

Stop ignoring create_filesystem()'s return code in md_prepareboot() and
exit the same way.

Here's the change in behaviour on arm64 (newfs fails because of the
vnd/disklabel race, see "Race in disk_attach_callback?" on tech@):

# installboot -vp vnd0 ; echo $?
newfsing 6694ae5b0d7596ed.i
newfs_msdos: /dev/r6694ae5b0d7596ed.i: No such file or directory
0
# ./obj/installboot -vp vnd0 ; echo $?
newfsing 6694ae5b0d7596ed.i
newfs_msdos: /dev/r6694ae5b0d7596ed.i: No such file or directory
1

Tested on amd64 arm64 macppc octeon powerpc64 sparc64
OK millert

2 years agosync
mbuhl [Fri, 9 Sep 2022 13:54:58 +0000 (13:54 +0000)]
sync