]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoAdd a short regression test to try to exercise races in the non-atomic
rwatson [Wed, 15 Nov 2006 12:43:45 +0000 (12:43 +0000)]
Add a short regression test to try to exercise races in the non-atomic
nature of implied connect via sendto().  Oddly, uipc_usrreq.c implements
this for stream sockets, but doesn't set the flag in its protocol
definition so that it can actually be used.  As such, the stream test is
implemented but doesn't run for now.

17 years agoGroup pid and parent are shared in a case of CLONE_THREAD not CLONE_VM.
kib [Wed, 15 Nov 2006 11:04:37 +0000 (11:04 +0000)]
Group pid and parent are shared in a case of CLONE_THREAD not CLONE_VM.
This fix lets clone02 LTP test pass with 2.6 emulation. In reality 99%
of the cases are that CLONE_VM and CLONE_THREAD are both set so it
seemed to work.

Submitted by: rdivacky

17 years agoIn rev 1.188 of linux_misc.c the added check for valid options ommited
kib [Wed, 15 Nov 2006 10:01:06 +0000 (10:01 +0000)]
In rev 1.188 of linux_misc.c the added check for valid options ommited
__WCLONE. This fixes it thus fixing skype/teamspeak to not keep zombies
after exit.

Submitted by: rdivacky
Reported by: Bakul Shah (bakul at bitblocks com)

17 years agoo Add uark(4), a driver for Arkmicro Technologies ARK3116 based serial
maxim [Wed, 15 Nov 2006 09:13:25 +0000 (09:13 +0000)]
o Add uark(4), a driver for Arkmicro Technologies ARK3116 based serial
adapters.

Submitted by: Alex Rodin
Obtained from: OpenBSD
Reviewed by: -usb
MFC after: 6 weeks

17 years agoHeavily re-factor tte_hash to remove redundant code
kmacy [Wed, 15 Nov 2006 06:29:52 +0000 (06:29 +0000)]
Heavily re-factor tte_hash to remove redundant code
Add hash resizing support - doesn't quite work yet

17 years agoAdd a copy of the sparc64 boot crunch configuration as
jb [Wed, 15 Nov 2006 06:12:26 +0000 (06:12 +0000)]
Add a copy of the sparc64 boot crunch configuration as
a starting point for sun4v. With this commit, the 'make release'
works on sun4v and boots.

I still have to check that it actually installs to disk.

17 years agoAdd archive_write_open_filename()/archive_read_open_filename() as
kientzle [Wed, 15 Nov 2006 05:33:38 +0000 (05:33 +0000)]
Add archive_write_open_filename()/archive_read_open_filename() as
synonyms for archive_write_open_file()/archive_read_open_file().
The new names are much clearer.

17 years agoStyle: Use the correct type for a sizeof() variable.
kientzle [Wed, 15 Nov 2006 05:20:14 +0000 (05:20 +0000)]
Style: Use the correct type for a sizeof() variable.

17 years agoChange the internal API for writing data to an entry; make the
kientzle [Wed, 15 Nov 2006 05:14:20 +0000 (05:14 +0000)]
Change the internal API for writing data to an entry; make the
internal format-specific functions return the same as the public
function, so that the public API layer doesn't have to guess the
correct return value.  This addresses an obscure problem that occurs
when someone tries to write more data than the size of the entry (as
indicated in the entry header).  In this case, the return value from
archive_write_data() was incorrect, reflecting the requested write
rather than the amount actually written.

MFC after: 15 days

17 years agoadd trap trace to tl1 trap
kmacy [Wed, 15 Nov 2006 03:53:27 +0000 (03:53 +0000)]
add trap trace to tl1 trap

17 years agoadd trap tracing to dev_mondo
kmacy [Wed, 15 Nov 2006 03:20:12 +0000 (03:20 +0000)]
add trap tracing to dev_mondo

17 years agoadd trap tracing to cpu mondo handler and tsb miss handler
kmacy [Wed, 15 Nov 2006 03:16:30 +0000 (03:16 +0000)]
add trap tracing to cpu mondo handler and tsb miss handler

17 years agoAdded yet another extra fxp(4) PCI ID.
rink [Tue, 14 Nov 2006 18:54:31 +0000 (18:54 +0000)]
Added yet another extra fxp(4) PCI ID.

PR: kern/104896
Submitted by: Yoshihiko Sarumaru <mistral@imasy.or.jp>
Reviewed by: imp (mentor), jfv
Approved by: imp (mentor)
MFC after: 3 days

