]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoThis commit was generated by cvs2svn to compensate for changes in r152390,
sam [Sun, 13 Nov 2005 19:28:17 +0000 (19:28 +0000)]
This commit was generated by cvs2svn to compensate for changes in r152390,
which included commits to RCS files with non-trunk default branches.

18 years agocorrect check for whether or not md5 signature matches; applied
sam [Sun, 13 Nov 2005 19:28:17 +0000 (19:28 +0000)]
correct check for whether or not md5 signature matches; applied
to vendor branch since this is already in their depot

18 years agoFix endianness issues. iwi now works on big endian architectures too.
damien [Sun, 13 Nov 2005 17:38:02 +0000 (17:38 +0000)]
Fix endianness issues.  iwi now works on big endian architectures too.

Obtained from: NetBSD (scw@)
MFC after: 2 weeks

18 years agoRemove the unused AAC_DRIVER_BUILD_DATE macro.
schweikh [Sun, 13 Nov 2005 17:26:36 +0000 (17:26 +0000)]
Remove the unused AAC_DRIVER_BUILD_DATE macro.
Nuke whitespace at EOL while I'm here.

Approved by: scottl (MAINTAINER)

18 years agoBe more robust when handling Rx interrupts. If we can't allocate a new mbuf,
damien [Sun, 13 Nov 2005 17:25:21 +0000 (17:25 +0000)]
Be more robust when handling Rx interrupts.  If we can't allocate a new mbuf,
just discard the received frame and reuse the old mbuf.
This should prevent the connection from stalling after high network traffic.

MFC after: 2 weeks

18 years agoBe more robust when handling Rx interrupts. If we can't allocate and DMA map
damien [Sun, 13 Nov 2005 17:19:12 +0000 (17:19 +0000)]
Be more robust when handling Rx interrupts.  If we can't allocate and DMA map
a new mbuf, just discard the received frame and reuse the old mbuf.
This should fix kernel panics on high network traffic.

MFC after: 2 weeks

18 years agoBe more robust when handling Rx interrupts. If we can't allocate and DMA map
damien [Sun, 13 Nov 2005 17:17:40 +0000 (17:17 +0000)]
Be more robust when handling Rx interrupts.  If we can't allocate and DMA map
a new mbuf, just discard the received frame and reuse the old mbuf.
This should fix kernel panics on high network traffic.

MFC after:      2 weeks

18 years agoBe more robust when handling Rx interrupts. If we can't allocate and DMA map
damien [Sun, 13 Nov 2005 17:16:06 +0000 (17:16 +0000)]
Be more robust when handling Rx interrupts.  If we can't allocate and DMA map
a new mbuf, just discard the received frame and reuse the old mbuf.
This should fix kernel panics on high network traffic.

Obtained from:  NetBSD (joerg@)
MFC after:      2 weeks

18 years agoAdd support for 24/32 bit audio formats/conversion.
netchild [Sun, 13 Nov 2005 14:20:26 +0000 (14:20 +0000)]
Add support for 24/32 bit audio formats/conversion.

It may be the case that you may hear some unwanted noise while
playing back with 24/32 bit. This is a problem in the USB system.
Explanation from Hans Petter Selasky:
---snip---
The current USB sound driver only uses one isochronous
buffer, that is restarted when it is completed. This will lead to a short
period of time, +1ms, where no sound data is sent to the external USB device.
Depending on the load of your computer, this can be as much as 50ms. So the
USB sound driver must use 2 isochronous transfers. At the beginning one will
queue both. Then these are restarted on completion. This will result in a
constant-rate data stream to the external sound device, a minimum sound
buffer equal to the size of the isochronous buffer, and possibly the sound
will reach your ears with less delay. Little delay is a result of constant
data rate. Currently only my USB driver will support that. If one tries that
with the USB driver in *BSD, then it will crash at the first moment one gets
a buffer underrun.
---snip---

Submitted by: Kazuhito HONDA <kazuhito@ph.noda.tus.ac.jp>
Mono-recording still not tested by: julian

18 years agoModify netstat -mb to use libmemstat when accessing a core dump or live
rwatson [Sun, 13 Nov 2005 14:06:01 +0000 (14:06 +0000)]
Modify netstat -mb to use libmemstat when accessing a core dump or live
kernel memory and not using sysctl.  Previously, libmemstat was used
only for the live kernel via sysctl paths.

This results in netstat output becoming both more consistent between
core dumps and the live kernel, and also more information in the core
dump case than previously (i.e., mbuf cache information).

Statistics relating to sfbufs still rely on a kvm descriptor as they
are not currently exposed via libmemstat.  netstat -m operating on a
core is still unable to print certain sfbuf stats available on the live
kernel.

MFC after: 1 week

18 years agoAdd symlinks for kvm access methods for memstat(3).
rwatson [Sun, 13 Nov 2005 13:42:03 +0000 (13:42 +0000)]
Add symlinks for kvm access methods for memstat(3).

MFC after: 3 days

