]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoLast step to make mq_notify conform to POSIX standard, If the process
davidxu [Wed, 30 Nov 2005 05:12:03 +0000 (05:12 +0000)]
Last step to make mq_notify conform to POSIX standard, If the process
has successfully attached a notification request to the message queue
via a queue descriptor, file closing should remove the attachment.

18 years agoFixed the hi+lo approximation to log(2). The normal 17+24 bit decomposition
bde [Wed, 30 Nov 2005 04:56:49 +0000 (04:56 +0000)]
Fixed the hi+lo approximation to log(2).  The normal 17+24 bit decomposition
that was used doesn't work normally here, since we want to be able to
multiply `hi' by the exponent of x _exactly_, and the exponent of x has
more than 7 significant bits for most denormal x's, so the multiplication
was not always exact despite a cloned comment claiming that it was.  (The
comment is correct in the double precision case -- with the normal 33+53
bit decomposition the exponent can have 20 significant bits and the extra
bit for denormals is only the 11th.)

Fixing this had little or no effect for denormals (I think because
more precision is inherently lost for denormals than is lost by roundoff
errors in the multiplication).

The fix is to reduce the precision of the decomposition to 16+24 bits.
Due to 2 bugs in the old deomposition and numerical accidents, reducing
the precision actually increased the precision of hi+lo.  The old hi+lo
had about 39 bits instead of at least 41 like it should have had.
There were off-by-1-bit errors in each of hi and lo, apparently due
to mistranslation from the double precision hi and lo.  The correct
16 bit hi happens to give about 19 bits of precision, so the correct
hi+lo gives about 43 bits instead of at least 40.  The end result is
that expf() is now perfectly rounded (to nearest) except in 52561 cases
instead of except in 67027 cases, and the maximum error is 0.5013 ulps
instead of 0.5023 ulps.

18 years agoUpdate conformance and history sections.
davidxu [Wed, 30 Nov 2005 04:15:44 +0000 (04:15 +0000)]
Update conformance and history sections.

18 years agoSymlink mq_send to mq_timedsend.
davidxu [Wed, 30 Nov 2005 04:14:53 +0000 (04:14 +0000)]
Symlink mq_send to mq_timedsend.
Symlink mq_receive to mq_timedreceive.

18 years agoAdd manuals for POSIX message queue.
davidxu [Wed, 30 Nov 2005 04:12:37 +0000 (04:12 +0000)]
Add manuals for POSIX message queue.

18 years agoFix misspelling in Poul-Henning Kamp's email address under AUTHORS, from
tmclaugh [Wed, 30 Nov 2005 04:08:45 +0000 (04:08 +0000)]
Fix misspelling in Poul-Henning Kamp's email address under AUTHORS, from
pkh@ to phk@.

Approved by: ade

18 years agoAdd codec ID for Avance Logic ALC203
yongari [Wed, 30 Nov 2005 01:44:22 +0000 (01:44 +0000)]
Add codec ID for Avance Logic ALC203

18 years agoFix snderr() to not leak the socket buffer lock if an error occurs in
jhb [Tue, 29 Nov 2005 23:07:14 +0000 (23:07 +0000)]
Fix snderr() to not leak the socket buffer lock if an error occurs in
sosend().  Robert accidentally changed the snderr() macro to jump to the
out label which assumes the lock is already released rather than the
release label which drops the lock in his previous change to sosend().
This should fix the recent panics about returning from write(2) with the
socket lock held and the most recent LOR on current@.

18 years agoThe DEFAULTS changes caused the user specified config file to be opened
peter [Tue, 29 Nov 2005 22:54:49 +0000 (22:54 +0000)]
The DEFAULTS changes caused the user specified config file to be opened
much later than before, and it is now after we do a mkdir ../compile/FILE.
As a result, if you do 'config DOESNOTEXIST', it now creates the directory
../config/DOESNOTEXIST.  It did not do that before.  If DEFAULTS does not
exist, it still fails early before any permanent changes.

This shameless hack restores the old behavior of ensuring the config file
actually exists before mkdiring its counterpart directory.

Now I can rmdir ../compile/D and it will stay dead, after my fingers keep
sabotaging me with 'config D<tab><enter>'.  (Some of my kernel names
started with D, which used to be 1-character unique and my fingers knew
this very well...)

18 years agoTell Rx radiotap that hardware leaves FCS at the end of the frame.
damien [Tue, 29 Nov 2005 21:36:15 +0000 (21:36 +0000)]
Tell Rx radiotap that hardware leaves FCS at the end of the frame.

Obtained from: NetBSD (drochner@)

18 years agoSync with ural:
damien [Tue, 29 Nov 2005 21:30:16 +0000 (21:30 +0000)]
Sync with ural:
o Send management frames at the lowest possible rate.
o Cosmetic tweaks.

18 years agoUse usbd_clear_endpoint_stall_async() instead of usbd_clear_endpoint_stall()
damien [Tue, 29 Nov 2005 21:07:32 +0000 (21:07 +0000)]
Use usbd_clear_endpoint_stall_async() instead of usbd_clear_endpoint_stall()
in Tx/Rx callbacks.

Obtained from: NetBSD

18 years agoo Send management frames at the lowest possible rate.
damien [Tue, 29 Nov 2005 20:55:53 +0000 (20:55 +0000)]
o Send management frames at the lowest possible rate.
o Include rate in the Rx radiotap code.
o Fix RSSI value in the Rx path.
o Minor tweaks.

18 years agoThe bridge is capable of sending broadcast packets so enable IFF_BROADCAST
thompsa [Tue, 29 Nov 2005 20:29:44 +0000 (20:29 +0000)]
The bridge is capable of sending broadcast packets so enable IFF_BROADCAST

Requested by: des

18 years agoFix the ata_composite/ata_request leak when using RAID0+1.
sos [Tue, 29 Nov 2005 20:08:26 +0000 (20:08 +0000)]
Fix the ata_composite/ata_request leak when using RAID0+1.

Submitted by: Michael Butler

Minor changes to fit ATA style by me.

18 years agoLet kmod.mk create empty opt_*.h files.
ru [Tue, 29 Nov 2005 19:39:04 +0000 (19:39 +0000)]
Let kmod.mk create empty opt_*.h files.

18 years agoDocument removal of nodev mount option.
rodrigc [Tue, 29 Nov 2005 19:13:28 +0000 (19:13 +0000)]
Document removal of nodev mount option.

Requested by: gleb

18 years agoobey opt_inet6.h and opt_ipsec.h in kernel build directory.
ume [Tue, 29 Nov 2005 17:56:11 +0000 (17:56 +0000)]
obey opt_inet6.h and opt_ipsec.h in kernel build directory.

Requested by: hrs

18 years ago- We don't install USD docs for games anymore since the games with docs
jhb [Tue, 29 Nov 2005 17:11:09 +0000 (17:11 +0000)]
- We don't install USD docs for games anymore since the games with docs
  (trek) aren't in the base system anymore.
- dm(8) isn't in the base system anymore either, so don't xref it either.

Submitted by: Björn König (2)

18 years agoRemove references to rdist(1) and friends.
jhb [Tue, 29 Nov 2005 17:07:04 +0000 (17:07 +0000)]
Remove references to rdist(1) and friends.

Submitted by: Björn König

18 years ago- Axe the PARTITIONING and IOCTLS section as this has been made obsolete
jhb [Tue, 29 Nov 2005 16:51:49 +0000 (16:51 +0000)]
- Axe the PARTITIONING and IOCTLS section as this has been made obsolete
  now that all that stuff has been abstracted out of the disk drivers with
  GEOM.
- Reference bsdlabel(8) rather than disklabel(8).

Ok'd by: phk, scottl (1)
Submitted by: Björn König (2)

18 years agoCorrect xref to systat(1) which was mispelled as ststat(1) in 1.5.
jhb [Tue, 29 Nov 2005 16:33:44 +0000 (16:33 +0000)]
Correct xref to systat(1) which was mispelled as ststat(1) in 1.5.

Submitted by: Björn König bkoenig at cs dot tu-berlin dot de

18 years agoWe couldn't specify the rule for filtering tunnel traffic since an
ume [Tue, 29 Nov 2005 15:25:09 +0000 (15:25 +0000)]
We couldn't specify the rule for filtering tunnel traffic since an
IPv6 support was committed:

- Stop treating `ip' and `ipv6' as special in `proto' option as they
  conflict with /etc/protocols.

- Disuse `ipv4' in `proto' option as it is corresponding to `ipv6'.

- When protocol is specified as numeric, treat it as it is even it is
  41 (ipv6).

- Allow zero for protocol as it is valid number of `ip'.

