]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoCache queue pages are not mapped. Thus, the pmap_remove_all() by
Alan Cox [Wed, 12 May 2004 04:10:35 +0000 (04:10 +0000)]
Cache queue pages are not mapped.  Thus, the pmap_remove_all() by
vm_pageout_scan()'s loop for freeing cache queue pages is unnecessary.

20 years agomdoc police.
Dag-Erling Smørgrav [Tue, 11 May 2004 20:47:17 +0000 (20:47 +0000)]
mdoc police.

Submitted by: ru

20 years agoaic79xx.c:
Justin T. Gibbs [Tue, 11 May 2004 20:46:05 +0000 (20:46 +0000)]
aic79xx.c:
Allow 500us between pauses in ahd_pause_and_flushwork().
The maximum we will wait is now 500ms.

In the same routine, remove any attempt to clear ENSELO.
Let the firmware do it once the current selection has
completed.  This avoids some race conditions having to
do with non-packetized completions and the auto-clearing
of ENSELO on packetized completions.

Also avoid attempts to clear critical sections when
interrups are pending.  We are going to loop again
anyway, so clearing critical sections is a waste of
time.  It also may not be possible to clear a critical
section if the source of the interrupt was a SEQINT.

aic79xx_pci.c:
Use the Generic 9005 mask when looking for generic 7901B
parts.  This allows the driver to attach to 7901B parts
on motherboards using a non-Adaptec subvendor ID.

aic79xx_inline.h:
Test for the SCBRAM_RD_BUG against the bugs
field, not the flags field in the softc.

aic79xx.c:
Cancel pending transactions on devices that
respond with a selection timeout.  This decreases
the duration of timeout recovery when a device
disappears.

aic79xx.c:
Don't bother forcing renegotiation on a selection
timeout now that we use the device reset handler
to abort any pending commands on the target.
The device reset handler already takes us down
to async narrow and forces a renegotiation.

In the device reset handlers, only send a
BDR sent async event if the status is not
CAM_SEL_TIMEOUT.  This avoids sending this
event in the selection timeout case

aic79xx.c:
Modify the Core timeout handler to verify that another
command has the potential to timeout before passing off
a command timeout as due to some other command.  This
safety measure is added in response to a timeout recovery
failure on H2B where it appears that incoming reselection
status was lost during a drive pull test.  In that case,
the recovery handler continued to wait for the command
that was active on the bus indefinetly.  While the root
cause of the above issue is still being determined seems
a prudent safeguard.

aic79xx_pci.c:
Add a specific probe entry for the Dell OEM 39320(B).

aic79xx.c:
aic79xx.h:
aic79xx.reg:
aic79xx.seq:
Modify the aic79xx firmware to never cross a cacheline or
ADB boundary when DMA'ing completion entries to the host.
In PCI mode, at least in 32/33 configurations, the SCB
DMA engine may lose its place in the data-stream should
the target force a retry on something other than an
8byte aligned boundary. In PCI-X mode, we do this to
avoid split transactions since many chipsets seem to be
unable to format proper split completions to continue
the data transfer.

The above change allows us to drop our completion entries
from 8 bytes to 4.  We were using 8 byte entries to ensure
that PCI retries could only occur on an 8byte aligned
boundary.  Now that the sequencer guarantees this by splitting
up completions, we can safely drop the size to 4 bytes (2
byte tag, one byte SG_RESID, one byte pad).

Both the split-completion and PCI retry problems only show
up under high tag load when interrupt coalescing is being
especially effective.  The switch from a 2byte completion
entry to an 8 byte entry to solve the PCI problem increased
the chance of incurring a split in PCI-X mode when multiple
transactions were completed at once.  Dropping the completion
size to 4 bytes also means that we can complete more commands
in a single DMA (128byte FIFO -> 32 commands instead of 16).

aic79xx.c:
Modify the SCSIINT handler to defer clearing
sequencer critical sections to the individual
interrupt handlers.  This allows us to
immediately disable any outgoing selections in
the case of an unexpected busfree so we don't
inadvertantly clear ENSELO *after* a new selection
has started.  Doing so may cause the sequencer
to miss a successful selection.

In ahd_update_pending_scbs(), only clear ENSELO if
the bus is currently busy and a selection is not
already in progress or the sequencer has yet to
handle a pending selection.  While we want to ensure
that the selection for the SCB at the head of the
selection queue is restarted so that any change in
negotiation request can take effect, we can't clobber
pending selection state without confusing the sequencer
into missing a selection.

20 years agoo When restarting the sequencer, clear any pending
Justin T. Gibbs [Tue, 11 May 2004 20:39:46 +0000 (20:39 +0000)]
o When restarting the sequencer, clear any pending
  sequencer interrupt codes.  These codes are only
  relevant to the code that was last being executed
  and that context is cleared when we reset the
  program counter.  This addresses a race condition
  between a sequencer interrupt and any SCSI event
  that causes us to restart the sequencer.