18 years agoModerate rewrite of kernel ktrace code to attempt to generally improve
rwatson [Sun, 13 Nov 2005 13:27:44 +0000 (13:27 +0000)]
Moderate rewrite of kernel ktrace code to attempt to generally improve
reliability when tracing fast-moving processes or writing traces to
slow file systems by avoiding unbounded queueuing and dropped records.
Record loss was previously possible when the global pool of records
become depleted as a result of record generation outstripping record
commit, which occurred quickly in many common situations.

These changes partially restore the 4.x model of committing ktrace
records at the point of trace generation (synchronous), but maintain
the 5.x deferred record commit behavior (asynchronous) for situations
where entering VFS and sleeping is not possible (i.e., in the
scheduler).  Records are now queued per-process as opposed to
globally, with processes responsible for committing records from their
own context as required.

- Eliminate the ktrace worker thread and global record queue, as they
  are no longer used.  Keep the global free record list, as records
  are still used.

- Add a per-process record queue, which will hold any asynchronously
  generated records, such as from context switches.  This replaces the
  global queue as the place to submit asynchronous records to.

- When a record is committed asynchronously, simply queue it to the
  process.

- When a record is committed synchronously, first drain any pending
  per-process records in order to maintain ordering as best we can.
  Currently ordering between competing threads is provided via a global
  ktrace_sx, but a per-process flag or lock may be desirable in the
  future.

- When a process returns to user space following a system call, trap,
  signal delivery, etc, flush any pending records.

- When a process exits, flush any pending records.

- Assert on process tear-down that there are no pending records.

- Slightly abstract the notion of being "in ktrace", which is used to
  prevent the recursive generation of records, as well as generating
  traces for ktrace events.

Future work here might look at changing the set of events marked for
synchronous and asynchronous record generation, re-balancing queue
depth, timeliness of commit to disk, and so on.  I.e., performing a
drain every (n) records.

MFC after: 1 month
Discussed with: jhb
Requested by: Marc Olzheim <marcolz at stack dot nl>

18 years agoAdd some cards:
netchild [Sun, 13 Nov 2005 13:26:37 +0000 (13:26 +0000)]
Add some cards:
 - several TerraTec TValue [1]
 - PixelView PlayTV Pro REV-4C [2]

In case you have the PixelView card, please tell us the "pciconf -v -l"
output on multimedia@FreeBSD.org if it works. There are revisions out there
which may not work and we need to know which ones work.

PR: 53383 [1], 76002 [2]
Submitted by: Tanja Wittke <tawi@gruft.de> [1], barner [1],
Dan Angelescu <mrhsaacdoh@yahoo.com> [2]
MFC after: 2 months

18 years agoDon't augment the DRIVER_VERSION "v1.12" with __DATE__ and __TIME__.
schweikh [Sun, 13 Nov 2005 10:13:31 +0000 (10:13 +0000)]
Don't augment the DRIVER_VERSION "v1.12" with __DATE__ and __TIME__.
This is the only file of > 1700 files in a buildkernel here doing that.
It makes reproducible builds (same source => same binary) impossible.

Spotted by: devel/ccache

18 years agoDefine SIGLWP which is an alias for SIGTHR, the reason why I did this
davidxu [Sun, 13 Nov 2005 09:57:44 +0000 (09:57 +0000)]
Define SIGLWP which is an alias for SIGTHR, the reason why I did this
is that gdb knows SIGLWP and will pass it to program, otherwise gdb
will print out "unknown signal" and discard it, and then thread
cancellation won't work for libthr under gdb.

MFC: 3 days

18 years agoIncrease WARNS level to 6.
rodrigc [Sun, 13 Nov 2005 03:25:39 +0000 (03:25 +0000)]
Increase WARNS level to 6.

18 years agoConvert mount_msdosfs to use nmount().
rodrigc [Sun, 13 Nov 2005 03:24:44 +0000 (03:24 +0000)]
Convert mount_msdosfs to use nmount().

18 years agoIn get_pv_entry() use PMAP_LOCK() instead of PMAP_TRYLOCK() when deadlock
alc [Sun, 13 Nov 2005 02:17:05 +0000 (02:17 +0000)]
In get_pv_entry() use PMAP_LOCK() instead of PMAP_TRYLOCK() when deadlock
cannot possibly occur.

18 years agoIncrease WARNS level to 6.
rodrigc [Sun, 13 Nov 2005 01:47:04 +0000 (01:47 +0000)]
Increase WARNS level to 6.

18 years agoChanges to reflect that size_t parameter to build_iovec() is a size_t.
rodrigc [Sun, 13 Nov 2005 01:45:32 +0000 (01:45 +0000)]
Changes to reflect that size_t parameter to build_iovec() is a size_t.

18 years agoIncrease WARNS level to 6
rodrigc [Sun, 13 Nov 2005 01:40:36 +0000 (01:40 +0000)]
Increase WARNS level to 6

18 years agoConvert mount_cd9660 to use nmount().
rodrigc [Sun, 13 Nov 2005 01:39:55 +0000 (01:39 +0000)]
Convert mount_cd9660 to use nmount().

18 years ago- Make size parameter to build_iovec() a size_t, not an int
rodrigc [Sun, 13 Nov 2005 01:27:57 +0000 (01:27 +0000)]
- Make size parameter to build_iovec() a size_t, not an int
- Add build_iovec_argf() helper function, for help converting old
  mount options which used the mount_argf() function for the mount() syscall.