17 years agoFix a couple of comment typos.
jhb [Tue, 14 Nov 2006 17:54:55 +0000 (17:54 +0000)]
Fix a couple of comment typos.

Reported by: ru

17 years ago- Add in FreeBSD native ioctl that models the Linux version.
ambrisko [Tue, 14 Nov 2006 16:48:00 +0000 (16:48 +0000)]
- Add in FreeBSD native ioctl that models the Linux version.
- Add a translation so the Linux ioctl's don't conflict with
  the FreeBSD definition.
- Assume Linux 32bit emulation on amd64.
This was tested on i386 and amd64 with the 32bit Linux MegaCli.
Eventually we should do a 32bit native FreeBSD translation app.

17 years agoUnbreak pc98.
ru [Tue, 14 Nov 2006 14:28:09 +0000 (14:28 +0000)]
Unbreak pc98.

17 years agoAdd `PN_XNUM', for supporting ELF objects with a large number of program
jkoshy [Tue, 14 Nov 2006 12:10:39 +0000 (12:10 +0000)]
Add `PN_XNUM', for supporting ELF objects with a large number of program
header table entries.

17 years agoUse tabs instead of spaces.
pjd [Tue, 14 Nov 2006 11:40:45 +0000 (11:40 +0000)]
Use tabs instead of spaces.

17 years agoCorrect a typo.
bz [Tue, 14 Nov 2006 11:16:34 +0000 (11:16 +0000)]
Correct a typo.

17 years agoPush things closer to path failover by implementing loop down and
mjacob [Tue, 14 Nov 2006 08:45:48 +0000 (08:45 +0000)]
Push things closer to path failover by implementing loop down and
gone device timers and zombie state entries. There are tunables
that can be used to select a number of parameters.

loop_down_limit - how long to wait for loop to come back up before
declaring
all devices dead (default 300 seconds)

gone_device_time- how long to wait for a device that has appeared
to leave the loop or fabric to reappear (default 30 seconds)

Internal tunables include (which should be externalized):

quick_boot_time- how long to wait when booting for loop to come up

change_is_bad- whether or not to accept devices with the same
WWNN/WWPN that reappear at a different PortID as being the 'same'
device.

Keen students of some of the subtle issues here will ask how
one can keep devices from being re-accepted at all (the answer
is to set a gone_device_time to zero- that effectively would
be the same thing).

17 years agoAdd Kris Kennaway to reflect his performance improvements to
kmacy [Tue, 14 Nov 2006 07:57:19 +0000 (07:57 +0000)]
Add Kris Kennaway to reflect his performance improvements to
the lock profiling code

17 years agoFix a copy-paste bug in NON-KSE case.
davidxu [Tue, 14 Nov 2006 05:48:27 +0000 (05:48 +0000)]
Fix a copy-paste bug in NON-KSE case.

17 years agoFix debugging output of '-d', to more accurately reflect if
rodrigc [Tue, 14 Nov 2006 01:07:42 +0000 (01:07 +0000)]
Fix debugging output of '-d', to more accurately reflect if
we exec an external mount program, or just call nmount()
to mount a filesystem.

Noticed by: kris

17 years agoMD support for PCI Message Signalled Interrupts on amd64 and i386:
jhb [Mon, 13 Nov 2006 22:23:34 +0000 (22:23 +0000)]
MD support for PCI Message Signalled Interrupts on amd64 and i386:
- Add a new apic_alloc_vectors() method to the local APIC support code
  to allocate N contiguous IDT vectors (aligned on a M >= N boundary).
  This function is used to allocate IDT vectors for a group of MSI
  messages.
- Add MSI and MSI-X PICs.  The PIC code here provides methods to manage
  edge-triggered MSI messages as x86 interrupt sources.  In addition to
  the PIC methods, msi.c also includes methods to allocate and release
  MSI and MSI-X messages.  For x86, we allow for up to 128 different
  MSI IRQs starting at IRQ 256 (IRQs 0-15 are reserved for ISA IRQs,
  16-254 for APIC PCI IRQs, and IRQ 255 is reserved).
- Add pcib_(alloc|release)_msi[x]() methods to the MD x86 PCI bridge
  drivers to bubble the request up to the nexus driver.
- Add pcib_(alloc|release)_msi[x]() methods to the x86 nexus drivers that
  ask the MSI PIC code to allocate resources and IDT vectors.

MFC after: 2 months