o When running the untagged-Q, we must start the
  timer for any transaction we queue.

o Give the firmware half a millisecond between
  pauses to flush work out.  This should give us
  around half a second of total delay before flagging
  an issue with pausing and flushing controller work.

  Only attempt to clear critical sections if there
  are no pending interrupts in the pause and flush
  loop.  If the sequencer has issued an INTSTAT, we
  may not be able to step out of the critical section.

o Cancel pending transactions on devices that
  respond with a selection timeout.  This decreases
  the duration of timeout recovery when a device
  disappears.

  Don't bother forcing renegotiation on a selection
  timeout now that we use the device reset handler
  to abort any pending commands on the target.
  The device reset handler already takes us down
  to async narrow and forces a renegotiation.

o In the device reset handlers, only send a
  BDR sent async event if the status is not
  CAM_SEL_TIMEOUT.  This avoids sending this
  event in the selection timeout case.

o Modify the Core timeout handler to verify that another
  command has the potential to timeout before passing off
  a command timeout as due to some other command.

20 years agoAdd aic_scb_timer_start() which will be used in the aic7xxx driver to
Justin T. Gibbs [Tue, 11 May 2004 20:33:42 +0000 (20:33 +0000)]
Add aic_scb_timer_start() which will be used in the aic7xxx driver to
start the timer on SCBs queued in the untagged SCB queue.

The core treats timeouts in usecs to satisfy Linux requirements.  Multiply
accordingly.

20 years ago- Move some macros from icu.h into atpic.c as that is the only place they
John Baldwin [Tue, 11 May 2004 20:23:24 +0000 (20:23 +0000)]
- Move some macros from icu.h into atpic.c as that is the only place they
  are used.
- Reduce duplication of a couple of macros removing the duplicates from
  ich.h.
- Remove unused macros from icu.h as well as locore protection as this
  header is no longer included in assembly sources.

20 years agoTrim unused includes.
John Baldwin [Tue, 11 May 2004 20:14:53 +0000 (20:14 +0000)]
Trim unused includes.

20 years ago- Remove a spurious blank line.
John Baldwin [Tue, 11 May 2004 20:06:55 +0000 (20:06 +0000)]
- Remove a spurious blank line.
- Add a missing static keyword.

20 years agoFixup a few bogons in a comment.
John Baldwin [Tue, 11 May 2004 20:06:32 +0000 (20:06 +0000)]
Fixup a few bogons in a comment.

20 years agoRemove unused WL_IRQS macro.
John Baldwin [Tue, 11 May 2004 20:06:12 +0000 (20:06 +0000)]
Remove unused WL_IRQS macro.

20 years agoo Calculate a number of bytes to copy (cnt) correctly:
Maxim Konovalov [Tue, 11 May 2004 19:14:44 +0000 (19:14 +0000)]
o Calculate a number of bytes to copy (cnt) correctly:

  +----+-+-+-+-+----+----+- - - - - - - - - - - -  -+----+
  |    | |C| | |    |    |                          |    |
  | IP |N|O|L|P|    | IP |                          | IP |
  | #1 |O|D|E|T|    | #2 |                          | #n |
  |    |P|E|N|R|    |    |                          |    |
  +----+-+-+-+-+----+----+- - - - - - - - - - - -  -+----+
               ^    ^<---- cnt - (IPOPT_MINOFF - 1) ---->|
               |    |
src            |    +-- cp[IPOPT_OFF + 1] + sizeof(struct in_addr)
               |
dst            +-- cp[IPOPT_OFF + 1]

PR: kern/66386
Submitted by: Andrei Iltchenko
MFC after: 3 weeks

20 years agoMan page for the ichwd driver.
Dag-Erling Smørgrav [Tue, 11 May 2004 18:36:38 +0000 (18:36 +0000)]
Man page for the ichwd driver.

20 years agoAdd a driver for the watchdog timer function present on the LPC interface
Dag-Erling Smørgrav [Tue, 11 May 2004 18:21:38 +0000 (18:21 +0000)]
Add a driver for the watchdog timer function present on the LPC interface
bridge in Intel ICH-series chipsets.

The original implementation was by W. Daryl Hawkins of Texas A&M, but I
have made substantial modifications.

20 years agomdoc(7): EXAMPLES is the standard section name.
Ruslan Ermilov [Tue, 11 May 2004 18:18:31 +0000 (18:18 +0000)]
mdoc(7): EXAMPLES is the standard section name.

20 years agoI *knew* it would be a bad idea to touch the fortunes. *sigh*
Tony Finch [Tue, 11 May 2004 17:43:36 +0000 (17:43 +0000)]
I *knew* it would be a bad idea to touch the fortunes. *sigh*

