1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-24 06:04:47 +00:00
Commit Graph

204384 Commits

Author SHA1 Message Date
deraadt
f2a208ef80 minor cranking of libraries exposes a problem, details too long to explain.
Run ldconfig -R after installing base libraries, and once again after
installing gnu libraries.
ok kettenis
2020-04-05 20:14:14 +00:00
jmc
41e1f58829 sitaracm removed; 2020-04-05 19:39:21 +00:00
jmc
5d788fd875 add arch to the Dt line; 2020-04-05 19:37:55 +00:00
denis
55dcbf22b1 Handle connected routes as ospfd(8) does.
OK remi@
2020-04-05 18:19:04 +00:00
tb
35a84b1c5d adjust day of the week and year 2020-04-05 16:15:39 +00:00
krw
5398943e9c Make FFS2 the default filesystem type on installs except for landisk,
luna88k and sgi.

ok otto@ deraadt@ (for diff with same effect)
2020-04-05 15:15:42 +00:00
kettenis
ae1367d53f Use OF_is_compatible() to simplify the initialization for the "mdio" node.
Add code to enable the clock which is present in new device trees.

ok jsg@
2020-04-05 14:02:29 +00:00
kettenis
f7d9bb6830 Define the appropriate __GCC_HAVE_SYNC_COMPARE_AND_SWAP_* symbols like all
other clang platforms do.

ok jca@
2020-04-05 13:55:53 +00:00
tobhe
d6935b63ec Fix size checks in ikev2_getimsgdata().
ok markus@
2020-04-05 13:52:14 +00:00
kettenis
a290804380 Remove sitaracm(4). 2020-04-05 13:21:54 +00:00
kettenis
8b1c1e50fa Fix pasto 2020-04-05 13:19:49 +00:00
kettenis
92f9946b0b omrng(4) 2020-04-05 13:18:50 +00:00
kettenis
59b3924454 Add omrng(4), a driver for te random number generator found on TI OMAP SoCs.
ok jsg@
2020-04-05 13:11:13 +00:00
jmc
e623aa45f7 "Protocol" keyword no longer used; from martin vahlensieck 2020-04-05 10:11:07 +00:00
nicm
2ecd368560 Add an argument to list-commands to show only a single command. 2020-04-05 08:40:31 +00:00
mpi
eb22a0da95 Do not assume futex(2) is always returning an errno value.
In the case of FUTEX_WAKE a number of woken threads is returned.

ok guenther@
2020-04-05 08:32:14 +00:00
visa
354feef18d Declare pledgenames[] as const.
OK deraadt@
2020-04-05 07:31:45 +00:00
deraadt
8ebd2d860c syn 2020-04-05 06:38:02 +00:00
deraadt
3a992ce9df crank to 6.7-beta 2020-04-05 06:34:19 +00:00
deraadt
3959b4bd7f sync 2020-04-05 04:57:53 +00:00
jca
a412a45212 Make libcxxabi provide __register_frame, _Unwind_Backtrace and friends
on sparc64

Discrepancy spotted in

  http://build-failures.rhaalovely.net/sparc64/2020-04-03/devel/llvm,,-main.log

Input from gkoehler@, ok kettenis@ deraadt@
2020-04-04 23:46:30 +00:00
dtucker
d9e400c0e9 Indicate if we're using a cached key in trace output. 2020-04-04 23:04:41 +00:00
dtucker
8cc52c14e6 Some platforms don't have "hostname -s", so use cut to trim short hostname
instead.
2020-04-04 22:14:26 +00:00
kettenis
004e15d6a2 Implement __atomic_is_lock_free for powerpc. Needed because the
architecture doesn't implement 64-bit atomic operations.  This
implementation is pessimistic and only flags naturally aligned
operations up to and including 32-bit as lock free.

tested by cwen@
ok gkoehler@
2020-04-04 22:11:36 +00:00
kettenis
4ed81bdbc7 Tweak the code that wakes up uvm_pmalloc sleepers in the page daemin.
Although there are open questions about whether we should flag failures with
UVM_PMA_FAIL or not, we really should only wake up a sleeper if we unlink
the pma.  For now only do that if pages were actually freed in the requested
region.

Prompted by:

CID 1453061 Logically dead code

which should be fixed by this commit.

ok (and together with) beck@
2020-04-04 22:08:02 +00:00
tobhe
7ff51f1d32 It makes no sense to fall back to original policy if the relookup with the
received initiator ID fails. Send AUTH_FAILED message and exit instead.

ok markus@
2020-04-04 20:36:34 +00:00
schwarze
e9f36175df automatically tag .SH and .SS in man(7) terminal output
in the same way as it was done for .Sh and .Ss in mdoc(7)
2020-04-04 20:23:06 +00:00
mpi
6f986596ee Prevent the destruction of a session owned by another interface.
Issue reported by and fix from Vitaliy Makkoveev.
2020-04-04 16:41:23 +00:00
gkoehler
233ed43832 Fix powerpc libunwind for cpus without altivec.
Defer saving the altivec registers until we need to access them (like
how arm defers saving the VFP registers).  This prevents a SIGILL on a
G3 cpu when code throws a C++ exception.

ok kettenis@
2020-04-04 14:06:21 +00:00
deraadt
ca9b399172 clang bsd.rd is a bit bigger.. 2020-04-04 13:28:46 +00:00
kettenis
3159fc8f23 Fix "small pic" secure plt support.
ok mortimer@
2020-04-04 09:54:04 +00:00
mpi
66f4ed4531 Prevent shadowing of local variable by the EV_SET() macro.
Use two underbars to start the locally defined variable, as suggested by
guenther@.  The other option to avoid namespace conflict would be to start
the identifier with an underbar and a capital.