Discussed with: phk

18 years agoFixed some magic numbers.
bde [Sun, 13 Nov 2005 00:41:46 +0000 (00:41 +0000)]
Fixed some magic numbers.

The threshold for not being tiny was too small.  Use the usual 2**-12
threshold.  This change is not just an optimization, since the general
code that we fell into has accuracy problems even for tiny x.  Avoiding
it fixes 2*1366 args with errors of more than 1 ulp, with a maximum
error of 1.167 ulps.

The magic number 22 is log(DBL_EPSILON)/2 plus slop.  This is bogus
for float precision.  Use 9 (~log(FLT_EPSILON)/2 plus less slop than
for double precision).  The code for handling the interval
[2**-28, 9_was_22] has accuracy problems even for [9, 22], so this
change happens to fix errors of more than 1 ulp in about 2*17000
cases.  It leaves such errors in about 2*1074000 cases, with a max
error of 1.242 ulps.

The threshold for switching from returning exp(x)/2 to returning
exp(x/2)^2/2 was a little smaller than necessary.  As for coshf(),
This was not quite harmless since the exp(x/2)^2/2 case is inaccurate,
and fixing it avoids accuracy problems in 2*6 cases, leaving problems
in 2*19997 cases.

Fixed naming errors in pseudo-code in comments.

18 years agoFixed some magic numbers.
bde [Sun, 13 Nov 2005 00:08:23 +0000 (00:08 +0000)]
Fixed some magic numbers.

The threshold for not being tiny was confusing and too small.  Use the
usual 2**-12 threshold and simplify the algorithm slightly so that
this threshold works (now use the threshold for sinhf() instead of one
for 1+expm1()).  This is just a small optimization.

The magic number 22 is log(DBL_EPSILON)/2 plus slop.  This is bogus
for float precision.  Use 9 (~log(FLT_EPSILON)/2 plus less slop than
for double precision).

The threshold for switching from returning exp(x)/2 to returning
exp(x/2)^2/2 was a little smaller than necessary.  This was not quite
harmless since the exp(x/2)^2/2 case is inaccurate.  Fixing it happens
to avoid accuracy problems for 2*6 of the 2*151 args that were handled
by the exp(x)/2 case.  This leaves accuracy problems for about 2*19997
args near the overflow threshold (~89); the maximum error there is
2.5029 ulps.

There are also accuracy probles for args in +-[0.5*ln2, 9] -- 2*188885
args with errors of more than 1 ulp, with a maximum error of 1.384 ulps.

Fixed a syntax error and naming errors in pseudo-code in comments.

18 years agoCorrect a grammo and capitalize a few abbreviations.
schweikh [Sat, 12 Nov 2005 21:45:20 +0000 (21:45 +0000)]
Correct a grammo and capitalize a few abbreviations.

18 years agoInstead of saving the unit number of the md(4) device name, save the
marcel [Sat, 12 Nov 2005 20:17:08 +0000 (20:17 +0000)]
Instead of saving the unit number of the md(4) device name, save the
whole name. This does not unnecessarily close the door that in some
future we want to test on something other than md(4) devices.

Also add a "conf" action so that we can check whether a gctl actually
did the right thing or not. It's one thing to check that the result
strings are as expected, but it doesn't tell us if the end result is
correct. This needs a bit more fleshing out, but for now a visual
(i.e. manual) check suffices.

18 years ago- Minor fixes to raise WARNS level to 6.
rodrigc [Sat, 12 Nov 2005 20:12:56 +0000 (20:12 +0000)]
- Minor fixes to raise WARNS level to 6.
- Teach the mount program to call the nmount() syscall directly
- Preserve existing method of calling mount() for UFS, until we clean things
  up.
- Preserve existing method of forking and calling external mount programs for
  mfs, msdosfs, nfs, nfs4, ntfs, nwfs, nullfs, portalfs, reiserfs, smbfs,
  udf, umapfs, unionfs
- devfs, linprocfs, procfs, ext2fs call nmount() syscall directly, since
  that is all those external mount programs were doing

Reviewed by: phk
Discussed on: arch

18 years agoImoproved comments for the minimax polynomial.
bde [Sat, 12 Nov 2005 20:06:04 +0000 (20:06 +0000)]
Imoproved comments for the minimax polynomial.

Removed an unused variable.

Fixed some wrong comments and some nearby misformatting.

18 years agoMake the kern.geom.conftxt sysctl more usable by also dumping the
marcel [Sat, 12 Nov 2005 20:02:02 +0000 (20:02 +0000)]
Make the kern.geom.conftxt sysctl more usable by also dumping the
MD class. Previously only the DISK class was dumped. The only
consumer of this sysctl is libdisk (i.e. sysinstall) and it tests
explicitly for instances of the DISK class. Dumping other classes
is therefore harmless.
By also dumping the MD class regression tests can be written that
use the MD class for operations that would normally be done on the
DISK class. The sysctl can now be used to test if those operations
took an effect. An example is partitioning.

