]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoRemove priority mutex code because it does not work correctly,
David Xu [Mon, 27 Mar 2006 23:50:21 +0000 (23:50 +0000)]
Remove priority mutex code because it does not work correctly,
to make it work, turnstile like mechanism to support priority
propagating and other realtime scheduling options in kernel
should be available to userland mutex, for the moment, I just
want to make libthr be simple and efficient thread library.

Discussed with: deischen, julian

18 years agoThis commit was generated by cvs2svn to compensate for changes in r157191,
Andrey A. Chernov [Mon, 27 Mar 2006 23:45:09 +0000 (23:45 +0000)]
This commit was generated by cvs2svn to compensate for changes in r157191,
which included commits to RCS files with non-trunk default branches.

18 years agoOfficial patches 001-004
Andrey A. Chernov [Mon, 27 Mar 2006 23:45:09 +0000 (23:45 +0000)]
Official patches 001-004

18 years agoUpgrade to 5.1
Andrey A. Chernov [Mon, 27 Mar 2006 23:35:05 +0000 (23:35 +0000)]
Upgrade to 5.1

18 years agoUnbreaking build by removing a now unused variable.
Tai-hwa Liang [Mon, 27 Mar 2006 23:27:11 +0000 (23:27 +0000)]
Unbreaking build by removing a now unused variable.

18 years agoResolve conflicts
Andrey A. Chernov [Mon, 27 Mar 2006 23:11:32 +0000 (23:11 +0000)]
Resolve conflicts

18 years agoRemove obsoleted files, update upgrade instructions
Andrey A. Chernov [Mon, 27 Mar 2006 22:56:23 +0000 (22:56 +0000)]
Remove obsoleted files, update upgrade instructions

18 years agoVirgin import of GNU Readline 5.1
Andrey A. Chernov [Mon, 27 Mar 2006 22:47:12 +0000 (22:47 +0000)]
Virgin import of GNU Readline 5.1

18 years agoThis commit was generated by cvs2svn to compensate for changes in r157184,
Andrey A. Chernov [Mon, 27 Mar 2006 22:47:12 +0000 (22:47 +0000)]
This commit was generated by cvs2svn to compensate for changes in r157184,
which included commits to RCS files with non-trunk default branches.

18 years agoUse td_ucred rather than p_ucred to avoid panics and general unhappiness.
John Baldwin [Mon, 27 Mar 2006 19:16:31 +0000 (19:16 +0000)]
Use td_ucred rather than p_ucred to avoid panics and general unhappiness.

Pointy hat to: netchild

18 years agoThis commit was generated by cvs2svn to compensate for changes in r157181,
Sam Leffler [Mon, 27 Mar 2006 18:15:24 +0000 (18:15 +0000)]
This commit was generated by cvs2svn to compensate for changes in r157181,
which included commits to RCS files with non-trunk default branches.

18 years agoAdd eapol_version config parameter so folks with clients that (bogusly)
Sam Leffler [Mon, 27 Mar 2006 18:15:24 +0000 (18:15 +0000)]
Add eapol_version config parameter so folks with clients that (bogusly)
require the authenticator announce EAPOL version 1 don't have to hack
the code to get a working setup.

Discussed with Jouni; he's committed a similar set of changes to
his devel branch and I sent him these changes so I'm committing
this on the vendor branch in the expectation it will appear in
the next import.

MFC after: 1 week

18 years agoIf the XSDT address in the RSDP for an ACPI 2.0 machine is NULL, then fall
John Baldwin [Mon, 27 Mar 2006 15:59:48 +0000 (15:59 +0000)]
If the XSDT address in the RSDP for an ACPI 2.0 machine is NULL, then fall
back to using the RSDT instead.  ACPI-CA already follows this same strategy
as a workaround for yet another instance of brain-damaged BIOS writers.

PR: i386/93963
Submitted by: Masayuki FUKUI <fukui.FreeBSD@fanet.net>

18 years ago- Be explicit about libmap32.conf only working on amd64
Pav Lucistnik [Mon, 27 Mar 2006 14:37:54 +0000 (14:37 +0000)]
- Be explicit about libmap32.conf only working on amd64

Requested by: ru

18 years ago*sigh*
Olivier Houchard [Mon, 27 Mar 2006 12:56:29 +0000 (12:56 +0000)]
*sigh*
Move the -lbsdxml after -lgeom, so that ld doesn't get confused and pretend
he can't find the symbol from libbsdxml needed in libgeom.
This should fix the rescue build breakage.

18 years agoReflect progress in process title.
Dag-Erling Smørgrav [Mon, 27 Mar 2006 10:29:12 +0000 (10:29 +0000)]
Reflect progress in process title.

