]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoReflect rr232x(4) manpage removal
Xin LI [Wed, 6 Feb 2008 18:43:47 +0000 (18:43 +0000)]
Reflect rr232x(4) manpage removal

16 years agoThis is a regression test to verify the proper behavior of IP ID generation
Mike Silbersack [Wed, 6 Feb 2008 15:48:43 +0000 (15:48 +0000)]
This is a regression test to verify the proper behavior of IP ID generation
code.  It will push 200000 packets, then report back what the min and max
periods it saw for different IDs were.

16 years agoReplace the random IP ID generation code we
Mike Silbersack [Wed, 6 Feb 2008 15:40:30 +0000 (15:40 +0000)]
Replace the random IP ID generation code we
obtained from OpenBSD with an algorithm suggested
by Amit Klein.  The OpenBSD algorithm has a few
flaws; see Amit's paper for more information.

For a description of how this algorithm works,
please see the comments within the code.

Note that this commit does not yet enable random IP ID
generation by default.  There are still some concerns
that doing so will adversely affect performance.

Reviewed by:  rwatson
MFC After: 2 weeks

16 years agoRemove an errant definition for AMR_CONFIG_ENQ3_SOLICITED NOTIFY that was
Scott Long [Wed, 6 Feb 2008 14:26:31 +0000 (14:26 +0000)]
Remove an errant definition for AMR_CONFIG_ENQ3_SOLICITED NOTIFY that was
accidently reverted in the previous commit.

16 years agotd cannot be NULL in that place, so just axe out the check.
Attilio Rao [Wed, 6 Feb 2008 13:26:01 +0000 (13:26 +0000)]
td cannot be NULL in that place, so just axe out the check.

16 years agoAdd necessary cast for tolower() argument.
Dag-Erling Smørgrav [Wed, 6 Feb 2008 11:39:55 +0000 (11:39 +0000)]
Add necessary cast for tolower() argument.

Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de>
MFC after: 1 week

16 years agoFix typo.
Pierre Beyssac [Wed, 6 Feb 2008 08:03:27 +0000 (08:03 +0000)]
Fix typo.

Submitted by: danny at cs.huji.ac.il (author)

16 years agoUpdate fix from rev 1.2.
Pierre Beyssac [Wed, 6 Feb 2008 08:02:55 +0000 (08:02 +0000)]
Update fix from rev 1.2.

Submitted by: danny at cs.huji.ac.il (author)
MFC after: 1 week

16 years agoAs for the float trig functions and logf, use a minimax polynomial
Bruce Evans [Wed, 6 Feb 2008 06:35:21 +0000 (06:35 +0000)]
As for the float trig functions and logf, use a minimax polynomial
that is specialized for float precision.  The new polynomial has degree
5 instead of 11, and a maximum error of 2**-27.74 ulps instead
of 2**-30.64.  This doesn't affect the final error significantly; the
maximum error was and is about 0.9101 ulps on amd64 -01 and the number
of cases with an error of > 0.5 ulps is actually reduced by epsilon
despite the larger error in the polynomial.

This is about 15% faster on amd64 (A64), i386 (A64) and ia64.  The asm
version is still used instead of this on i386 since it is faster and
more accurate.

16 years agoFix a symbol conflict between hptrr and hptmv
Scott Long [Wed, 6 Feb 2008 05:33:17 +0000 (05:33 +0000)]
Fix a symbol conflict between hptrr and hptmv

16 years agoAdd a note that the hptrr driver supersedes the rr232x driver.
Scott Long [Wed, 6 Feb 2008 03:30:13 +0000 (03:30 +0000)]
Add a note that the hptrr driver supersedes the rr232x driver.

16 years agoTrack dirty unused pages so that they can be purged if they exceed a
Jason Evans [Wed, 6 Feb 2008 02:59:54 +0000 (02:59 +0000)]
Track dirty unused pages so that they can be purged if they exceed a
threshold, according to the 'F' MALLOC_OPTIONS flag.  This obsoletes the
'H' flag.

Try to realloc() large objects in place.  This substantially speeds up
incremental large reallocations in the common case.

Fix a bug in arena_ralloc() that caused relocation of sub-page objects
even if the old and new sizes were in the same size class.

Maintain trees of runs and simplify the per-chunk page map.  This allows
logarithmic-time searching for sufficiently large runs in
arena_run_alloc(), whereas the previous algorithm required linear time
in the worst case.

Break various large functions into smaller sub-functions, and inline
only the functions that are in the fast path for small object
allocation/deallocation.

Remove an unnecessary check in base_pages_alloc_mmap().

Avoid integer division in choose_arena() for the NO_TLS case on
single-CPU systems.

16 years agoUpdate the hptrr driver to version 1.2. This adds port multiplier support
Scott Long [Wed, 6 Feb 2008 01:02:20 +0000 (01:02 +0000)]
Update the hptrr driver to version 1.2.  This adds port multiplier support
for several cards.  See the Highpoint website for more information.  Again,
many thanks to Highpoint for their continued support of FreeBSD.