17 years agoFirst cut at MI support for PCI Message Signalled Interrupts (MSI):
jhb [Mon, 13 Nov 2006 21:47:30 +0000 (21:47 +0000)]
First cut at MI support for PCI Message Signalled Interrupts (MSI):
- Add 3 new functions to the pci_if interface along with suitable wrappers
  to provide the device driver visible API:
  - pci_alloc_msi(dev, int *count) backed by PCI_ALLOC_MSI().  '*count'
    here is an in and out parameter.  The driver stores the desired number
    of messages in '*count' before calling the function.  On success,
    '*count' holds the number of messages allocated to the device.  Also on
    success, the driver can access the messages as SYS_RES_IRQ resources
    starting at rid 1.  Note that the legacy INTx interrupt resource will
    not be available when using MSI.  Note that this function will allocate
    either MSI or MSI-X messages depending on the devices capabilities and
    the 'hw.pci.enable_msix' and 'hw.pci.enable_msi' tunables.  Also note
    that the driver should activate the memory resource that holds the
    MSI-X table and pending bit array (PBA) before calling this function
    if the device supports MSI-X.
  - pci_release_msi(dev) backed by PCI_RELEASE_MSI().  This function
    releases the messages allocated for this device.  All of the
    SYS_RES_IRQ resources need to be released for this function to succeed.
  - pci_msi_count(dev) backed by PCI_MSI_COUNT().  This function returns
    the maximum number of MSI or MSI-X messages supported by this device.
    MSI-X is preferred if present, but this function will honor the
    'hw.pci.enable_msix' and 'hw.pci.enable_msi' tunables.  This function
    should return the largest value that pci_alloc_msi() can return
    (assuming the MD code is able to allocate sufficient backing resources
    for all of the messages).
- Add default implementations for these 3 methods to the pci_driver generic
  PCI bus driver.  (The various other PCI bus drivers such as for ACPI and
  OFW will inherit these default implementations.)  This default
  implementation depends on 4 new pcib_if methods that bubble up through
  the PCI bridges to the MD code to allocate IRQ values and perform any
  needed MD setup code needed:
  - PCIB_ALLOC_MSI() attempts to allocate a group of MSI messages.
  - PCIB_RELEASE_MSI() releases a group of MSI messages.
  - PCIB_ALLOC_MSIX() attempts to allocate a single MSI-X message.
  - PCIB_RELEASE_MSIX() releases a single MSI-X message.
- Add default implementations for these 4 methods that just pass the
  request up to the parent bus's parent bridge driver and use the
  default implementation in the various MI PCI bridge drivers.
- Add MI functions for use by MD code when managing MSI and MSI-X
  interrupts:
  - pci_enable_msi(dev, address, data) programs the MSI capability address
    and data registers for a group of MSI messages
  - pci_enable_msix(dev, index, address, data) initializes a single MSI-X
    message in the MSI-X table
  - pci_mask_msix(dev, index) masks a single MSI-X message
  - pci_unmask_msix(dev, index) unmasks a single MSI-X message
  - pci_pending_msix(dev, index) returns true if the specified MSI-X
    message is currently pending
- Save the MSI capability address and data registers in the pci_cfgreg
  block in a PCI devices ivars and restore the values when a device is
  resumed.  Note that the MSI-X table is not currently restored during
  resume.
- Add constants for MSI-X register offsets and fields.
- Record interesting data about any MSI-X capability blocks we come
  across in the pci_cfgreg block in the ivars for PCI devices.

Tested on: em (i386, MSI), bce (amd64/i386, MSI), mpt (amd64, MSI-X)
Reviewed by: scottl, grehan, jfv
MFC after: 2 months

17 years agoVarious fixes:
jhb [Mon, 13 Nov 2006 21:14:54 +0000 (21:14 +0000)]
Various fixes:
- Remove an extra entry from the array for 0x0f prefixed instruction groups.
  This fixes decoding of instructions where the second opcode >= 0x80.
- Add support for the 64-bit immediate mov instructions.
- When short_addr is enabled, don't parse the modr/m byte for a 16-bit
  address, but as a 32-bit address.
- Support %rip relative addressing.
- Don't print a displacement of 0 if there is a base or index register.

MFC after: 3 days

17 years agoFix NKPT comments to match reality. Note that the current value
ru [Mon, 13 Nov 2006 20:33:54 +0000 (20:33 +0000)]
Fix NKPT comments to match reality.  Note that the current value
of NKPT is no longer enough to run amd64 with 16G of RAM, as it
doesn't have space for mapping a kernel (16M kernel would require
additionally 8 page tables).

17 years agoNew release note: traceroute(8) -D (+MFC).
bmah [Mon, 13 Nov 2006 19:13:39 +0000 (19:13 +0000)]
New release note:  traceroute(8) -D (+MFC).