18 years agoAdd a simple netipx TODO list to the end of README, since there are a
Robert Watson [Mon, 27 Mar 2006 09:10:09 +0000 (09:10 +0000)]
Add a simple netipx TODO list to the end of README, since there are a
number of problems with netipx that I have not yet resolved, and I
don't want them lost track of.

MFC after: 1 month

18 years agoComment out -g compiler option, found by 'FreeBSD Build Options Survey'.
David Xu [Mon, 27 Mar 2006 05:58:58 +0000 (05:58 +0000)]
Comment out -g compiler option, found by 'FreeBSD Build Options Survey'.

18 years agoUnbreak the build.
Jason Evans [Mon, 27 Mar 2006 05:33:35 +0000 (05:33 +0000)]
Unbreak the build.

18 years agoimplement set(IEEE80211_IOC_STA_STATS) for hostapd; for
Sam Leffler [Mon, 27 Mar 2006 05:22:35 +0000 (05:22 +0000)]
implement set(IEEE80211_IOC_STA_STATS) for hostapd; for
now just make it clear station statistics (could read
a stat block and assign to caller can do partial changes)

Reviewed by: avatar (previous version)
MFC after: 1 week

18 years agoUse NET_LOCK_GIANT() and VFS_LOCK_GIANT() instead of unconditionally
Alan Cox [Mon, 27 Mar 2006 04:23:16 +0000 (04:23 +0000)]
Use NET_LOCK_GIANT() and VFS_LOCK_GIANT() instead of unconditionally
acquiring Giant in kern_sendfile().

Guard against the forced reclamation of a vnode in kern_sendfile().

Discussed with: jeff
Reviewed by: tegge
MFC after: 3 weeks

18 years agoCanonicalize copyright order in one more file that contains my
Robert Watson [Mon, 27 Mar 2006 01:12:58 +0000 (01:12 +0000)]
Canonicalize copyright order in one more file that contains my
copyright.

MFC after: 1 month

18 years ago- Document LD_32_* environment variables
Pav Lucistnik [Mon, 27 Mar 2006 00:53:58 +0000 (00:53 +0000)]
- Document LD_32_* environment variables
- Mention 32-bit files in FILES section

MFC after: 1 week

18 years ago- Document libmap32.conf
Pav Lucistnik [Mon, 27 Mar 2006 00:53:11 +0000 (00:53 +0000)]
- Document libmap32.conf

MFC after: 1 week

18 years agoIn spx_output(), use M_DONTWAIT instead of M_TRYWAIT, as we hold the
Robert Watson [Mon, 27 Mar 2006 00:48:21 +0000 (00:48 +0000)]
In spx_output(), use M_DONTWAIT instead of M_TRYWAIT, as we hold the
ipxpcb mutex.  Contrary to the comment, even in 4.x this was unsafe,
as parallel use of the socket by another process would result in pcb
corruption if the mbuf allocation slept.

MFC after: 1 month

18 years agoFor now, bring back some of the old bits as a fix for specifying md(4)
Wojciech A. Koszek [Mon, 27 Mar 2006 00:46:22 +0000 (00:46 +0000)]
For now, bring back some of the old bits as a fix for specifying md(4)
device number at creation time with -u option. Together with XMLizing
mdconfig(8), I broke this functionality.

This change is temporary. Complete fix will be commited soon.

Approved by: cognet (mentor)

18 years agoErm don't use -mno-apcs-frame if we're going to do profiling either, it's not
Olivier Houchard [Mon, 27 Mar 2006 00:32:46 +0000 (00:32 +0000)]
Erm don't use -mno-apcs-frame if we're going to do profiling either, it's not
exactly compatible.

18 years agoIn spx_input(), change a '&&' to a '||', as the spx trace code is able
Robert Watson [Mon, 27 Mar 2006 00:08:32 +0000 (00:08 +0000)]
In spx_input(), change a '&&' to a '||', as the spx trace code is able
to handle a NULL 'cb' here.

MFC after: 1 month

18 years agoAdd spxabort, a simple netipx/spx regression test that triggers
Robert Watson [Mon, 27 Mar 2006 00:03:37 +0000 (00:03 +0000)]
Add spxabort, a simple netipx/spx regression test that triggers
pru_abort() by closing a listen socket while completed connections are
presenting in its listen queue.  Unfortunately, it's difficult to
trigger the other two pru_abort() cases using user APIs, so they are
not covered by this test.