16 years agoAdaptive spinning in write path with readers and writer starvation avoidance.
Jeff Roberson [Wed, 6 Feb 2008 01:02:13 +0000 (01:02 +0000)]
Adaptive spinning in write path with readers and writer starvation avoidance.
 - Move recursion checking into rwlock inlines to free a bit for use with
   adaptive spinners.
 - Clear the RW_LOCK_WRITE_SPINNERS flag whenever the lock state changes
   causing write spinners to restart their loop.
 - Write spinners are limited by a count while readers hold the lock as
   there is no way to know for certain whether readers are running still.
 - In the read path block if there are write waiters or spinners to avoid
   starving writers.  Use a new per-thread count, td_rw_rlocks, to skip
   starvation avoidance if it might cause a deadlock.
 - Remove or change invalid assertions in turnstiles.

Reviewed by:    attilio (developed parts of the patch as well)
Sponsored by:   Nokia

16 years agoUpdate manpage in order to reflect LK_NODUP and LK_NOWITNESS options
Attilio Rao [Wed, 6 Feb 2008 00:50:51 +0000 (00:50 +0000)]
Update manpage in order to reflect LK_NODUP and LK_NOWITNESS options
introduction.

16 years agoBump __FreeBSD_version in order to reflect introduction of LK_NODUP and
Attilio Rao [Wed, 6 Feb 2008 00:42:26 +0000 (00:42 +0000)]
Bump __FreeBSD_version in order to reflect introduction of LK_NODUP and
LK_NOWITNESS options in the lockmgr namespace.

16 years agoAdd WITNESS support to lockmgr locking primitive.
Attilio Rao [Wed, 6 Feb 2008 00:37:14 +0000 (00:37 +0000)]
Add WITNESS support to lockmgr locking primitive.
This support tries to be as parallel as possible with other locking
primitives, but there are differences; more specifically:
- The base witness support is alredy equipped for allowing lock
  duplication acquisition as lockmgr rely on this.
- In the case of lockmgr_disown() the lock result unlocked by witness
  even if it is still held by the "kernel context"
- In the case of upgrading we can have 3 different situations:
  * Total unlocking of the shared lock and nothing else
  * Real witness upgrade if the owner is the first upgrader
  * Shared unlocking and exclusive locking if the owner is not the first
    upgrade but it is still allowed to upgrade
- LK_DRAIN is basically handled like an exclusive acquisition

Additively new options LK_NODUP and LK_NOWITNESS can now be used with
lockinit(): LK_NOWITNESS disables WITNESS for the specified lock while
LK_NODUP enable duplicated locks tracking. This will require manpages
update and a __FreeBSD_version bumping (addressed by further commits).

This patch also fixes a problem occurring if a lockmgr is held in
exclusive mode and the same owner try to acquire it in shared mode:
currently there is a spourious shared locking acquisition while what
we really want is a lock downgrade. Probabilly, this situation can be
better served with a EDEADLK failing errno return.

Side note: first testing on this patch alredy reveleated several LORs
reported, so please expect LORs cascades until resolved. NTFS also is
reported broken by WITNESS introduction. BTW, NTFS is exposing a lock
leak which needs to be fixed, and this patch can help it out if
rightly tweaked.

Tested by: kris, yar, Scot Hetzel <swhetzel at gmail dot com>

16 years agoReally, no explicit checks against against lock_class_* object should be
Attilio Rao [Wed, 6 Feb 2008 00:04:09 +0000 (00:04 +0000)]
Really, no explicit checks against against lock_class_* object should be
done in consumers code: using locks properties is much more appropriate.
Fix current code doing these bogus checks.

Note: Really, callout are not usable by all !(LC_SPINLOCK | LC_SLEEPABLE)
primitives like rmlocks doesn't implement the generic lock layer
functions, but they can be equipped for this, so the check is still
valid.

Tested by: matteo, kris (earlier version)
Reviewed by: jhb

16 years agoFix a bug in hexadecimal formatting of the CHAP digest: bytes >= 0x80
Pierre Beyssac [Tue, 5 Feb 2008 23:42:38 +0000 (23:42 +0000)]
Fix a bug in hexadecimal formatting of the CHAP digest: bytes >= 0x80
were formatted as 0xff, causing the authentication to fail.

Reviewed by: scottl
MFC after: 1 week

16 years agoBump .Dd for r1.19; use consistent whitespace.
Ceri Davies [Tue, 5 Feb 2008 23:42:37 +0000 (23:42 +0000)]
Bump .Dd for r1.19; use consistent whitespace.

16 years agoAdd ZFS support.
John Baldwin [Tue, 5 Feb 2008 23:37:42 +0000 (23:37 +0000)]
Add ZFS support.

MFC after: 1 week
PR: bin/119976
Submitted by: Simun Mikecin  numisemis of yahoo.com