17 years agoAdd SCTP as a known upper layer protocol over v6.
bz [Mon, 13 Nov 2006 19:07:32 +0000 (19:07 +0000)]
Add SCTP as a known upper layer protocol over v6.
We are not yet aware of the protocol internals but this way
SCTP traffic over v6 will not be discarded.

Reported by: Peter Lei via rrs
Tested by:   Peter Lei <peterlei cisco.com>

17 years agoNo change in functionality, but fill in a missing error
kientzle [Mon, 13 Nov 2006 16:50:18 +0000 (16:50 +0000)]
No change in functionality, but fill in a missing error
message when reading a truncated tar archive.

17 years agoFix minor formatting issues:
ru [Mon, 13 Nov 2006 09:46:16 +0000 (09:46 +0000)]
Fix minor formatting issues:

- make document title match filename;
- remove hard sentence breaks, whitespace at EOL, and double whitespace;
- sort SEE ALSO xrefs, adding missing section numbers;
- fix a misspelled macro name.

17 years agoThe utility accepts multiple arguments.
ru [Mon, 13 Nov 2006 09:12:25 +0000 (09:12 +0000)]
The utility accepts multiple arguments.

17 years agoSort xrefs.
ru [Mon, 13 Nov 2006 08:56:42 +0000 (08:56 +0000)]
Sort xrefs.

17 years agoFix a comment.
ru [Mon, 13 Nov 2006 06:26:57 +0000 (06:26 +0000)]
Fix a comment.

17 years agoThere doesn't seem to be a real reason for include/ to be installed
ru [Mon, 13 Nov 2006 05:52:11 +0000 (05:52 +0000)]
There doesn't seem to be a real reason for include/ to be installed
so early.

17 years agochange vop_lock handling to allowing tracking of callers' file and line for
kmacy [Mon, 13 Nov 2006 05:51:22 +0000 (05:51 +0000)]
change vop_lock handling to allowing tracking of callers' file and line for
acquisition of lockmgr locks

Approved by: scottl (standing in for mentor rwatson)

17 years agoForced commit to append to previous log
kmacy [Mon, 13 Nov 2006 05:43:42 +0000 (05:43 +0000)]
Forced commit to append to previous log

Approved by: scottl (standing in for mentor rwatson)

17 years agotrack lock class name in a way that doesn't break WITNESS
kmacy [Mon, 13 Nov 2006 05:41:46 +0000 (05:41 +0000)]
track lock class name in a way that doesn't break WITNESS

17 years agoEnable syscall auditing for sun4v the arch by implementing the
csjp [Mon, 13 Nov 2006 04:38:57 +0000 (04:38 +0000)]
Enable syscall auditing for sun4v the arch by implementing the
AUDIT_SYSCALL_ENTER/EXIT macros.

Discussed with: kmacy

17 years agoAttempt to improve application portability by marking `struct ar_hdr'
jkoshy [Mon, 13 Nov 2006 04:28:29 +0000 (04:28 +0000)]
Attempt to improve application portability by marking `struct ar_hdr'
as `packed'.

The C standard leaves the alignment of individual members of a C
struct upto the implementation, so pedantically speaking portable
code cannot assume that the layout of a `struct ar_hdr' in memory
will match its layout in a file.  Using a __packed attribute
declaration forces file and memory layouts for this structure to
match.

Submitted by: ru

17 years agoNew release notes: ng_ether(4) MAC address behavior, tun(4) kqueue(2)
bmah [Mon, 13 Nov 2006 01:44:20 +0000 (01:44 +0000)]
New release notes:  ng_ether(4) MAC address behavior, tun(4) kqueue(2)
support, fsdb(8) findblk.

Modified release note:  Fix an extra "the" in fsdb(8) btime note. [1]

Submitted by: ceri [1]

17 years ago- Grammar fixes
markus [Mon, 13 Nov 2006 01:13:28 +0000 (01:13 +0000)]
- Grammar fixes
- Reword some sentences
- Use .Cm for arguments
- s/CAVEAT/CAVEATS/

Based on PR: docs/78174
Submitted by: Jeremy Chadwick <freebsd@jdc.parodius.com>
Reviewed by: brueffer
Approved by: emax (mentor)
MFC after: 3 days

17 years agoAdd time-of-day support to sun4v
kmacy [Mon, 13 Nov 2006 01:02:18 +0000 (01:02 +0000)]
Add time-of-day support to sun4v