18 years agoAllow the 'n' option to decrease the number of arenas below the default,
Jason Evans [Sun, 26 Mar 2006 23:41:35 +0000 (23:41 +0000)]
Allow the 'n' option to decrease the number of arenas below the default,
to as little as one arena.  Also, limit the number of arenas to avoid a
potential invariant violation in base_alloc().

18 years agoAdd comments and reformat/rearrange code. There are no significant
Jason Evans [Sun, 26 Mar 2006 23:37:25 +0000 (23:37 +0000)]
Add comments and reformat/rearrange code.  There are no significant
functional changes in this commit.

18 years agoTeach md(4) and mdconfig(8) how to understand XML. Right now there won't be
Wojciech A. Koszek [Sun, 26 Mar 2006 23:21:11 +0000 (23:21 +0000)]
Teach md(4) and mdconfig(8) how to understand XML. Right now there won't be
a problem with listing large number of md(4) devices. Either 'list' or
'query' mode uses XML.

Additionally, new functionality was introduced. It's possible to pass
multiple devices to -u:

# ./mdconfig -l -u md0,md1

Approved by: cognet (mentor)

18 years agoKeep proper order of includes. Additionally, sort them. Make functions used
Wojciech A. Koszek [Sun, 26 Mar 2006 22:52:36 +0000 (22:52 +0000)]
Keep proper order of includes. Additionally, sort them. Make functions used
in that file static.

Approved by: cognet (mentor)

18 years agoAdd a sysctl, regression.sonewconn_earlytest, which when options
Robert Watson [Sun, 26 Mar 2006 22:44:37 +0000 (22:44 +0000)]
Add a sysctl, regression.sonewconn_earlytest, which when options
REGRESSION is enabled, allows user space to dictate that sonewconn()
should skip it's "skip the hard work" check to see if the listen
queue is full, and instead proceed with allocation of a socket and
trimming of the overflowed queue.  This makes it easier to test the
queue overflow logic.

MFC after: 1 month

18 years agoDeclare regression subtree in sysctl.h so that components outside of
Robert Watson [Sun, 26 Mar 2006 22:29:45 +0000 (22:29 +0000)]
Declare regression subtree in sysctl.h so that components outside of
kern_mib.c can easily add regression sysctls.

MFC after: 1 month

18 years agoImplement pmap_object_init_pt() the way it is on sparc64/alpha, by doing
Olivier Houchard [Sun, 26 Mar 2006 22:03:43 +0000 (22:03 +0000)]
Implement pmap_object_init_pt() the way it is on sparc64/alpha, by doing
nothing except asserting the vm object is locked, and a device object,
instead of a useless printf.

18 years agoAssert that the mbuf is not shared to ensure problems like the last commit are
Andrew Thompson [Sun, 26 Mar 2006 20:52:47 +0000 (20:52 +0000)]
Assert that the mbuf is not shared to ensure problems like the last commit are
not reintroduced.

18 years agoIn spx_accept, assert ipxp != NULL, not == NULL.
Robert Watson [Sun, 26 Mar 2006 19:51:44 +0000 (19:51 +0000)]
In spx_accept, assert ipxp != NULL, not == NULL.

MFC after: 1 month

18 years agoIn various SPX protocol entry points from the socket layer, check
Robert Watson [Sun, 26 Mar 2006 19:37:37 +0000 (19:37 +0000)]
In various SPX protocol entry points from the socket layer, check
IPXP_DROPPED before continuing, and return EINVAL or ECONNRESET if
it is flagged.  It's unclear why each situation should be one or
the other, but it is copied from netinet which has the same bugs.

MFC after: 1 month

18 years agoAdd simple regression test to ping pong a data packet over SPX in stream
Robert Watson [Sun, 26 Mar 2006 19:10:27 +0000 (19:10 +0000)]
Add simple regression test to ping pong a data packet over SPX in stream
mode.  Support both connection via connect() and sendto(), but don't
compile in sendto() for now, since netipx doesn't appear to actually
implement that (doh).

18 years agoAdd a simple IPX datagram regression test, which opens two IPX datagram
Robert Watson [Sun, 26 Mar 2006 18:25:53 +0000 (18:25 +0000)]
Add a simple IPX datagram regression test, which opens two IPX datagram
sockets, binds a local port, sends a datagram, and confirms that it is
received.

18 years agoAdd a short README with configuration hints to get the netipx regression
Robert Watson [Sun, 26 Mar 2006 17:42:04 +0000 (17:42 +0000)]
Add a short README with configuration hints to get the netipx regression
tests up and running.  This is likely a message to myself in six months
when I've completely forgotten how.