16 years agoset WARNS to 1: with WARNS=2 an aliasing error in a file generated by
Matteo Riondato [Tue, 5 Feb 2008 20:03:45 +0000 (20:03 +0000)]
set WARNS to 1: with WARNS=2 an aliasing error in a file generated by
rpcgen from include/rpcsvc/rex.x is exposed and I really don't know
how to fix it.

MFC after: 1 week

16 years agoAdd my birthday.
Antoine Brodin [Tue, 5 Feb 2008 19:34:54 +0000 (19:34 +0000)]
Add my birthday.

Approved by: rwatson (mentor)

16 years agoAdd myself.
Antoine Brodin [Tue, 5 Feb 2008 19:23:22 +0000 (19:23 +0000)]
Add myself.

Approved by: rwatson (mentor)

16 years agoMinor style(9) nit.
David E. O'Brien [Tue, 5 Feb 2008 17:34:44 +0000 (17:34 +0000)]
Minor style(9) nit.

16 years ago- Forced commit to note that revision 1.20 log was misspelled and that comma
Ulf Lilleengen [Tue, 5 Feb 2008 15:53:24 +0000 (15:53 +0000)]
- Forced commit to note that revision 1.20 log was misspelled and that comma
  should be spelled as colon.
Approved by: kib (mentor)

16 years agoSatisfy a particularly obstinate nit-picker :)
Dag-Erling Smørgrav [Tue, 5 Feb 2008 15:41:58 +0000 (15:41 +0000)]
Satisfy a particularly obstinate nit-picker :)

16 years ago- Add extra paths for GEOM_LIBRARY_PATH to the fixit environment to enable all
Ulf Lilleengen [Tue, 5 Feb 2008 14:06:15 +0000 (14:06 +0000)]
- Add extra paths for GEOM_LIBRARY_PATH to the fixit environment to enable all
  geom commands in a chrooted environment on the livefs cd.

PR: misc/120169
Approved by: pjd (mentor)
MFC after: 2 days

16 years ago- Update geom(8) to explain that GEOM_LIBRARY_PATH can take a comma-separated
Ulf Lilleengen [Tue, 5 Feb 2008 14:02:55 +0000 (14:02 +0000)]
- Update geom(8) to explain that GEOM_LIBRARY_PATH can take a comma-separated
  list of paths.

Approved by: pjd (mentor)
MFC after: 2 days

16 years agoIntroduce a standalone shell script for embedding MFS image.
Rafal Jaworowski [Tue, 5 Feb 2008 10:46:30 +0000 (10:46 +0000)]
Introduce a standalone shell script for embedding MFS image.

This allows to fix a problem with ARM kernel.bin not having the MFS image
embedded: it is objcopied from the kernel.noheader temporary ELF file, which
was not subject to embedding the MFS image previously.

Reviewed by: imp
Approved by: cognet (mentor)

16 years agoARM locore cosmetics.
Rafal Jaworowski [Tue, 5 Feb 2008 10:23:42 +0000 (10:23 +0000)]
ARM locore cosmetics.

Approved by: cognet (mentor)

16 years agoImprove ARM_TP_ADDRESS and RAS area.
Rafal Jaworowski [Tue, 5 Feb 2008 10:22:33 +0000 (10:22 +0000)]
Improve ARM_TP_ADDRESS and RAS area.

De-hardcode usage of ARM_TP_ADDRESS and RAS local storage, and move this
special purpose page to a more convenient place i.e. after the vectors high
page, more towards the end of address space. Previous location (0xe000_0000)
caused grief if KVA was to go beyond the default limit.

Note that ARM world rebuilding is required after this change since the
location of ARM_TP_ADDRESS is shared between kernel and userland.

Submitted by: Grzegorz Bernacki (gjb AT semihalf dot com)
Reviewed by: imp
Approved by: cognet (mentor)

16 years agoGive usr.bin/kdump/kdump_subr.c the same treatment as usr.bin/kdump/ioctl.c
Dag-Erling Smørgrav [Tue, 5 Feb 2008 08:56:18 +0000 (08:56 +0000)]
Give usr.bin/kdump/kdump_subr.c the same treatment as usr.bin/kdump/ioctl.c
and usr.bin/truss/ioctl.c.  This is the correct way to address the problem
that arises when doing an incremental build after a header used by kdump
has been removed (cf. i4b disconnect a while ago)

Explained by: ru
MFC after: 2 weeks

16 years agoRevert CLEANDEPFILES commit per ru@'s request; it does not really solve
Dag-Erling Smørgrav [Tue, 5 Feb 2008 08:52:36 +0000 (08:52 +0000)]
Revert CLEANDEPFILES commit per ru@'s request; it does not really solve
the problem.  The correct fix will follow.

16 years agoAdd missing includes and correct argument to sysctlbyname
Matteo Riondato [Tue, 5 Feb 2008 08:07:19 +0000 (08:07 +0000)]
Add missing includes and correct argument to sysctlbyname

