]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoAdd kernel module loading option for snd_atiixp(4).
Ariff Abdullah [Thu, 1 Dec 2005 03:10:12 +0000 (03:10 +0000)]
Add kernel module loading option for snd_atiixp(4).

18 years agoset signal queue values for sysconf().
David Xu [Thu, 1 Dec 2005 00:25:50 +0000 (00:25 +0000)]
set signal queue values for sysconf().

18 years agoFixing yet another regression introduced in rev1.37 by preserving cs_local
Tai-hwa Liang [Thu, 1 Dec 2005 00:18:48 +0000 (00:18 +0000)]
Fixing yet another regression introduced in rev1.37 by preserving cs_local
pointer such that local to DOS code page conversion with combined option
'-L,-D' works again.

Reviewed by: rodrigc

18 years agoAvoid using signal 127 and 128 as RT signals, these two signals confuse
David Xu [Wed, 30 Nov 2005 23:47:31 +0000 (23:47 +0000)]
Avoid using signal 127 and 128 as RT signals, these two signals confuse
wait4 interfaces, see PR: kern/19402.

18 years agoIt is unclear who is wrong and who is right, but when operating on
Maxim Sobolev [Wed, 30 Nov 2005 22:54:41 +0000 (22:54 +0000)]
It is unclear who is wrong and who is right, but when operating on
plain file bsdlabel(8) always writes label at a fixed offset from
its beginning (512 bytes), regardless of the sector size. At the same
time, bsdlabel geom class expects label to be available at the very
beginning of the second sector.

As a result, images prepared in userland for media with sector size
different from 512 bytes (i.e. 2k for cdroms) are not recognized by
the tasting mechanism.

Solve the problem by always looking for the label at 512-byte offset
if we can't find it at the beginning of the second sector and sector
size is not 512 bytes.

18 years agoDon't pass error value pointer to g_read_data(9) at all if we don't
Maxim Sobolev [Wed, 30 Nov 2005 22:15:00 +0000 (22:15 +0000)]
Don't pass error value pointer to g_read_data(9) at all if we don't
have any use of it.

Suggested by: pjd

18 years agoCheck for altq presence during module init, and allow module to work even if
Philip Paeps [Wed, 30 Nov 2005 21:08:04 +0000 (21:08 +0000)]
Check for altq presence during module init, and allow module to work even if
altq is not present (just disable the altq bits in that case).

PR: 89601
Submitted by: Juraj Lutter <otis -at- sk.freebsd.org>
MFC after: 3 days