Still, we cannot specify an IPv6 over an IPv4 tunnel like before such
as:

pass ipv6 from any to any

But, now, you can specify it like:

pass ip4 from any to any proto ipv6

PR: kern/89472
Reported by: Ga l Roualland <gael.roualland__at__dial.oleane.com>
MFC after: 1 week

18 years agoWe do nothing with returned error value, so just remove it.
pjd [Tue, 29 Nov 2005 12:07:10 +0000 (12:07 +0000)]
We do nothing with returned error value, so just remove it.

18 years agoCatch up with ip_dummynet.h rev. 1.38 and fix build.
glebius [Tue, 29 Nov 2005 12:01:26 +0000 (12:01 +0000)]
Catch up with ip_dummynet.h rev. 1.38 and fix build.

18 years agoUnexpand LLADDR().
ru [Tue, 29 Nov 2005 09:51:47 +0000 (09:51 +0000)]
Unexpand LLADDR().

18 years agoSeparate the hardware definitions into ipsreg.h so they can be used by
scottl [Tue, 29 Nov 2005 09:39:41 +0000 (09:39 +0000)]
Separate the hardware definitions into ipsreg.h so they can be used by
future userland tools.

18 years agoDrop the -I/usr/include (or any of its variants) from CFLAGS.
ru [Tue, 29 Nov 2005 09:37:42 +0000 (09:37 +0000)]
Drop the -I/usr/include (or any of its variants) from CFLAGS.
The sys/sys/stddef.h is here for some time now to fulfil the
kernel needs.  It also was not reliable due to the exists(@)
check: in an empty module directory, "make depend; mv .depend
.depend~; make depend" ran mkdep(1) with different arguments.

