]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoSync the list of supported devices in the manual page with the hardware
Simon L. B. Nielsen [Wed, 12 Nov 2003 14:13:36 +0000 (14:13 +0000)]
Sync the list of supported devices in the manual page with the hardware
notes and the driver source.

20 years agoDocument that the length of a command string is now 32. Also change all
Hartmut Brandt [Wed, 12 Nov 2003 13:24:03 +0000 (13:24 +0000)]
Document that the length of a command string is now 32. Also change all
occurences of the old *LEN definitions to the new *SIZ definitions.

Correct the example how to compare a nodename.
strncmp(name, "fred", NG_NODELEN) may step behind "fred" if the node
name is really fred.

Reminded by: ru

20 years agoGet rid of the old constants which did not include the trailing NUL
Hartmut Brandt [Wed, 12 Nov 2003 13:04:44 +0000 (13:04 +0000)]
Get rid of the old constants which did not include the trailing NUL
and use the new constants which do.

20 years ago- vlan_start(): Increment the correct interface statistics member.
Ruslan Ermilov [Wed, 12 Nov 2003 12:58:19 +0000 (12:58 +0000)]
- vlan_start(): Increment the correct interface statistics member.

Reviewed by: mdodd

- vlan_input(): Macroize the VLAN tag extraction from mbuf.

20 years agoBetter English usage.
Tony Finch [Wed, 12 Nov 2003 10:53:52 +0000 (10:53 +0000)]
Better English usage.

Submitted by: wollman

20 years agoReplace B_PHYS conditional assignment to bio_offset with KASSERT check
Poul-Henning Kamp [Wed, 12 Nov 2003 10:27:06 +0000 (10:27 +0000)]
Replace B_PHYS conditional assignment to bio_offset with KASSERT check
to see that the originating code already did it right.

20 years agoDon't mess around with spare fields of public structures.
Poul-Henning Kamp [Wed, 12 Nov 2003 09:54:07 +0000 (09:54 +0000)]
Don't mess around with spare fields of public structures.

20 years agoDon't mess about with spare fields in public structures.
Poul-Henning Kamp [Wed, 12 Nov 2003 09:52:10 +0000 (09:52 +0000)]
Don't mess about with spare fields in public structures.

20 years agoMake sure to return errors if we have any.
Poul-Henning Kamp [Wed, 12 Nov 2003 09:46:54 +0000 (09:46 +0000)]
Make sure to return errors if we have any.

Submitted by:    Pawel Jakub Dawidek <nick@garage.freebsd.pl>

20 years agoAdd an entry about the changes in netgraph that require kernel and
Hartmut Brandt [Wed, 12 Nov 2003 09:11:18 +0000 (09:11 +0000)]
Add an entry about the changes in netgraph that require kernel and
user land netgraph stuff to be in sync.

Reviewed by: imp

20 years agoDouble length of node names, hook names, command strings and types. Add
Hartmut Brandt [Wed, 12 Nov 2003 09:10:11 +0000 (09:10 +0000)]
Double length of node names, hook names, command strings and types. Add
defines for these constants that include the trailing NUL byte. These
new constants have SIZ in their name instead of LEN. As soon as all
consumers in the tree are converted to use the new defines the old
defines will be put under BURN_BRIDGES.

Reviewed by: archie, julian, ru
Approved by: re (in principle)

20 years agoUse __sfvwrite() instead of __sputc() via __fputwc() to write to fake
Tim J. Robbins [Wed, 12 Nov 2003 08:49:12 +0000 (08:49 +0000)]
Use __sfvwrite() instead of __sputc() via __fputwc() to write to fake
string files (__SSTR flag set). This is necessary because __sputc()
does not respect the __SALC flag, and crashes trying to flush the buffer
instead of resizing it.

PR: 59167

20 years agoRemove leftovers from old color determination scheme.
Dag-Erling Smørgrav [Wed, 12 Nov 2003 08:37:10 +0000 (08:37 +0000)]
Remove leftovers from old color determination scheme.
Tune the speed at which colors change.

20 years agoFBSDID style nit.
David E. O'Brien [Wed, 12 Nov 2003 08:33:18 +0000 (08:33 +0000)]
FBSDID style nit.

20 years agobraino in age computation
Dag-Erling Smørgrav [Wed, 12 Nov 2003 08:32:34 +0000 (08:32 +0000)]
braino in age computation

20 years agoUse graded colors to more clearly indicate relative age.
Dag-Erling Smørgrav [Wed, 12 Nov 2003 08:30:51 +0000 (08:30 +0000)]
Use graded colors to more clearly indicate relative age.

20 years agoCorrect the on-disc path to the porters-handbook
Christian Brueffer [Wed, 12 Nov 2003 08:26:08 +0000 (08:26 +0000)]
Correct the on-disc path to the porters-handbook