18 years agoTweaked the minimax polynomial and improved its comments.
bde [Sat, 12 Nov 2005 19:56:35 +0000 (19:56 +0000)]
Tweaked the minimax polynomial and improved its comments.

18 years agoImproved comments for the minimax polynomial.
bde [Sat, 12 Nov 2005 19:54:45 +0000 (19:54 +0000)]
Improved comments for the minimax polynomial.

18 years agoSpeed up stale catpages hunting by not running sed(1) for every catpage.
ru [Sat, 12 Nov 2005 19:31:30 +0000 (19:31 +0000)]
Speed up stale catpages hunting by not running sed(1) for every catpage.

18 years agoDon't check DESTDIR when making distributeworld; the latter expects
ru [Sat, 12 Nov 2005 19:28:46 +0000 (19:28 +0000)]
Don't check DESTDIR when making distributeworld; the latter expects
DISTDIR.

Reported by: nyan

18 years agoReally fix it this time.
ru [Sat, 12 Nov 2005 19:14:21 +0000 (19:14 +0000)]
Really fix it this time.

18 years agoAttempt to fix pc98 GENERIC compile breakage.
ru [Sat, 12 Nov 2005 18:50:06 +0000 (18:50 +0000)]
Attempt to fix pc98 GENERIC compile breakage.

18 years agoAs for the float trig functions, use a minimax polynomial that is
bde [Sat, 12 Nov 2005 18:20:09 +0000 (18:20 +0000)]
As for the float trig functions, use a minimax polynomial that is
specialized for float precision.  The new polynomial has degree 8
instead of 14, and a maximum error of 2**-34.34 (absolute) instead of
2**-30.66.  This doesn't affect the final error significantly; the
maximum error was and is about 0.8879 ulps on amd64 -01.

The fdlibm expf() is not used on i386's (the "optimized" asm version
is used), but probably should be since it was already significantly
faster than the asm version on athlons.  The asm version has the
advantage of being more accurate, so keep using it for now.

18 years agoFix a > 1 year old typo that caused the ulpt driver to try reading
iedowse [Sat, 12 Nov 2005 17:39:31 +0000 (17:39 +0000)]
Fix a > 1 year old typo that caused the ulpt driver to try reading
from the printer and discarding the data even if the ulpt device
was opened for reading. This resulted in crashes because two
conconcurrent read transfers were using the same transfer structure.

PR: usb/88886
Reported By: Alex Pivovarov
MFC after: 1 week

18 years agoFix a stub function so that is has the correct number of
deischen [Sat, 12 Nov 2005 16:00:29 +0000 (16:00 +0000)]
Fix a stub function so that is has the correct number of
arguments.  While I'm here, correct a couple of [tab] alignments.

Submitted by: bland

18 years agostyle(9) cleanups.
rodrigc [Sat, 12 Nov 2005 14:41:44 +0000 (14:41 +0000)]
style(9) cleanups.

Spotted by: njl, bde

18 years agoAdd "-s" argument to kdump to suppress the display of I/O data.
rwatson [Sat, 12 Nov 2005 14:21:48 +0000 (14:21 +0000)]
Add "-s" argument to kdump to suppress the display of I/O data.

MFC after: 1 week

18 years agoLook through ext2fs file systems as well as ufs.
grog [Sat, 12 Nov 2005 12:45:08 +0000 (12:45 +0000)]
Look through ext2fs file systems as well as ufs.

This should almost certainly be extended to other local file systems
as well (ntfs springs to mind), but I don't have the ability to test
it.

18 years agoAdd -P flag, it does the same as the -p option, except that the
krion [Sat, 12 Nov 2005 11:45:01 +0000 (11:45 +0000)]
Add -P flag, it does the same as the -p option, except that the
given prefix is also used recursively for the dependency packages,
if any.  If the -P flag appears after any -p flag on the
command line, it overrides it's effect, causing pkg_add to use the
given prefix recursively.

PR: bin/75742
Submitted by: Frerich Raabe <raabe AT kde DOT org>
MFC after: 3 days

18 years agoSignificant refactoring of the accounting code to improve locking and VFS
rwatson [Sat, 12 Nov 2005 10:45:13 +0000 (10:45 +0000)]
Significant refactoring of the accounting code to improve locking and VFS
happiness, as well as correct other bugs:

- Replace notion of current and saved accounting credential/vnode with a
  single credential/vnode and an acct_suspended flag.  This simplifies the
  accounting logic substantially.

- Replace acct_mtx with acct_sx, a sleepable lock held exclusively during
  reconfiguration and space polling, but shared during log entry
  generation.  This avoids holding a mutex over sleepable VFS operations.

- Hold the sx lock over the duration of the I/O so that the vnode I/O
  cannot occur after vnode close, which could occur previously if
  accounting was disabled as a process exited.

- Write the accounting log entry with Giant conditionally acquired based
  on the file system where the log is stored.  Previously, the accounting
  code relied on the caller acquiring Giant.

- Acquire Giant conditionally in the accounting callout based on the file
  system where the accounting log is stored.  Run the callout MPSAFE.