17 years agoThese files no longer use internal APIs, so no longer need to include
kientzle [Mon, 13 Nov 2006 00:29:57 +0000 (00:29 +0000)]
These files no longer use internal APIs, so no longer need to include
archive_private.h.

17 years agoThere is no point in setting PG_REFERENCED on kmem_object pages because
alc [Mon, 13 Nov 2006 00:27:02 +0000 (00:27 +0000)]
There is no point in setting PG_REFERENCED on kmem_object pages because
they are "unmanaged", i.e., non-pageable, pages.

Remove a stale comment.

17 years agoMinor cleanup of the standard read/write I/O modules:
kientzle [Mon, 13 Nov 2006 00:26:45 +0000 (00:26 +0000)]
Minor cleanup of the standard read/write I/O modules:

 * Use public API, don't access struct archive directly.  (People should be able to copy these into their applications as a template for custom I/O callbacks.)
 * Set "skip" only for regular files.  ("skip" allows the low-level library to catch attempts to add an archive to itself or extract over itself.)
 * Simplify the write_open functions by just calling stat() at the beginning.  Somehow, these functions had acquired some complex logic that tried to avoid the stat() call but never succeeded.

MFC after: 10 days

17 years agoCorrectly handle writing very large blocks (>1M) through to a disk
kientzle [Sun, 12 Nov 2006 23:45:40 +0000 (23:45 +0000)]
Correctly handle writing very large blocks (>1M) through to a disk
file.  This doesn't happen in normal use, because the file I/O and
decompression layers only pass through smaller blocks.  It can happen
with custom read functions that block I/O in larger blocks.

17 years agoUnbreak witness
kmacy [Sun, 12 Nov 2006 23:23:38 +0000 (23:23 +0000)]
Unbreak witness

17 years agoCorrect typos in comments.
ceri [Sun, 12 Nov 2006 23:16:31 +0000 (23:16 +0000)]
Correct typos in comments.

17 years agoMake pmap_enter() responsible for setting PG_WRITEABLE instead
alc [Sun, 12 Nov 2006 21:48:34 +0000 (21:48 +0000)]
Make pmap_enter() responsible for setting PG_WRITEABLE instead
of its caller.  (As a beneficial side-effect, a high-contention
acquisition of the page queues lock in vm_fault() is eliminated.)

17 years agoChange authors e-mail.
joel [Sun, 12 Nov 2006 21:43:21 +0000 (21:43 +0000)]
Change authors e-mail.

Requested by: Niclas Zeising