Submitted by: Kevin Oberman <oberman@es.net>
Pointy hat to: me, again

20 years agoPedantry.
Tony Finch [Tue, 11 May 2004 17:26:16 +0000 (17:26 +0000)]
Pedantry.

Submitted by: njl@

20 years agoDocument the fact that in a jailed environment, sendto(2) could fail
Christian S.J. Peron [Tue, 11 May 2004 16:28:07 +0000 (16:28 +0000)]
Document the fact that in a jailed environment, sendto(2) could fail
returning EPERM if the source address specified in the IP header did
not match the address bound to the prison.

Approved by: bmilekic (mentor)

20 years agoFix a few glitches in my previous commit.
Olivier Houchard [Tue, 11 May 2004 15:42:44 +0000 (15:42 +0000)]
Fix a few glitches in my previous commit.
This makes config(8) WARNS?=6 compliant.

20 years agoAdd a comma after `e.g.', so that mdoc does not add two whitespaces
Hiten Pandya [Tue, 11 May 2004 14:13:52 +0000 (14:13 +0000)]
Add a comma after `e.g.', so that mdoc does not add two whitespaces
automatically.

Noticed by:  Ruslan Ermilov <ru at FreeBSD.org>

20 years agoIn the absence of proper validation, at least check that null bytes
Tim J. Robbins [Tue, 11 May 2004 14:08:22 +0000 (14:08 +0000)]
In the absence of proper validation, at least check that null bytes
do not appear as anything but the first byte of a multibyte character.

20 years agoDont try to finish devstat's if the disk pointer is NULL, this can happen
Søren Schmidt [Tue, 11 May 2004 13:17:40 +0000 (13:17 +0000)]
Dont try to finish devstat's if the disk pointer is NULL, this can happen
when a disk has been destroyed but still has outstanding bio's.

Reviewed by: phk

20 years agoTest accumulation of partial multibyte characters in conversion
Tim J. Robbins [Tue, 11 May 2004 13:10:47 +0000 (13:10 +0000)]
Test accumulation of partial multibyte characters in conversion
state objects.

20 years agoAdd Greek character encoding suport.
Diomidis Spinellis [Tue, 11 May 2004 11:11:14 +0000 (11:11 +0000)]
Add Greek character encoding suport.

MFC after: 2 weeks

20 years agoFix and clarify unparsable sentence.
Diomidis Spinellis [Tue, 11 May 2004 11:10:09 +0000 (11:10 +0000)]
Fix and clarify unparsable sentence.

MFC after: 2 weeks

20 years agoBring the description for login_getclassbyname in sync with the function's
Diomidis Spinellis [Tue, 11 May 2004 11:05:26 +0000 (11:05 +0000)]
Bring the description for login_getclassbyname in sync with the function's
arguments.  The function has as a second argument a struct passwd * pointer,
not a directory name.

MFC after: 2 weeks

20 years agoEliminate a memory leak in kern_symlink() that could occur if
Tim J. Robbins [Tue, 11 May 2004 10:42:02 +0000 (10:42 +0000)]
Eliminate a memory leak in kern_symlink() that could occur if
vn_start_write() failed.

20 years agoTo handle orphaned character device vnodes properly in mmap(), check that
Tim J. Robbins [Tue, 11 May 2004 10:26:37 +0000 (10:26 +0000)]
To handle orphaned character device vnodes properly in mmap(), check that
v_mount is non-null before dereferencing it. If it's null, behave as if
MNT_NOEXEC was not set on the mount that originally containined it.

20 years agoOops, I didn't mean to commit that one. It's dreadful, and nothing
Tony Finch [Tue, 11 May 2004 10:03:03 +0000 (10:03 +0000)]
Oops, I didn't mean to commit that one. It's dreadful, and nothing
to do with Simon.

Pointy hat to: fanf@

20 years agoOn the signs of network congestion.
Tony Finch [Tue, 11 May 2004 10:00:14 +0000 (10:00 +0000)]
On the signs of network congestion.

Submitted by: Simon Tatham <anakin@pobox.com>

20 years agoDocument the 'fdidx' argument of VOP_OPEN(9).
Hiten Pandya [Mon, 10 May 2004 23:17:09 +0000 (23:17 +0000)]
Document the 'fdidx' argument of VOP_OPEN(9).

PR:           56911
Noticed by:  Jun Su <junsu@m-net.arbornet.org>

20 years agoRe-sort
Tony Finch [Mon, 10 May 2004 23:02:07 +0000 (23:02 +0000)]
Re-sort

20 years agoRemove duplicated explanations and text.
Hiten Pandya [Mon, 10 May 2004 23:02:00 +0000 (23:02 +0000)]
Remove duplicated explanations and text.