- Expose acct_suspended via a read-only sysctl so it is possibly to
  programmatically determine whether accounting is suspended or not without
  attempting to parse logs.

- Check both acct_vp and acct_suspended lock-free before entering the
  accounting sx lock in acct().

- When accounting is disabled due to a VBAD vnode (i.e., forceable unmount),
  generate a log message indicating accounting has been disabled.

- Correct a long-standing bug in how free space is calculated and compared
  to the required space: generate and compare signed results, not unsigned
  results, or negative free space will cause accounting to not be suspended
  when required, or worse, incorrectly resumed once negative free space is
  reached.

MFC after: 2 weeks

18 years agoMake sure only remove one signal by debugger.
davidxu [Sat, 12 Nov 2005 04:22:16 +0000 (04:22 +0000)]
Make sure only remove one signal by debugger.

18 years agoAdd section to start/stop Bluetooth USB devices (via ng_ubt(4))
emax [Sat, 12 Nov 2005 03:42:56 +0000 (03:42 +0000)]
Add section to start/stop Bluetooth USB devices (via ng_ubt(4))

Submitted by: Panagiotis Astithas ( past at ebs dot gr )
Reviewed by: brooks, imp
MFC after: 1 week

18 years agoadd continued status.
davidxu [Sat, 12 Nov 2005 01:37:03 +0000 (01:37 +0000)]
add continued status.

18 years agoInsert missing copyright headers.
davidxu [Sat, 12 Nov 2005 01:19:05 +0000 (01:19 +0000)]
Insert missing copyright headers.

18 years agoDocument -32 flag in usage() output as well.
jhb [Fri, 11 Nov 2005 21:24:21 +0000 (21:24 +0000)]
Document -32 flag in usage() output as well.

Requested by: ru
MFC after: 1 week

18 years agoTraditionally expand tabs here.
ru [Fri, 11 Nov 2005 21:05:40 +0000 (21:05 +0000)]
Traditionally expand tabs here.

18 years agoDocument the -32 switch available on amd64.
jhb [Fri, 11 Nov 2005 20:29:50 +0000 (20:29 +0000)]
Document the -32 switch available on amd64.

Submitted by: Steve Kargl sgk at troutmask dot apl dot washington dot edu
MFC after: 1 week

18 years agoFix a bug in dlinfo(RTLD_DI_SERINFOSIZE) requests. For each search path
jhb [Fri, 11 Nov 2005 19:57:41 +0000 (19:57 +0000)]
Fix a bug in dlinfo(RTLD_DI_SERINFOSIZE) requests.  For each search path
we included the length of the path in the returned size but not the length
of the associated Dl_serpath structure.  Without this fix, programs
attempting to allocate a structure to hold the search path information
would allocate too small of a buffer and rtld would overrun the buffer
while filling it via a subsequent RTLD_DI_SERINFO request.

Submitted by: "William K. Josephson" wkj at morphisms dot net
Reviewed by: jdp
MFC after: 2 weeks

18 years agoAdd dev/speaker into include/ tree
delphij [Fri, 11 Nov 2005 17:38:10 +0000 (17:38 +0000)]
Add dev/speaker into include/ tree

18 years agoSince speaker.h now lives in sys/dev/speaker, reflect this fact here.
delphij [Fri, 11 Nov 2005 16:48:01 +0000 (16:48 +0000)]
Since speaker.h now lives in sys/dev/speaker, reflect this fact here.

18 years agoUpdate PCI ids to add the E200, E200i, P400, and P400i storage
ps [Fri, 11 Nov 2005 16:45:33 +0000 (16:45 +0000)]
Update PCI ids to add the E200, E200i, P400, and P400i storage
controllers.  Remove the E400 since it is not a real product.

Submitted by: HP

18 years ago- Store pointer to the link-level address right in "struct ifnet"
ru [Fri, 11 Nov 2005 16:04:59 +0000 (16:04 +0000)]
- Store pointer to the link-level address right in "struct ifnet"
  rather than in ifindex_table[]; all (except one) accesses are
  through ifp anyway.  IF_LLADDR() works faster, and all (except
  one) ifaddr_byindex() users were converted to use ifp->if_addr.

- Stop storing a (pointer to) Ethernet address in "struct arpcom",
  and drop the IFP2ENADDR() macro; all users have been converted
  to use IF_LLADDR() instead.

18 years agoOnly signo should be marked with .Fa.
davidxu [Fri, 11 Nov 2005 14:52:06 +0000 (14:52 +0000)]
Only signo should be marked with .Fa.

18 years agoList /boot/device.hints entries for the second joystick.
jylefort [Fri, 11 Nov 2005 12:53:37 +0000 (12:53 +0000)]
List /boot/device.hints entries for the second joystick.

Approved by: joel

18 years agoUse the more appropriate ifnet_byindex() instead of ifaddr_byindex().
ru [Fri, 11 Nov 2005 12:32:49 +0000 (12:32 +0000)]
Use the more appropriate ifnet_byindex() instead of ifaddr_byindex().

18 years agoCatch up with IFP2ENADDR() type change (array -> pointer).
ru [Fri, 11 Nov 2005 12:17:31 +0000 (12:17 +0000)]
Catch up with IFP2ENADDR() type change (array -> pointer).