18 years ago Garbage-collect now unused struct _ipfw_insn_pipe and flush_pipe_ptrs(),
glebius [Tue, 29 Nov 2005 08:59:41 +0000 (08:59 +0000)]
  Garbage-collect now unused struct _ipfw_insn_pipe and flush_pipe_ptrs(),
thus removing a few XXXes.
  Document the ABI breakage in UPDATING.

18 years agoNew SiS support.
brueffer [Tue, 29 Nov 2005 06:40:19 +0000 (06:40 +0000)]
New SiS support.

18 years agoAdd notes about ATI IXP audio controller.
ariff [Tue, 29 Nov 2005 05:31:46 +0000 (05:31 +0000)]
Add notes about ATI IXP audio controller.

18 years agoAdd support for the i855GM, tested by an r300 user.
anholt [Tue, 29 Nov 2005 04:53:22 +0000 (04:53 +0000)]
Add support for the i855GM, tested by an r300 user.

18 years agoCheck value returned by g_read_data(9), otherwise we can end in panic(9)
sobomax [Tue, 29 Nov 2005 03:03:34 +0000 (03:03 +0000)]
Check value returned by g_read_data(9), otherwise we can end in panic(9)
if read error happens.

MFC after: 1 week

18 years agoRemove MNT_NODEV mount option. In RELENG_6, MNT_NODEV was a no-op.
rodrigc [Tue, 29 Nov 2005 00:28:17 +0000 (00:28 +0000)]
Remove MNT_NODEV mount option.  In RELENG_6, MNT_NODEV was a no-op.
The presence of MNT_NODEV was confusing the am-utils autoconf scripts.

PR: conf/79715

18 years agoFirst step in removing welding between ipfw(4) and dummynet.
glebius [Tue, 29 Nov 2005 00:11:01 +0000 (00:11 +0000)]
First step in removing welding between ipfw(4) and dummynet.

o Do not use ipfw_insn_pipe->pipe_ptr in locate_flowset(). The
  _ipfw_insn_pipe isn't touched by this commit to preserve ABI
  compatibility.
o To optimize the lookup of the pipe/flowset in locate_flowset()
  introduce hashes for pipes and queues:
  - To preserve ABI compatibility utilize the place of global list
    pointer for SLIST_ENTRY.
  - Introduce locate_flowset(queue nr) and locate_pipe(pipe nr).
o Rework all the dummynet code to deal with the hashes, not global
  lists. Also did some style(9) changes in the code blocks that were
  touched by this sweep:
  - Be conservative about flowset and pipe variable names on stack,
    use "fs" and "pipe" everywhere.
  - Cleanup whitespaces.
  - Sort variables.
  - Give variables more meaningful names.
  - Uppercase and dots in comments.
  - ENOMEM when malloc(9) failed.

18 years agoUpdate DRM to CVS snapshot as of 2005-11-28. Notable changes:
anholt [Mon, 28 Nov 2005 23:13:57 +0000 (23:13 +0000)]
Update DRM to CVS snapshot as of 2005-11-28.  Notable changes:
- S3 Savage driver ported.
- Added support for ATI_fragment_shader registers for r200.
- Improved r300 support, needed for latest r300 DRI driver.
- (possibly) r300 PCIE support, needs X.Org server from CVS.
- Added support for PCI Matrox cards.
- Software fallbacks fixed for Rage 128, which used to render badly or hang.
- Some issues reported by WITNESS are fixed.
- i915 module Makefile added, as the driver may now be working, but is untested.
- Added scripts for copying and preprocessing DRM CVS for inclusion in the
  kernel.  Thanks to Daniel Stone for getting me started on that.

18 years agoFix SiS SATA support, the SATA registers was off.
sos [Mon, 28 Nov 2005 23:08:37 +0000 (23:08 +0000)]
Fix SiS SATA support, the SATA registers was off.
Add support for SiS metadata.

HW donated by: obrien

18 years agoMove zero copy statistics structure before sosend_copyin().
rwatson [Mon, 28 Nov 2005 21:45:36 +0000 (21:45 +0000)]
Move zero copy statistics structure before sosend_copyin().

MFC after: 1 month
Reported by: tinderbox, sam