17 years agoIn kern_sendfile() fix the calculation of sbytes (the total number of bytes
andre [Sun, 12 Nov 2006 20:57:00 +0000 (20:57 +0000)]
In kern_sendfile() fix the calculation of sbytes (the total number of bytes
written to the socket).  The rewrite in revision 1.240 got confused by the
FreeBSD 4.x bug compatibility code.

For some reason lighttpd, that was used for testing the new sendfile code,
was not affected by the problem but apache and others using headers/trailers
in the sendfile call received incorrect sbytes values after return from non-
blocking sockets.  This then lead to restarts with wrong offsets and thus
mixed up file contents when the socket was writeable again.  All programs
not using headers/trailers, like ftpd, were not affected by the bug.

Reported by: Pawel Worach <pawel.worach-at-gmail.com>
Tested by: Pawel Worach <pawel.worach-at-gmail.com>

17 years agoIn revision 1.14 I broke the -4 and -6 options of sockstat(1).
keramida [Sun, 12 Nov 2006 19:03:39 +0000 (19:03 +0000)]
In revision 1.14 I broke the -4 and -6 options of sockstat(1).
Using either one of the two would result in an empty protos[]
array, and no sockets were actually listed:

  % sockstat -4
  USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
  % sockstat -6
  USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
  %

Fix this bug by tweaking appropriately the logic of handling opt_4,
opt_6, opt_u and protos_defined.

Submitted by: des
Pointy hat: keramida

17 years ago- Replace the use of DPSRCS with something more appropriate. DPSRCS
jkoshy [Sun, 12 Nov 2006 18:43:25 +0000 (18:43 +0000)]
- Replace the use of DPSRCS with something more appropriate.  DPSRCS
  is for when you need something in ".depend", but not compiled in.
- Style fixes: Spell ${.OBJDIR} as ".".
- Neaten a comment.

Submitted by: ru

17 years agoRemove some comments about NetBSD. This in on FreeBSD and we do not
bz [Sun, 12 Nov 2006 18:38:07 +0000 (18:38 +0000)]
Remove some comments about NetBSD. This in on FreeBSD and we do not
want to confuse people at the very beginning.
Sync TOC/paragraph numbers in the text.

Requested by: Benedikt Stockebrand during his talk at EuroBSDCon 2006
Reviewed by: gnn

17 years agoTeach an IPV6CP to pppd(8).
ume [Sun, 12 Nov 2006 17:36:58 +0000 (17:36 +0000)]
Teach an IPV6CP to pppd(8).
The eui64.[ch] and ipv6cp.[ch] were taken from ppp-2.3.11.
However, our stock pppd(8) doesn't provide option_t nor some
utility functions.  So, I made some hacks to adjust to our
stock pppd(8).
The sys_bsd.c part was taken from NetBSD with some
modifications to adjust to our stock pppd(8).

MFC after: 1 week

17 years agoThis commit was generated by cvs2svn to compensate for changes in r164219,
ume [Sun, 12 Nov 2006 17:13:45 +0000 (17:13 +0000)]
This commit was generated by cvs2svn to compensate for changes in r164219,
which included commits to RCS files with non-trunk default branches.

17 years agoImport eui64.[ch] and ipv6cp.[ch] of ppp-2.3.11
ume [Sun, 12 Nov 2006 17:13:45 +0000 (17:13 +0000)]
Import eui64.[ch] and ipv6cp.[ch] of ppp-2.3.11

17 years agoBack out 1.120, it was premature.
ache [Sun, 12 Nov 2006 12:02:34 +0000 (12:02 +0000)]
Back out 1.120, it was premature.

17 years agoCopy base user priority in NO_KSE case.
davidxu [Sun, 12 Nov 2006 11:48:37 +0000 (11:48 +0000)]
Copy base user priority in NO_KSE case.

17 years agoGRRRRR - missed this in the last commit
kmacy [Sun, 12 Nov 2006 05:16:28 +0000 (05:16 +0000)]
GRRRRR - missed this in the last commit

17 years agoFix mispatch of includes list; allows my kernel to build successfully.
trhodes [Sun, 12 Nov 2006 03:34:03 +0000 (03:34 +0000)]
Fix mispatch of includes list; allows my kernel to build successfully.

17 years agoshow lock class in profiling output for default case where type is not specified...
kmacy [Sun, 12 Nov 2006 03:30:01 +0000 (03:30 +0000)]
show lock class in profiling output for default case where type is not specified when initializing the lock

Approved by: scottl (standing in for mentor rwatson)

17 years agoUse mi_switch, this should fix loadavg calculation problem in NO_KSE case.
davidxu [Sun, 12 Nov 2006 03:18:22 +0000 (03:18 +0000)]
Use mi_switch, this should fix loadavg calculation problem in NO_KSE case.

17 years agoSupport up to 4 nucleus mappings to workaround issue hit by jb@ when booted
kmacy [Sun, 12 Nov 2006 01:21:15 +0000 (01:21 +0000)]
Support up to 4 nucleus mappings to workaround issue hit by jb@ when booted
off of CD

17 years agoFix USB printer Xerox WorkCentre M15 adding a quirk to bypass
flz [Sat, 11 Nov 2006 23:53:25 +0000 (23:53 +0000)]
Fix USB printer Xerox WorkCentre M15 adding a quirk to bypass
reported bidirectional functionality.

PR: usb/104704
Submitted by: Eygene <rea-fbsd@codelabs.ru>
X-MFC after: 6.2-RELEASE

17 years agoMore MUTEX_PROFILING -> LOCK_PROFILING.
ru [Sat, 11 Nov 2006 23:37:52 +0000 (23:37 +0000)]
More MUTEX_PROFILING -> LOCK_PROFILING.

17 years agoBack out 1.122, it was poorly thought out.
des [Sat, 11 Nov 2006 23:26:08 +0000 (23:26 +0000)]
Back out 1.122, it was poorly thought out.

17 years agoEnforce RELEASENOUPDATE if EXTSRCDIR is used.
ru [Sat, 11 Nov 2006 23:18:28 +0000 (23:18 +0000)]
Enforce RELEASENOUPDATE if EXTSRCDIR is used.

Suggested by: jb

17 years agoIn a true restart case, the send_lock was
rrs [Sat, 11 Nov 2006 22:44:12 +0000 (22:44 +0000)]
In a true restart case, the send_lock was
not being aquired. This meant that when we cleanup
the outbound we may have one in transit to be
added with the old sequence number. This is bad
since then we loose a message :(

Also the report_outbound needed to have the right
lock when its called which it did not.. I added
the lock with of course a flag since we want to
have the lock before we call it in the restart
case.

This also fixed the FIX ME case where, in the cookie
collision case, we mark for retransmit any that
were bundled with the cookie that was dropped.
This also means changes to the output routine
so we can assure getting the COOKIE-ACK sent
BEFORE we retransmit the Data.

Approved by: gnn

17 years agoRequest pre-commit review of BSD.{local,x11*}.dist by portmgr, since these
kris [Sat, 11 Nov 2006 22:24:10 +0000 (22:24 +0000)]
Request pre-commit review of BSD.{local,x11*}.dist by portmgr, since these
files interface with ports and we have policies for how/when they should be
updated.

17 years agoBack out 1.121, it was premature.
des [Sat, 11 Nov 2006 22:23:49 +0000 (22:23 +0000)]
Back out 1.121, it was premature.

17 years agoAdd support for filtering sockets by protocol type. The default
keramida [Sat, 11 Nov 2006 22:11:54 +0000 (22:11 +0000)]
Add support for filtering sockets by protocol type.  The default
behavior of sockstat(1) will still be to show "udp", "tcp" and
"divert" protocols, but we can now provide a (comma-separated)
list of protocols, as in:

    % sockstat -P tcp

to list only TCP sockets, or we can filter more than one protocol
by separating the protocol names with a comma:

    % sockstat -P tcp,udp

Protocol names are parsed with getprotobyname(3), so any protocol
whose name is listed in `/etc/protocols' should work fine.

Submitted by: Josh Carroll <josh.carroll@psualum.com>
Approved by: des

17 years agoRegen (cosmetics in sys/sysproto.h).
ru [Sat, 11 Nov 2006 22:01:25 +0000 (22:01 +0000)]
Regen (cosmetics in sys/sysproto.h).

17 years agoRegen.
ru [Sat, 11 Nov 2006 21:49:08 +0000 (21:49 +0000)]
Regen.

Forgotten by: trhodes

17 years agoEliminate unused global variables.
alc [Sat, 11 Nov 2006 20:57:52 +0000 (20:57 +0000)]
Eliminate unused global variables.

17 years agoNew release note: ping(8) -W (+MFC).
bmah [Sat, 11 Nov 2006 19:12:52 +0000 (19:12 +0000)]
New release note:  ping(8) -W (+MFC).

MFCs noted:  fsdb(8) btime, zlib 1.2.3.

17 years agoNew release notes:
brueffer [Sat, 11 Nov 2006 19:06:30 +0000 (19:06 +0000)]
New release notes:

if_bridge(4) RSTP support.

17 years agoo Indent by tab.
maxim [Sat, 11 Nov 2006 18:45:20 +0000 (18:45 +0000)]
o Indent by tab.

17 years agoo Add several regression tests for dup(2), dup2(2) and fcntl(F_DUPFD).
maxim [Sat, 11 Nov 2006 18:32:50 +0000 (18:32 +0000)]
o Add several regression tests for dup(2), dup2(2) and fcntl(F_DUPFD).

Obtained from: OpenBSD

17 years agoMFP4: Add an implementation of the ELF(3) and GELF(3) API set.
jkoshy [Sat, 11 Nov 2006 17:16:35 +0000 (17:16 +0000)]
MFP4: Add an implementation of the ELF(3) and GELF(3) API set.

Bump __FreeBSD_version.

Reviewed by: jb

17 years agoRe-enable module build for POSIX semaphores.
trhodes [Sat, 11 Nov 2006 16:49:29 +0000 (16:49 +0000)]
Re-enable module build for POSIX semaphores.
Update the manual page describe loading the sem module.

Approved by: silence on -arch and -standards

17 years agoUpdate includes for sys/posix4 move.
trhodes [Sat, 11 Nov 2006 16:46:31 +0000 (16:46 +0000)]
Update includes for sys/posix4 move.

Approved by: silence on -arch and -standards

17 years agoNew release notes: SCTP, TSO, sun4v, ppp(4) IPv6 support, KSE a
bmah [Sat, 11 Nov 2006 16:36:03 +0000 (16:36 +0000)]
New release notes:  SCTP, TSO, sun4v, ppp(4) IPv6 support, KSE a
kernel option.

Updated release notes:  OpenSSH 4.5p1.

17 years agoThese files have been repo-copied to the "normal" kernel hierarchy.
trhodes [Sat, 11 Nov 2006 16:29:38 +0000 (16:29 +0000)]
These files have been repo-copied to the "normal" kernel hierarchy.

17 years agoMerge sys/posix4/sched.h into sys/sched.h.
trhodes [Sat, 11 Nov 2006 16:27:52 +0000 (16:27 +0000)]
Merge sys/posix4/sched.h into sys/sched.h.

Approved by: silence on -arch and -standards

17 years agoMerge posix4/* into normal kernel hierarchy.
trhodes [Sat, 11 Nov 2006 16:26:58 +0000 (16:26 +0000)]
Merge posix4/* into normal kernel hierarchy.

Reviewed by: glanced at by jhb
Approved by: silence on -arch@ and -standards@

17 years agoUpdate #includes list.
trhodes [Sat, 11 Nov 2006 16:19:12 +0000 (16:19 +0000)]
Update #includes list.

17 years agoForced commit to note that these files have been repo-copied from
trhodes [Sat, 11 Nov 2006 16:15:35 +0000 (16:15 +0000)]
Forced commit to note that these files have been repo-copied from
src/sys/posix4/.

Repo-copy done by: kuriyama

17 years agoTurns out we would reset the TSN seq counter during
rrs [Sat, 11 Nov 2006 15:59:01 +0000 (15:59 +0000)]
Turns out we would reset the TSN seq counter during
a colliding INIT. This if fine except when we have
data outstanding... we basically reset it to the
previous value it was.. so then we end up assigning
the same TSN to two different data chunks.
This patch:

1) Finds a missing lock for when we change the stream
   numbers during COOKIE and INIT-ACK processing.. we
   were NOT locking the send_buffer.. which COULD cause
   problems (found by inspection looking for <2>)

2) Fixes a case during a colliding INIT where we incorrectly
   reset the sending Sequence thus in some cases duplicately
   assigning a TSN.

3) Additional enhancments to logging so we can see strm/tsn in
   the receiver AND new tracking to watch what the sender
   is doing with TSN and STRM seq's.

Approved by: gnn

17 years agoTeach an IPv6 to ppp(4).
ume [Sat, 11 Nov 2006 15:02:04 +0000 (15:02 +0000)]
Teach an IPv6 to ppp(4).

Obtained from: NetBSD
MFC after: 1 week

17 years agodefine UMUTEX_CONTESTED as an unsigned integer.
davidxu [Sat, 11 Nov 2006 14:00:39 +0000 (14:00 +0000)]
define UMUTEX_CONTESTED as an unsigned integer.

17 years agoMove code calculating new inherited priority into single function.
davidxu [Sat, 11 Nov 2006 13:33:47 +0000 (13:33 +0000)]
Move code calculating new inherited priority into single function.

17 years agoUnbreak userland priority inheriting in NO_KSE case.
davidxu [Sat, 11 Nov 2006 13:11:29 +0000 (13:11 +0000)]
Unbreak userland priority inheriting in NO_KSE case.

17 years agoRemove a warning regarding disk entries in /dev.
ceri [Sat, 11 Nov 2006 12:59:59 +0000 (12:59 +0000)]
Remove a warning regarding disk entries in /dev.

Approved by: ru (mentor)
MFC after: 4 days

17 years agoEnsure that the load of rules into the alternate ruleset worked before
ceri [Sat, 11 Nov 2006 10:48:34 +0000 (10:48 +0000)]
Ensure that the load of rules into the alternate ruleset worked before
loading them into the live one too.

PR: conf/97311
Submitted by: David Bushong
Reviewed by: silence on rc@
Approved by: ru (mentor)
MFC after: 10 days

17 years agoFix a pair of user-visible typos.
ceri [Sat, 11 Nov 2006 10:43:11 +0000 (10:43 +0000)]
Fix a pair of user-visible typos.

Approved by: ru (mentor)

17 years agoBack up /boot/kernel rather than /kernel for non-interactive upgrades.
ceri [Sat, 11 Nov 2006 10:42:04 +0000 (10:42 +0000)]
Back up /boot/kernel rather than /kernel for non-interactive upgrades.

Approved by: ru (mentor)
MFC after: 4 days

17 years agoAdd /lib and /libexec to the list of directories that have the schg
ceri [Sat, 11 Nov 2006 10:38:10 +0000 (10:38 +0000)]
Add /lib and /libexec to the list of directories that have the schg
flag removed prior to an upgrade.

Approved by: ru (mentor)
MFC after: 4 days

17 years agoFix build (forgotten MUTEX_PROFILING.9 -> LOCK_PROFILING.9).
ru [Sat, 11 Nov 2006 08:59:34 +0000 (08:59 +0000)]
Fix build (forgotten MUTEX_PROFILING.9 -> LOCK_PROFILING.9).