18 years agoAdd definitions for 64-bit PTEs
grehan [Fri, 11 Nov 2005 12:03:28 +0000 (12:03 +0000)]
Add definitions for 64-bit PTEs

18 years agoRename GEOM class kernel module g_md.ko to geom_md.ko for consistency
pjd [Fri, 11 Nov 2005 11:31:23 +0000 (11:31 +0000)]
Rename GEOM class kernel module g_md.ko to geom_md.ko for consistency
with the rest.

mdconfig.c: Simplify mdmaybeload() function.
mdioctl.h: Removed (now unused) #define.
loader.conf: Sort GEOM classes properly.

OK'ed by: phk

18 years agoForce this interface to be RUNNING.
glebius [Fri, 11 Nov 2005 11:17:57 +0000 (11:17 +0000)]
Force this interface to be RUNNING.

18 years agoAdd more GEOM classes to defaults/loader.conf. Add references to manual
pjd [Fri, 11 Nov 2005 10:48:30 +0000 (10:48 +0000)]
Add more GEOM classes to defaults/loader.conf. Add references to manual
pages to those already present.

Reviewed by: brueffer

18 years agoAdd /dev/speaker support to amd64.
ru [Fri, 11 Nov 2005 09:57:32 +0000 (09:57 +0000)]
Add /dev/speaker support to amd64.

The following repo-copies were made (by Mark Murray):

sys/i386/isa/spkr.c -> sys/dev/speaker/spkr.c
sys/i386/include/speaker.h -> sys/dev/speaker/speaker.h
share/man/man4/man4.i386/spkr.4 -> share/man/man4/spkr.4

18 years agoata_generic_hw takes a dev as a parameter, not a channel.
grehan [Fri, 11 Nov 2005 09:36:38 +0000 (09:36 +0000)]
ata_generic_hw takes a dev as a parameter, not a channel.

18 years agoFix compile warning: pmap_bootstrap is now declared extern in pmap.h,
grehan [Fri, 11 Nov 2005 09:32:27 +0000 (09:32 +0000)]
Fix compile warning: pmap_bootstrap is now declared extern in pmap.h,
remove redundant declaration.

18 years agoSome fixes for last commit.
glebius [Fri, 11 Nov 2005 09:31:23 +0000 (09:31 +0000)]
Some fixes for last commit.

Submitted by: ru

18 years agoSkip .symbols files.
ru [Fri, 11 Nov 2005 08:13:18 +0000 (08:13 +0000)]
Skip .symbols files.

18 years agoFix plural.
delphij [Fri, 11 Nov 2005 08:00:44 +0000 (08:00 +0000)]
Fix plural.

18 years agoFix plural.
davidxu [Fri, 11 Nov 2005 07:50:51 +0000 (07:50 +0000)]
Fix plural.

18 years agoFix copy-paste issue.
davidxu [Fri, 11 Nov 2005 07:50:09 +0000 (07:50 +0000)]
Fix copy-paste issue.

18 years agoAdd POSIX timer manuals.
davidxu [Fri, 11 Nov 2005 07:48:38 +0000 (07:48 +0000)]
Add POSIX timer manuals.

18 years ago- Make IFP2ENADDR() a pointer to IF_LLADDR() rather than another
ru [Fri, 11 Nov 2005 07:36:14 +0000 (07:36 +0000)]
- Make IFP2ENADDR() a pointer to IF_LLADDR() rather than another
  copy of Ethernet address.

- Change iso88025_ifattach() and fddi_ifattach() to accept MAC
  address as an argument, similar to ether_ifattach(), to make
  this work.

18 years agoAdd descriptions about signal queue.
davidxu [Fri, 11 Nov 2005 05:40:39 +0000 (05:40 +0000)]
Add descriptions about signal queue.

18 years agoEr, highlight function wait().
davidxu [Fri, 11 Nov 2005 05:38:40 +0000 (05:38 +0000)]
Er, highlight function wait().

18 years agoAdd notes about queued SIGCHLD.
davidxu [Fri, 11 Nov 2005 05:30:48 +0000 (05:30 +0000)]
Add notes about queued SIGCHLD.

18 years agoAdd manuals for sigqueue, sigtimedwait, sigwaitinfo.
davidxu [Fri, 11 Nov 2005 03:13:25 +0000 (03:13 +0000)]
Add manuals for sigqueue, sigtimedwait, sigwaitinfo.

18 years agofix a crash when an nfsv2 mount fails
jon [Thu, 10 Nov 2005 23:25:16 +0000 (23:25 +0000)]
fix a crash when an nfsv2 mount fails

MFC after: 1 week

18 years agofixed a bug that uRPF does not work properly for an IPv6 packet bound for the sending...
suz [Thu, 10 Nov 2005 22:10:39 +0000 (22:10 +0000)]
fixed a bug that uRPF does not work properly for an IPv6 packet bound for the sending machine itself  (this is a bug introduced due to a change in ip6_input.c:Rev.1.83)

Pointed out by: Sean McNeil and J.R.Oldroyd
MFC after: 3 days