18 years agoIf we get a stray interrupt, return after logging it. In the extremely
jhb [Mon, 28 Nov 2005 20:18:43 +0000 (20:18 +0000)]
If we get a stray interrupt, return after logging it.  In the extremely
rare case of a stray interrupt to an unregistered source (such as a stray
interrupt from the 8259As when using APIC), this could result in a page
fault when it tried to walk the list of interrupt handlers to execute
INTR_FAST handlers.  This bug was introduced with the intr_event changes,
so it's not present in 5.x or 6.x.

Submitted by: Mark Tinguely tinguely at casselton dot net

18 years agoWhen checking to see if a process has exceeded its time limit, flag the
jhb [Mon, 28 Nov 2005 19:09:08 +0000 (19:09 +0000)]
When checking to see if a process has exceeded its time limit, flag the
process as over the limit when its time is >= to the limit rather than >
the limit.  Technically, if p->p_rux.rux_runtime.sec == p->p_pcpulimit
and p->p_rux.rux_runtime.frac == 0, the process hasn't exceeded the limit
yet.  However, having the fraction exactly equal to 0 is rather rare, and
it is not worth the overhead to handle that edge case.  With just the >
comparison, the process would have to exceed its limit by almost a second
before it was killed.

PR: kern/83192
Submitted by: Maciej Zawadzinski mzawadzinski at gmail dot com
Reviewed by: bde
MFC after: 1 week

18 years agos/Advance/Avance/
joel [Mon, 28 Nov 2005 18:56:38 +0000 (18:56 +0000)]
s/Advance/Avance/

18 years agoNo one cares about when the manual page first appeared. Mention when the
joel [Mon, 28 Nov 2005 18:47:00 +0000 (18:47 +0000)]
No one cares about when the manual page first appeared.  Mention when the
driver appeared instead.

18 years agoBreak out functionality in sosend() responsible for building mbuf
rwatson [Mon, 28 Nov 2005 18:09:03 +0000 (18:09 +0000)]
Break out functionality in sosend() responsible for building mbuf
chains and copying in mbufs from the body of the send logic, creating
a new function sosend_copyin().  This changes makes sosend() almost
readable, and will allow the same logic to be used by tailored socket
send routines.

MFC after: 1 month
Reviewed by: andre, glebius

18 years agoRemove two lines of debugging output that accidentally snuck into the
rwatson [Mon, 28 Nov 2005 18:06:21 +0000 (18:06 +0000)]
Remove two lines of debugging output that accidentally snuck into the
commit to fix up kvm support for netstat -m.

18 years agoVersion 600004 is better than 700000 given other changes that are in
imp [Mon, 28 Nov 2005 17:51:31 +0000 (17:51 +0000)]
Version 600004 is better than 700000 given other changes that are in
the pipeline.  We had to bump the version for 600004 because the old
parser got confused and generated bogus output.

Approved by: ru@

18 years agoAdd AUTHORS section.
joel [Mon, 28 Nov 2005 17:48:09 +0000 (17:48 +0000)]
Add AUTHORS section.

18 years ago600004 is a better new version than 700000 based on some future commits to
imp [Mon, 28 Nov 2005 17:47:54 +0000 (17:47 +0000)]
600004 is a better new version than 700000 based on some future commits to
this file.  With ru@'s approval, change it to this version.  In this case we
had to bump the version because the old parser would choke on | in the new
'or' syntax and consider that a device.

Approved by: ru@

18 years agoAutogenerate hardware notes for snd_atiixp(4).
brueffer [Mon, 28 Nov 2005 16:53:16 +0000 (16:53 +0000)]
Autogenerate hardware notes for snd_atiixp(4).

18 years agoXref snd_atiixp.4
brueffer [Mon, 28 Nov 2005 16:47:52 +0000 (16:47 +0000)]
Xref snd_atiixp.4

18 years agoRestore the previous state after a FILL operation in properties_read()
jhb [Mon, 28 Nov 2005 16:30:16 +0000 (16:30 +0000)]
Restore the previous state after a FILL operation in properties_read()
rather than forcing the state to LOOK.  If we are in the middle of parsing
a line when we have to do a FILL we would have lost any token we were in
the middle of parsing and would have treated the next character as being
at the start of a new line instead.

PR: kern/89181
Submitted by: Antony Mawer gnats at mawer dot org
MFC after: 1 week

18 years agoFollow the rules for the .Dd macro use: use unabbreviated month names.
jkoshy [Mon, 28 Nov 2005 13:51:36 +0000 (13:51 +0000)]
Follow the rules for the .Dd macro use: use unabbreviated month names.

Submitted by: ru

18 years agoFix two identical harmless typos in ata error messages:
keramida [Mon, 28 Nov 2005 13:23:15 +0000 (13:23 +0000)]
Fix two identical harmless typos in ata error messages:
s/issueing/issuing/

PR: kern/89481
Submitted by: John Nielsen
Approved by: sos
MFC after: 1 week

18 years agoTake if_baudrate from the parent. This fixes problem with SNMP
glebius [Mon, 28 Nov 2005 12:46:35 +0000 (12:46 +0000)]
Take if_baudrate from the parent. This fixes problem with SNMP
daemons reporting zero speed for vlan(4) interfaces.