18 years ago- match_var: do not address memory at invalid address (`len' can be greater
Max Khon [Wed, 30 Nov 2005 20:38:03 +0000 (20:38 +0000)]
- match_var: do not address memory at invalid address (`len' can be greater
than strlen(var) + 1)
- ReadMakeFile: prevent `fname' memory leak
- ReadMakeFile: prevent double free (caused by double fclose) --
ParsePopInput() closes input file

Reviewed by: harti

18 years agofix dynamic changes in short slottime for 11g sta mode: set the
Sam Leffler [Wed, 30 Nov 2005 19:54:41 +0000 (19:54 +0000)]
fix dynamic changes in short slottime for 11g sta mode: set the
slot time based on the rcvd capabilities, not the existing ones

Obtained from: atheros
MFC after: 1 week

18 years agoCheck for g_read_data(9) errors properly:
Maxim Sobolev [Wed, 30 Nov 2005 19:24:51 +0000 (19:24 +0000)]
Check for g_read_data(9) errors properly:

o The only indication of error condition is NULL value returned by
  the function;

o value pointed to by error argument is undefined in the case when
  operation completes successfully.

Discussed with: phk

18 years agoKill leading whilespace.
Maxim Sobolev [Wed, 30 Nov 2005 19:07:28 +0000 (19:07 +0000)]
Kill leading whilespace.

18 years agoTeach this to create the "machine" and ${MACHINE_ARCH} (for pc98
Ruslan Ermilov [Wed, 30 Nov 2005 18:15:06 +0000 (18:15 +0000)]
Teach this to create the "machine" and ${MACHINE_ARCH} (for pc98
only now) symbolic links in the kernel compile directory, rather
than relying on config(8) to do this.  (The changes to config(8)
will be committed separately.)  This is aimed towards making the
config(8) as lightweight as possible.

Idea by: bde (all bugs are mine)

18 years agoStyle: use S_ISDIR() (submitted by bde@) and eq() where appropriate.
Ruslan Ermilov [Wed, 30 Nov 2005 17:55:49 +0000 (17:55 +0000)]
Style: use S_ISDIR() (submitted by bde@) and eq() where appropriate.

18 years agoByte copy IF_LLADDR() on stack to align it to be safe for typecasts.
Ruslan Ermilov [Wed, 30 Nov 2005 17:48:23 +0000 (17:48 +0000)]
Byte copy IF_LLADDR() on stack to align it to be safe for typecasts.

Tested by: jhb

18 years agoRemove superfluous bzero()'ing of the softc.
Marius Strobl [Wed, 30 Nov 2005 16:13:49 +0000 (16:13 +0000)]
Remove superfluous bzero()'ing of the softc.

18 years agoRemove superfluous inclusion of upa.h.
Marius Strobl [Wed, 30 Nov 2005 16:09:10 +0000 (16:09 +0000)]
Remove superfluous inclusion of upa.h.

18 years agoIf bus_dmamap_load() failed, we free the mbuf. We also need to clear
Gleb Smirnoff [Wed, 30 Nov 2005 12:37:07 +0000 (12:37 +0000)]
If bus_dmamap_load() failed, we free the mbuf. We also need to clear
the pointer, to avoid double free on next bge_stop().

18 years agoMFi386: revision 1.1215 (add savagedrm).
Yoshihiro Takahashi [Wed, 30 Nov 2005 11:58:01 +0000 (11:58 +0000)]
MFi386: revision 1.1215 (add savagedrm).

18 years agoRearranged the polynomial evaluation to reduce dependencies, as in
Bruce Evans [Wed, 30 Nov 2005 11:51:17 +0000 (11:51 +0000)]
Rearranged the polynomial evaluation to reduce dependencies, as in
k_tanf.c but with different details.

The polynomial is odd with degree 13 for tanf() and odd with degree
9 for sinf(), so the details are not very different for sinf() -- the
term with the x**11 and x**13 coefficients goes awaym and (mysteriously)
it helps to do the evaluation of w = z*z early although moving it later
was a key optimization for tanf().  The details are different but simpler
for cosf() because the polynomial is even and of lower degree.

On Athlons, for uniformly distributed args in [-2pi, 2pi], this gives
an optimization of about 4 cycles (10%) in most cases (13% for sinf()
on AXP, but 0% for cosf() with gcc-3.3 -O1 on AXP).  The best case
(sinf() with gcc-3.4 -O1 -fcaller-saves on A64) now takes 33-39 cycles
(was 37-45 cycles).  Hardware sinf takes 74-129 cycles.  Despite
being fine tuned for Athlons, the optimization is even larger on
some other arches (about 15% on ia64 (pluto2) and 20% on alpha (beast)
with gcc -O2 -fomit-frame-pointer).

18 years agoFix compiling for c++, include cdefs.h.
David Xu [Wed, 30 Nov 2005 07:26:36 +0000 (07:26 +0000)]
Fix compiling for c++, include cdefs.h.

18 years agoFixed cosf(x) when x is a "negative" NaNs. I broke this in rev.1.10.
Bruce Evans [Wed, 30 Nov 2005 06:47:18 +0000 (06:47 +0000)]
Fixed cosf(x) when x is a "negative" NaNs.  I broke this in rev.1.10.
cosf(x) is supposed to return something like x when x is a NaN, and
we actually fairly consistently return x-x which is normally very like
x (on i386 and and it is x if x is a quiet NaN and x with the quiet bit
set if x is a signaling NaN.  Rev.1.10 broke this by normalising x to
fabsf(x).  It's not clear if fabsf(x) is should preserve x if x is a NaN,
but it actually clears the sign bit, and other parts of the code depended
on this.

The bugs can be fixed by saving x before normalizing it, and using the
saved x only for NaNs, and using uint32_t instead of int32_t for ix
so that negative NaNs are not misclassified even if fabsf() doesn't
clear their sign bit, but gcc pessimizes the saving very well, especially
on Athlon XPs (it generates extra loads and stores, and mixes use of
the SSE and i387, and this somehow messes up pipelines).  Normalizing
x is not a very good optimization anyway, so stop doing it.  (It adds
latency to the FPU pipelines, but in previous versions it helped except
for |x| <= 3pi/4 by simplifying the integer pipelines.)  Use the same
organization as in s_sinf.c and s_tanf.c with some branches reordered.
These changes combined recover most of the performance of the unfixed
version on A64 but still lose 10% on AXP with gcc-3.4 -O1 but not with
gcc-3.3 -O1.

18 years agoLast step to make mq_notify conform to POSIX standard, If the process
David Xu [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
Bruce Evans [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.
David Xu [Wed, 30 Nov 2005 04:15:44 +0000 (04:15 +0000)]
Update conformance and history sections.

18 years agoSymlink mq_send to mq_timedsend.
David Xu [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.
David Xu [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
Tom McLaughlin [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
Pyun YongHyeon [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
John Baldwin [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 Wemm [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 Bergamini [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 Bergamini [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 Bergamini [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 Bergamini [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
Andrew Thompson [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.
Søren Schmidt [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.
Ruslan Ermilov [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.
Craig Rodrigues [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.
Hajimu UMEMOTO [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
John Baldwin [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.
John Baldwin [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
John Baldwin [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.
John Baldwin [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
Hajimu UMEMOTO [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.
Pawel Jakub Dawidek [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.
Gleb Smirnoff [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().
Ruslan Ermilov [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
Scott Long [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.
Ruslan Ermilov [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(),
Gleb Smirnoff [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.
Christian 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 Abdullah [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.
Eric 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)
Maxim Sobolev [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.
Craig Rodrigues [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.
Gleb Smirnoff [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:
Eric 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.
Søren Schmidt [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().
Robert Watson [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
John Baldwin [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
John Baldwin [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 Dahl [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 Dahl [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
Robert Watson [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
Robert Watson [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
Warner Losh [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 Dahl [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
Warner Losh [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).
Christian 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
Christian 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()
John Baldwin [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.
Joseph Koshy [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:
Giorgos Keramidas [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
Gleb Smirnoff [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.
Bruce Evans [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
Ruslan Ermilov [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.
Ruslan Ermilov [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
Bruce Evans [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 Dahl [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
Hiroki Sato [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
Bruce Evans [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
Bruce Evans [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
Bruce Evans [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
Bruce Evans [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
Craig Rodrigues [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.
Scott Long [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
Joseph Koshy [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.
Ruslan Ermilov [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.
David Xu [Sun, 27 Nov 2005 22:59:47 +0000 (22:59 +0000)]
Fix a stupid compiler warining, remove a redundant line.

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

18 years agoMake config(8) understand ORed dependecies in "files*" and
Ruslan Ermilov [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.
Christian 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.
Christian 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)
Ian Dowse [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,
David Xu [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.
David Xu [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"
Giorgos Keramidas [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 Abdullah [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.
Tim 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.
Tim 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