18 years agoApply the .PHONY attribute to the ../make*/make* targets. This
ru [Thu, 10 Nov 2005 21:03:58 +0000 (21:03 +0000)]
Apply the .PHONY attribute to the ../make*/make* targets.  This
causes them to be recreated (if needed) early, when doing "make
depend" here, before generating headers that depend on them.
This should fix breakages often seen while doing incremental
(NO_CLEAN) cross-builds.

18 years agoStart integrating Bluetooth into rc.d system.
emax [Thu, 10 Nov 2005 19:09:22 +0000 (19:09 +0000)]
Start integrating Bluetooth into rc.d system.

Introduce /etc/rc.d/bluetooth script to start/stop Bluetooth devices. It
will be called from devd(8) in response to device arrival/departure events.
It is also possible to call it by hand to start/stop particular device
without unplugging it.

Introduce generic way to set configuration parameters for Bluetooth devices.
By default /etc/rc.d/bluetooth script has hardwired defaults compatible
with old rc.bluetooth from /usr/share/netgraph/bluetooth/examples. These
can be overridden using /etc/defaults/bluetooth.device.conf file (system
wide defaults). Finally, there could be another device specific override
file located in /etc/bluetooth/$device.conf (where $device is ubt0, btccc0
etc.)

The list of configuration parameters and their meaning described in the
/etc/defaults/bluetooth.device.conf file. Even though Bluetooth device
configuration files are not shell scripts, they must follow basic sh(1) syntax.

The bluetooth.device.conf(5) and handbook update will follow shortly.

Inspired by: Panagiotis Astithas ( past at ebs dot gr )
Reviewed by: brooks, yar
MFC after: 1 week

18 years agoAdd missing shared library interdependencies.
ru [Thu, 10 Nov 2005 18:07:07 +0000 (18:07 +0000)]
Add missing shared library interdependencies.

18 years agoAs for __kernel_cosf() and __kernel_sinf(), use a fairly optimal minimax
bde [Thu, 10 Nov 2005 17:43:49 +0000 (17:43 +0000)]
As for __kernel_cosf() and __kernel_sinf(), use a fairly optimal minimax
polynomial for __kernel_tanf().  The old one was the double-precision
polynomial with coefficients truncated to float.  Truncation is not
a good way to convert minimax polynomials to lower precision.  Optimize
for efficiency and use the lowest-degree polynomial that gives a
relative error of less than 1 ulp.  It has degree 13 instead of 27,
and happens to be 2.5 times more accurate (in infinite precision) than
the old polynomial (the maximum error is 0.017 ulps instead of 0.041
ulps).

Unlike for cosf and sinf, the old accuracy was close to being inadequate
-- the polynomial for double precision has a max error of 0.014 ulps
and nearly this small an error is needed.  The new accuracy is also a
bit small, but exhaustive checking shows that even the old accuracy
was enough.  The increased accuracy reduces the maximum relative error
in the final result on amd64 -O1 from 0.9588 ulps to 0.9044 ulps.

18 years agoCorrect a number of serious and closely related bugs in the UNIX domain
rwatson [Thu, 10 Nov 2005 16:06:04 +0000 (16:06 +0000)]
Correct a number of serious and closely related bugs in the UNIX domain
socket file descriptor garbage collection code, which is intended to
detect and clear cycles of orphaned file descriptors that are "in-flight"
in a socket when that socket is closed before they are received.  The
algorithm present was both run at poor times (resulting in recursion and
reentrance), and also buggy in the presence of parallelism.  In order to
fix these problems, make the following changes:

- When there are in-flight sockets and a UNIX domain socket is destroyed,
  asynchronously schedule the garbage collector, rather than running it
  synchronously in the current context.  This avoids lock order issues
  when the garbage collection code reenters the UNIX domain socket code,
  avoiding lock order reversals, deadlocks, etc.  Run the code
  asynchronously in a task queue.

- In the garbage collector, when skipping file descriptors that have
  entered a closing state (i.e., have f_count == 0), re-test the FDEFER
  flag, and decrement unp_defer.  As file descriptors can now transition
  to a closed state, while the garbage collector is running, it is no
  longer the case that unp_defer will remain an accurate count of
  deferred sockets in the mark portion of the GC algorithm.  Otherwise,
  the garbage collector will loop waiting waiting for unp_defer to reach
  zero, which it will never do as it is skipping file descriptors that
  were marked in an earlier pass, but now closed.

- Acquire the UNIX domain socket subsystem lock in unp_discard() when
  modifying the unp_rights counter, or a read/write race is risked with
  other threads also manipulating the counter.

While here:

- Remove #if 0'd code regarding acquiring the socket buffer sleep lock in
  the garbage collector, this is not required as we are able to use the
  socket buffer receive lock to protect scanning the receive buffer for
  in-flight file descriptors on the socket buffer.

- Annotate that the description of the garbage collector implementation
  is increasingly inaccurate and needs to be updated.

- Add counters of the number of deferred garbage collections and recycled
  file descriptors.  This will be removed and is here temporarily for
  debugging purposes.

With these changes in place, the unp_passfd regression test now appears
to be passed consistently on UP and SMP systems for extended runs,
whereas before it hung quickly or panicked, depending on which bug was
triggered.