PR:           24869
Submitted by:  Staffan Ulfberg <staffanu@nada.kth.se>

20 years agoMoore's law vs. Nethack
Tony Finch [Mon, 10 May 2004 23:00:26 +0000 (23:00 +0000)]
Moore's law vs. Nethack

Submitted by:   Simon Tatham <anakin@pobox.com>

20 years agoUse strlcpy(3) instead of strcpy(3).
Hiten Pandya [Mon, 10 May 2004 22:33:12 +0000 (22:33 +0000)]
Use strlcpy(3) instead of strcpy(3).

PR:           46761

Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>

20 years agoMinor style issues.
Dag-Erling Smørgrav [Mon, 10 May 2004 21:18:03 +0000 (21:18 +0000)]
Minor style issues.

20 years agoFix typos.
Simon L. B. Nielsen [Mon, 10 May 2004 20:39:32 +0000 (20:39 +0000)]
Fix typos.

PR: docs/66481
Submitted by: Michel Lavondès <fox@vader.aacc.cc.md.us>

20 years agoFix Sii3114 support.
Søren Schmidt [Mon, 10 May 2004 20:23:25 +0000 (20:23 +0000)]
Fix Sii3114 support.

20 years ago- Remove duplicate words.
Simon L. B. Nielsen [Mon, 10 May 2004 20:12:02 +0000 (20:12 +0000)]
- Remove duplicate words.
- Fix a spelling nit.

PR: docs/66482
Submitted by: Michel Lavondès <fox@vader.aacc.cc.md.us>

20 years agoRework the APIC mixed mode support a bit:
John Baldwin [Mon, 10 May 2004 18:49:58 +0000 (18:49 +0000)]
Rework the APIC mixed mode support a bit:
- Require the APIC enumerators to explicitly enable mixed mode by calling
  ioapic_enable_mixed_mode().  Calling this function tells the apic driver
  that the PC-AT 8259A PICs are present and routable through the first I/O
  APIC via an ExtINT pin.  The mptable enumerator always calls this
  function for now.  The MADT enumerator only enables mixed mode if the
  PC-AT compatability flag is set in the MADT header.
- Allow mixed mode to be enabled or disabled via a 'hw.apic.mixed_mode'
  tunable.  By default this tunable is set to 1 (true).  The kernel option
  NO_MIXED_MODE changes the default to 0 to preserve existing behavior, but
  adding 'hw.apic.mixed_mode=0' to loader.conf achieves the same effect.
- Only use mixed mode to route IRQ 0 if it is both enabled by the APIC
  enumerator and activated by the loader tunable.  Note that both
  conditions must be true, so if the APIC enumerator does not enable mixed
  mode, then you can't set the tunable to try to override the enumerator.

20 years agoImprove consistency of include file guards in src/sys/sys by terminating
Robert Watson [Mon, 10 May 2004 18:38:07 +0000 (18:38 +0000)]
Improve consistency of include file guards in src/sys/sys by terminating
them with '_', as well as beginning with '_'.

Observed by: bde

20 years ago- Simplify the sizeof expression in the CTASSERT() for NUM_ISA_IRQS.
John Baldwin [Mon, 10 May 2004 18:33:52 +0000 (18:33 +0000)]
- Simplify the sizeof expression in the CTASSERT() for NUM_ISA_IRQS.
- Fixup grammar in a comment.

Submitted by: bde (1)

20 years ago- Change madt_map_table() to verify the checksum of any table it is asked
John Baldwin [Mon, 10 May 2004 18:33:08 +0000 (18:33 +0000)]
- Change madt_map_table() to verify the checksum of any table it is asked
  to map.  If the checksum fails, the table is unmapped and a NULL pointer
  returned.
- For ACPI version >= 2.0, check the extended checksum of the RSDP.
  AcpiOsGetRootPointer() already checks the version 1.0 checksum.
- Remap the full MADT table at the end of madt_probe() so that we verify
  its checksum before saying it is really there.

Requested by: njl

20 years agoIf an ACPI PCI-PCI bridge doesn't have a _PRT object, fall back to using
John Baldwin [Mon, 10 May 2004 18:26:22 +0000 (18:26 +0000)]
If an ACPI PCI-PCI bridge doesn't have a _PRT object, fall back to using
the swizzle method for routing PCI interrupts across the bridge.  This
fixes problems with motherboards (typically laptops) whose BIOS doesn't
provide a PRT for the AGP bridge even though there is a device entry for
the bridge in the ACPI namespace.

Tested by: Kenneth Culver culverk at sweetdreamsracing dot biz

20 years agoUse pcbp->pcb_ufp for UltraSparc vs. ->pcb_fp.
David E. O'Brien [Mon, 10 May 2004 17:45:51 +0000 (17:45 +0000)]
Use pcbp->pcb_ufp for UltraSparc vs. ->pcb_fp.