18 years agoUse tr(1) to lowercase strings in a way which works with all locales.
Simon L. B. Nielsen [Sun, 26 Mar 2006 17:17:10 +0000 (17:17 +0000)]
Use tr(1) to lowercase strings in a way which works with all locales.

Approved by: cperciva (mentor)

18 years agoModify ipxsocket regression test to create and close sockets several
Robert Watson [Sun, 26 Mar 2006 15:49:35 +0000 (15:49 +0000)]
Modify ipxsocket regression test to create and close sockets several
times, with variable length sleeps between socket() and close().  This
will help to ensure that IPX/SPX timers fire while the sockets are
open, and hence have PCB's on the IPX pcb list, so that if timers are
going to stumble over PCB types they don't expect, it will happen as
part of this test.

18 years agoAdd a new ipxpcb flag, IPXP_SPX, which is set on ipxpcb's to mark them
Robert Watson [Sun, 26 Mar 2006 15:41:44 +0000 (15:41 +0000)]
Add a new ipxpcb flag, IPXP_SPX, which is set on ipxpcb's to mark them
as belonging to SPX.  This replaces the implicit assumption that the cb
pointer for non-SPX pcb's will be NULL.  This isn't required in TCP/IP
as different pcb lists are maintained for different IP protocols; IPX
stores all pcbs on the same global ipxpcb_list.

Foot provided by: gnn
MFC after: 1 month

18 years agoMFP4: Support for profiling dynamically loaded objects.
Joseph Koshy [Sun, 26 Mar 2006 12:20:54 +0000 (12:20 +0000)]
MFP4: Support for profiling dynamically loaded objects.

Kernel changes:

  Inform hwpmc of executable objects brought into the system by
  kldload() and mmap(), and of their removal by kldunload() and
  munmap().  A helper function linker_hwpmc_list_objects() has been
  added to "sys/kern/kern_linker.c" and is used by hwpmc to retrieve
  the list of currently loaded kernel modules.

  The unused `MAPPINGCHANGE' event has been deprecated in favour
  of separate `MAP_IN' and `MAP_OUT' events; this change reduces
  space wastage in the log.

  Bump the hwpmc's ABI version to "2.0.00".  Teach hwpmc(4) to
  handle the map change callbacks.

  Change the default per-cpu sample buffer size to hold
  32 samples (up from 16).

  Increment __FreeBSD_version.

libpmc(3) changes:

  Update libpmc(3) to deal with the new events in the log file; bring
  the pmclog(3) manual page in sync with the code.

pmcstat(8) changes:

  Introduce new options to pmcstat(8): "-r" (root fs path), "-M"
  (mapfile name), "-q"/"-v" (verbosity control).  Option "-k" now
  takes a kernel directory as its argument but will also work with
  the older invocation syntax.

  Rework string handling in pmcstat(8) to use an opaque type for
  interned strings.  Clean up ELF parsing code and add support for
  tracking dynamic object mappings reported by a v2.0.00 hwpmc(4).

  Report statistics at the end of a log conversion run depending
  on the requested verbosity level.

Reviewed by: jhb, dds (kernel parts of an earlier patch)
Tested by: gallatin (earlier patch)

18 years agoDefine two new inpcb flags in the inp_vflag field, which for whatever
Robert Watson [Sun, 26 Mar 2006 11:30:31 +0000 (11:30 +0000)]
Define two new inpcb flags in the inp_vflag field, which for whatever
reason, seems to be where new flags are getting defined:

INP_DROPPED - The protocol has terminated this connection and the socket
              is not reusable: when the socket code enters the protocol,
              an error is immediately returned.  This will substitute for
              NULLing the so_pcb socket field, helping to implement the
              invariant that all valid sockets have valid pcb's in TCP.

INP_SOCKREF - The protocol has become the owner of the socket reference,
              and will need to free it when freeing the pcb, which will
              be used when a TCP socket is closed but still has queued
              data.

MFC after: 1 month

18 years agoMinor style tweak: tab after #define, not space.
Robert Watson [Sun, 26 Mar 2006 11:26:12 +0000 (11:26 +0000)]
Minor style tweak: tab after #define, not space.

MFC after: 1 month

18 years agoCorrect bad format args. Interesting- the lines that generated
Matt Jacob [Sun, 26 Mar 2006 07:16:17 +0000 (07:16 +0000)]
Correct bad format args. Interesting- the lines that generated
the error on sparc64 hadn't changed since the last checkin, pass
LINT on other platforms and mpt doesn't work on sparc64 anyway
and the tinderbox build didn't work for me in a cross build case
on my main build machine (which runs RELENG_6). Sigh. Still
need to try harder.