18 years agoRearranged the polynomial evaluation some more to reduce dependencies.
bde [Mon, 28 Nov 2005 11:46:20 +0000 (11:46 +0000)]
Rearranged the polynomial evaluation some more to reduce dependencies.
Instead of echoing the code in a comment, try to describe why we split
up the evaluation in a special way.

The new optimization is mostly to move the evaluation of w = z*z later
so that everything else (except z = x*x) doesn't have to wait for w.
On Athlons, FP multiplication has a latency of 4 cycles so this
optimization saves 4 cycles per call provided no new dependencies are
introduced.  Tweaking the other terms in to reduce dependencies saves
a couple more cycles in some cases (more on AXP than on A64; up to 8
cycles out of 56 altogether in some cases).  The previous version had
a similar optimization for s = z*x.  Special optimizations like these
probably have a larger effect than the simple 2-way vectorization
permitted (but not activated by gcc) in the old version, since 2-way
vectorization is not enough and the polynomial's degree is so small
in the float case that non-vectorizable dependencies dominate.

On an AXP, tanf() on uniformly distributed args in [-2pi, 2pi] now
takes 34-55 cycles (was 39-59 cycles).

18 years agoFix a bug in previous revision: skip LINT if it exists, not NOTES
ru [Mon, 28 Nov 2005 11:14:36 +0000 (11:14 +0000)]
Fix a bug in previous revision: skip LINT if it exists, not NOTES
(the source for LINT), as I initially intended.

18 years agouniverse: don't attempt to compile DEFAULTS and don't compile LINT twice.
ru [Mon, 28 Nov 2005 11:03:59 +0000 (11:03 +0000)]
universe: don't attempt to compile DEFAULTS and don't compile LINT twice.

18 years agoFixed about 50 million errors of infinity ulps and about 3 million errors
bde [Mon, 28 Nov 2005 08:32:15 +0000 (08:32 +0000)]
Fixed about 50 million errors of infinity ulps and about 3 million errors
of between 1.0 and 1.8509 ulps for lgammaf(x) with x between -2**-21 and
-2**-70.

As usual, the cutoff for tiny args was not correctly translated to
float precision.  It was 2**-70 but 2**-21 works.  Not as usual, having
a too-small threshold was worse than a pessimization.  It was just a
pessimization for (positive) args between 2**-70 and 2**-21, but for
the first ~50 million (negative) args below -2**-70, the general code
overflowed and gave a result of infinity instead of correct (finite)
results near 70*log(2).  For the remaining ~361 million negative args
above -2**21, the general code gave almost-acceptable errors (lgamma[f]()
is not very accurate in general) but the pessimization was larger than
for misclassified tiny positive args.

Now the max error for lgammaf(x) with |x| < 2**-21 is 0.7885 ulps, and
speed and accuracy are almost the same for positive and negative args
in this range.  The maximum error overall is still infinity ulps.

A cutoff of 2**-70 is probably wastefully small for the double precision
case.  Smaller cutoffs can be used to reduce the max error to nearly
0.5 ulps for tiny args, but this is useless since the general algrorithm
for nearly-tiny args is not nearly that accurate -- it has a max error of
about 1 ulp.

18 years agoAdd manual page for snd_atiixp(4) and hook it up to the build.
joel [Mon, 28 Nov 2005 07:53:29 +0000 (07:53 +0000)]
Add manual page for snd_atiixp(4) and hook it up to the build.

Reviewed by: ru

18 years agoApply arch= selection to the qandatoc mode. This fixes
hrs [Mon, 28 Nov 2005 06:24:19 +0000 (06:24 +0000)]
Apply arch= selection to the qandatoc mode.  This fixes
link generation with no actual target.

Reported by: Tim Witthoeft (tim.witthoeft at gmail.com)

18 years agoExploit skew-symmetry to avoid an operation: -sin(x-A) = sin(A-x). This
bde [Mon, 28 Nov 2005 06:15:10 +0000 (06:15 +0000)]
Exploit skew-symmetry to avoid an operation: -sin(x-A) = sin(A-x).  This
gives a tiny but hopefully always free optimization in the 2 quadrants
to which it applies.  On Athlons, it reduces maximum latency by 4 cycles
in these quadrants but has usually has a smaller effect on total time
(typically ~2 cycles (~5%), but sometimes 8 cycles when the compiler
generates poor code).

18 years agoTry to use the "proximity" (~) operator consistently in comments
bde [Mon, 28 Nov 2005 05:46:13 +0000 (05:46 +0000)]
Try to use the "proximity" (~) operator consistently in comments
(x ~<= a, not x <= ~a).  This got messed up in some places when the
comments were moved from e_rem_pio2f.c.

Added my (non-)copyright.

18 years agoChanged spelling of the request-to-inline macro name to match the change
bde [Mon, 28 Nov 2005 05:35:32 +0000 (05:35 +0000)]
Changed spelling of the request-to-inline macro name to match the change
of the function name.