20 years agoTurn the table around: platforms across, branches down.
Dag-Erling Smørgrav [Wed, 12 Nov 2003 08:16:16 +0000 (08:16 +0000)]
Turn the table around: platforms across, branches down.
Also fix some bogus tabification in here documents.

20 years agoUpdate the five files derived from /sys/kern/syscalls.master
Kirk McKusick [Wed, 12 Nov 2003 08:09:19 +0000 (08:09 +0000)]
Update the five files derived from /sys/kern/syscalls.master
after the additions made for the new statfs structure (version
1.157). These must be updated in a separate checkin after
syscalls.master has been checked in so that they reflect its
new CVS identity. As these are purely derived files, it is not
clear to me why they are under CVS at all. I presume that it has
something to do with having `make world' operate properly.

20 years agoMove cd9660 module from 3rd floppy to 2nd to unbreak release.
Jun Kuriyama [Wed, 12 Nov 2003 08:08:16 +0000 (08:08 +0000)]
Move cd9660 module from 3rd floppy to 2nd to unbreak release.

20 years agoDocument the 'fetch-recursive-list' and 'deinstall-all' targets.
Christian Brueffer [Wed, 12 Nov 2003 08:06:35 +0000 (08:06 +0000)]
Document the 'fetch-recursive-list' and 'deinstall-all' targets.

No MFC reminder, I'll sync this page with the one in -stable in
a couple of days.

PR: docs/46181
Patch submitted by: Sergey Matveychuk <sem@ciam.ru>

20 years agoUpdate the statfs structure with 64-bit fields to allow
Kirk McKusick [Wed, 12 Nov 2003 08:01:40 +0000 (08:01 +0000)]
Update the statfs structure with 64-bit fields to allow
accurate reporting of multi-terabyte filesystem sizes.

You should build and boot a new kernel BEFORE doing a `make world'
as the new kernel will know about binaries using the old statfs
structure, but an old kernel will not know about the new system
calls that support the new statfs structure. Running an old kernel
after a `make world' will cause programs such as `df' that do a
statfs system call to fail with a bad system call.

Reviewed by: Bruce Evans <bde@zeta.org.au>
Reviewed by: Tim Robbins <tjr@freebsd.org>
Reviewed by: Julian Elischer <julian@elischer.org>
Reviewed by: the hoards of <arch@freebsd.org>
Sponsored by:   DARPA & NAI Labs.

20 years agoBelatedly include RELENG_4_9 in the build, and rotate RELENG_4_7 out.
Dag-Erling Smørgrav [Wed, 12 Nov 2003 07:50:36 +0000 (07:50 +0000)]
Belatedly include RELENG_4_9 in the build, and rotate RELENG_4_7 out.

20 years agoMinor diff reduction with p4
Warner Losh [Wed, 12 Nov 2003 05:44:44 +0000 (05:44 +0000)]
Minor diff reduction with p4

