275903 Commits

Author SHA1 Message Date
maxv
7ee848d944 Add tests for USER_LDT. 2020-04-19 13:22:58 +00:00
nia
d4490f2a9c ossaudio: Make SNDCTL_DSP_[GET|SET][PLAY|RECORD]VOL closer to OSSv4
Problems in the previous code include returning values in the 0-255
range NetBSD uses instead of the 0-100 range OSSv4 expects, using
AUDIO_GETBUFINFO (which doesn't even return the mixer bits), and
not encoding channels as specified: "level=(left)|(right << 8)".

In reality, setting the gain in this way (through /dev/audio rather
than /dev/mixer) doesn't seem to work properly, and the mixer-set
value seems to be retained.

However, these changes at least ensure that the return values are
correct and the balance is set correctly.

I've only found one application using this API (audio/audacious), and
OSSv4 support in it is currently disabled precisely because it breaks
when it attempts to set the track volume using it.
2020-04-19 11:27:40 +00:00
jdolecek
ea74510ce4 revert previous, it actually doesn't help so no reason to diverge from xen 2020-04-19 11:01:35 +00:00
skrll
e5ed078588 Fix UVMHIST_LOG compile on 32bit platforms 2020-04-19 08:59:53 +00:00
skrll
71f37a6c58 Fix typo in UVMHIST_LOG 2020-04-19 08:50:54 +00:00
isaki
64bde40057 Fix round_blocksize not to return 0. 2020-04-19 08:18:19 +00:00
isaki
5820741caf Make round_blocksize satisfy all of
- restrictions that existed before merging isaki-audio2 branch.
- better support for 6 channels hardware.
- audio layer's requirement.
This may help PR kern/54474.
2020-04-19 04:13:09 +00:00
isaki
518e6f838b Improve the blocksize notation.
The blocksize is expressed in bytes, and the millisecond notation
is supplementary information to make it easier to understand.
2020-04-19 03:52:22 +00:00
riastradh
6f8facdffd Need <sys/types.h> for uint32_t and uintptr_t. 2020-04-19 03:12:35 +00:00
riastradh
1b874954e1 do {...} while (0) to make DTRACE_PROBE macros proper statements. 2020-04-19 03:12:26 +00:00
joerg
25a494ecc4 Rename __atomic_fork to __locked_fork and give it &errno as argument.
rtld and libc use different storage, so the initial version would
incorrectly report the failure reason for fork().

There is still a small race condition inside ld.elf_so as it doesn't use
thread-safe errno internally, but that's a more contained internal
issue.
2020-04-19 01:06:15 +00:00
thorpej
77abcafc06 Rename "syscall" to "_syscall" and provide "syscall" as a weak alias. 2020-04-18 23:55:50 +00:00
jdolecek
a513e9246a read feature-persistent value on connect, e.g. the Linux Dom0 writes
the value only together with the device info; no functional difference,
since we don't allow persistent mappings
2020-04-18 23:24:49 +00:00
sevan
95b8f8498c document history 2020-04-18 22:03:51 +00:00
sevan
ad16dbb6f1 grammar 2020-04-18 22:02:11 +00:00
christos
cd11565244 Add -s (SINGLE_JOB) from OpenBSD. 2020-04-18 19:32:19 +00:00
jhigh
3fba244ae4 added blowfish symmetric cipher per RFC4880 9.2 2020-04-18 19:27:48 +00:00
christos
0c792cd1aa Extended attribute support for ffsv2, from FreeBSD. 2020-04-18 19:18:33 +00:00
wiz
0f2169d04c Remove trailing comma. 2020-04-18 18:55:20 +00:00
christos
a7c92d4c47 Oops, need the header too. 2020-04-18 17:45:16 +00:00
christos
37baba21c7 PR/55177: Carlo Arenas: mremap(MAP_REMAPDUP) fails after fork() 2020-04-18 17:44:53 +00:00
jakllsch
b019cf1f9e msk(4): Avoid bus_dmamap_destroy() in msk_stop()
bus_dmamap_destroy() can not be executed in soft interrupt context,
and msk_stop() can be called in soft interrupt context.

As such, move creation and destruction of tx dmamaps to attach() and
detach() functions.
2020-04-18 17:31:52 +00:00
riastradh
b9b3063225 Fix trailing whitespace. 2020-04-18 17:22:26 +00:00
christos
5c16a9ef82 be consistent about byte flipping (cosmetic no functional change) 2020-04-18 17:02:00 +00:00
jdolecek
56fe042454 make compile with XBD_DEBUG 2020-04-18 16:58:00 +00:00
thorpej
81b0afaa64 In _if_down(), release the link state change lock before calling
workqueue_wait().  Add a comment explaining how the locking here
works.

PR kern/55018.
2020-04-18 15:56:26 +00:00
jdolecek
39b0cf9180 enable NO_IOBUF_ALIGNED for x_newfs and x_fsck_ffs 2020-04-18 12:56:38 +00:00
jdolecek
1ef16aec19 add NO_IOBUF_ALIGNED to not pull aligned_alloc() for really constrained
boot media
2020-04-18 12:54:38 +00:00
martin
05a291731f Remove unused variable (to fix the build) 2020-04-18 12:25:01 +00:00
skrll
a73d6e1023 PMAP_DEBUG has been deleted on arm 2020-04-18 11:00:37 +00:00
skrll
d8a8713a3b Trailing whitespace 2020-04-18 10:55:43 +00:00
skrll
5c748a1b9f Remove PMAP_DEBUG by converting to UVMHIST 2020-04-18 10:46:32 +00:00
joerg
2fa1fa78ae It's __RCSID for an extra level of indirection on PPC 2020-04-18 10:37:37 +00:00
martin
429b07135e Fix copy & pasto in previous (to fix the build) 2020-04-18 10:30:49 +00:00
reinoud
93d5858ef9 Believe the datablocks predictor when determining if data on a node gets
stored internal or not. Also make a note that the datablocks predictor takes
NO extended attributes stored in the node into account

In rare cases it could lead to confusion where the predictor would say it
wouldn't fit internally when it could just have fitted. This would trigger the
assertion. Now it will on rare accasions create a datablock even though it
might have fitted.
2020-04-18 09:45:45 +00:00
simonb
3c45977c8d Regen. 2020-04-18 07:10:28 +00:00
simonb
f75bc23e83 Add ATI Radeon R5/R6/R7 Graphics. 2020-04-18 07:09:33 +00:00
thorpej
9fc3fff218 Add an API to get a reference on the identity of an individual byte of
virtual memory, a "virtual object address".  This is not a reference to
a physical byte of memory, per se, but a reference to a byte residing
in a page, owned by a unique UVM object (either a uobj or an anon).  Two
separate address+addresses space tuples that reference the same byte in
an object (such as a location in a shared memory segment) will resolve
to equivalent virtual object addresses.  Even if the residency status
of the page changes, the virtual object address remains unchanged.

struct uvm_voaddr -- a structure that encapsulates this address reference.

uvm_voaddr_acquire() -- a function to acquire this address reference,
given a vm_map and a vaddr_t.

uvm_voaddr_release() -- a function to release this address reference.

uvm_voaddr_compare() -- a function to compare two such address references.

uvm_voaddr_acquire() resolves the COW status of the object address before
acquiring.

In collaboration with riastradh@ and chs@.
2020-04-18 03:27:13 +00:00
kamil
4aca7fab96 Switch from C11 specific static_assert() to __CTASSERT() 2020-04-17 22:53:52 +00:00
ad
74ff427e71 Now that inputFS is dynamically allocated, make sure it's always non-NULL.
Fixes core dumps when building CDE.
2020-04-17 22:35:18 +00:00
pgoyette
4e06cde223 Move the range example (for 8-11) to follow the range definition, and to
preceed the random (?) discussion (and the corresponding random example)
2020-04-17 19:42:14 +00:00
christos
685ba05b53 Put back the ? syntax accidentally removed when syncing with the OpenBSD
man page.
2020-04-17 18:39:31 +00:00
jdolecek
efee1aad48 remove documentation for (non-atomic) boottime, it was eliminated
from kernel in 2020-01-02 by thorpej@
2020-04-17 17:43:38 +00:00
maxv
b734c22d3b Slightly reorder for clarity, and add header. 2020-04-17 17:24:46 +00:00
kamil
3e0acd5a41 Remove the static_assert() fallback for pre-C11 and pre-C++11
C++ without real static_assert() can be incompatible with the C fallback
as presented in openjdk.

A pre-C11 compiler can be picky on the implementation.
2020-04-17 15:22:34 +00:00
joerg
8b7210e97b Don't use typedef at all for __CTASSERT1. 2020-04-17 14:59:23 +00:00
jdolecek
ad81495fd9 include aligned_alloc(3), now needed for newfs and fsck_ffs 2020-04-17 14:55:24 +00:00
kamil
0b20f29024 Fix __CTASSERT1() in sys/cdefs.h for recent Clang/LLVM
Clang now implements a restriction on giving non-C-compatible anonymous
structs a typedef name for linkage purposes, as described in C++ committee
paper `P1766R1 <http://wg21.link/p1766r1>'.

https://reviews.llvm.org/D74103
2020-04-17 14:33:42 +00:00
joerg
628289e37e Mark the .ident section as mergable string section to avoid redundant
entries.
2020-04-17 14:19:43 +00:00
kim
568e57b236 Update date 2020-04-17 13:36:48 +00:00