PR: misc/120274
MFC after: 1 week

16 years agoPrepare hooks direct pointers on setup to avoid heavy ng_findhook() calls
Alexander Motin [Mon, 4 Feb 2008 19:26:53 +0000 (19:26 +0000)]
Prepare hooks direct pointers on setup to avoid heavy ng_findhook() calls
during operarion.

16 years agoDocument the return type for gelf_fsize(3).
Joseph Koshy [Mon, 4 Feb 2008 18:50:28 +0000 (18:50 +0000)]
Document the return type for gelf_fsize(3).

Submitted by: kaiw

16 years agoForced commit. Previous revision was instead
Ruslan Ermilov [Mon, 4 Feb 2008 15:28:30 +0000 (15:28 +0000)]
Forced commit.  Previous revision was instead

Submitted by: Vadim Goncharov

16 years agoImprove rev. 1.63. Document -instance and -globalport options.
Ruslan Ermilov [Mon, 4 Feb 2008 15:27:09 +0000 (15:27 +0000)]
Improve rev. 1.63.  Document -instance and -globalport options.
Add a MULTIPLE INSTANCES section which provides an example of
setting up natd in multi-instance mode (based on the notes.natd
file from phk@).

Submitted by: "Andrey V. Elsukov" <bu7cher@yandex.ru>
Reviewed by: ru

16 years agoAfter careful consideration (and a brief discussion with attilio@), change
Dag-Erling Smørgrav [Mon, 4 Feb 2008 12:35:23 +0000 (12:35 +0000)]
After careful consideration (and a brief discussion with attilio@), change
the semantics of pthread_mutex_islocked_np() to return true if and only if
the mutex is held by the current thread.

Obviously, change the regression test to match.

MFC after: 2 weeks

16 years agoFurther clean up sorflush:
Robert Watson [Mon, 4 Feb 2008 12:25:13 +0000 (12:25 +0000)]
Further clean up sorflush:

- Expose sbrelease_internal(), a variant of sbrelease() with no
  expectations about the validity of locks in the socket buffer.
- Use sbrelease_internel() in sorflush(), and as a result avoid intializing
  and destroying a socket buffer lock for the temporary stack copy of the
  actual buffer, asb.
- Add a comment indicating why we do what we do, and remove an XXX since
  things have gotten less ugly in sorflush() lately.

This makes socket close cleaner, and possibly also marginally faster.

MFC after: 3 weeks

16 years ago- Make geom commands handle multiple library paths in the GEOM_LIBRARY_PATH
Ulf Lilleengen [Mon, 4 Feb 2008 12:17:02 +0000 (12:17 +0000)]
- Make geom commands handle multiple library paths in the GEOM_LIBRARY_PATH
  environment variable using ':' as a separator.

Approved by: pjd (mentor)
MFC after: 3 days

16 years agoFix collation order for accented characters.
Diomidis Spinellis [Mon, 4 Feb 2008 10:25:28 +0000 (10:25 +0000)]
Fix collation order for accented characters.

MFC after: 2 weeks

16 years agoFix incorrect handling of malloc failures
Matteo Riondato [Mon, 4 Feb 2008 07:56:36 +0000 (07:56 +0000)]
Fix incorrect handling of malloc failures

PR: bin/83369
MFC after: 1 week

16 years agoFix mount -p and mount -u -ocurrent on gjournaled FS
Matteo Riondato [Mon, 4 Feb 2008 07:37:56 +0000 (07:37 +0000)]
Fix mount -p and mount -u -ocurrent on gjournaled FS

PR: bin/120162
Submitted by: Niki Denev
MFC after: 1 week

16 years agoAllocate a stack for thread0 and switch to it before calling
Marcel Moolenaar [Mon, 4 Feb 2008 02:21:33 +0000 (02:21 +0000)]
Allocate a stack for thread0 and switch to it before calling
mi_startup(). This frees up kstack for static PAL/SAL calls
and double-fault handling.

16 years agoAdd pthread_mutex_islocked_np(), a cheap way to verify that a mutex is
Dag-Erling Smørgrav [Sun, 3 Feb 2008 22:38:10 +0000 (22:38 +0000)]
Add pthread_mutex_islocked_np(), a cheap way to verify that a mutex is
locked.  This is intended primarily to support the userland equivalent
of the various *_ASSERT_LOCKED() macros we have in the kernel.

MFC after: 2 weeks

16 years agoAdd a regression test for pthread_mutex_islocked_np().
Dag-Erling Smørgrav [Sun, 3 Feb 2008 22:35:45 +0000 (22:35 +0000)]
Add a regression test for pthread_mutex_islocked_np().

MFC after: 2 weeks

16 years agoRemove incomplete support of AI_ALL and AI_V4MAPPED.
Hajimu UMEMOTO [Sun, 3 Feb 2008 19:07:55 +0000 (19:07 +0000)]
Remove incomplete support of AI_ALL and AI_V4MAPPED.