20 years agoFix a harmless typo (use of res instead of rle: if rle is NULL, we'd
Warner Losh [Wed, 12 Nov 2003 05:21:06 +0000 (05:21 +0000)]
Fix a harmless typo (use of res instead of rle: if rle is NULL, we'd
still get a panic, just not a nice message) and update to new
__FBSDID.

Submitted by: charnier@

20 years agoavoid module name conflict with opencrypto/rijndael.c.
Hajimu UMEMOTO [Wed, 12 Nov 2003 04:22:37 +0000 (04:22 +0000)]
avoid module name conflict with opencrypto/rijndael.c.

Reported by: tinderbox

20 years agoImprove debug message.
Hidetoshi Shimokawa [Wed, 12 Nov 2003 04:06:21 +0000 (04:06 +0000)]
Improve debug message.

20 years ago- Reserve a ocb for management ORB.
Hidetoshi Shimokawa [Wed, 12 Nov 2003 03:45:10 +0000 (03:45 +0000)]
- Reserve a ocb for management ORB.
- Requeue XPT_SCSI_IO if ocb is short.

20 years agoGC prototype for mac_destroy_vnode_label(), missed in last commit.
Robert Watson [Wed, 12 Nov 2003 03:33:43 +0000 (03:33 +0000)]
GC prototype for mac_destroy_vnode_label(), missed in last commit.

20 years agoOops, fix typo in my name.
Hidetoshi Shimokawa [Wed, 12 Nov 2003 03:29:57 +0000 (03:29 +0000)]
Oops, fix typo in my name.

20 years agoRemove ia64_highfp_load() now that it's unused.
Marcel Moolenaar [Wed, 12 Nov 2003 03:24:34 +0000 (03:24 +0000)]
Remove ia64_highfp_load() now that it's unused.

20 years agoModify the MAC Framework so that instead of embedding a (struct label)
Robert Watson [Wed, 12 Nov 2003 03:14:31 +0000 (03:14 +0000)]
Modify the MAC Framework so that instead of embedding a (struct label)
in various kernel objects to represent security data, we embed a
(struct label *) pointer, which now references labels allocated using
a UMA zone (mac_label.c).  This allows the size and shape of struct
label to be varied without changing the size and shape of these kernel
objects, which become part of the frozen ABI with 5-STABLE.  This opens
the door for boot-time selection of the number of label slots, and hence
changes to the bound on the number of simultaneous labeled policies
at boot-time instead of compile-time.  This also makes it easier to
embed label references in new objects as required for locking/caching
with fine-grained network stack locking, such as inpcb structures.

This change also moves us further in the direction of hiding the
structure of kernel objects from MAC policy modules, not to mention
dramatically reducing the number of '&' symbols appearing in both the
MAC Framework and MAC policy modules, and improving readability.

While this results in minimal performance change with MAC enabled, it
will observably shrink the size of a number of critical kernel data
structures for the !MAC case, and should have a small (but measurable)
performance benefit (i.e., struct vnode, struct socket) do to memory
conservation and reduced cost of zeroing memory.

NOTE: Users of MAC must recompile their kernel and all MAC modules as a
result of this change.  Because this is an API change, third party
MAC modules will also need to be updated to make less use of the '&'
symbol.

Suggestions from: bmilekic
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

20 years ago1. Consolidate mount struct allocation/destruction into a common code in
Alexander Kabaev [Wed, 12 Nov 2003 02:54:47 +0000 (02:54 +0000)]
1. Consolidate mount struct allocation/destruction into a common code in
vfs_mount_alloc/vfs_mount_destroy functions and take care to completely
destroy the mount point along with its locks. Mount struct has grown in
coplexity recently and depending on each failure path to destroy it
completely isn't working anymore.

2. Eliminate largely identical vfs_mount and vfs_unmount question by
moving the code to handle both cases into a newly introduced vfs_domount
function.

3. Simplify nfs_mount_diskless to always expect an allocated mount
struct and never attempt an allocation/destruction itself. The
vfs_allocroot allocation was there to support 'magic' swap space
configuration for diskless clients that was already removed by PHK some
time ago.

4. Include a vfs_buildopts cleanups by Peter Edwards to validate the
sanity of nmount parameters passed from userland.

Submitted by:  (4) Peter Edwards <peter.edwards@openet-telecom.com>
Reviewed by:    rwatson

20 years agoMdoc Janitor:
Hiten Pandya [Wed, 12 Nov 2003 02:35:20 +0000 (02:35 +0000)]
Mdoc Janitor:

* cleanup hard sentence breaks.

* sprinle some .Dq macros.

20 years agoMdoc Janitor:
Hiten Pandya [Wed, 12 Nov 2003 02:26:47 +0000 (02:26 +0000)]
Mdoc Janitor:

* Add missing `utility' word to sentence describing
  ips(4) card configuration.

* Remove extraneous use of .Pp, and describe the tunable
  hw.ips.0.disable in a better way.

* Replace wrongly used .Op mdoc macros with the .Bq macro.
  The .Op macro should only be used when describing a
  ``usage'' line of a utility/command.

* Add .Er, for marking errno defines (ENOMEM etc etc)

20 years agoCosmetic sync with i386
Peter Wemm [Wed, 12 Nov 2003 01:49:49 +0000 (01:49 +0000)]
Cosmetic sync with i386

20 years agoRemove a gremlin so that this code compiles under -stable without
Josef Karthauser [Wed, 12 Nov 2003 01:40:11 +0000 (01:40 +0000)]
Remove a gremlin so that this code compiles under -stable without
a "syntax error before `struct'" error.

20 years agoFurther work-out the handling of the high FP registers. The most
Marcel Moolenaar [Wed, 12 Nov 2003 01:26:02 +0000 (01:26 +0000)]
Further work-out the handling of the high FP registers. The most
important change is in cpu_switch() where we disable the high FP
registers for the thread that we switch-out if the CPU currently
has its high FP registers. This avoids that the high FP registers
remain enabled for the thread even when the CPU has unloaded them
or the thread migrated to another processor.
Likewise, when we switch-in a thread of that has its high FP
registers on the CPU, we enable them. This avoids an otherwise
harmless, but unnecessary trap to have them enabled.

The code that handles the disabled high FP trap (in trap()) has
been turned into a critical section for the most part to avoid
being preempted. If there's a race, we bail out and have the
processor trap again if necessary.

Avoid using the generic ia64_highfp_save() function when the
context is predictable. The function adds unnecessary overhead.
Don't use ia64_highfp_load() for the same reason. The function
is now unused and can be removed.

These changes make the lazy context switching of the high FP
registers in an UP kernel functional.

20 years agoOh dear, forgot this file in the turnstile commit. This header defines
John Baldwin [Tue, 11 Nov 2003 23:08:26 +0000 (23:08 +0000)]
Oh dear, forgot this file in the turnstile commit.  This header defines
the turnstile API and includes several comments.

Reminded by: peter

20 years agoAdd ID for ALC658 CODEC.
Jun Kuriyama [Tue, 11 Nov 2003 22:15:17 +0000 (22:15 +0000)]
Add ID for ALC658 CODEC.

Tested on: GIGABYTE GA-8S655FX-L
Reviewed by: orion

20 years agoAdd an implementation of turnstiles and change the sleep mutex code to use
John Baldwin [Tue, 11 Nov 2003 22:07:29 +0000 (22:07 +0000)]
Add an implementation of turnstiles and change the sleep mutex code to use
turnstiles to implement blocking isntead of implementing a thread queue
directly.  These turnstiles are somewhat similar to those used in Solaris 7
as described in Solaris Internals but are also different.

Turnstiles do not come out of a fixed-sized pool.  Rather, each thread is
assigned a turnstile when it is created that it frees when it is destroyed.
When a thread blocks on a lock, it donates its turnstile to that lock to
serve as queue of blocked threads.  The queue associated with a given lock
is found by a lookup in a simple hash table.  The turnstile itself is
protected by a lock associated with its entry in the hash table.  This
means that sched_lock is no longer needed to contest on a mutex.  Instead,
sched_lock is only used when manipulating run queues or thread priorities.
Turnstiles also implement priority propagation inherently.

Currently turnstiles only support mutexes.  Eventually, however, turnstiles
may grow two queue's to support a non-sleepable reader/writer lock
implementation.  For more details, see the comments in sys/turnstile.h and
kern/subr_turnstile.c.

The two primary advantages from the turnstile code include: 1) the size
of struct mutex shrinks by four pointers as it no longer stores the
thread queue linkages directly, and 2) less contention on sched_lock in
SMP systems including the ability for multiple CPUs to contend on different
locks simultaneously (not that this last detail is necessarily that much of
a big win).  Note that 1) means that this commit is a kernel ABI breaker,
so don't mix old modules with a new kernel and vice versa.