Reported by: Philip Kizer <pckizer at nostrum dot com>
MFC after: 2 weeks

18 years agoUse .Nx macro for NetBSD.
kientzle [Thu, 10 Nov 2005 15:42:51 +0000 (15:42 +0000)]
Use .Nx macro for NetBSD.

Thanks to: Ruslan Ermilov

18 years agoMention the non-standardness of the -I option in ls(1).
mux [Thu, 10 Nov 2005 14:26:50 +0000 (14:26 +0000)]
Mention the non-standardness of the -I option in ls(1).

Spotted by: ru
MFC after: 3 days

18 years agoAdd the f_msgcount field to the set of struct file fields printed in show
rwatson [Thu, 10 Nov 2005 13:26:29 +0000 (13:26 +0000)]
Add the f_msgcount field to the set of struct file fields printed in show
files.

MFC after: 1 week

18 years agos/Three file/Three files/
harti [Thu, 10 Nov 2005 13:12:06 +0000 (13:12 +0000)]
s/Three file/Three files/

Submitted by: ru

18 years agoRemove hard sentence breaks. Correct the width calculation for the list
harti [Thu, 10 Nov 2005 12:08:17 +0000 (12:08 +0000)]
Remove hard sentence breaks. Correct the width calculation for the list
indent.

Submitted by: ru

18 years agoDon't include bsd.init.mk so early - it's just not needed here.
harti [Thu, 10 Nov 2005 12:07:12 +0000 (12:07 +0000)]
Don't include bsd.init.mk so early - it's just not needed here.
Use . instead of ${.OBJDIR}.
Move DEFSDIR and BMIBSDIR under the resp. .if clauses so that they
get defined only if DEFS and BMIBS are defined.

Submitted by: ru

18 years agoGive a try to autoconfiguring the number of transmit and receive
glebius [Thu, 10 Nov 2005 11:44:37 +0000 (11:44 +0000)]
Give a try to autoconfiguring the number of transmit and receive
descriptors depending on chip revision.

18 years agoExpanet of details printed for each file descriptor to include it's
rwatson [Thu, 10 Nov 2005 11:35:59 +0000 (11:35 +0000)]
Expanet of details printed for each file descriptor to include it's
garbage collection flags.  Reformat generally to make this fit and
leave some room for future expansion.

MFC after: 1 week

18 years ago- Document last change to ARP behavior.
glebius [Thu, 10 Nov 2005 11:35:53 +0000 (11:35 +0000)]
- Document last change to ARP behavior.
- Document several undocumented sysctl variables.
- Fix spelling of few diagnostics.

18 years agoAdd a DDB "show files" command to list the current open file list, some
rwatson [Thu, 10 Nov 2005 10:42:50 +0000 (10:42 +0000)]
Add a DDB "show files" command to list the current open file list, some
state about each open file, and identify the first process in the process
table that references the file.  This is helpful in debugging leaks of
file descriptors.

MFC after: 1 week

18 years agoBackout r1.11...
rse [Thu, 10 Nov 2005 10:40:15 +0000 (10:40 +0000)]
Backout r1.11...

> >   There is no need to explicitly add "status" to $extra_commands in
> >   the /etc/rc.d/pf script as it is implicitly added by /etc/rc.subr's
> >   run_rc_command() because of the existing $pf_program.
> >
> >   Submitted by:   Christoph Schug <chris@schug.net>

...because as yar@ points out: "[...] you were relying on evil
side-effects of the variable being named *_program. hose side-effect
have been eliminated since rc.subr rev. 1.42. [...] The point is that
the default "status" method is for rc.d scripts that handle startup and
shutdown of conventional daemons, and not for custom tasks like the pf
case."

The change is still valid in RELENG_6 (and still doesn't have to be
backed out) as long as rc.subr:r1.42 is not MFC'ed to RELENG_6, too.

18 years agoadd set/read max address 48bit versions
sos [Thu, 10 Nov 2005 10:29:04 +0000 (10:29 +0000)]
add set/read max address 48bit versions

18 years agoUse the new bsd.snmpmod.mk makefile to build the modules. The -I pointers
harti [Thu, 10 Nov 2005 10:14:57 +0000 (10:14 +0000)]
Use the new bsd.snmpmod.mk makefile to build the modules. The -I pointers
into the contrib directory are still necessary for some of the Makefiles,
because the C-sources there use non-canonical includes ("" includes) to get
at the header files.

18 years agoUse the canonical include name for snmpmod.h. The build infrastructure takes
harti [Thu, 10 Nov 2005 10:12:01 +0000 (10:12 +0000)]
Use the canonical include name for snmpmod.h. The build infrastructure takes
already care to pick up the correct version of the file depending on how
we build.

18 years agoThis is a short man page which describes bsd.snmpmod.mk. It documents
harti [Thu, 10 Nov 2005 10:09:42 +0000 (10:09 +0000)]
This is a short man page which describes bsd.snmpmod.mk. It documents
only the features that this file layers on top of bsd.lib.mk and should
therefore cross-reference to bsd.lib.mk, which doesn't exist.