18 years agoRestore original formulation of SPX segment queue draining during SPX
Robert Watson [Sun, 26 Mar 2006 02:33:44 +0000 (02:33 +0000)]
Restore original formulation of SPX segment queue draining during SPX
PCB detach.

MFC after: 1 month

18 years agoAdd simple ipxsocket regression test: open, and close, various IPX socket
Robert Watson [Sun, 26 Mar 2006 01:58:39 +0000 (01:58 +0000)]
Add simple ipxsocket regression test: open, and close, various IPX socket
types supported by the FreeBSD netipx implementation.

18 years agoCheck cancellation state carefully to see we really need to call
David Xu [Sun, 26 Mar 2006 01:57:03 +0000 (01:57 +0000)]
Check cancellation state carefully to see we really need to call
_pthread_testcancel(). Preserve errno in _thr_suspend_check().

18 years agoTake contrib/openbsm/etc configuration files off the vendor branch in
Robert Watson [Sun, 26 Mar 2006 01:44:35 +0000 (01:44 +0000)]
Take contrib/openbsm/etc configuration files off the vendor branch in
order to add $FreeBSD$ tags, which helps mergemaster better manage
updating them.

Requested by: several
Obtained from: TrustedBSD Project

18 years agoExplicitly assert socket pointer is non-NULL in tcp_input() so as to
Robert Watson [Sun, 26 Mar 2006 01:33:41 +0000 (01:33 +0000)]
Explicitly assert socket pointer is non-NULL in tcp_input() so as to
provide better debugging information.

Prefer explicit comparison to NULL for tcpcb pointers rather than
treating them as booleans.

MFC after: 1 month

18 years agoIncrease debug level for "Thread exiting." message. It's not that important
Pawel Jakub Dawidek [Sat, 25 Mar 2006 23:30:36 +0000 (23:30 +0000)]
Increase debug level for "Thread exiting." message. It's not that important
and is 0 by accident.

MFC after: 3 days

18 years agoThe removal of CIRCLEQ left four queue macros. One sentence was missed
Ed Maste [Sat, 25 Mar 2006 23:11:10 +0000 (23:11 +0000)]
The removal of CIRCLEQ left four queue macros.  One sentence was missed
in the man page update.

PR: docs/94938
Submitted by: Ed Schouten <ed@fxq.nl>
MFC After: 3 days

18 years agoGet the MK_FOO column right
Poul-Henning Kamp [Sat, 25 Mar 2006 21:51:46 +0000 (21:51 +0000)]
Get the MK_FOO column right

18 years agoLoopback pf_norm.c rev. 1.106 from OpenBSD:
Max Laier [Sat, 25 Mar 2006 21:15:25 +0000 (21:15 +0000)]
Loopback pf_norm.c rev. 1.106 from OpenBSD:
    fixup IP checksum when modifying IP header fields

PR: kern/93849
Obtained from: OpenBSD
MFC after: 3 days

18 years agoIn at_setsockaddr(), assert that ddp != NULL, rather than returning an
Robert Watson [Sat, 25 Mar 2006 18:54:17 +0000 (18:54 +0000)]
In at_setsockaddr(), assert that ddp != NULL, rather than returning an
error if it's NULL, as so_pcb != NULL is now an invariant.

18 years agoMove the check for non-ATIO_CMD ahead of the cache chech so that
Matt Jacob [Sat, 25 Mar 2006 18:18:26 +0000 (18:18 +0000)]
Move the check for non-ATIO_CMD ahead of the cache chech so that
completion for unsupported commands doesn't abort.

Reviewed by: nate
MFC after: 2 weeks

18 years agoRework IPX/SPX socket and pcb reference model:
Robert Watson [Sat, 25 Mar 2006 17:28:42 +0000 (17:28 +0000)]
Rework IPX/SPX socket and pcb reference model:

- Introduce invariant that all IPX/SPX sockets will have valid so_pcb
  pointers to ipxpcb structures, and that for SPX, the control block
  pointer will always be valid.  Don't attempt to free the socket or
  pcb at various odd points, such as disconnect.

- Add a new ipxpcb flag, IPXP_DROPPED, which will be set in place of
  freeing PCB's so that this invariant can be maintained.  This flag
  is now checked instead of a NULL check in various socket protocol
  calls.

- Introduce many assertions that this invariant holds.

- Various pieces of code, such as the SPX timer code, no longer needs
  to jump through hoops in case it frees a PCB while running.

- Break out ipx_pcbfree() from ipx_pcbdetach().  Likewise
  spx_pcbdetach().

- Comment on some SMP-related limitations to the SPX code.

- Update copyrights.

MFC after: 1 month