Tested on: i386 SMP, sparc64 SMP, alpha SMP

20 years ago- Disable AGP on ALI chipsets if aperture size is 0.
Eric Anholt [Tue, 11 Nov 2003 21:49:18 +0000 (21:49 +0000)]
- Disable AGP on ALI chipsets if aperture size is 0.
- Fail in agp_alloc_gatt if the aperture size is 0 instead of panicing in
  contigmalloc.

Reported by: Bjoern Fischer <bfischer@Techfak.Uni-Bielefeld.DE>
Reviewed by: jhb
MFC after: 1 week

20 years agoFollowing the repo-copy from src/sys/modules/mac_none/Makefile,
Robert Watson [Tue, 11 Nov 2003 21:23:54 +0000 (21:23 +0000)]
Following the repo-copy from src/sys/modules/mac_none/Makefile,
I neglected to update the filenames/etc in mac_stub.  Do so now.

20 years agoDon't probe busses in the MP Table for the MP Table PCI bridge drivers
John Baldwin [Tue, 11 Nov 2003 21:19:43 +0000 (21:19 +0000)]
Don't probe busses in the MP Table for the MP Table PCI bridge drivers
if the bus number doesn't correspond to a PCI bus in the MP Table.

Reported by: jhay

20 years agoHelp bmah out and add the ips(4) entity.
Tom Rhodes [Tue, 11 Nov 2003 19:20:13 +0000 (19:20 +0000)]
Help bmah out and add the ips(4) entity.

20 years agocleanup rijndael API.
Hajimu UMEMOTO [Tue, 11 Nov 2003 18:58:54 +0000 (18:58 +0000)]
cleanup rijndael API.
since there are naming conflicts with opencrypto, #define was
added to rename functions intend to avoid conflicts.

Obtained from: KAME

20 years agoAttach ips.4 to the build.
Tom Rhodes [Tue, 11 Nov 2003 18:48:02 +0000 (18:48 +0000)]
Attach ips.4 to the build.

20 years agoAdd a manual page for the ips(4) driver.
Tom Rhodes [Tue, 11 Nov 2003 18:47:01 +0000 (18:47 +0000)]
Add a manual page for the ips(4) driver.

Requested by: obrien
Reviewed by: scottl (older version)

20 years ago - Add some information about how init, securelevel, and jails
Ken Smith [Tue, 11 Nov 2003 18:37:50 +0000 (18:37 +0000)]
- Add some information about how init, securelevel, and jails
  interact with each other.