Added my (non-)copyright.

In k_tanf.c, added the first set of redundant parentheses to control
grouping which was claimed to be added in the previous commit.

18 years agoUse only double precision for "kernel" cosf and sinf (except for
bde [Mon, 28 Nov 2005 04:58:57 +0000 (04:58 +0000)]
Use only double precision for "kernel" cosf and sinf (except for
returning float).  The functions are renamed from __kernel_{cos,sin}f()
to __kernel_{cos,sin}df() so that misuses of them will cause link errors
and not crashes.

This version is an almost-routine translation with no special optimizations
for accuracy or efficiency.  The not-quite-routine part is that in
__kernel_cosf(), regenerating the minimax polynomial with double
precision coefficients gives a coefficient for the x**2 term that is
not quite -0.5, so the literal 0.5 in the code and the related `hz'
variable need to be modified; also, the special code for reducing the
error in 1.0-x**2*0.5 is no longer needed, so it is convenient to
adjust all the logic for the x**2 term a little.  Note that without
extra precision, it would be very bad to use a coefficient of other
than -0.5 for the x**2 term -- the old version depends on multiplication
by -0.5 being infinitely precise so as not to need even more special
code for reducing the error in 1-x**2*0.5.

This gives an unimportant increase in accuracy, from ~0.8 to ~0.501
ulps.  Almost all of the error is from the final rounding step, since
the choice of the minimax polynomials so that their contribution to the
error is a bit less than 0.5 ulps just happens to give contributions that
are significantly less (~.001 ulps).

An Athlons, for uniformly distributed args in [-2pi, 2pi], this gives
overall speed increases in the 10-20% range, despite giving a speed
decrease of typically 19% (from 31 cycles up to 37) for sinf() on args
in [-pi/4, pi/4].

18 years agoRemove commented out reference to posix4/mqueue.h. It hasn't been installed
rodrigc [Mon, 28 Nov 2005 03:21:58 +0000 (03:21 +0000)]
Remove commented out reference to posix4/mqueue.h.  It hasn't been installed
for 3 years, and now we have another (working) implementation
of POSIX message queues elsewhere in the source tree.

18 years agomqueue.h has been superceded by sys/mqueue.h thanks to David Xu's work.
scottl [Mon, 28 Nov 2005 02:58:30 +0000 (02:58 +0000)]
mqueue.h has been superceded by sys/mqueue.h thanks to David Xu's work.

Submitted by: dolt

18 years agoUse a separate synopsis line for -u as devinfo will ignore other
jkoshy [Mon, 28 Nov 2005 01:33:19 +0000 (01:33 +0000)]
Use a separate synopsis line for -u as devinfo will ignore other
options when -u is specified.  Xref device(9) and devclass(9).

18 years ago- Allow duplicate "machine" directives with the same arguments.
ru [Sun, 27 Nov 2005 23:17:00 +0000 (23:17 +0000)]
- Allow duplicate "machine" directives with the same arguments.
- Move existing "machine" directives to DEFAULTS.

18 years agoFix a stupid compiler warining, remove a redundant line.
davidxu [Sun, 27 Nov 2005 22:59:47 +0000 (22:59 +0000)]
Fix a stupid compiler warining, remove a redundant line.

18 years agoReduction.
ru [Sun, 27 Nov 2005 21:52:30 +0000 (21:52 +0000)]
Reduction.

18 years agoMake config(8) understand ORed dependecies in "files*" and
ru [Sun, 27 Nov 2005 21:41:58 +0000 (21:41 +0000)]
Make config(8) understand ORed dependecies in "files*" and
improve tracking of known devices.  Bump config(8) version.

18 years agoDocument 82571 and 82572 support.
brueffer [Sun, 27 Nov 2005 16:49:19 +0000 (16:49 +0000)]
Document 82571 and 82572 support.

MFC after: 3 days

18 years agoAdd a CAVEATS section that mentions missing RAID5 support.
brueffer [Sun, 27 Nov 2005 09:46:56 +0000 (09:46 +0000)]
Add a CAVEATS section that mentions missing RAID5 support.

MFC after: 3 days

18 years agoThe ohci driver's processing of completed transfer descriptors (TDs)
iedowse [Sun, 27 Nov 2005 09:05:37 +0000 (09:05 +0000)]
The ohci driver's processing of completed transfer descriptors (TDs)
appeared to rely on all kinds of non-guaranteed behaviours: the
transfer abort code assumed that TDs with no interrupt timeout
configured would end up on the done queue within 20ms, the done
queue processing assumed that all TDs from a transfer would appear
at the same time, and there were access-after-free bugs triggered
on failed transfers.

Attempt to fix these problems by the following changes:
 - Use a maximum (6-frame) interrupt delay instead of no interrupt
   delay to ensure that the 20ms wait in ohci_abort_xfer() is enough
   for the TDs to have been taken off the hardware done queue.
 - Defer cancellation of timeouts and freeing of TDs until we either
   hit an error or reach the final TD.
 - Remove TDs from the done queue before freeing them so that it
   is safe to continue traversing the done queue.

This appears to fix a hang that was reproducable with revision 1.67
or 1.68 of ulpt.c (earlier revisions had a different transfer
pattern). With certain HP printers, the command "true > /dev/ulpt0"
would cause ohci_add_done() to spin because the done queue had a
loop. The list corruption was caused by a 3-TD transfer where the
first TD completed but remained on the internal host controller
done queue because it had no interrupt timeout. When the transfer
timed out, the TD got freed and reused, so it caused a loop in the
done queue when it was inserted a second time from a different
transfer.

Reported by: Alex Pivovarov
MFC after: 1 week

18 years agoChange filesystem name from mqueue to mqueuefs for style consitent,
davidxu [Sun, 27 Nov 2005 08:32:41 +0000 (08:32 +0000)]
Change filesystem name from mqueue to mqueuefs for style consitent,
sort LINKS list.

18 years agoChange filesystem name from mqueue to mqueuefs for style consistent.
davidxu [Sun, 27 Nov 2005 08:30:12 +0000 (08:30 +0000)]
Change filesystem name from mqueue to mqueuefs for style consistent.

Suggested by: rwatson

18 years agoClarify a comment to make it clear that it is NO_NIS that "If it is set"
keramida [Sun, 27 Nov 2005 07:30:21 +0000 (07:30 +0000)]
Clarify a comment to make it clear that it is NO_NIS that "If it is set"
refers to and add extra '#' comment characters at the beginning of two
lines that started with TABs, to avoid warnings like:

"/etc/make.conf", line 128: Unassociated shell command "# If set, you might need to adopt your"
"/etc/make.conf", line 129: Unassociated shell command "# nsswitch.conf(5) and remove `nis' entries."

PR: misc/89423
Submitted by: Scot W. Hetzel

18 years agoSupport for ATI IXP 200 / 300 / 400 series audio controllers.
ariff [Sun, 27 Nov 2005 03:29:59 +0000 (03:29 +0000)]
Support for ATI IXP 200 / 300 / 400 series audio controllers.

18 years agoPortability: remove AC_FUNC_MALLOC from configure.ac.in.
kientzle [Sun, 27 Nov 2005 03:17:50 +0000 (03:17 +0000)]
Portability:  remove AC_FUNC_MALLOC from configure.ac.in.
According to Dan Nelson, this fixes the build on AIX 5.2.

18 years agoPortability: Remove AC_CHECK_MALLOC from configure.ac.in.
kientzle [Sun, 27 Nov 2005 03:16:46 +0000 (03:16 +0000)]
Portability:  Remove AC_CHECK_MALLOC from configure.ac.in.
libarchive doesn't make malloc(0) requests, so the autoconf
checks aren't needed and the autoconf workarounds for
broken malloc(0) just create problems.

Thanks to: Dan Nelson, who reports that this fixes libarchive on AIX 5.2

18 years ago- Update the flow sequence before converting count to
glebius [Sun, 27 Nov 2005 02:43:08 +0000 (02:43 +0000)]
- Update the flow sequence before converting count to
  network byte order.
- Update the flow sequence in one atomic op instead of two.

Reported by: Denis Shaposhnikov <dsh vlink.ru>
Reported by: Daniil Kharoun <kdl chelcom.ru>
PR: kern/89417

18 years agoRegen.
davidxu [Sun, 27 Nov 2005 01:23:31 +0000 (01:23 +0000)]
Regen.

18 years agoDon't use OpenBSD syscall numbers, instead, use new syscall numbers
davidxu [Sun, 27 Nov 2005 01:13:00 +0000 (01:13 +0000)]
Don't use OpenBSD syscall numbers, instead, use new syscall numbers
for POSIX message queue.

Suggested by: rwatson

18 years agoAdd several aliases for existing clockid_t names to indicate that the
rwatson [Sun, 27 Nov 2005 00:55:18 +0000 (00:55 +0000)]
Add several aliases for existing clockid_t names to indicate that the
application wishes to request high precision time stamps be returned:

Alias                           Existing

CLOCK_REALTIME_PRECISE          CLOCK_REALTIME
CLOCK_MONOTONIC_PRECISE         CLOCK_MONOTONIC
CLOCK_UPTIME_PRECISE            CLOCK_UPTIME

Add experimental low-precision clockid_t names corresponding to these
clocks, but implemented using cached timestamps in kernel rather than
a full time counter query.  This offers a minimum update rate of 1/HZ,
but in practice will often be more frequent due to the frequency of
time stamping in the kernel:

New clockid_t name              Approximates existing clockid_t

CLOCK_REALTIME_FAST             CLOCK_REALTIME
CLOCK_MONOTONIC_FAST            CLOCK_MONOTONIC
CLOCK_UPTIME_FAST               CLOCK_UPTIME

Add one additional new clockid_t, CLOCK_SECOND, which returns the
current second without performing a full time counter query or cache
lookup overhead to make sure the cached timestamp is stable.  This is
intended to support very low granularity consumers, such as time(3).

The names, visibility, and implementation of the above are subject
to change, and will not be MFC'd any time soon.  The goal is to
expose lower quality time measurement to applications willing to
sacrifice accuracy in performance critical paths, such as when taking
time stamps for the purpose of rescheduling select() and poll()
timeouts.  Future changes might include retrofitting the time counter
infrastructure to allow the "fast" time query mechanisms to use a
different time counter, rather than a cached time counter (i.e.,
TSC).

NOTE: With different underlying time mechanisms exposed, using
different time query mechanisms in the same application may result in
relative non-monoticity or the appearance of clock stalling for a
single clockid_t, as a cached time stamp queried after a precision
time stamp lookup may be "before" the time returned by the earlier
live time counter query.

18 years agoRevision 5.0 of the Sony DSC camera appears to require RBC commands
iedowse [Sat, 26 Nov 2005 17:11:31 +0000 (17:11 +0000)]
Revision 5.0 of the Sony DSC camera appears to require RBC commands
to be padded to 12 bytes in length. Otherwise the requests just
time out.

Reported by: anders
MFC after: 1 week

18 years agoAdd code to test POSIX message queue.
davidxu [Sat, 26 Nov 2005 13:19:09 +0000 (13:19 +0000)]
Add code to test POSIX message queue.

18 years agoImplement following POSIX message queue interfaces:
davidxu [Sat, 26 Nov 2005 13:01:17 +0000 (13:01 +0000)]
Implement following POSIX message queue interfaces:
mq_close, mq_getattr, mq_receive, mq_send.

18 years agoBring in POSIX message queue header file.
davidxu [Sat, 26 Nov 2005 12:55:36 +0000 (12:55 +0000)]
Bring in POSIX message queue header file.

18 years agoSupport mounting POSIX message queue filesystem.
davidxu [Sat, 26 Nov 2005 12:53:18 +0000 (12:53 +0000)]
Support mounting POSIX message queue filesystem.

18 years agoBring in mqueue.h to define struct mq_attr.
davidxu [Sat, 26 Nov 2005 12:48:11 +0000 (12:48 +0000)]
Bring in mqueue.h to define struct mq_attr.

18 years agoCompile mqueue module.
davidxu [Sat, 26 Nov 2005 12:46:01 +0000 (12:46 +0000)]
Compile mqueue module.

18 years agoRegen.
davidxu [Sat, 26 Nov 2005 12:45:22 +0000 (12:45 +0000)]
Regen.

18 years agoBring in experimental kernel support for POSIX message queue.
davidxu [Sat, 26 Nov 2005 12:42:35 +0000 (12:42 +0000)]
Bring in experimental kernel support for POSIX message queue.

18 years agoIn preparation for automatic hardware notes generation, reword the
brueffer [Sat, 26 Nov 2005 10:06:21 +0000 (10:06 +0000)]
In preparation for automatic hardware notes generation, reword the
hardware section text to include the driver name.

MFC after: 3 days

18 years agoRemove duplicates.
ru [Sat, 26 Nov 2005 08:50:20 +0000 (08:50 +0000)]
Remove duplicates.

18 years agoAdd a locking stub to call acpi_cmbat_get_bif() now that it is directly
njl [Sat, 26 Nov 2005 07:36:53 +0000 (07:36 +0000)]
Add a locking stub to call acpi_cmbat_get_bif() now that it is directly
run from the taskqueue.  There should probably be a better way to do this
later, but this suffices for now.

Submitted by: yongari

18 years agoThe CAM interface is broken and seems to be causing lockups on boot. It
scottl [Sat, 26 Nov 2005 07:30:09 +0000 (07:30 +0000)]
The CAM interface is broken and seems to be causing lockups on boot.  It
doesn't appear to have worked in a long time, so just disable it completely
for now.

MFC After: 3 days

18 years agoAdded mono to stereo and stereo to mono feeder functions for both
ariff [Sat, 26 Nov 2005 03:54:17 +0000 (03:54 +0000)]
Added mono to stereo and stereo to mono feeder functions for both
24 and 32 bit format.

18 years agoAdded codec id for Avance Logic (ALC250)
ariff [Sat, 26 Nov 2005 03:51:25 +0000 (03:51 +0000)]
Added codec id for Avance Logic (ALC250)

18 years agoSort Xrefs in the SEE ALSO section correctly.
brueffer [Sat, 26 Nov 2005 00:47:07 +0000 (00:47 +0000)]
Sort Xrefs in the SEE ALSO section correctly.

Pointy hat to: brueffer

18 years agoUpdate the list of drivers that need wlan(4).
brueffer [Sat, 26 Nov 2005 00:40:57 +0000 (00:40 +0000)]
Update the list of drivers that need wlan(4).

MFC after: 3 days