Reported by: "Heiko Wundram (Beenic)" <wundram__at__beenic.net>

16 years agoMove all possible node logic out of the rcvdata() function
Alexander Motin [Sun, 3 Feb 2008 18:55:45 +0000 (18:55 +0000)]
Move all possible node logic out of the rcvdata() function
to the newhook()/disconnect().
Unify function names with other nodes.

16 years agocorrect tx rate displayed by list sta: the reported legacy tx rate
Sam Leffler [Sun, 3 Feb 2008 18:29:58 +0000 (18:29 +0000)]
correct tx rate displayed by list sta: the reported legacy tx rate
is still an index into the rate set and not (yet) the rate code

Noticed by: JoaoBR

16 years agofix list mac; broken in delta 1.48
Sam Leffler [Sun, 3 Feb 2008 18:21:13 +0000 (18:21 +0000)]
fix list mac; broken in delta 1.48

Noticed by: JoaoBR

16 years agoAdd -P <port> option to allow binding to a specific port.
Matteo Riondato [Sun, 3 Feb 2008 17:39:37 +0000 (17:39 +0000)]
Add -P <port> option to allow binding to a specific port.

PR: bin/109494
Submitted by: mtm
MFC after: 1 week

16 years agoFix printing of unionfs mounts when using the -p option
Matteo Riondato [Sun, 3 Feb 2008 17:23:58 +0000 (17:23 +0000)]
Fix printing of unionfs mounts when using the -p option

PR:  bin/75585
MFC after: 1 week

16 years agoRemove an empty line that crept into the previous commit.
Christian Brueffer [Sun, 3 Feb 2008 16:42:22 +0000 (16:42 +0000)]
Remove an empty line that crept into the previous commit.

16 years agoMLINK hptrr(4) to rr232x(4).
Christian Brueffer [Sun, 3 Feb 2008 16:38:44 +0000 (16:38 +0000)]
MLINK hptrr(4) to rr232x(4).

Requested by: scottl

16 years agoUpdate the hptiop man page for the new driver.
Scott Long [Sun, 3 Feb 2008 16:16:38 +0000 (16:16 +0000)]
Update the hptiop man page for the new driver.

16 years agoUpdate the hptiop driver to version 1.3. This adds support for the 4xxx
Scott Long [Sun, 3 Feb 2008 16:07:12 +0000 (16:07 +0000)]
Update the hptiop driver to version 1.3.  This adds support for the 4xxx
series of adapters.  Thanks again to Highpoint for their continued support
of FreeBSD.

Submitted by: Highpoint Technologies

16 years agoGive sendfile(2) a SF_SYNC flag which makes it wait until all mbufs
Poul-Henning Kamp [Sun, 3 Feb 2008 15:54:41 +0000 (15:54 +0000)]
Give sendfile(2) a SF_SYNC flag which makes it wait until all mbufs
referencing the files VM pages are returned from the network stack,
making changes to the file safe.

This flag does not guarantee that the data has been transmitted to the
other end.

16 years ago- Correctly handle ALTQ in ieee80211_deliver_data()
Sepherosa Ziehau [Sun, 3 Feb 2008 12:00:03 +0000 (12:00 +0000)]
- Correctly handle ALTQ in ieee80211_deliver_data()
- Add comment from sam that ALTQ probably does not work well with WME

PR: kern/119548
Approved by: sam (mentor)

16 years agoVarious bug fixes for 2560 parts of ral(4):
Sepherosa Ziehau [Sun, 3 Feb 2008 11:47:38 +0000 (11:47 +0000)]
Various bug fixes for 2560 parts of ral(4):
- Rename rt2560_read_eeprom to rt2560_read_config, we already have
  rt2560_eeprom_read
- If hardware gives us wrong encryption done index, shout out loudly and
  terminate the processing loop
- Process encryption done if RX done bit is set in interrupt status register
  (according to Ralink Linux driver)
- Turn VALID/BUSY bits in TX descriptor only after TX descriptor is fully setup
- Fix BBP read: RT2560_BBPCSR can't be written until its RT2560_BBP_BUSY bit is
  off (according to Ralink Linux driver)
- Skip invalid (0 of 0xffff) BBP register/value entries stored in EEPROM
- Fix channel TX power location in EEPROM, if channel TX power is above 31 set
  it to 24 (TX power only has 5bits in RF register, "24" is according to Ralink
  Linux driver)
- Configure BBP according to the BBP register/value stored in EEPROM, restore
  BBP17 (RX sensitivity tuning) to default value after this.
- Set TX/RX antenna after BBP is initialized; these two operation will try to
  set BBP registers