- Minor markup fix (.Dq -> .Va for a variable)

Reviewed by: rwatson
Approved by: blackend (mentor)

20 years ago - Add a note that there are two MIB variables that have per-jail
Ken Smith [Tue, 11 Nov 2003 18:34:29 +0000 (18:34 +0000)]
- Add a note that there are two MIB variables that have per-jail
  settings.

Reviewed by: rwatson
Approved by: blackend (mentor)

20 years ago - Markup fix-ups (add .Dq, and some hard line breaks at the end
Ken Smith [Tue, 11 Nov 2003 18:31:36 +0000 (18:31 +0000)]
- Markup fix-ups (add .Dq, and some hard line breaks at the end
  of sentences).

Approved by: blackend (mentor)

20 years ago - Add a note about how jail(2) effects the securelevel.
Ken Smith [Tue, 11 Nov 2003 18:21:20 +0000 (18:21 +0000)]
- Add a note about how jail(2) effects the securelevel.

Reviewed by: rwatson
Approved by: blackend (mentor)

20 years agoSome motherboards like to remap the SCI (normally IRQ 9) up to a PCI
John Baldwin [Tue, 11 Nov 2003 18:20:10 +0000 (18:20 +0000)]
Some motherboards like to remap the SCI (normally IRQ 9) up to a PCI
interrupt such as IRQ 22 or 19.  However, the ACPI BIOS still routes
interrupts from some PCI devices to the same intpin calling the pin
IRQ 22.  Thus, ACPI expects to address a single interrupt source via two
different names.  To work around this, if the SCI is remapped to a non-ISA
interrupt (i.e., greater than 15), then we use
acpi_OverrideInterruptLevel() function to tell ACPI to use IRQ 22 or 19
rather than IRQ 9 for the SCI.

Previously we would change IRQ 22 or 19's name to IRQ 9 when we encountered
such an Interrupt Source Override entry in the MADT which routed the SCI
properly but left PCI devices mapped to IRQ 22 or 19 w/o a routable
interrupt.

Tested by: sos

20 years agocorrect typos
Sam Leffler [Tue, 11 Nov 2003 18:16:54 +0000 (18:16 +0000)]
correct typos

Pointed out by: Mike Silbersack

20 years agoAdd an acpi_OverrideInterruptLevel() method that OSPM can use to override
John Baldwin [Tue, 11 Nov 2003 18:12:12 +0000 (18:12 +0000)]
Add an acpi_OverrideInterruptLevel() method that OSPM can use to override
the InterruptLevel used for the SCI.

20 years agoSet RB_SERIAL in boothowto if the firmware output-device is ttya or ttyb.
Jake Burkholder [Tue, 11 Nov 2003 18:01:44 +0000 (18:01 +0000)]
Set RB_SERIAL in boothowto if the firmware output-device is ttya or ttyb.
This ensures that uart gets a higher console priority than syscons when
a serial console is being used.  Testing against the "console" environment
variable doesn't make sense since we only have one loader console driver.

20 years agoRemove the m_defrag call from if_loop; testing with m_fragment
Mike Silbersack [Tue, 11 Nov 2003 17:58:36 +0000 (17:58 +0000)]
Remove the m_defrag call from if_loop; testing with m_fragment
has shown that the IPv6 stack can clearly handle fragmented
mbuf chains without a problem.

MFC after: 1 week

20 years agoo add locking
Sam Leffler [Tue, 11 Nov 2003 17:57:03 +0000 (17:57 +0000)]
o add locking
o mark isr MPSAFE

Supported by: FreeBSD Foundation

20 years agoo add missing inpcb locking in tcp_respond
Sam Leffler [Tue, 11 Nov 2003 17:54:47 +0000 (17:54 +0000)]
o add missing inpcb locking in tcp_respond
o replace spl's with lock assertions

Supported by: FreeBSD Foundation

20 years agoipsec_esp_auth is unused when IPSEC_ESP is not defined.
Hajimu UMEMOTO [Tue, 11 Nov 2003 17:25:45 +0000 (17:25 +0000)]
ipsec_esp_auth is unused when IPSEC_ESP is not defined.

Reported by: Andre Oppermann <oppermann@pipeline.ch>

20 years agoEnable HTT CPUs by default instead of halting them by default. Users
John Baldwin [Tue, 11 Nov 2003 17:16:15 +0000 (17:16 +0000)]
Enable HTT CPUs by default instead of halting them by default.  Users
should now only have HTT CPUs if they have explicitly asked for them
either by enabling HyperThreading in the BIOS or by using the
MPTABLE_FORCE_HTT kernel option.

20 years agoDisable probing of HTT CPUs by default for the MP Table case. HTT CPUs
John Baldwin [Tue, 11 Nov 2003 17:14:26 +0000 (17:14 +0000)]
Disable probing of HTT CPUs by default for the MP Table case.  HTT CPUs
should only be used if they are enabled in the BIOS.  Now that we support
enumerating CPUs using the ACPI MADT, any HTT machine using ACPI should
respect the BIOS setting.  For HTT machines with ACPI disabled in the
kernel, the MPTABLE_FORCE_HTT kernel option can be used to try to probe HTT
CPUs like have done in the past for the MP Table case.  This option should
only be enabled if HTT is enabled in the BIOS.

20 years agoAdd information about the EVFILT_NETDEV filter
Christian Brueffer [Tue, 11 Nov 2003 16:41:27 +0000 (16:41 +0000)]
Add information about the EVFILT_NETDEV filter

PR: docs/56872 (based on)
Submitted by: Suleiman Souhlal <refugee@vt.edu>
Reviewed by: hmp, jmg

20 years agoMFS: Change interface name from "nge" to "ngeth" to avoid conflict
Ruslan Ermilov [Tue, 11 Nov 2003 16:12:05 +0000 (16:12 +0000)]
MFS: Change interface name from "nge" to "ngeth" to avoid conflict
with nge(4).

20 years ago- Remove empty rogue SMP hardware section.
John Baldwin [Tue, 11 Nov 2003 15:52:31 +0000 (15:52 +0000)]
- Remove empty rogue SMP hardware section.
- Add some additional comments about 'device apic' to note that it can be
  used in both UP and SMP kernels but is required for SMP kernels.

20 years agoUse the same style of paragraph indention that the rest of NOTES uses in
John Baldwin [Tue, 11 Nov 2003 15:49:37 +0000 (15:49 +0000)]
Use the same style of paragraph indention that the rest of NOTES uses in
the SMP section.

20 years agoAxe rotted comment about MP Tables and PCI cards with built in bridges.
John Baldwin [Tue, 11 Nov 2003 15:47:44 +0000 (15:47 +0000)]
Axe rotted comment about MP Tables and PCI cards with built in bridges.
Now that we properly route PCI interrupts for the apic case, these cards
are no longer a problem.

20 years agoCentralise mode setting. Instead of doing it in all subdrivers, do
Søren Schmidt [Tue, 11 Nov 2003 14:55:36 +0000 (14:55 +0000)]
Centralise mode setting. Instead of doing it in all subdrivers, do
it in ata-all.c where it belongs.

Prime controller HW by always setting PIO mode first in attach.

20 years agoSort the device lists alphabetically to make it simpler to add new
Simon L. B. Nielsen [Tue, 11 Nov 2003 13:34:53 +0000 (13:34 +0000)]
Sort the device lists alphabetically to make it simpler to add new
devices to the lists in the appropriate places.  This also makes it
easier to find devices in the lists.

OK'ed by: ceri, silby

20 years agoUse a single style of multiple inclusion protection for Netgraph headers.
Ruslan Ermilov [Tue, 11 Nov 2003 12:30:37 +0000 (12:30 +0000)]
Use a single style of multiple inclusion protection for Netgraph headers.

Reviewed by: archie, harti, emax

20 years agoSave and restore the high FP registers in {g|s}_mcontext(). Note
Marcel Moolenaar [Tue, 11 Nov 2003 09:53:37 +0000 (09:53 +0000)]
Save and restore the high FP registers in {g|s}_mcontext(). Note
that we currently do not keep track of whether the thread has
actually used the high FP registers before. If not, we should
not save them in the context which automaticly means that we
also would not restore them from the context. For now, do it
unconditionally so that we can reach functional completeness.

20 years agoFix a nasty bug that got exposed when the sendsig() and sigreturn()
Marcel Moolenaar [Tue, 11 Nov 2003 09:25:19 +0000 (09:25 +0000)]
Fix a nasty bug that got exposed when the sendsig() and sigreturn()
functions switched to using {g|s}et_mcontext(). The problem is that
sigreturn(), being a syscall, can be given an async. context (i.e.
one corresponding to an interrupt or trap). When this happens, we
try to return to user mode via epc_syscall_return with a trapframe
that can only be used to return to user mode via exception_restore.

To fix this, we check the frame's flags immediately prior to
epc_syscall_return and branch to exception_restore for non-syscall
frames. Modify the assertion in set_mcontext() to check that if
there's a mismatch, it's because of sigreturn().

20 years agoBound the number of iterations a thread can perform inside
Joseph Koshy [Tue, 11 Nov 2003 09:09:26 +0000 (09:09 +0000)]
Bound the number of iterations a thread can perform inside
ktr_resize_pool(); this eliminates a potential livelock.

Return ENOSPC only if we encountered an out-of-memory condition when
trying to increase the pool size.

Reviewed by: jhb, bde (style)

20 years agoNote support for the Adaptec 2410SA in the aac.4 manpage.
Scott Long [Tue, 11 Nov 2003 08:40:43 +0000 (08:40 +0000)]
Note support for the Adaptec 2410SA in the aac.4 manpage.

20 years agoUpdate the dump code to flush buffers at the end of the dump
Søren Schmidt [Tue, 11 Nov 2003 07:49:45 +0000 (07:49 +0000)]
Update the dump code to flush buffers at the end of the dump
to avoid loosing evt cached data.

20 years agoRemove reference to sio (superseded by uart).
Jake Burkholder [Tue, 11 Nov 2003 07:49:13 +0000 (07:49 +0000)]
Remove reference to sio (superseded by uart).

20 years agoAdd entries for creator, splash, uart and puc, commented out until they're
Jake Burkholder [Tue, 11 Nov 2003 07:48:02 +0000 (07:48 +0000)]
Add entries for creator, splash, uart and puc, commented out until they're
made the default.  These are needed to run X.

20 years agoRemove references to atkbd, atkbdc, psm and vga.
Jake Burkholder [Tue, 11 Nov 2003 07:40:45 +0000 (07:40 +0000)]
Remove references to atkbd, atkbdc, psm and vga.

20 years agoFix a typo. Allow for the creator not being stdout.
Jake Burkholder [Tue, 11 Nov 2003 07:34:08 +0000 (07:34 +0000)]
Fix a typo.  Allow for the creator not being stdout.

20 years agoAdd a uart attachment/syscons keyboard driver for sun keyboards. In theory
Jake Burkholder [Tue, 11 Nov 2003 07:33:24 +0000 (07:33 +0000)]
Add a uart attachment/syscons keyboard driver for sun keyboards.  In theory
this will work with any uart backend, currently supported hardware uses
either ns8250 or z8530.

20 years agoFix a typo that caused mbrtowc() to always return 0.
Tim J. Robbins [Tue, 11 Nov 2003 07:25:05 +0000 (07:25 +0000)]
Fix a typo that caused mbrtowc() to always return 0.

20 years agoAllow uart to attach to keyboards that are not the firmware's notion of
Jake Burkholder [Tue, 11 Nov 2003 06:52:04 +0000 (06:52 +0000)]
Allow uart to attach to keyboards that are not the firmware's notion of
stdin, such as when using a serial console.  We must recognize these
devices here so that we can override the tty attach routine.

20 years agoAssume that unit 0 is the graphics console initialized by syscons, instead
Jake Burkholder [Tue, 11 Nov 2003 06:47:00 +0000 (06:47 +0000)]
Assume that unit 0 is the graphics console initialized by syscons, instead
of testing if the device's firmware node is stdout.  This allows syscons to
be used when the firmware's input and output is the serial console.

20 years agoFix a bug in the data access error recorvery. Before re-enabling the data
Jake Burkholder [Tue, 11 Nov 2003 06:41:54 +0000 (06:41 +0000)]
Fix a bug in the data access error recorvery.  Before re-enabling the data
cache after a data access error we must discard all cache lines.  When
disabled existing cache lines are not invalidated by stores to memory, so
we risk reading stale data that was cached before the data access error if
we don't flush them.  This is especially fatal when the memory involved
is the active part of the kernel or user stack.  For good measure we also
flush the instruction cache.

This fixes random crashes when the X server probes the PCI bus through
/dev/pci.

20 years agoInclude <sys/reboot.h> the definition of RB_BOOTINFO. The previous
Bruce Evans [Tue, 11 Nov 2003 06:27:34 +0000 (06:27 +0000)]
Include <sys/reboot.h> the definition of RB_BOOTINFO.  The previous
commit broke the world because it depended on namespace pollution that
was only in my version of <machine/bootinfo.h>.  The include was removed
in rev.1.63 after the last reference to it went away in rev.1.61.

20 years agoRearrange slightly so that DELAY(9) works during cninit.
Jake Burkholder [Tue, 11 Nov 2003 06:08:10 +0000 (06:08 +0000)]
Rearrange slightly so that DELAY(9) works during cninit.

20 years agoFix sound LOR problems:
Scott Long [Tue, 11 Nov 2003 05:38:28 +0000 (05:38 +0000)]
Fix sound LOR problems:

dsp_open: rearrange to only hold one lock at a time

dsp_close: ditto

mixer_hwvol_init: delete locking, the only consumer seems to
be the ess driver and it only call it a creation time, I
think the device will be stable across the sleepable malloc.

cmi interrupt routine: Release locks while caller chn_intr,
either this or do what emu10k1 does which is have no locks
at in the interrupt handler.

Submitted by: mat@cnd.mcgill.ca

20 years agoAdd a section documenting the sysctl(8) tunables that influence the
Joseph Koshy [Tue, 11 Nov 2003 04:59:25 +0000 (04:59 +0000)]
Add a section documenting the sysctl(8) tunables that influence the
operation of ktrace(2).  Add a cross-reference to sysctl(8).  Make the
language of rev 1.22 more consistent with the rest of the manual page.

20 years agoImprove the performance of radixsort() when
Tim Kientzle [Tue, 11 Nov 2003 04:59:23 +0000 (04:59 +0000)]
Improve the performance of radixsort() when
sorting strings with common prefixes by noting
when all the strings land in just one bin.

Testing shows significant speedups (on the order of
30%) on strings with common prefixes and no slowdowns on any
of my test cases.

Submitted by: Markus Bjartveit Kruger <markusk@pvv.ntnu.no>
PR: 58860
Approved by: gordon (mentor)

20 years agoHave utrace(2) return ENOMEM if malloc() fails. Document this error
Joseph Koshy [Tue, 11 Nov 2003 04:54:11 +0000 (04:54 +0000)]
Have utrace(2) return ENOMEM if malloc() fails.  Document this error
return in its manual page.

Reviewed by: jhb

20 years ago - Revision 1.469 of vfs_subr.c resulted in the buf's b_object field being
Alan Cox [Tue, 11 Nov 2003 04:45:37 +0000 (04:45 +0000)]
 - Revision 1.469 of vfs_subr.c resulted in the buf's b_object field being
   consistency initialized.  Consequently, a number of conditionals that
   checked the validity of b_object before passing it to VM_OBJECT_LOCK()
   and VM_OBJECT_UNLOCK() are no longer needed.

20 years agoWhitespace sync to MAC branch, expand comment at the head of the file.
Robert Watson [Tue, 11 Nov 2003 03:40:04 +0000 (03:40 +0000)]
Whitespace sync to MAC branch, expand comment at the head of the file.

20 years agoUse the new "default_labels" syntax in the default mac.conf file.
Robert Watson [Tue, 11 Nov 2003 03:30:29 +0000 (03:30 +0000)]
Use the new "default_labels" syntax in the default mac.conf file.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

20 years agoFix SYNOPSIS section in Bluetooth man pages
Maksim Yevmenkin [Tue, 11 Nov 2003 03:27:08 +0000 (03:27 +0000)]
Fix SYNOPSIS section in Bluetooth man pages

Reviewed by: imp, julian, ru
Approved by: ru

20 years agoFix few typos
Maksim Yevmenkin [Tue, 11 Nov 2003 02:43:10 +0000 (02:43 +0000)]
Fix few typos

Reviewed by: imp, julian, ru
Approved by: imp (mentor)

20 years agoStop using shared locks for nfs vop locks.
Alfred Perlstein [Tue, 11 Nov 2003 00:32:46 +0000 (00:32 +0000)]
Stop using shared locks for nfs vop locks.

The reason this was done was to avoid a race to the root when an
NFS server went down.  However a semi-recent change to the way that
the kernel's lookup() routine traverses mount points prevents this.

Rev 1.39 of vfs_lookup.c changed the ordering of locks such that we
aquire a shared lock on the mount point being accessed and then drop
the directory vnode lock before requesting the target lock.

With that in place we no longer need shared locks for NFS to prevent
race to the root lockups.

20 years agouse Giant-less callouts when debug_mpsafenet is non-zero
Sam Leffler [Mon, 10 Nov 2003 23:29:33 +0000 (23:29 +0000)]
use Giant-less callouts when debug_mpsafenet is non-zero

Supported by: FreeBSD Foundation

20 years agoreformat HP eng. mgr quote
Wilko Bulte [Mon, 10 Nov 2003 23:08:39 +0000 (23:08 +0000)]
reformat HP eng. mgr quote

Requested by: nate

20 years agoIn in_pcbconnect_setup(), don't use the cached inp->inp_route unless
Ian Dowse [Mon, 10 Nov 2003 22:45:37 +0000 (22:45 +0000)]
In in_pcbconnect_setup(), don't use the cached inp->inp_route unless
it is marked as RTF_UP. This appears to fix a crash that was sometimes
triggered when dhclient(8) tried to send a packet after an interface
had been detatched.

Reviewed by: sam

20 years agoManual page for Asynchronous Logging Queues (ALQ) facility.
Hiten Pandya [Mon, 10 Nov 2003 22:45:09 +0000 (22:45 +0000)]
Manual page for Asynchronous Logging Queues (ALQ) facility.

The manual page contains enough information to get someone started
with ALQ.

MLINKS have been added appropriately.

Approved by: jeff, des
Reviewed by: des, jeff, sam, brooks, rwatson, mtm