18 years agoRestructure spx_attach() to properly free memory in the event that one
Robert Watson [Sat, 25 Mar 2006 15:03:29 +0000 (15:03 +0000)]
Restructure spx_attach() to properly free memory in the event that one
of its allocations fails.  Allocate the ipxp last so as to avoid having
to free it if another allocation goes wrong.

Normalize retrieval of ipxp and cb from socket in spx_sp_attach(), and
add assertions.

MFC after: 1 month

18 years agoDon't bother restoring host byte order of mbuf fields when we're just
Robert Watson [Sat, 25 Mar 2006 14:45:08 +0000 (14:45 +0000)]
Don't bother restoring host byte order of mbuf fields when we're just
about to free the mbuf in the spx_input() error path.

MFC after: 1 month

18 years agoIn spx_ctloutput(), acquire the ipxp lock around read operations,
Robert Watson [Sat, 25 Mar 2006 14:44:05 +0000 (14:44 +0000)]
In spx_ctloutput(), acquire the ipxp lock around read operations,
especially reads of spx header structures, which will now be cached
in the stack until they can be copied out after releasing the lock.
Panic if a bad socket option direction is passed in by the caller.

MFC after: 1 month

18 years agoSlight style reformatting of spx_timers() comments; panic if an
Robert Watson [Sat, 25 Mar 2006 14:29:03 +0000 (14:29 +0000)]
Slight style reformatting of spx_timers() comments; panic if an
unrecognized timer is passed into the function.

MFC after: 1 month

18 years agoFirst steps towards IPSec cleanup.
George V. Neville-Neil [Sat, 25 Mar 2006 13:38:52 +0000 (13:38 +0000)]
First steps towards IPSec cleanup.

Make the kernel side of FAST_IPSEC not depend on the shared
structures defined in /usr/include/net/pfkeyv2.h  The kernel now
defines all the necessary in kernel structures in sys/netipsec/keydb.h
and does the proper massaging when moving messages around.

Sponsored By: Secure Computing

18 years ago- Use ANSI C prototype.
Hajimu UMEMOTO [Sat, 25 Mar 2006 11:46:37 +0000 (11:46 +0000)]
- Use ANSI C prototype.
- Remove trailing space.

18 years agoUpdate build survey scripts
Poul-Henning Kamp [Sat, 25 Mar 2006 10:50:40 +0000 (10:50 +0000)]
Update build survey scripts

18 years agoSome fairly major changes to this driver.
Matt Jacob [Sat, 25 Mar 2006 07:08:27 +0000 (07:08 +0000)]
Some fairly major changes to this driver.

A) Fibre Channel Target Mode support mostly works
(SAS/SPI won't be too far behind). I'd say that
this probably works just about as well as isp(4)
does right now. Still, it and isp(4) and the whole
target mode stack need a bit of tightening.

B) The startup sequence has been changed so that
after all attaches are done, a set of enable functions
are called. The idea here is that the attaches do
whatever needs to be done *prior* to a port being
enabled and the enables do what need to be done for
enabling stuff for a port after it's been enabled.

This means that we also have events handled by their
proper handlers as we start up.

C) Conditional code that means that this driver goes
back all the way to RELENG_4 in terms of support.

D) Quite a lot of little nitty bug fixes- some discovered
by doing RELENG_4 support. We've been living under Giant
*waaaayyyyy* too long and it's made some of us (me) sloppy.

E) Some shutdown hook stuff that makes sure we don't blow
up during a reboot (like by the arrival of a new command
from an initiator).

There's been some testing and LINT checking, but not as
complete as would be liked. Regression testing with Fusion
RAID instances has not been possible. Caveat Emptor.

Sponsored by: LSI-Logic.

18 years agoDon't cancel thread if it is in critical region.
David Xu [Sat, 25 Mar 2006 07:03:13 +0000 (07:03 +0000)]
Don't cancel thread if it is in critical region.

18 years agoRevert last delta, it breaks cross-compiles.
Ruslan Ermilov [Sat, 25 Mar 2006 06:37:36 +0000 (06:37 +0000)]
Revert last delta, it breaks cross-compiles.

18 years agoAdd a driver for the new LSI MegaRAID SAS controller family. The 'MFI' name
Scott Long [Sat, 25 Mar 2006 06:14:32 +0000 (06:14 +0000)]
Add a driver for the new LSI MegaRAID SAS controller family.  The 'MFI' name
is derived from the phrase 'MegaRAID Firmware Interface' used by LSI.  This
driver provides a block interface to logical disks on the card and a minimal
management device.  It is MPSAFE, INTR_FAST, and 64-bit capable.

