254410 Commits

Author SHA1 Message Date
kre
8e6efd95bb XEN apparently has no fpuinit_mxcsr_mask() and hasn't needed it until
now, so just omit this (as it was before) for XEN.   If this is not
correct, someone who knows x86's & the XEN interface can fix it, but
at least it should build, and be essentially the same as before now.
2017-11-03 13:11:39 +00:00
mlelstv
c2bc1c4bc6 Add WDF_OPEN flag to really disallow opening of a disk that has been invalidated.
Restore wdbiorestart function to actually retry the failed I/O request instead
of just restarting the queue.

Fix compilation without ATADEBUG.
2017-11-03 13:01:26 +00:00
maxv
4e8a8f71db Handle absolute relocations coming from the kernel: preserve SHN_ABS in
the kernel and module symbols, and when relocating a symbol that has
SHN_ABS, take its value as-is and don't return an error if it equals zero.

Sent on tech-kern@.
2017-11-03 09:59:07 +00:00
maxv
2954611269 Fix MXCSR_MASK, it needs to be detected dynamically, otherwise when masking
MXCSR we are losing some features (eg DAZ).
2017-11-03 07:14:24 +00:00
nat
e13e341b58 No need to ratify block size twice as this is done in audio_initbufs.
This is a rework of rev 1.421.
2017-11-03 05:31:38 +00:00
nat
5ef468cb75 Calc latency when altering precision, frequency and channels sysctls. 2017-11-03 05:09:49 +00:00
nat
bc03d86400 Allow for block sizes less than hw block size. This allows for the lowest
possible latency for all precision, sample rate and frequencies.

This is a rework of rev 1.419.
2017-11-03 05:07:37 +00:00
nat
4a6596f95c Use mix ring block size in audio write, startp, and audio drain. 2017-11-03 05:04:17 +00:00
kamil
3720ea4f1f Revert previous on demand.
Rationale:

The DSO handle is a required part of the (external) __cxa_atexit interface.
The atexit mapping is an implementation detail and not part of the public
interface. Doing it directly creates UB as it involves casting function
pointers between incompatible types.

  -- Joerg
2017-11-02 19:39:33 +00:00
kamil
5919a1817c Correct handling of __cxa_atexit(a,b,NULL) in libc
In the NetBSD implementation and suggested by Itanium C++ ABI, we wrap
the atexit(x) call as __cxa_atexit(x,NULL,NULL).

__cxa_atexit() is an internal function for the usage of C++.

