1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
Commit Graph

111293 Commits

Author SHA1 Message Date
hshoexer
e8d7576f49 Use defines for constants. Use __attribute__ bounded.
ok markus@ (quite some time ago)
2008-11-04 23:08:47 +00:00
ratchov
5b34de854a conversions are smarter now, remove corresponding ``BUGS'' item 2008-11-04 22:20:08 +00:00
ratchov
0a76e6a657 split code that converts any->any in two parts: one to encode
native->any and one to decode any->native. It is simpler and
faster this way.
2008-11-04 22:18:12 +00:00
sobrado
2322a2e2a4 word better than number here. 2008-11-04 22:17:57 +00:00
deraadt
84719ddf03 uvmspace_unshare() is never used; ok miod 2008-11-04 21:37:06 +00:00
jakemsr
5407311d26 implement azalia_create_encodings, which scans through the supported
formats and creates an array of unique encodings.  use the array in
azalia_query_encoding.

in other words, no more duplicate encodings in `audioctl encodings`.
2008-11-04 20:55:43 +00:00
miod
a35f52b881 Reintroduce the extendsidi2 optimized sequence, but as a define_split
construct, so that it is still written in rtl statements, and part of
it can be put in a delay slot. And the way it's written now, it does not
create bogus uninitialized warnings.
2008-11-04 20:52:28 +00:00
jakemsr
b647692984 need to take mode into account when verifying/setting parameters 2008-11-04 20:48:14 +00:00
deraadt
70bc2f54a6 sync 2008-11-04 20:04:34 +00:00
chl
785024687f fix potential null dereference.
Found by LLVM/Clang Static Analyzer.

initial patch from me, rewritten by jsing@

ok jsg@
2008-11-04 19:20:22 +00:00
stevesk
0d71b6d5d9 because parse_forward() is now used to parse all forward types (DLR),
and it malloc's space for host variables, we don't need to malloc
here.  fixes small memory leaks.

previously dynamic forwards were not parsed in parse_forward() and
space was not malloc'd in that case.

ok djm@
2008-11-04 19:18:00 +00:00
espie
40e26ef46b spelling: ambigious -> ambiguous 2008-11-04 19:00:08 +00:00
ratchov
905425fa78 cleanup: remove channel mapping bits from encoding conversion code.
As a side effect, reduce CPU usage by ~10% on envy(4) devices.
2008-11-04 18:24:06 +00:00
ratchov
7dcd0bea7a add "new" conversion code to map any channel range into any other
channel range (based on the encoding conversion code). Will allow to
unentangle channel mapping from encoding conversion. As a side effect,
greatly reduces CPU usage for channel mapping. No functionnal change.
2008-11-04 17:51:46 +00:00
deraadt
28020c98db sync 2008-11-04 16:28:34 +00:00
deraadt
2ddd7f12bc new devs 2008-11-04 16:28:22 +00:00
oga
8f7198c381 If we need to call the tasklet function on unlock, we don't need to hold
tsk_lock (which blocks irqs) for the whole call of the function, just
when we manipulate the function pointer.
2008-11-04 16:19:54 +00:00
ratchov
013043a665 cleanup: resample stream while in native format and remove resampling
bits from the encoding conversion code. As a side effect this reduces
CPU usage by 30% on envy(4).
2008-11-04 15:22:40 +00:00
drahn
35896da716 missing setipl in the 'busy processing soft interrupts state'
causes high priority interrupts to be delayed until that state is cleared.
2008-11-04 14:28:24 +00:00
ratchov
b9d1c4b541 optimization: add "new" resampling code (actually based on the existing
conversion bits) and use it when resampling only is required (ie for
clients using s16 encoding), this is the most common case. Reduces CPU
usage by ~50%. No functional change.
2008-11-04 14:16:09 +00:00
brad
8f272d1231 Move the trunk port count check from trunk_lb_start() to trunk_start()
before the protocol start routine is called so as to cover all protocols
with the same check.

ok mpf@
2008-11-04 13:44:11 +00:00
djm
5e1e7a5242 Add support for an experimental zero-knowledge password authentication
method using the J-PAKE protocol described in F. Hao, P. Ryan,
"Password Authenticated Key Exchange by Juggling", 16th Workshop on
Security Protocols, Cambridge, April 2008.

This method allows password-based authentication without exposing
the password to the server. Instead, the client and server exchange
cryptographic proofs to demonstrate of knowledge of the password while
revealing nothing useful to an attacker or compromised endpoint.

This is experimental, work-in-progress code and is presently
compiled-time disabled (turn on -DJPAKE in Makefile.inc).

"just commit it.  It isn't too intrusive." deraadt@
2008-11-04 08:22:12 +00:00
jakemsr
e2a017db28 volume scaling/setting cleanup:
* MAX_VOLUME_255 has been defined for ages.  remove this define
and the code that was only being used when this wasn't defined.
* remove azalia_generic_mixer_{max,validate_value} since they
are pointless.
* when setting both stereo channels to the same level, just set
the right channel level to the left channel level instead of
calculating both separately.