ok beck@, guenther@
2020-04-04 08:57:36 +00:00
ratchov
a28d724d67 Use /dev/audioctlN instead of /dev/mixerN.
/dev/audioctlN files are opened in O_WRONLY mode because mixerctl(2)
doesn't need to read them.

tweaks and ok mestre and kn
2020-04-04 08:43:08 +00:00
espie
55690ea1a9 document new additions to control socket
remove "new" in the description of addpath, since
it lead to false assumptions

note that stub hasn't been tested yet
2020-04-04 08:41:54 +00:00
deraadt
aa68e9d19d sync 2020-04-04 03:24:03 +00:00
jmatthew
1d562564f8 Return ENETRESET on success from mcx_up() so mcx_ioctl() will call
mcx_iff(), repplying the promisc and allmulti flags on the interface.
This may have contributed to some problems dlg@ and I had the other day.

ok dlg@
2020-04-04 01:48:03 +00:00
jsg
6deb8478ad increase rdroot size
ok kettenis@ deraadt@
2020-04-03 23:18:36 +00:00
kettenis
76379fde46 Put back the code to enable and set the output tap delay. Tis fixes
the eMMC module on my rockpro64 and doesn't break the eMMC on the rk3399-q7
board I have.  Sadly the eMMC on my firefly-rk3399 died, which may
or may not have something to do with the fact that there were issues
with enabling the output tap delay on that board.

ok patrick@
2020-04-03 22:03:45 +00:00
patrick
5343ff5a5a Move the responsibility of syncing the data buffers from the USB
stack into the USB controller driver, since not all of the xfers
actually use DMA and some invalidations might even be harmful.

The important part is to sync before handing the buffer to the
controller, and to sync on a successful transfer before handing
it back to the USB stack.  For isoc transfers it's easier to sync
the complete length of the transfer, since the buffer to flush is
not filled in a contiguous fashion.

For dwc2 there's a common point which takes care of the start
of transfers from or to devices, where we can make sure that our
buffers are synced.  On completion, there's a common point before
handing it off to the USB stack.

For ehci there are three places which take care of the start
of transfers from or to devices, where one already does the sync,
while the two other places still need the sync.  There are two
completion handler (isoc and non-isoc), where one already has a
comment asking for the need of a sync.  The done handler for intr
xfers does a sync that is not needed anymore after adding the sync
in the completion handler.

For ohci there are three places which take care of the start
of transfers from or to devices, where all of them were still in
need of the sync.  For completion, there is one place for isoc
xfers and two places for handling successful generic xfers.

For uhci there are two places which take care of the start
of transfers from or to device, where all of them were still in
need of the sync.  For completion, there is one handler for both
isoc and non-isoc xfers where syncs need to occur.

For xhci there are three places which take care of the start
of transfers from or to device, where all of them were still in
need of the sync.  For completion, there is one handler for isoc
and one for non-isoc xfers where syncs need to occur.

With this we can revert the workaround that implicitly allocated
buffers are COHERENT, since now control transfers fulfilled by the
driver code (instead of the controller doing DMA) are not flushed
into oblivion anymore.

Tested by Janne Johansson with dwc2 (octeon)
Tested by kettenis@ with xhci(4) (octeon)
Tested by patrick@ with ehci(4) on a Cubox-i (armv7)
Tested by patrick@ with xhci(4) on an i.MX8MQ (arm64)
Tested by tobhe@ with dwc2 on a rPi 3b (arm64)
ok kettenis@
2020-04-03 20:11:47 +00:00
kettenis
de66c75e2e rkrng(4) 2020-04-03 16:38:53 +00:00
kettenis
c1fe155249 Add rkrng(4), a driver for the random number generator found on various
Rockchip SoCs.

ok kurt@
2020-04-03 16:29:17 +00:00
kettenis
3e4238e52e The dtb I'm using for my rockpro64 has an "assigned-clocks" property so
add a call to set handle those.
2020-04-03 16:26:14 +00:00
nicm
c8713798a0 Use new window and new pane as well for -P to new-session or new-window. 2020-04-03 13:54:31 +00:00
mpi
658ca82c36 Kill unused cdev_mousewr_init().
ok jca@, jsg@
2020-04-03 13:31:11 +00:00
jca
992455e038 Don't #include <machine/cpufunc.h>, not available on all archs
Thankfully it doesn't appear needed on amd64 and sparc64, and probably
others.  ok mpi@
2020-04-03 13:17:12 +00:00
stsp
25b7f50251 Clarify conditions in which pthread_mutex_destroy(3) returns EBUSY.
It happens not just if the mutex is locked by another thread, but also
if any other threads refer to the mutex (e.g. by waiting for the lock).

ok guenther
2020-04-03 13:05:08 +00:00
nicm
7af35667f5 Stop logging the entire command queue every time we add something,
spotted by tb & sthen.
2020-04-03 12:59:22 +00:00
bluhm
8c0c56a30d Make signify regress work without obj dir. Avoid including the
output archive by reducing the input file list to text files only.
from Christian Ludwig; OK beck@
2020-04-03 12:01:56 +00:00
schwarze
6a6803e405 Remove some stray argument names from function prototypes,
for consistency with the dominant style used in mandoc.
No functional change.
Patch from Martin Vahlensieck <academicsolutions dot ch>.
2020-04-03 11:34:19 +00:00
schwarze
24807e1016 #include <stdint.h> because that is needed before #include <ohash.h>;
fixing a build failure of mandoc-portable on Arch Linux
reported by Stephen Gregoratto <dev at sgregoratto dot me>.
2020-04-03 10:29:01 +00:00