20 years agoRemove a trailing newline, to behave as documented in syslog(3):
Diomidis Spinellis [Mon, 10 May 2004 17:12:52 +0000 (17:12 +0000)]
Remove a trailing newline, to behave as documented in syslog(3):
"A trailing newline is added if none is present."

The code in syslogd, stderr, and console output always adds a newline
at the EOL.  However, the existing code never actually removed a
trailing newline, and apparently relied on syslogd to convert it
into a space character.  Thus, the existing newline was converted
to a trailing space at the EOL by syslogd, while stderr, and console
output resulted in an empty line.

MFC after: 2 weeks

20 years agoDo not attempt ro read more than sizeof(buf) from stdin.
Olivier Houchard [Mon, 10 May 2004 15:52:16 +0000 (15:52 +0000)]
Do not attempt ro read more than sizeof(buf) from stdin.

20 years agoZero the un-used portions of the struct sockaddr data before sending
Christian S.J. Peron [Mon, 10 May 2004 15:07:23 +0000 (15:07 +0000)]
Zero the un-used portions of the struct sockaddr data before sending
it back to userspace, so it does not break bind(2) on raw sockets in jails.

Currently some processes, like traceroute(8) construct a routing request
to determine its source address based on the destination. This sockaddr
data is fed directly to bind(2). When bind calls ifa_ifwithaddr(9) to
make sure the address exists on the interface, the comparison will
fail causing bind(2) to return EADDRNOTAVAIL if the data wasnt zero'ed
before initialization.

Approved by: bmilekic (mentor)

20 years agoWe don't support USB devices in PAE mode, so catch up with GENERIC rev 1.402.
David E. O'Brien [Mon, 10 May 2004 14:23:36 +0000 (14:23 +0000)]
We don't support USB devices in PAE mode, so catch up with GENERIC rev 1.402.

20 years agoFixed mispelling of SCRIPTS as SCRIPT.
Bruce Evans [Mon, 10 May 2004 13:17:08 +0000 (13:17 +0000)]
Fixed mispelling of SCRIPTS as SCRIPT.

20 years ago-W{missing,strict}-prototypes do not make sense for C++, and gcc34 will
Dag-Erling Smørgrav [Mon, 10 May 2004 12:14:18 +0000 (12:14 +0000)]
-W{missing,strict}-prototypes do not make sense for C++, and gcc34 will
complain about them, so remove them from CXXFLAGS.

20 years ago- Remove the __FBSDID and put the $FreeBSD$ tag in the comment above,
Maxime Henrion [Mon, 10 May 2004 11:50:21 +0000 (11:50 +0000)]
- Remove the __FBSDID and put the $FreeBSD$ tag in the comment above,
  so that including this file more than once works.
- Fix some style bugs while I'm here.

20 years agoPrefer explicit ints to implicit ints in the prototype as well as in
Maxime Henrion [Mon, 10 May 2004 11:17:20 +0000 (11:17 +0000)]
Prefer explicit ints to implicit ints in the prototype as well as in
the function definition.

20 years ago- Fix a typo in a printf(). [1]
Maxime Henrion [Mon, 10 May 2004 11:07:21 +0000 (11:07 +0000)]
- Fix a typo in a printf(). [1]
- Fix some other style bugs while I'm here.

Submitted by: Koop Mast <kwm@rainbow-runner.nl> [1]
Fixes PR: sparc64/66448 [1]

20 years agoAdd myself as maintainer for geom_concat and geom_gate.
Pawel Jakub Dawidek [Mon, 10 May 2004 10:07:25 +0000 (10:07 +0000)]
Add myself as maintainer for geom_concat and geom_gate.