from Alexey Suslikov
2008-11-04 07:58:43 +00:00
djm
0970178fad need unistd.h for close() prototype 2008-11-04 07:58:09 +00:00
espie
6c2dbbdaa4 changes to get target equivalence to work better.
- add new file to create lists of equivalent targets (siblings)
- use that for sequential mode to have much better VPATH support
- separate checking commands from reporting error, for later.
- zap DieHorribly accordingly
- renumber existing flags
- signal_running_jobs() is simpler than pass_signal_to_jobs()
- new debug option -dn for name matching.

Similar code to handle parallel make is still missing.

thanks to Mark, Miod, Theo, Otto, Todd for tests and/or comments.
2008-11-04 07:22:35 +00:00
brad
012659863d regen 2008-11-04 05:36:23 +00:00
brad
5f3c52f332 Add PCI ids for the Intel 7300 MCH and some more IDT PCI Express switches. 2008-11-04 05:35:58 +00:00
deraadt
2e00685f82 pcidevs 2008-11-04 02:48:19 +00:00
deraadt
b6405214d3 another intel g45 dev 2008-11-04 02:48:08 +00:00
oga
88dc8fe464 Kill some more ttm only defines. No binary change. 2008-11-04 00:47:02 +00:00
oga
e0d8c04625 The drawable spinlock is no longer ever held in interrupt context (and
won't be). It doesn't need to block interrupts anymore so switch to
IPL_NONE.
2008-11-04 00:42:52 +00:00
oga
5b970714a7 Enable IMR passthrough of vblank events before enabling it in the
pipestat register. Fixes a nasty race where the bit would get set
without being reflected in the interrupt register, so we'd never get
another vblank interrupt.

Also, use the user_irq_lock to also protect vblank register writes, since it
covers the same register.

From Eric Anholt and  Keith Packard at Intel.
2008-11-04 00:38:14 +00:00
oga
652713dba0 Hold the drm lock around all things that touch the ringbuffer.
Not strictly needed in the non-gem case, but it will be needed then, and
doesn't hurt now.

From Eric Anholt at intel.
2008-11-04 00:22:12 +00:00
oga
043d190292 revert the pageflipping and vblank sync code to the older style that
doesn't handle triple buffering (which has been marked ``don't use this,
it's unstable'' for ever anyway)

While the code just removed is in drm git. it's not planned to go any
further, due to being a horribly ugly hack. Instead a proper fix which
will depend on memory management is planned. So revert this stuff here,
since it's now dead.

Testing shows no regressions.
2008-11-04 00:00:23 +00:00
ratchov
98e08d4061 rename mixxxx and subxxx fields of struct abuf to avoid confusion:
Add ``i'' to offsets in the input buffer and ``o'' to offsets
in the output buffer. This is necessary because input and output
use no more the same frame size.
2008-11-03 22:55:34 +00:00
ratchov
75c5fbd47e A small optimization: handle most N-channel <-> M-channel conversions
inside the mixer and the demultiplexer. This way, aucat will not
trigger the heavy conversion code when only channel conversions are
required. Cuts ~50% of the CPU usage on envy(4) devices, can improve
surround 4.0, 5.1 and 7.1 capable devices. No functionnal change.
2008-11-03 22:25:13 +00:00
claudio
15409be13c Forgot this docu bit in the M_ANYCAST6 removal. This is actually from naddy@ 2008-11-03 22:16:51 +00:00
jmc
d4d83b05e9 ...and then sync tildehelp and mail9.nr; 2008-11-03 20:07:42 +00:00
jmc
ef9e5e9477 update the tilde escapes for both these files,
and try and keep them in a similar format/order;
2008-11-03 18:50:12 +00:00
jmc
3a17b2e42a poor USD docs, we always forget you! ...document ~x 2008-11-03 18:20:45 +00:00
damien
021c4f17fa s/5GHZ/5GHz/ for consistency. 2008-11-03 17:36:49 +00:00
damien
8dcbf75752 HW CCMP + use plural for firmware files. 2008-11-03 17:29:47 +00:00
damien
097c8b0642 HW CCMP encryption/decryption of unicast frames.
HW support for other ciphers (TKIP) really sucks (no Michael MIC,
not even TKIP Phase 1) and is thus not implemented here.

fix a panic in iwn_fatal_intr() when dumping the firmware error
log while i'm here.
2008-11-03 17:19:54 +00:00
martynas
c09de76ff2 add ~x; which is quite handy sometimes. per posix
man page tweak&ok jmc@.  ok millert@
2008-11-03 15:42:35 +00:00
jmc
4c3e5831f3 sync to openssl-0.9.8i;
i still haven't folded in x509v3_config.pod, since i'm not entirely
sure what to do with it.
2008-11-03 14:49:23 +00:00
espie
c00440a45f handle Xrefs to XFree as well
okay grunk@, jmc@
2008-11-03 12:17:01 +00:00
espie
ca516d992b handle 3p manpages correctly
Also remove some warnings for OpenBSD, since /pub/OpenBSD
will occur very often in tool samples.

okay grunk@, jmc@
2008-11-03 12:14:46 +00:00
robert
3b8efc23c8 regen 2008-11-03 11:42:44 +00:00
robert
096b27fd49 add Radeon HD 3650 2008-11-03 11:42:15 +00:00
sobrado
6b66fd8d52 use colon before a list. 2008-11-03 09:44:27 +00:00