Thanks to Dell for providing hardware to test with and IronPort for
sponsoring the work.

Sponsored by: Dell, Ironport
MFC After: 3 days

18 years agoOnly wake up writer if the lock is free.
David Xu [Sat, 25 Mar 2006 05:14:21 +0000 (05:14 +0000)]
Only wake up writer if the lock is free.

18 years agoCompile thr_rtld.c
David Xu [Sat, 25 Mar 2006 05:00:54 +0000 (05:00 +0000)]
Compile thr_rtld.c

18 years agoAdd locking support for rtld.
David Xu [Sat, 25 Mar 2006 04:49:07 +0000 (04:49 +0000)]
Add locking support for rtld.

18 years agoMake gcore(1) 64 bit safe. It was trying to parse the /proc/*/map file
Peter Wemm [Sat, 25 Mar 2006 01:14:20 +0000 (01:14 +0000)]
Make gcore(1) 64 bit safe.  It was trying to parse the /proc/*/map file
using sscanf and truncating the start/end entries by writing them with a
32 bit int descriptor (%x).  The upper bytes of the 64 bit vm_offset_t
variables (for little endian machines) were uninitialized.  For big endian
machines, things would have been worse because it was storing the 32 bit
value in the upper half of the 64 bit variable.  I've changed it to use
%lx and long types.  That should work on all our platforms.

18 years agofixed a potential memory leak
SUZUKI Shinsuke [Fri, 24 Mar 2006 23:59:51 +0000 (23:59 +0000)]
fixed a potential memory leak

Obtained from: KAME
MFC after: 1 day

18 years agoOnly set the size of /usr to whatever-is-left is whatever-is-left is
Colin Percival [Fri, 24 Mar 2006 22:45:24 +0000 (22:45 +0000)]
Only set the size of /usr to whatever-is-left is whatever-is-left is
greater than the size we autosized.  Without this fix, systems with
drives under 10GB can end up with very small /usr partitions...

Broken since: January 2002
Tripped over by: simon

18 years agoConvert TINY_MIN_2POW from a cpp macro to tiny_min_2pow (a variable), and
Jason Evans [Fri, 24 Mar 2006 22:13:49 +0000 (22:13 +0000)]
Convert TINY_MIN_2POW from a cpp macro to tiny_min_2pow (a variable), and
determine its value at run time according to other relevant values.  This
avoids the creation of runs that are incompletely utilized, as long as
pagesize isn't too large (>32kB, given the current RUN_MIN_REGS_2POW
setting).

Increase the size of several structure bitfields in arena_run_t in order
to avoid integer overflow in the case that a run's header does not overlap
with the space that is usable as application allocation regions.  Given
the tiny_min_2pow change, this fix has no additional impact unless
pagesize is >32kB.

Reported by: kris

18 years agoInclude kernel.h to get NET_NEEDS_GIANT() definition, which for some
Robert Watson [Fri, 24 Mar 2006 20:08:48 +0000 (20:08 +0000)]
Include kernel.h to get NET_NEEDS_GIANT() definition, which for some
reason compiled fine here.  I may be running with other include file
changes locally.

MFC after: 3 days

18 years agostop device so we don't panic on card removal when active
Sam Leffler [Fri, 24 Mar 2006 19:11:26 +0000 (19:11 +0000)]
stop device so we don't panic on card removal when active

MFC after: 3 days

18 years agoChange the -S and -t options to override each other so that the last one
John Baldwin [Fri, 24 Mar 2006 17:09:03 +0000 (17:09 +0000)]
Change the -S and -t options to override each other so that the last one
specified wins to make their interaction less confusing.

18 years agoFix a bug such that if you enabled sorting by size (-S) and enabled a
John Baldwin [Fri, 24 Mar 2006 16:47:22 +0000 (16:47 +0000)]
Fix a bug such that if you enabled sorting by size (-S) and enabled a
flag to use a time other than modtime (-c, -u, or -U), the output would
actually be sorted by the specified time rather than size.  This does
alter the behavior in the case where both -S and -t are specified.  Now,
-S is always preferred.  Previously, -t was preferred if one of -c, -u, or
-U was specified, and -S was preferred otherwise.  Perhaps -S and -t should
override each other (last one specified wins).

18 years agoAdd a few more references to -U.
John Baldwin [Fri, 24 Mar 2006 16:43:58 +0000 (16:43 +0000)]
Add a few more references to -U.

18 years agoAdd a new -U flag to instruct ls to use the birthtime for printing or
John Baldwin [Fri, 24 Mar 2006 16:38:02 +0000 (16:38 +0000)]
Add a new -U flag to instruct ls to use the birthtime for printing or
sorting.