20 years agoFixed style bugs in previous commit (bogus forward declaration and
Bruce Evans [Mon, 10 May 2004 09:36:26 +0000 (09:36 +0000)]
Fixed style bugs in previous commit (bogus forward declaration and
inconsistent capitalization in comments).

20 years agoResync
Maksim Yevmenkin [Mon, 10 May 2004 02:26:49 +0000 (02:26 +0000)]
Resync

20 years agoMode few Bluetooth defines into system include files
Maksim Yevmenkin [Mon, 10 May 2004 02:24:56 +0000 (02:24 +0000)]
Mode few Bluetooth defines into system include files

Reviewed by: imp

20 years agoNew errata: SA-04:07.cvs, SA-04:08.heimdal.
Bruce A. Mah [Sun, 9 May 2004 23:07:08 +0000 (23:07 +0000)]
New errata:  SA-04:07.cvs, SA-04:08.heimdal.

20 years agoBack out part of previous commit. SA-04:09 isn't applicable to HEAD.
Bruce A. Mah [Sun, 9 May 2004 23:04:47 +0000 (23:04 +0000)]
Back out part of previous commit.  SA-04:09 isn't applicable to HEAD.

Didn't read the advisory closely enough by: bmah

20 years agoChange required config(8) version.
Olivier Houchard [Sun, 9 May 2004 22:29:38 +0000 (22:29 +0000)]
Change required config(8) version.

20 years agoRemove misplaced duplicate comment and slightly reformat the
Julian Elischer [Sun, 9 May 2004 22:29:14 +0000 (22:29 +0000)]
Remove misplaced duplicate comment and slightly reformat the
version that was in the right place.

20 years agoAdd a new "files" directive, which allows to include a files.foo file directly
Olivier Houchard [Sun, 9 May 2004 22:29:00 +0000 (22:29 +0000)]
Add a new "files" directive, which allows to include a files.foo file directly
from a kernel config file.
Bump config version to reflect this change.

20 years agoNew release notes: SA-04:08, SA-04:09.
Bruce A. Mah [Sun, 9 May 2004 22:23:30 +0000 (22:23 +0000)]
New release notes:  SA-04:08, SA-04:09.

20 years agoTrim the fxp(4) hardware notes.
Simon L. B. Nielsen [Sun, 9 May 2004 21:27:15 +0000 (21:27 +0000)]
Trim the fxp(4) hardware notes.

20 years ago- Sync with Hardware Notes.
Simon L. B. Nielsen [Sun, 9 May 2004 21:25:49 +0000 (21:25 +0000)]
- Sync with Hardware Notes.
- Spell adapter names more like Intel do.
- Make the page title reflect reality a bit better.
- Spell Fast Ethernet correctly.

20 years agoCorrect the implementation of pmap_page_is_mapped(): It should return TRUE
Alan Cox [Sun, 9 May 2004 19:09:14 +0000 (19:09 +0000)]
Correct the implementation of pmap_page_is_mapped(): It should return TRUE
only if the page has one or more managed mappings.

20 years agoDon't confuse "GEOM" with "geom".
Pawel Jakub Dawidek [Sun, 9 May 2004 16:16:10 +0000 (16:16 +0000)]
Don't confuse "GEOM" with "geom".

Approved by: phk

20 years agoUse a binary search to find the range containing a character in
Tim J. Robbins [Sun, 9 May 2004 13:04:49 +0000 (13:04 +0000)]
Use a binary search to find the range containing a character in
RuneRange arrays. This is much faster when there are hundreds of
ranges (as is the case in UTF-8 locales) and was inspired by a
similar change made by Apple in Darwin.

20 years agoo fix a sentence to match with the synopsis [1]
Christian Brueffer [Sun, 9 May 2004 11:11:21 +0000 (11:11 +0000)]
o fix a sentence to match with the synopsis [1]
o fix grammar nit

PR: 66289 [1]
Submitted by: Michel Lavondès <fox@vader.aacc.cc.md.us>
Obtained from: OpenBSD [1]
MFC after: 3 days

20 years agoThis file has never been used, nor will it ever be used in FreeBSD, so
Warner Losh [Sun, 9 May 2004 07:09:30 +0000 (07:09 +0000)]
This file has never been used, nor will it ever be used in FreeBSD, so
remove it.

20 years agoset m_len to reflect mbuf contents on return from m_dup1; fixes an obscure
Sam Leffler [Sun, 9 May 2004 05:57:58 +0000 (05:57 +0000)]
set m_len to reflect mbuf contents on return from m_dup1; fixes an obscure
m_pullup case that contributed to breaking ipcomp in tunnel mode for kame

Submitted by: itojun
Obtained from: kame

20 years agoThis commit was generated by cvs2svn to compensate for changes in r129059,
Marcel Moolenaar [Sun, 9 May 2004 03:06:25 +0000 (03:06 +0000)]
This commit was generated by cvs2svn to compensate for changes in r129059,
which included commits to RCS files with non-trunk default branches.

20 years agoUpdate to BETA 7. Besides C++ support, which is irrelevant to us,
Marcel Moolenaar [Sun, 9 May 2004 03:06:25 +0000 (03:06 +0000)]
Update to BETA 7. Besides C++ support, which is irrelevant to us,
this version mostly has bugs fixes.

20 years agoRemove redundant sanity check before add_mac() when adding
Christian S.J. Peron [Sun, 9 May 2004 01:53:31 +0000 (01:53 +0000)]
Remove redundant sanity check before add_mac() when adding
mac ipfw rules. The exact same sanity check is performed as
the first operation of add_mac(), so there is no sense
in doing it twice.

Approved by: bmilekic (mentor)
PR: bin/55981

20 years agoCache queue pages are not mapped. Thus, the pmap_remove_all() by
Alan Cox [Sun, 9 May 2004 01:00:15 +0000 (01:00 +0000)]
Cache queue pages are not mapped.  Thus, the pmap_remove_all() by
vm_page_alloc() is unnecessary.

20 years agoAdd 4.10 and 5.2.1 entries so that pkg_add -r fetches from the right
Bruce A. Mah [Sat, 8 May 2004 23:45:31 +0000 (23:45 +0000)]
Add 4.10 and 5.2.1 entries so that pkg_add -r fetches from the right
package sets.

PR: 66251
Submitted by: eik

20 years agoSince revision 1.280 of vm/vm_page.c, vm_page_grab() always returns a
Alan Cox [Sat, 8 May 2004 23:26:11 +0000 (23:26 +0000)]
Since revision 1.280 of vm/vm_page.c, vm_page_grab() always returns a
zeroed page when passed VM_ALLOC_ZERO.  Thus, we can eliminate the check
against PG_ZERO from pmap_pinit().

20 years agoThe FTS_NOSTAT option is an optimisation that reduces the number
Peter Edwards [Sat, 8 May 2004 15:09:02 +0000 (15:09 +0000)]
The FTS_NOSTAT option is an optimisation that reduces the number
of stat(2) calls by keeping an eye of the number of links a directory
has. It assumes that each subdirectory will have a hard link to its
parent, to represent the ".." node, and stops calling stat(2) when
all links are accounted for in a given directory.

This assumption is really only valid for UNIX-like filesystems: A
concrete example is NTFS. The NTFS "i-node" does contain a link
count, but most/all directories have a link count between 0 and 2
inclusive. The end result is that find on an NTFS volume won't
actually traverse the entire hierarchy of the directories passed
to it. (Those with a link count of two are not traversed at all)

The fix checks the "UFSness" of the filesystem before enabling the
optimisation.

Reviewed By: Tim Kientzle (kientzle@)

20 years ago- Remove the old sparc64 OFW PCI code (as opposed to the former
Marius Strobl [Sat, 8 May 2004 13:53:47 +0000 (13:53 +0000)]
- Remove the old sparc64 OFW PCI code (as opposed to the former
  "options OFW_NEWPCI").
  This is a bit overdue, the new sparc64 OFW PCI code which is
  meant to replace the old one is in place for 10 months and
  enabled by default in GENERIC for 8 months. FreeBSD 5.2 and
  5.2.1 also shipped with the new code enabled by default.
- Some minor clean-up, e.g. remove functions that encapsulated
  the #ifdefs for OFW_NEWPCI, remove unused resp. no longer
  required includes, etc.

Approved by: tmm, no objections on freebsd-sparc64

20 years agoFix rtprio() to do sensible things when called from threaded processes.
Julian Elischer [Sat, 8 May 2004 08:56:05 +0000 (08:56 +0000)]
Fix rtprio() to do sensible things when called from threaded processes.
It's not quite correct from a posix Point Of view, but it is a lot better
than what was there before. This will be revisited later
when we decide what form our priority extensions will take. Posix doesn't
specify  how a system scope thread can change its priority so you need to
add non-standard extensions to be able to do it..
For now make this slightly non standard to allow it to be done.

Submitted by: Dan Eischen originally, changed by myself.

20 years agoAvoid pointless zeroing of the bogus page in vfs_bio_clrbuf().
Alan Cox [Sat, 8 May 2004 06:46:40 +0000 (06:46 +0000)]
Avoid pointless zeroing of the bogus page in vfs_bio_clrbuf().

Suggested by: tegge@ (from October of last year)

20 years agoWe don't need the dependency on the pccard module here.
Warner Losh [Sat, 8 May 2004 06:06:13 +0000 (06:06 +0000)]
We don't need the dependency on the pccard module here.

20 years agoIt turns out that the module dependency on pccard is in error. Since
Warner Losh [Sat, 8 May 2004 06:04:06 +0000 (06:04 +0000)]
It turns out that the module dependency on pccard is in error.  Since
there's not dependencies on pccard symboles, such a dependency is not
necessary.  This means that drivers that have multiple attachments can
not drag bogus devices into the kernel at load time.

We can't (yet) do this with pci and isa.  Drivers written for them
actually do seem to have symbols that depend on these busses'
implementation code.

ndis not touched until other things can be tested.

20 years agoAdd support CS4294
MIHIRA Sanpei Yoshiro [Sat, 8 May 2004 03:41:40 +0000 (03:41 +0000)]
Add support CS4294

PR: kern/66280
Submitted by: Christian Brueffer <chris@unixpages.org>

20 years agoUnconditionally lock Giant in do_sendfile(), rather than locking it
Robert Watson [Sat, 8 May 2004 02:24:21 +0000 (02:24 +0000)]
Unconditionally lock Giant in do_sendfile(), rather than locking it
conditional on debug.mpsafenet.  We can try pushing down Giant here
later, but we don't want to enter VFS without holding Giant.

Bumped into by: kris

20 years agoIt was pointed out[0] that ctags(1) uses some potentially dangerous
Crist J. Clark [Fri, 7 May 2004 19:44:40 +0000 (19:44 +0000)]
It was pointed out[0] that ctags(1) uses some potentially dangerous
system(3) calls where user-supplied data is used with no sanity
checking. Since ctags(1) is not setuid and is not likely to be used
in a privileged situation, this is not a big deal. However, the
fix is relatively easy and less ugly than the current code, let's be
safe. (I'm sure there are about 2^134 other system(3) calls like this
out there.)

[0] On freebsd-security by Roman Bogorodskiy <bogorodskiy@inbox.ru>
with subject "ctags(1) command execution vulnerability."

MFC after: 3 days

20 years agoMinor fixes for ia64 installs:
John Baldwin [Fri, 7 May 2004 19:15:56 +0000 (19:15 +0000)]
Minor fixes for ia64 installs:
- Don't look for partitions inside a FreeBSD chunk on ia64 when mounting
  the filesystems just before the chroot and install.
- Write entries out to /etc/fstab for filesystems that aren't inside a
  FreeBSD chunk, but are a top-level chunk under the disk.

20 years agoAdd an implementation of copysignl(), a long double version of copysign().
Stefan Farfeleder [Fri, 7 May 2004 18:56:31 +0000 (18:56 +0000)]
Add an implementation of copysignl(), a long double version of copysign().

Approved by: das (mentor)

20 years agoAdd an MLINK for fabsl().
Stefan Farfeleder [Fri, 7 May 2004 17:55:07 +0000 (17:55 +0000)]
Add an MLINK for fabsl().

Approved by: das (mentor)

20 years agoAdd manual page for Cronyx Tau-PCI adapters.
Roman Kurakin [Fri, 7 May 2004 16:28:30 +0000 (16:28 +0000)]
Add manual page for Cronyx Tau-PCI adapters.
It is PCI family, but we never test it on other than i386 arch.

20 years agoDefine KINFO_PROC_SIZE for arm.
Olivier Houchard [Fri, 7 May 2004 15:37:56 +0000 (15:37 +0000)]
Define KINFO_PROC_SIZE for arm.

20 years agoCompare t_brkc against (char)_POSIX_VDISABLE, not against -1.
Olivier Houchard [Fri, 7 May 2004 15:35:38 +0000 (15:35 +0000)]
Compare t_brkc against (char)_POSIX_VDISABLE, not against -1.

Discussed with: bde

20 years agoTeach route(8) how to deal with root being in a prison. If prison
Christian S.J. Peron [Fri, 7 May 2004 15:33:17 +0000 (15:33 +0000)]
Teach route(8) how to deal with root being in a prison.  If prison
root is allowed to create raw sockets, then they will be able to create
routing sockets, too.  However prison-root is not able to manipulate
routing tables.  So when route(8) attempts to write to a routing
socket and recieves EPERM from the kernel, exit rather than moving
on with execution.

Approved by:    bmilekic (mentor)

20 years agoo fix a typo
Christian Brueffer [Fri, 7 May 2004 13:00:01 +0000 (13:00 +0000)]
o fix a typo
o remove stray word
o add missing words

PR: 66293
Submitted by: Michel Lavondès <fox@vader.aacc.cc.md.us>
MFC after: 3 days

20 years agoUse better way of closing fr support before current sppp get it.
Roman Kurakin [Fri, 7 May 2004 11:59:54 +0000 (11:59 +0000)]
Use better way of closing fr support before current sppp get it.

20 years agoSync with RELENG_4
Roman Kurakin [Fri, 7 May 2004 11:56:07 +0000 (11:56 +0000)]
Sync with RELENG_4

20 years agoUse better way of closing fr support before current sppp doesn't have it.
Roman Kurakin [Fri, 7 May 2004 11:45:25 +0000 (11:45 +0000)]
Use better way of closing fr support before current sppp doesn't have it.

20 years agoIn r1.190, vslock() and vsunlock() were bogusly made to do a "user wire"
Brian Feldman [Fri, 7 May 2004 11:43:24 +0000 (11:43 +0000)]
In r1.190, vslock() and vsunlock() were bogusly made to do a "user wire"
and a "system unwire."  Make this a "system wire" and "system unwire."

Reviewed by: alc

20 years agoSync with RELENG_4.
Roman Kurakin [Fri, 7 May 2004 11:11:13 +0000 (11:11 +0000)]
Sync with RELENG_4.

20 years agoDelete unused cx_slow_ih.
Roman Kurakin [Fri, 7 May 2004 11:06:25 +0000 (11:06 +0000)]
Delete unused cx_slow_ih.

Pointed by: jhb