- Reconfigure ACK TX time registers according to 802.11g standard (TX @36Mb,
  other side's ACK should be sent @24Mb).
- 2560 parts have two TX ring: one for management/control packets, one for data
  packets.  Add private OACTIVE flag for each of them.  Turn on IFF_DRV_OACTIVE
  if one of private OACTIVE is on; turn off IFF_DRV_OACTIVE iff all of them are
  off.
- Rework watchdog to mimic old if_watchdog action.  Process TX done/encryption
  done in watchdog function (according to Ralink Linux driver)

Obtained from: DragonFly
Approved by: sam (mentor)
Tested by: sam
Related to PR: kern/117655

# Forcing long slot time setting is not included in this commit, comment and
# related code is in place, so if problem pops up, quick tests could be done.

16 years agoNormally, when a header file is removed from the build (as i4b headers
Dag-Erling Smørgrav [Sun, 3 Feb 2008 11:34:56 +0000 (11:34 +0000)]
Normally, when a header file is removed from the build (as i4b headers
were recently), a simple 'make cleandepend; make depend' is sufficient
to keep the tree buildable after a cvs update when doing incremental
builds.

However, kdump and truss use a script which searches for header files
that define ioctls, and generates C code that includes them.  This
script will usually not need updating when a header file is removed,
so the normal dependency mechanism will not realize that it needs to
be re-run.  One is therefore left with code that references dead files
but will only be removed by a full 'make clean', which defeats the
purpose of incremental builds.

To work around this, modify the cleandepend target in bsd.dep.mk to
also remove any files listed in a new variable named CLEANDEPFILES,
and modify kdump's and truss's Makefiles accordingly.

MFC after: 2 weeks

16 years agoThese are files are shell scripts; give smart editors a chance to figure
Dag-Erling Smørgrav [Sun, 3 Feb 2008 11:33:27 +0000 (11:33 +0000)]
These are files are shell scripts; give smart editors a chance to figure
it out by adding the usual shebang.

MFC after: 2 weeks

16 years agoRevert previous commit.
Alexander Motin [Sun, 3 Feb 2008 10:30:45 +0000 (10:30 +0000)]
Revert previous commit.
glebius@ noticed that it was not a bug, but undocumented feature.

16 years agoDon't build the rr232x module, it has been removed.
Christian Brueffer [Sun, 3 Feb 2008 10:05:00 +0000 (10:05 +0000)]
Don't build the rr232x module, it has been removed.

Approved by: rwatson (mentor)

16 years agoThe rr232x driver has been removed, kill it here as well.
Christian Brueffer [Sun, 3 Feb 2008 09:43:08 +0000 (09:43 +0000)]
The rr232x driver has been removed, kill it here as well.

16 years agoRemove the rr232x manual page.
Scott Long [Sun, 3 Feb 2008 07:31:49 +0000 (07:31 +0000)]
Remove the rr232x manual page.

16 years agoRemove the rr232x driver. It has been superceded by the hptrr driver.
Scott Long [Sun, 3 Feb 2008 07:07:30 +0000 (07:07 +0000)]
Remove the rr232x driver.  It has been superceded by the hptrr driver.

16 years agoCorrect a typo.
Joseph Koshy [Sun, 3 Feb 2008 06:04:38 +0000 (06:04 +0000)]
Correct a typo.

16 years agoEliminate xargs in favor of find -exec {} +
Dag-Erling Smørgrav [Sun, 3 Feb 2008 00:33:05 +0000 (00:33 +0000)]
Eliminate xargs in favor of find -exec {} +

16 years agoAdd a few more CPUID feature bits while here. We don't support these
David Schultz [Sat, 2 Feb 2008 23:17:27 +0000 (23:17 +0000)]
Add a few more CPUID feature bits while here. We don't support these
features yet.

16 years agoSSE4 CPUID bits
David Schultz [Sat, 2 Feb 2008 22:40:17 +0000 (22:40 +0000)]
SSE4 CPUID bits

16 years agoAdd comment that bpfread() has multi-threading issues.
Robert Watson [Sat, 2 Feb 2008 20:35:05 +0000 (20:35 +0000)]
Add comment that bpfread() has multi-threading issues.

Fix minor white space nit.

16 years agopc98 lint builds w/o warnings. Remove the last special case from our
Warner Losh [Sat, 2 Feb 2008 19:55:28 +0000 (19:55 +0000)]
pc98 lint builds w/o warnings.  Remove the last special case from our
compiler upgrade.

# if tinderbox breaks, I'll fix it, but it shouldn't...

16 years agoThis commit was generated by cvs2svn to compensate for changes in r175898,
David E. O'Brien [Sat, 2 Feb 2008 18:26:53 +0000 (18:26 +0000)]
This commit was generated by cvs2svn to compensate for changes in r175898,
which included commits to RCS files with non-trunk default branches.

16 years agoFix some bugs in dealing with DCMD'd without data. MegaCli was sending
Doug Ambrisko [Sat, 2 Feb 2008 17:29:28 +0000 (17:29 +0000)]
Fix some bugs in dealing with DCMD'd without data.  MegaCli was sending
down some DCMD's without any data.  Thanks to Dell and LSI for helping
to provide clues to figure out this problem.  Now MegaCli can upgrade
the firmware and should work identical when run on Linux.

Reviewed by: scottl, LSI
MFC after: 1 day

16 years agoArm should build fine with -Werror as well.
Olivier Houchard [Sat, 2 Feb 2008 16:47:15 +0000 (16:47 +0000)]
Arm should build fine with -Werror as well.

16 years agosun4v has a MACHINE_ARCH of sparc64, so it was covered under that clause and
Warner Losh [Sat, 2 Feb 2008 16:40:40 +0000 (16:40 +0000)]
sun4v has a MACHINE_ARCH of sparc64, so it was covered under that clause and
shouldn't have been added.  Remove it.

16 years agoRather than passing around a cached 'priv', pass in an ucred to
Bjoern A. Zeeb [Sat, 2 Feb 2008 14:11:31 +0000 (14:11 +0000)]
Rather than passing around a cached 'priv', pass in an ucred to
ipsec*_set_policy and do the privilege check only if needed.

Try to assimilate both ip*_ctloutput code blocks calling ipsec*_set_policy.

Reviewed by: rwatson

16 years agoRewrite to consume significantly less memory, by using find -s instead of
Dag-Erling Smørgrav [Sat, 2 Feb 2008 12:27:37 +0000 (12:27 +0000)]
Rewrite to consume significantly less memory, by using find -s instead of
find | sort.  As a bonus, this simplifies the logic considerably.  Also
remove the bogus "overruning the args to ls" comment and the corresponding
"-n 20" argument to xargs; the whole point with xargs is precisely that it
knows how large the argument list can safely get.

Note that the first run of the updated script may hypotheticall produce
false positives due to differences between find's and sort's sorting
algorithm.  I haven't seen this during testing, but others might.

MFC after: 2 weeks

16 years agoFix one more grammo.
Dmitry Morozovsky [Sat, 2 Feb 2008 08:41:53 +0000 (08:41 +0000)]
Fix one more grammo.

Noticed by: ru

16 years agoSome platforms that are currently under development have to cope with
Warner Losh [Sat, 2 Feb 2008 07:52:24 +0000 (07:52 +0000)]
Some platforms that are currently under development have to cope with
a variety of bootloaders.  This sometimes means that different loader
scripts are required within one ${MACHINE_ARCH}, which makes the
current practice of using ldscript.${MACHINE_ARCH} unsuitable.
Instead, make the default the current convention and allow the ld
scripts to be overridden as necessary.

16 years agoWall of shame rather than wall of fame for the -Werror suppression.
Warner Losh [Sat, 2 Feb 2008 07:43:38 +0000 (07:43 +0000)]
Wall of shame rather than wall of fame for the -Werror suppression.
If we aren't arm, pc98 or sun4v, then enable treating warnings like
errors.  That doesn't mean these platforms aren't -Werror clean, just
that we haven't enforced it before.  Someone with some spare time
should investigate these three platforms to see if any can be removed.

16 years agoThis commit was generated by cvs2svn to compensate for changes in r175882,
David E. O'Brien [Sat, 2 Feb 2008 07:19:01 +0000 (07:19 +0000)]
This commit was generated by cvs2svn to compensate for changes in r175882,
which included commits to RCS files with non-trunk default branches.

16 years agoFix nit in version 4.23 in which -p does not work (thus updating access
David E. O'Brien [Sat, 2 Feb 2008 07:19:01 +0000 (07:19 +0000)]
Fix nit in version 4.23 in which -p does not work (thus updating access
times when it shouldn't).  The PR's patch has been incorporated upstream
as magic.c rev 1.46.

PR: 107676
Submitted by: Dr. Markus Waldeck <waldeck@gmx.de>

16 years agoadd opaque pointer to tx ampdu state for drivers
Sam Leffler [Sat, 2 Feb 2008 00:38:02 +0000 (00:38 +0000)]
add opaque pointer to tx ampdu state for drivers

MFC after: 3 days

16 years agoWhen the state of the interface changes rapidly enough (usually due to
Brooks Davis [Fri, 1 Feb 2008 23:43:58 +0000 (23:43 +0000)]
When the state of the interface changes rapidly enough (usually due to
rapid wireless association changes in my experience), there is a race
where dhclient is in the process of exiting due to the link going down
when the link coming up causes devd to try and start a new one.  This
results is the link being up, but no dhclient running.

Work around this race by checking a second time after a one second delay
before refusing to start a dhclient instance due to one already being
running.

MFC after: 1 week

16 years agoo correct typo that broke check when handling addba response
Sam Leffler [Fri, 1 Feb 2008 21:31:10 +0000 (21:31 +0000)]
o correct typo that broke check when handling addba response
o add a comment about the ht rates being for 20MHz channels w/ long GI;
  needs a separate fix after more thought

MFC after: 3 days

16 years agoRelax the check for a PCI-express chipset by assuming the system is a
John Baldwin [Fri, 1 Feb 2008 20:31:09 +0000 (20:31 +0000)]
Relax the check for a PCI-express chipset by assuming the system is a
PCI-express chipset (and thus has functional MSI) if there are any
PCI-express devices in the system, not requiring a root port device.

With PCI-X the chipset detection has to be very conservative because there
are known systems with PCI-X devices that do not appear to have PCI-X
chipsets.  However, with PCI-express I'm not sure it is possible to have
a PCI-express device in a system with a non-PCI-express chipset.  If we
assume that is the case then this change is valid.  It is also required
for at least some PCI-express systems that don't have any devices with
a root port capability (some ICH9 systems).

MFC after: 1 week
Reported by: jfv

16 years agoUpdate korean locale messages:
Jung-uk Kim [Fri, 1 Feb 2008 20:15:21 +0000 (20:15 +0000)]
Update korean locale messages:

- Remove redundant `s' and `S' from yesexpr.
- Add fullwidth latin letters to yesexpr and noexpr (inspired by ja_JP.UTF-8).
- Add korean translated yesexpr (`Ye') and noexpr (`Anio').
- Add yesstr and nostr entries (inspired by zh_CN.*).
- Add UTF-8 encoded file and connect to build.

16 years agoGive MEXTADD() another argument to make both void pointers to the
Poul-Henning Kamp [Fri, 1 Feb 2008 19:36:27 +0000 (19:36 +0000)]
Give MEXTADD() another argument to make both void pointers to the
free function controlable, instead of passing the KVA of the buffer
storage as the first argument.

Fix all conventional users of the API to pass the KVA of the buffer
as the first argument, to make this a no-op commit.

Likely break the only non-convetional user of the API, after informing
the relevant committer.

Update the mbuf(9) manual page, which was already out of sync on
this point.

Bump __FreeBSD_version to 800016 as there is no way to tell how
many arguments a CPP macro needs any other way.

This paves the way for giving sendfile(9) a way to wait for the
passed storage to have been accessed before returning.

This does not affect the memory layout or size of mbufs.

Parental oversight by: sam and rwatson.

No MFC is anticipated.

16 years agoReword recent comment a bit.
Dmitry Morozovsky [Fri, 1 Feb 2008 17:35:46 +0000 (17:35 +0000)]
Reword recent comment a bit.

16 years agoUse FEATURE() macro to advertise aio availability.
Robert Watson [Fri, 1 Feb 2008 11:59:14 +0000 (11:59 +0000)]
Use FEATURE() macro to advertise aio availability.

16 years agoAdd comments about stack protection mechanism.
Alexander Motin [Fri, 1 Feb 2008 11:01:15 +0000 (11:01 +0000)]
Add comments about stack protection mechanism.

16 years agoTune the message for better informativity.
Alexander Motin [Fri, 1 Feb 2008 07:25:06 +0000 (07:25 +0000)]
Tune the message for better informativity.
Print the hook pointer as other functions do.

16 years agoBand-aid recent commit by mav by replacing a variable in a CTR statement with
Benno Rice [Fri, 1 Feb 2008 07:17:26 +0000 (07:17 +0000)]
Band-aid recent commit by mav by replacing a variable in a CTR statement with
the variable that appears as if it should've been there.

Pointy hat to: mav
Not tested either by: benno

16 years agoImplement Session-ID hashing to improve receive performance scalability
Alexander Motin [Thu, 31 Jan 2008 22:42:37 +0000 (22:42 +0000)]
Implement Session-ID hashing to improve receive performance scalability
for big number of concurrent sessions.

16 years agoWhen reinitializing a lockuser, don't assume that the lock is in
Daniel Eischen [Thu, 31 Jan 2008 19:38:26 +0000 (19:38 +0000)]
When reinitializing a lockuser, don't assume that the lock is in
use.  If it is in use, use the watched request, otherwise use the
lockuser's own request.  Only allocate a lockuser request if both
requests are null.

PR: 119920
Tested by (6.x): Landon Fuller <landonf -at- bikemonkey -dot- org>

16 years agoFix an indentation.
Jung-uk Kim [Thu, 31 Jan 2008 16:58:07 +0000 (16:58 +0000)]
Fix an indentation.

16 years agoThe devstat(3) manpage claims that only <devstat.h> is needed as a
John Baldwin [Thu, 31 Jan 2008 16:55:12 +0000 (16:55 +0000)]
The devstat(3) manpage claims that only <devstat.h> is needed as a
prerequisite for using this interface.  However, the 'statinfo' struct
actually references CPUSTATES from <sys/resource.h>, so in fact it
requires <sys/resource.h> to compile.  Use a nested include of
<sys/resource.h> to make the code match the docs.

Reported by: Pietro Cerutti  gahr | gahr.ch