Commit Graph

300293 Commits

Author SHA1 Message Date
abs 703c4250b9 Update device-streams binaries from Roc Vallès
- Split device-streams.tar.gz.uue into seperate source and
  binaries device-streams-2.2.1-src.tar.gz and device-streams-2.2.1.lha
  to match upstream
- Add device-streams.README.md from upstream
- Add simple 'update' script to help updating next time
- Binaries now avoid 32 bit file offset issues (they use 64 bit
  offsets where supported, and otherwise avoid corrupting data due
  to 32 bit limits)
- Binaries now built with updated bebbo/amiga-gcc toolchain

Pullup: netbsd-10, netbsd-9 and possibly netbsd-8
2023-03-23 13:56:24 +00:00
uwe 6646954a41 entropy(7): don't use .Nx inside .Ss
These macros don't adapt to context style, so in PostScript output the
.Nx inside .Ss is suddenly in a different font.
2023-03-23 12:41:43 +00:00
uwe 56afebefea entropy(7): use .Ql instead of .Sc Li 2023-03-23 12:39:11 +00:00
uwe 2dba4c8363 entropy(7): don't try to cram things into one-liners 2023-03-23 12:38:17 +00:00
riastradh 40028e8037 libm: Bump minor for new long double transcendental functions.
XXX Still missing: remquol, remainderl.
2023-03-23 12:38:13 +00:00
riastradh a8a9d81209 entropy(7): Omit needless offset for diagnostic listing. 2023-03-23 12:22:56 +00:00
martin 9da6df7d4c PR 57284: rewrite test to extract all temperaturs from all local sensors
and test them (instead of only one temperature from a tiny list of hard
coded possible devices).
2023-03-23 11:32:49 +00:00
yamaguchi a62b22a362 vioif(4): clear flags when configure is failed 2023-03-23 07:26:07 +00:00
mrg 79cbfccb47 add a note about how to fix missing ./usr/lib/libisns* files. 2023-03-23 07:15:08 +00:00
mrg f080a0a61e updates for xkeyboard-config 2.38. 2023-03-23 06:23:13 +00:00
mrg cabac0c060 un-obsolete ./usr/lib/libisns.so*. it's normal for these to be
symlinks in this case, and they also exist in the case that
MKDYNAMICROOT is not set.

also fixes running "makefs" against a destdir and it's METALOG*.
2023-03-23 05:38:18 +00:00
yamaguchi 3cf221fff2 Added functions to set interrupt handler and index into virtqueue 2023-03-23 03:55:11 +00:00
yamaguchi 702ae62879 viocon(4): fix not to allocate unused virtqueue
viocon(4) allocates 4 virtqueues but it only uses 2 (0 and 1) queues.
2023-03-23 03:44:28 +00:00
sjg 29a673fa23 Document unexplained *** Error code 6 2023-03-23 03:29:28 +00:00
yamaguchi 86598168c1 Set virtqueues in virtio_child_attach_finish
The number of virtqueue maybe change in a part of VirtIO devices
(e.g. vioif(4)). And it is fixed after negotiation of features.
So the configuration is moved into the function.
2023-03-23 03:27:48 +00:00
yamaguchi 1639a2df8d vioif(4): divide IFF_OACTIVE into per-queue 2023-03-23 03:02:17 +00:00
yamaguchi 30ced14397 vioif(4): reorganize functions
iThis change is move of function and rename,
and this is no functional change.
2023-03-23 02:57:54 +00:00
yamaguchi 3b9845146a vioif(4): rename sc_hdr_segs to sc_segs 2023-03-23 02:52:29 +00:00
yamaguchi d7f81c926c vioif(4): added functions to manipulate network queues 2023-03-23 02:48:29 +00:00
yamaguchi 05acb90741 vioif(4): added new data structure for network queues
and moved the same parameters in vioif_txqueue and
vioif_rxqueue into the new structure
2023-03-23 02:42:49 +00:00
yamaguchi af9130eb99 vioif(4): added __predct_false to error check 2023-03-23 02:33:34 +00:00
yamaguchi 457d873b1d vioif(4): prepare slot before dequeuing 2023-03-23 02:30:14 +00:00
yamaguchi f815846eb9 vioif(4): added a structure to manage variables for packet processings 2023-03-23 02:26:43 +00:00
yamaguchi 2364e6119d vioif(4): increase output error counter 2023-03-23 02:15:53 +00:00
yamaguchi ef605aaf50 vioif(4): merge drain into clear of queue 2023-03-23 02:03:01 +00:00
yamaguchi 1ce8f69200 vioif(4): divide interrupt handler for receiving
into dequeuing and preparing of buffers
2023-03-23 01:58:04 +00:00
yamaguchi 2face255ed vioif(4): drain receive buffer on stopping the device
to remove branch in vioif_populate_rx_mbufs_locked()
2023-03-23 01:52:42 +00:00
yamaguchi 151717cb3b vioif(4): fix missing virtio_enqueue_abort for error handling 2023-03-23 01:46:30 +00:00
yamaguchi 467d3d453b vioif(4): added event counters related to receive processing 2023-03-23 01:42:32 +00:00
yamaguchi c6b6080904 vioif(4): adjust receive buffer to ETHER_ALIGN 2023-03-23 01:39:52 +00:00
yamaguchi c6caf7bc96 vioif(4): stop interrupt before schedule handler 2023-03-23 01:36:50 +00:00
yamaguchi 14a52edfcb vioif(4): rename {txq,rxq}_active to {txq,rxq}_running_handle 2023-03-23 01:33:20 +00:00
yamaguchi 938099cc26 vioif(4): use device reset to stop interrupt completely 2023-03-23 01:30:26 +00:00
yamaguchi bf8778f825 vioif(4): access to txq_active and rxq_active with lock held 2023-03-23 01:26:29 +00:00
yamaguchi 4064b4b6c0 vioif(4): remove unnecessary lock release
if_percpuq_enqueue() can call with rxq->rxq_lock held because of per-cpu.
2023-03-23 01:23:18 +00:00
hannken 9785181c64 Pass B_PHYS when reading from device. Xbd(4) at least checks
this flag and may trigger an assertion.
2023-03-22 21:14:46 +00:00
mlelstv 404b33126a Ignore non-recoverable and critical limits smaller than the warning limits.
These are usually invalid.