Submitted by: Andrzej Tobola ato at iem dot pw dot edu dot pl
MFC after: 1 week

18 years agofixed a memory leak when net.inet6.icmp6.nd6_maxqueuelen is greater than 1
SUZUKI Shinsuke [Fri, 24 Mar 2006 16:20:12 +0000 (16:20 +0000)]
fixed a memory leak when net.inet6.icmp6.nd6_maxqueuelen is greater than 1

Obtained from: KAME
MFC after: 3 days

18 years agoClean up and style(9) SPX code prior to significant functional changes
Robert Watson [Fri, 24 Mar 2006 13:58:23 +0000 (13:58 +0000)]
Clean up and style(9) SPX code prior to significant functional changes
being committed:

- Wrap comments more evenly on right border.
- Clean up braces.

Also, along similar lines:

- Assert some pointers are non-NULL before dereferencing them.
- Remove one assertion that looks, on face value, poor.

MFC after: 1 month

18 years agoWhen res_nquerydomain() returns SERVFAIL, we should try next domain.
Hajimu UMEMOTO [Fri, 24 Mar 2006 13:30:10 +0000 (13:30 +0000)]
When res_nquerydomain() returns SERVFAIL, we should try next domain.

18 years agoFor each of the voltages that a card might support, make sure that the
Warner Losh [Fri, 24 Mar 2006 07:52:00 +0000 (07:52 +0000)]
For each of the voltages that a card might support, make sure that the
socket also supports the voltage.  Some XV cards have appeared on the
scene (or cards that report they support XV), and in older machines
that have sockets that do not support XV, we were bogusly trying to
power them at XV rather than at 3.3V.  Now, power up the card at the
lowest voltage supported by both the card and the socket.

MFC After: 3 days

18 years agoSkeleton support for the SSC device, which implements I2S interfaces,
Warner Losh [Fri, 24 Mar 2006 07:42:33 +0000 (07:42 +0000)]
Skeleton support for the SSC device, which implements I2S interfaces,
amoung others.

18 years agoTypesetting fix for -r1.137.
Kirk McKusick [Fri, 24 Mar 2006 07:41:12 +0000 (07:41 +0000)]
Typesetting fix for -r1.137.

If a tail queue is empty the return value of TAILQ_LAST is not
undefined, it is NULL.

Submitted by: Ruslan Ermilov <ru@FreeBSD.org>

18 years agoSkeleton PIO support.
Warner Losh [Fri, 24 Mar 2006 07:39:29 +0000 (07:39 +0000)]
Skeleton PIO support.

18 years agoAdd the sekelton of support for the Power Management Controller.
Warner Losh [Fri, 24 Mar 2006 07:37:56 +0000 (07:37 +0000)]
Add the sekelton of support for the Power Management Controller.

18 years agoAdd rtc to files.at91
Warner Losh [Fri, 24 Mar 2006 07:36:23 +0000 (07:36 +0000)]
Add rtc to files.at91

18 years agoAdd RTC support. This may be of dubious value since the RTC is reset
Warner Losh [Fri, 24 Mar 2006 07:35:30 +0000 (07:35 +0000)]
Add RTC support.  This may be of dubious value since the RTC is reset
to 1998 every reboot.

18 years agoAdd explicit dependency on cam. This is necessary when both aha.ko and
Warner Losh [Fri, 24 Mar 2006 06:33:25 +0000 (06:33 +0000)]
Add explicit dependency on cam.  This is necessary when both aha.ko and
cam.ko are modules so that aha.ko's undefined symbols can be satisfied by
cam.ko.

Sumitted by: nork
Reviewed by: scottl

18 years agoThe year field is the 4 digit year (eg, 2006), not 'year - 1900' (eg
Warner Losh [Fri, 24 Mar 2006 06:27:34 +0000 (06:27 +0000)]
The year field is the 4 digit year (eg, 2006), not 'year - 1900' (eg
106).  Fix the comment to reflect this.

18 years agoOption MK_LIB32 only exists on amd64.
Ruslan Ermilov [Fri, 24 Mar 2006 06:14:31 +0000 (06:14 +0000)]
Option MK_LIB32 only exists on amd64.

18 years agoWhen res_send() fails, we should reserve an error code.
Hajimu UMEMOTO [Fri, 24 Mar 2006 04:49:30 +0000 (04:49 +0000)]
When res_send() fails, we should reserve an error code.

18 years agoset an upper limit for thread structures which can be allocated.
David Xu [Fri, 24 Mar 2006 04:34:06 +0000 (04:34 +0000)]
set an upper limit for thread structures which can be allocated.