Commit Graph

89982 Commits

Author SHA1 Message Date
ps
801ec5c821 - Change the full Asic revision defines to CHIPID to better since the
ASIC revision is really the major number of the CHIPID.  Also store
  the chipid, asic rev and chip revision in the softc for later use.

- The write twice to send producer index workaround only applies to
  the 5700_BX chips, so only do it there.
  Requested by: jdp

- Do not initalize the LED's to 0x00.  The default configuration
  the chip comes up in should yeild proper operation of the LED's.
  Confirmed by: John Cagle <john.cagle@hp.com>

Approved by:	re (blanket)
2003-05-07 21:51:13 +00:00
hmp
887ca00756 Bring the dumpon(8) man page closer to reality:
- dumpon utility has not used kern.dumpdev sysctl
      since rev. 1.14 (sbin/dumpon/dumpon.c) when phk@
      updated it to use the DIOCSKERNELDUMP ioctl [1]
    - remove obsolete reference to sysctl(3)

While I am there, fix two style nits:

    - use .Nm instead of `dumpon'
    - change NOTES to IMPLEMENTATION NOTES, to bring
      it in line with recommended section headings in
      mdoc(7)

Original patch by: Martin Faxer <gmh003532brfmasthugget.se> [1]

PR: docs/39293
Approved and Reviewed by: des (mentor), re (scottl, bmah)
2003-05-07 19:37:51 +00:00
mckusick
09c1d3fd07 Dump is hard-wired to believe that it can read disks on
1024-byte boundaries. For many years this was a reasonable
assumption. However, in recent years we have begun seeing
devices with 2048-byte sectors. These devices return errors
when dump tries to read starting in the middle of a sector
or when it tries to read only the first half of a sector.
Rather than change the native block size used by dump (and
thus create an incompatible dump format), this fix checks
for transfer requests that start and/or end on a non-sector
boundary. When such a read is detected, the new code reads
the entire sector and copies out just the part that dump
needs.

Reviewed by:	Poul-Henning Kamp <phk@critter.freebsd.dk>
Approved by:	re (John Baldwin <jhb@FreeBSD.org>)
Sponsored by:   DARPA & NAI Labs.
2003-05-07 18:27:09 +00:00
obrien
345e13353c Rev 1.67 accidently added "axe".
Seeing as how it was just added to GENERIC and may be the thing to get
the release builds working I'm leaving it in.
2003-05-07 18:14:00 +00:00
obrien
473ae00b3e Back out rev 1.63. Things in this file should be in the same order as in
GENERIC.  This greatly simplifies the hunting for the next thing to kill.

Approved by:	re(blanket as alpha re-builder)
2003-05-07 18:12:38 +00:00
rwatson
b56c2caf94 Clean up locking for the MAC Framework:
(1) Accept that we're now going to use mutexes, so don't attempt
    to avoid treating them as mutexes.  This cleans up locking
    accessor function names some.

(2) Rename variables to _mtx, _cv, _count, simplifying the naming.

(3) Add a new form of the _busy() primitive that conditionally
    makes the list busy: if there are entries on the list, bump
    the busy count.  If there are no entries, don't bump the busy
    count.  Return a boolean indicating whether or not the busy
    count was bumped.

(4) Break mac_policy_list into two lists: one with the same name
    holding dynamic policies, and a new list, mac_static_policy_list,
    which holds policies loaded before mac_late and without the
    unload flag set.  The static list may be accessed without
    holding the busy count, since it can't change at run-time.

(5) In general, prefer making the list busy conditionally, meaning
    we pay only one mutex lock per entry point if all modules are
    on the static list, rather than two (since we don't have to
    lower the busy count when we're done with the framework).  For
    systems running just Biba or MLS, this will halve the mutex
    accesses in the network stack, and may offer a substantial
    performance benefits.

(6) Lay the groundwork for a dynamic-free kernel option which
    eliminates all locking associated with dynamically loaded or
    unloaded policies, for pre-configured systems requiring
    maximum performance but less run-time flexibility.

These changes have been running for a few weeks on MAC development
branch systems.

Approved by:	re (jhb)
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2003-05-07 17:49:24 +00:00
jhb
2251414792 Properly cleanup the stack before jumping to cerror() if rfork(2) fails.
Submitted by:	Igor Sysoev <is@rambler-co.ru>
Approved by:	re (scottl)
2003-05-07 17:23:25 +00:00
jhb
4551a732f9 Style nits.
Approved by:	re (bmah)
2003-05-07 17:21:38 +00:00
imp
40bb78be11 Don't use logger by default just yet for unmatched devices. It is a
little too chatty on boot and doesn't give enough information.

Approved by: re@ (bmah)
2003-05-07 15:48:20 +00:00
phk
94b94df23d #include <sys/resource.h> to limit ports damage.
Approved by:	re/rwatson
2003-05-07 15:26:43 +00:00
mich
4b50cb7956 Add my birthday.
Approved by: roberto (mentor), re(bmah)
2003-05-07 13:28:16 +00:00
phk
cb69b56d60 Hide the "ENOMEM" notice messages behind bootverbose. They are still
a valuable debugging tool for certain kinds of problems.

Approved by:	re/scottl
2003-05-07 05:37:31 +00:00
rwatson
fe01ecedfc Correct a bug introduced with reduced TCP state handling; make
sure that the MAC label on TCP responses during TIMEWAIT is
properly set from either the socket (if available), or the mbuf
that it's responding to.

Unfortunately, this is made somewhat difficult by the TCP code,
as tcp_twstart() calls tcp_twrespond() after discarding the socket
but without a reference to the mbuf that causes the "response".
Passing both the socket and the mbuf works arounds this--eventually
it might be good to make sure the mbuf always gets passed in in
"response" scenarios but working through this provided to
complicate things too much.

Approved by:	re (scottl)
Reviewed by:	hsu
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2003-05-07 05:26:27 +00:00
bmah
f012e3a113 New release notes: Kerberos 5 built by default, krb5 distributed
folded into crypto.

Submitted by:	markm
Approved by:	re (implicitly)
2003-05-07 04:15:57 +00:00
trhodes
d4b5a8e556 df(1) and ls(1) print units in 'four or fewer' not 'three or less'.
PR:		35523
Submitted by:	Tomas Svensson <tsn@gbdev.net>
2003-05-06 21:54:46 +00:00
bmah
fe4a797ba8 Version number bump: We're at 5.1-BETA now.
Note that the previous commit message for this file should have read:
"4.8-RELEASE is the latest release from the 4-STABLE branch." [1]

Pointed out by:	Stijn Hoop <stijn@win.tue.nl> [1]
Approved by	re (implicitly)
2003-05-06 21:30:16 +00:00
rwatson
8b5bc05a0c Trim a call to mac_create_mbuf_from_mbuf() since m_tag meta-data
copying for mbuf headers now works properly in m_dup_pkthdr(), so
we don't need to do an explicit copy.

Approved by:	re (jhb)
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2003-05-06 20:34:04 +00:00
bmah
34da511e28 Update supported architectures, use &unix; where appropriate, more
majordomo->mailman fixes, other misc. updates.

Approved by:	re (implicitly)
2003-05-06 20:01:07 +00:00
bmah
4a28c51a58 4.8-RELEASE was the last release from the 4-STABLE branch. 2003-05-06 19:58:10 +00:00
phk
f34b1f7fd5 Fix the WARNING for wrong rawoffset, I tested incompatible units.
Approved by:	re/jhb
2003-05-06 19:36:13 +00:00
jhb
422a7f1a8f Add PCI ID's for the Intel ICH5 (82801EB) chipset.
Approved by:	re (murray)
Sponsored by:	The Weather Channel
2003-05-06 19:31:56 +00:00
jhb
cd6c7cee69 Add PCI ID's for the 4 USB hubs on the ICH5 controller.
Approved by:	re (murray)
2003-05-06 19:30:41 +00:00
obrien
9fcf903289 Consistentify our NO_KERBEROS documentation.
Approved by:	re(bmah)
2003-05-06 19:26:55 +00:00
hmp
915aab1078 malloc(9) types can be used to identify multiple allocations.
PR: docs/38618
Approved by: des (mentor)
2003-05-06 19:10:17 +00:00
dougb
648d0fdfdf Hook devfs.conf up to the build.
Approved by:	re (scottl)
2003-05-06 07:25:17 +00:00
des
051d8cc6d2 Start mailing -CURRENT tinderbox failures to the lists. 2003-05-06 04:04:02 +00:00
scottl
14d4642352 We are now in 5.1-BETA 2003-05-06 03:55:24 +00:00
des
e2ecfebce4 Fix a printf() format error which broke the ia64 GENERIC build. 2003-05-06 03:55:12 +00:00
gshapiro
4365c4a83d Prevent a 'make SHARED=symlinks install' followed by 'make install' from
failing by removing the symlink before trying to install the actual files.

Noticed by:	bde
MFC after:	5 days
2003-05-06 03:38:24 +00:00
alc
3fbd0a8227 Lock the vm_object when performing vm_pager_deallocate(). 2003-05-06 02:45:28 +00:00
mtm
b6ee26825b Fix a null dereference leading to a core dump when
the number of threads exceeds the number of open slots
in ldt_entries[].

Approved by:	markm (mentor)(implicit)
Reviewed by:	jeff
2003-05-06 02:33:49 +00:00
mtm
4f849fcd73 o Correct a debug message that refered to the wrong function
o Remove an unncecesary if clause

Approved by:	markm (mentor)(implicit)
Reviewd by:	jeff
2003-05-06 02:30:52 +00:00
mtm
641dce1ea2 s/kadmind5/kadmin/
Approved by:	markm (mentor)
2003-05-06 02:28:03 +00:00
cognet
85c4c45c8e Don't call timeout() in sis_tick(), this is done earlier by mii_tick(), and it
leads to a panic at unload time, as we own 2 instances of callout and
untimeout() only one.
Will I'm there, remove a call to callout_handler_init(), one is enough.

Reviewed by:	wpaul
2003-05-06 02:00:01 +00:00
dougb
4425e1b376 Allow users to configure stuff in /dev once again by re-doing the devfs
script to read /etc/devfs.conf, and take appropriate actions based on
what it finds there.

The (commented out) examples in the new devfs.conf file are taken in
part from the old rc.devfs script.
2003-05-06 01:10:33 +00:00
obrien
2815c2d3a1 Back out the amd64 additions. Hammer doesn't do APM, and we certainly aren't
ready for any ibcs2_compat bits yet.
2003-05-06 00:09:51 +00:00
deischen
a11591d437 Make pthread_join() async-cancel-safe. David was going to commit
this, but I think he's asleep and want to be sure it gets in before
the freeze.

Submitted by:	davidxu
2003-05-06 00:02:54 +00:00
obrien
a7683506af We won't do APM on Hammer -- ACPI is the game there. 2003-05-05 23:55:43 +00:00
dougb
08aaead5a5 Add an example of how to create an fstab entry. 2003-05-05 23:41:17 +00:00
gad
776a2831ca Fix age_old_log checking so that it will notice log files which were
rotated and then compressed with bzip2 instead of gzip.  Otherwise,
any file which had a time-interval specified for 'when' and also
specified the 'J' flag would be rotated every time newsyslog was run.
(this is a quick-fix, trying to beat the code-freeze for 5.1-release)

PR:		bin/51519
MFC after:	1 week
2003-05-05 23:38:03 +00:00
obrien
dc8b1199b7 Centralize _PATH_* definitions.
Submitted by:	Tim Kientzle <kientzle@acm.org> (embellished by me)
2003-05-05 22:49:23 +00:00
gad
998d74dbd1 Slightly improve the checking of the 'size' field, so people will get
a warning message if they switch the values for 'size' and 'when'.

MFC after:	1 week
2003-05-05 22:27:37 +00:00
dougb
ebcef47fb4 * Add the nut port from the IANA list (for the nut port)
* Add the rndc port, by common usage (TCP only since rndc doesn't
use UDP, and the port is not officially assigned)
2003-05-05 22:10:14 +00:00
dougb
050075f44f Add traditional BSD names (sio[0-3]) to the finger-friendly com[1-4]
entries so that you can do things like 'tip sio1' without having
to remember the DOS equivalent.
2003-05-05 21:37:43 +00:00
phk
431aa2ce49 Compile bsdlabel on all platforms.
Install a link to the disklabel(8) name on i386 and alpha platforms.

Leave old disklabel(8) sources intact but disconnected from the build
for now.
2003-05-05 21:28:08 +00:00
jhb
f9b7267244 Tweak the clearing of TDF_DEADLKTREAT so that we only bother grabbing the
lock and clearing the flag if it was clear when uiomove() was called.
2003-05-05 21:27:29 +00:00
jhb
50d0b44b78 Mostly sort the includes. 2003-05-05 21:26:25 +00:00
phk
9a08b7caf8 Put descriptive comments on the GEOM_* options 2003-05-05 21:21:31 +00:00
jhb
e70e51cbd2 Lock the proc lock around calls to tdsignal() in the sigwait() family of
syscalls.
2003-05-05 21:18:10 +00:00
jhb
bdca9e4fbd Make issignal() private to kern_sig.c since it is only called from cursig()
and cursig() is now a function rather than a macro.
2003-05-05 21:16:28 +00:00