Name the limit flags to make code more readable.
2023-03-22 13:00:54 +00:00
ozaki-r 10103a8a7b in6: make sure a user-specified checksum field is within a packet
From OpenBSD
2023-03-22 03:17:18 +00:00
riastradh ec33c2331e octrnm(4): Raise delay on startup.
According to CN50XX-HRM-V0.99E and CN78XX-HM-0.99E:

   The entropy is provided by the jitter of 125 of 128 free-running
   oscillators XORed into a 128-bit LFSR.  The LFSR accumulates entropy
   over 81 cycles, after which it is fed into a SHA-1 engine.
   [...]
   The SHA-1 engine runs once every 81 cycles.
   [...]
   The hardware produces new 64-bit random number every 81 cycles.

The last sentence means that we only need to wait 81 cycles _between_
consecutive SHA-1 outputs (which isn't relevant anyway because we
reconfigure it into raw mode later), but the first two quotes might
mean that we need to wait 81+81 cycles for the _first_ output to be
produced on boot when running the self-test.

Now, in this case, the self-test is run with the LFSR unhooked, by
clearing the RNM_CTL_STATUS[ENT_EN] bit, so that SHA-1 is computed
from a known input -- this is really just paranoia to make sure that
_some_ functions of the device (which is conjured out of thin air at
a fixed virtual address, with no firmware bindings to guide us)
behave as we expect.

And it's not clear if it really does take 81+81 cycles for the first
SHA-1 output to appear when the LFSR isn't feeding into it anyway.
But experimentally, delay of 81+81 cycles seems to work whereas a
delay of only 81 cycles crashes.

PR kern/57280

XXX pullup-10
XXX pullup-9
2023-03-21 22:07:29 +00:00
christos 82650ea596 Merge between
src-external-gpl3-gdb-20200913-1743: 1.1.1.1
and
        src-external-gpl3-gdb-20230321-1235: 1.1.1.1
2023-03-21 16:54:43 +00:00
christos 7d62b00eb9 import latest gdb from our tree into gdb.old 2023-03-21 16:37:18 +00:00
christos 93c8adad8b PR/57279: Izumi Tsutsui: Fix some {int,long} -> time_t. Still things will
break eventually because parts of the nfs protocol assume time_t will fit
in 32 bits.
2023-03-21 15:47:46 +00:00
hannken f438a6a065 Use "sigjmp_buf loc" after switch to sigsetjmp()/siglongjmp().
Fixes errors and aborts on sparc at least.
2023-03-21 08:31:30 +00:00
hannken 86c75e95c0 Adjust pc/npc before syscall allowing EJUSTRETURN to return
to the next instruction.  Only ERESTART should return to
the same instruction.  Differences to sparc64 reduced.

Test t_ptrace_wait:syscallemu1 now passes on sparc.

Fixes PR kern/52166 "syscallemu does not work on sparc (32-bit)"

Ok: Martin Husemann
2023-03-20 11:19:29 +00:00
martin d2b3f3ed15 __HAVE_HASHLOCKED_ATOMICS needs to be visible to userland 2023-03-20 11:07:33 +00:00
ozaki-r 4ff5c0b228 in6: reject setting negative values but -1 via setsockopt(IPV6_CHECKSUM)
Same as OpenBSD.
2023-03-20 09:15:52 +00:00
kre 98b2eb3607 Do a better job handling EACCES errors from exec() calls. If the
EACCES is from the namei(), treat it just like ENOENT or ENOTDIR
(and if that is the final error, the exit status from a failed exec
will be 127).   If the EACCES is from the exec() itself, that indicates
the file to be run exists, but has no 'x' permission.   That's a
meaningful error (as distinct from just "yet another PATH element
search failure").

While here, return the first meaingful error we encountered while
searching PATH, rather than the last (and ENOENT if there are none
of those).

This change results in some failed command executions returning status
127 now, where they returned 126 before - which better reflects the
intent of those values (127 is simply "not found" whereas 126 is "found
but couldn't be executed").

We still do nothing to distinguish errors encountered looking up the
command name give, with errors encountered (by the kernel) attempting to
run an interpreter needed for the exec to succeed (#! line path, or
/libexec/ld.elf_so and similar - or anything else of a similar nature).
2023-03-19 17:55:57 +00:00
kre 91522b5b9d Switch from using _setjmp()/_longjmp() (on BSD systems which aren't SVR4)
(and setjmp()/longjmp() elsewhere) to using sigsetjmp()/siglongjmp()
everywhere.

NFCI.
2023-03-19 17:47:48 +00:00
kre d45073cdfd Change a few #defines from octal to hex (pdp11 days are long gone).
Improve the layout of those definitions at the same time.

NFC.
2023-03-19 17:45:29 +00:00
kre ba290545c4 PR misc/57276 from Nan Xiao
Remove redundant word ("to").
2023-03-19 17:26:12 +00:00