Correct a bug that __cxa_atexit(x,y,NULL) is handled in the same way as
atexit(x) (which is simplified to __cxa_atexit(x,NULL,NULL).

This misbehavior has been detected in the Thread Sanitizer port to NetBSD.

Patch reviewed by <christos>

Sponsored by <The NetBSD Foundation>
2017-11-02 18:37:14 +00:00
christos
4fac11b8ba Avoid negative shift. 2017-11-02 16:09:33 +00:00
riastradh
50a782dc6e C99ify initialization of dummy_timecounter. 2017-11-02 15:28:23 +00:00
skrll
81f10ee7af ISA exists on more that just shark. Fix a comment about this. 2017-11-02 09:42:44 +00:00
msaitoh
1def392b27 - Handle hw.ixgN.advertise_speed correctly.
- Fix hw.ixgN.advertise_speed sysctl's description.
2017-11-02 08:41:15 +00:00
nat
69a2b841f3 Revert commit rev 1.419 to audio.c. This should address PR kern/52685.
This also means that drivers that have a static block size will have more
latency at lower sample rates/precision/channels.  Also audio drivers that
do more than supply rounded blocksizes in their round_blocksize functions
will have to be changed.
2017-11-02 02:08:02 +00:00
wiz
9c00d37a42 Add space. 2017-11-01 23:00:05 +00:00
jdolecek
8b7dc80956 one down - mlelstv converted wd(4) to dksubr 2017-11-01 21:27:22 +00:00
skrll
6e506ab937 Unwrap two lines. NFC. 2017-11-01 21:13:26 +00:00
skrll
5003653f08 Fix a comment 2017-11-01 21:11:44 +00:00
mlelstv
cd89d24ed3 refactor wd and ataraid drivers to use common disk subroutines. 2017-11-01 19:34:45 +00:00
mlelstv
de36159cee Protect against multiple inclusion. 2017-11-01 19:15:31 +00:00
maxv
92f4c0ceee Handle absolute symbols. Since my linux_sigcode.S::rev1.4 there are two
Elf_Rela that point to the NULL symbol - which the prekern thought was an
external reference.

In the ELF spec, STN_UNDEF means the value of the symbol is zero.
2017-11-01 17:00:17 +00:00
khorben
dc0e2732cb BPM: beam propagation method (light)
BPM: beats per minute (music)
2017-11-01 15:34:28 +00:00
khorben
0765185eba Typo 2017-11-01 15:24:42 +00:00
riastradh
dba9723a2e PPS: pulse per second (signal) 2017-11-01 15:11:31 +00:00
maxv
e555dfb5eb Use NENTRY -> END. 2017-11-01 09:47:53 +00:00
maxv
4387c897ce More END(). In linux_sigcode.S we only provide symbols, not defined as
functions.
2017-11-01 09:38:43 +00:00
maxv
6ab0568a2a Add linux_sigcode.o, otherwise it doesn't get rebuilt. 2017-11-01 09:31:24 +00:00
maxv
ffa9b109ae Don't fall through functions, explicitly jump instead. While here don't
call smap_enable twice (harmless), and add END() markers.
2017-11-01 09:17:28 +00:00
martin
9920b5ab1d Add ./usr/libdata/debug/usr/tests/net/ipsec 2017-11-01 08:44:34 +00:00
martin
16d924d2d3 Add net/ipsec debug lib directory 2017-11-01 08:32:07 +00:00
maxv
e1a677204b Remove unused macros and LDT entries. 2017-11-01 07:14:29 +00:00
kre
7fc682ce26 Complete last change... 2017-11-01 05:42:32 +00:00
pgoyette
103cf3b520 Simplify, and avoid compiler warning for variable format string.
As discussed on IRC.
2017-11-01 01:47:00 +00:00
nat
cadf46dc9e Add padding to gus.c so fields match up when it ts cast to a ad1848_isa
softc for the allocation of hw ring buffers.

Locking fixes as gus KASSERTS / uses the codec locks.

Ok christos@.
2017-10-31 21:53:48 +00:00
nat
caf77590f5 Only allow blocksizes greater or equal to the calculated one.
This should help applications as the blocksize obtained (AUDIO_SET/GETINFO)
will work without stutter.

Ok christos@.
2017-10-31 21:18:02 +00:00
nat
3cd3e8f101 Move calculation of sc_latency into a function.
The latency of the audio device is updated on attach in the audio auto
config and shown on screen.

Ok christos@.
2017-10-31 21:13:24 +00:00
nat
a7a2f28741 round_blocksize is only used for the hardware ring buffer. All other
buffers (mix ring, streams) are set to be a power of 2.

This allows for consistent latency where a static blocksize is enforced by
the underlying audio device driver.

Ok christos@.
2017-10-31 21:09:26 +00:00
jdolecek
496e49f02c bring the WAPBL entry more up-to-date and sound less desperate,
there is not really much preventing it to be enabled by default for
new installs again actually
2017-10-31 19:03:32 +00:00
maxv
084990791f Remove outdated comment. 2017-10-31 18:30:36 +00:00
maxv
1485838bdc Zero out the buffer entirely. 2017-10-31 18:23:29 +00:00
maxv
278b4bf562 Mask mxcsr, otherwise userland could set reserved bits to 1 and make
xrstor fault.
2017-10-31 18:13:37 +00:00
kre
41a73baf28 unconst machine_arch32 for sysctl data .. pointed out by Riccardo Mottola 2017-10-31 16:10:25 +00:00
maxv
61186cf782 Initialize xstate_bv with the structures that were just filled in,
otherwise xrstor does not restore them. This can happen only if userland
calls setcontext without having used the FPU before.

Until rev1.15 xstate_bv was implicitly initialized because the xsave area
was not zeroed out properly.
2017-10-31 15:16:10 +00:00
christos
6f0aab799c undo - pointed out this is a register assignment. 2017-10-31 15:10:28 +00:00
christos
e37a7e0920 PR/52682: David Binderman: Fix wrong assignment (in the !__NetBSD__ code) 2017-10-31 15:00:03 +00:00
christos
63b52577c1 PR/52680: David Binderman: Remove dedundant assignment. 2017-10-31 14:55:45 +00:00
martin
9356c11652 PR kern/52681: fix msghdr conversion. 2017-10-31 12:43:56 +00:00
martin
a6bab1a764 Allow architectures to define a macro PROC_MACHINE_ARCH(P) and
PROC_MACHINE_ARCH32(P) to override the value for sysctl hw.machine_arch
(native and netbsd32 commpat resp.).

Use these for arm and mips instead of the (not working, noisy, in case
of arm) sysctl override and #ifdef __mips__ in architecture neutral
code.
2017-10-31 12:37:23 +00:00
maxv
d3526213ff Don't embed our own values in the reserved fields of the XSAVE area, it
really is a bad idea. Move them into the PCB.
2017-10-31 12:02:20 +00:00