]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years ago - Mention that less v408 was MFC'ed.
delphij [Thu, 11 Oct 2007 20:44:38 +0000 (20:44 +0000)]
 - Mention that less v408 was MFC'ed.
 - Mention tzdata2007h update.  An in advance &merged; is
   added so that we don't have to change this again when
   it is actually MFC'ed.

Approved by: re (bmah)

16 years agoAllow recursion on the 'zones' internal UMA zone.
jhb [Thu, 11 Oct 2007 20:11:27 +0000 (20:11 +0000)]
Allow recursion on the 'zones' internal UMA zone.

Submitted by: thompsa
MFC after: 1 week
Approved by: re (kensmith)
Discussed with: jeff

16 years agoTo honor the birth of RELENG_7 bump HEAD to 8.0-CURRENT.
kensmith [Thu, 11 Oct 2007 04:28:08 +0000 (04:28 +0000)]
To honor the birth of RELENG_7 bump HEAD to 8.0-CURRENT.

Approved by: re (implicit)

16 years agoRemove file which was accidently repo-copied to the wrong destination
simon [Wed, 10 Oct 2007 17:34:29 +0000 (17:34 +0000)]
Remove file which was accidently repo-copied to the wrong destination
file-name.  The file will be nuked entirely from the repository later.

Approved by: re (kensmith)

16 years agoFor 7.0 make the shared lib "version" '3'.
obrien [Wed, 10 Oct 2007 16:59:14 +0000 (16:59 +0000)]
For 7.0 make the shared lib "version" '3'.
Approved by: re(kensmith)

16 years agoProperly regen src.conf(5).
ru [Wed, 10 Oct 2007 06:04:43 +0000 (06:04 +0000)]
Properly regen src.conf(5).

Approved by: re (kensmith)

16 years agoTweak the handling of "WITHOUT_LIBPTHREAD". Also remove the accidental
obrien [Tue, 9 Oct 2007 23:31:11 +0000 (23:31 +0000)]
Tweak the handling of "WITHOUT_LIBPTHREAD".  Also remove the accidental
treatment of 'LIBKSE' as an "old style" knob.

Submitted by: ru
Approved by: re(kensmith)

16 years agoAdd PCI ID for ICH9 AHCI w/ two adapters.
delphij [Tue, 9 Oct 2007 20:15:09 +0000 (20:15 +0000)]
Add PCI ID for ICH9 AHCI w/ two adapters.

Tested by: Abdullah Ibn Hamad Al-Marri <almarrie gmail com>
Approved by: sos
Approved by: re (kensmith)

16 years agoMdoc fix.
obrien [Tue, 9 Oct 2007 17:53:33 +0000 (17:53 +0000)]
Mdoc fix.

Submitted by: ru
Approved by: re(implicit)

16 years agoPulled the trigger 2hr 50min late (Pago Pago time).
obrien [Tue, 9 Oct 2007 17:51:11 +0000 (17:51 +0000)]
Pulled the trigger 2hr 50min late (Pago Pago time).
Submitted by: ru
Approved by: re (implicit)

16 years agoUpdate to version 3.70.03.007 from the vendor. This adds support for new
scottl [Tue, 9 Oct 2007 17:43:57 +0000 (17:43 +0000)]
Update to version 3.70.03.007 from the vendor.  This adds support for new
SAS-enabled cards.  It also makes the driver MPSAFE, eliminating some
problems that resulted from CAM becoming MPSAFE.  Many thanks to 3Ware/AMCC
for continuing to support FreeBSD.

Submitted by: Manjunath Ranganathaiah
Approved by: re

16 years agoCorrect lib name.
obrien [Tue, 9 Oct 2007 17:22:00 +0000 (17:22 +0000)]
Correct lib name.

Submitted by: ru
Approved by: re(kensmith)

16 years agoRepo copy libpthreads to libkse.
obrien [Tue, 9 Oct 2007 14:16:39 +0000 (14:16 +0000)]
Repo copy libpthreads to libkse.
This introduces the WITHOUT_LIBKSE nob,
and changes WITHOUT_LIBPTHREADS to mean with neither threading libs.
Approved by: re(kensmith)

16 years agoRepo copy libpthreads to libkse.
obrien [Tue, 9 Oct 2007 13:42:34 +0000 (13:42 +0000)]
Repo copy libpthreads to libkse.
This introduces the WITHOUT_LIBKSE nob,
and changes WITHOUT_LIBPTHREADS to mean with neither threading libs.
Approved by: re(kensmith)

16 years agoWhen the EC times out (common with Compaqs), it may report a design
njl [Tue, 9 Oct 2007 07:51:46 +0000 (07:51 +0000)]
When the EC times out (common with Compaqs), it may report a design
voltage of 0.  This can result in a divide by zero trap.  Add a guard
for this case.  The value of lfcap is checked in acpi_battery_bif_valid()
just before this, so it is safe.

Reportd by: sam
Approved by: re
MFC after: 3 days

16 years agoFix the HPET table probe routine to run from device_identify() instead
njl [Tue, 9 Oct 2007 07:48:07 +0000 (07:48 +0000)]
Fix the HPET table probe routine to run from device_identify() instead
of directly from acpi0.  Before it would attach prior to the sysresource
devices, causing the later allocation of its memory range to fail and
print a warning like "acpi0: reservation of fed00000, 1000 (3) failed".
Use an explicit define for our probe order base value of 10.

Help from: jhb
Tested by: Abdullah Ibn Hamad Al-Marri <almarrie / gmail.com>
MFC after: 3 days
Approved by: re

16 years agoDeprecate use of the early.sh script as advertised when the support for
dougb [Tue, 9 Oct 2007 07:30:14 +0000 (07:30 +0000)]
Deprecate use of the early.sh script as advertised when the support for
local rc.d scripts in the overall boot order was added.

Proper rc.d scripts are run by rc.subr in a subshell, whereas scripts that
end in .sh are sourced into rc's shell. The latter has potential to create
serious boot problems, and there is no reason that the same functionality
cannot be added by the user in the form of a proper rc.d script (as
opposed to being added by the user in the form of /etc/rc.early).

This script will be removed prior to the 8.0 branch.

Approved by: re (kensmith)

16 years agoRemove pre-rc.d compatibility shims that were added before the 5.0 branch
dougb [Tue, 9 Oct 2007 07:20:44 +0000 (07:20 +0000)]
Remove pre-rc.d compatibility shims that were added before the 5.0 branch
for pre-5.0 variable names.

Remove two dhcp compatibility variables added after the 5.1-RELEASE.

Remove the now-unused support for these shims.

Approved by: re (kensmith)

16 years ago - Fix from pr kern/115469; Don't redeliver a signal once it has been
jeff [Tue, 9 Oct 2007 00:03:39 +0000 (00:03 +0000)]
 - Fix from pr kern/115469; Don't redeliver a signal once it has been
   handled by the target process.

Contributed by: Tijl Coosemans <tijl@ulyssis.org>
Approved by: re

16 years ago - Bail out of tdq_idled if !smp_started or idle stealing is disabled. This
jeff [Mon, 8 Oct 2007 23:50:39 +0000 (23:50 +0000)]
 - Bail out of tdq_idled if !smp_started or idle stealing is disabled.  This
   fixes a bug on UP machines with SMP kernels where the idle thread
   constantly switches after trying to steal work from the local cpu.
 - Make the idle stealing code more robust against self selection.
 - Prefer to steal from the cpu with the highest load that has at least one
   transferable thread.  Before we selected the cpu with the highest
   transferable count which excludes bound threads.

Collaborated with: csjp
Approved by: re

16 years ago - Restore historical sched_yield() behavior by changing sched_relinquish()
jeff [Mon, 8 Oct 2007 23:45:24 +0000 (23:45 +0000)]
 - Restore historical sched_yield() behavior by changing sched_relinquish()
   to simply switch rather than lowering priority and switching.  This allows
   threads of equal priority to run but not lesser priority.

Discussed with: davidxu
Reported by: NIIMI Satoshi <sa2c@sa2c.net>
Approved by: re

16 years ago - Restore historical yield() behavior by manually lowering priority and
jeff [Mon, 8 Oct 2007 23:40:40 +0000 (23:40 +0000)]
 - Restore historical yield() behavior by manually lowering priority and
   switching.

Approved by: re

16 years ago - Fix ULE in kernels without PREEMPTION compiled in by always enabling the
jeff [Mon, 8 Oct 2007 23:37:28 +0000 (23:37 +0000)]
 - Fix ULE in kernels without PREEMPTION compiled in by always enabling the
   critical_exit() owepreempt check.  ULE will always use owepreempt to
   preempt the idle thread.  This change does not effect 4BSD since it will
   never set owepreempt without PREEMPTION enabled.
 - Remove some unused code from choosethread().

Discussed with: jhb
Approved by: re

16 years agoMFV for tzdata2007h
edwin [Mon, 8 Oct 2007 21:41:29 +0000 (21:41 +0000)]
MFV for tzdata2007h

Timezone data changes in the following locations:

- Egypt (push possible DST ending one year ahead)
- Iran gets DST again in 2008.
- Palestine DST time for this year fixed.
- Brasils DST rule change in 2008.
- Venezuela time moves half an hour back at the end of this year.

PR: conf/116900
Approved by: re (Ken Smith), grog@ (mentor)
MFC after: 1 week

16 years agoDescribe the process of importing new zoneinfo data and updating
edwin [Mon, 8 Oct 2007 21:16:38 +0000 (21:16 +0000)]
Describe the process of importing new zoneinfo data and updating
it into CVS.

PR: conf/116901
Approved by: re (Ken Smith), grog@ (mentor)

16 years agoDo not dereference NULL pointer.
kib [Mon, 8 Oct 2007 20:09:53 +0000 (20:09 +0000)]
Do not dereference NULL pointer.

Reported by: Peter Holm
Reviewed by: alc
Approved by: re (kensmith)

16 years agoDeny attempt to malloc unbounded amount of the memory.
kib [Mon, 8 Oct 2007 20:08:34 +0000 (20:08 +0000)]
Deny attempt to malloc unbounded amount of the memory.
Convert malloc()/bzero() to malloc(M_ZERO).

Obtained from:  OpenBSD
MFC after:      3 days
Approved by:    re (kensmith)

16 years agoDisable TLS for arm and sparc64 here as binutils 2.15 predate GNU TLS
marius [Mon, 8 Oct 2007 18:59:34 +0000 (18:59 +0000)]
Disable TLS for arm and sparc64 here as binutils 2.15 predate GNU TLS
support for these. This is in line with gnu/lib/libgomp/config.h and
gnu/lib/libstdc++/config.h.

Reviewed by: cognet, obrien
Approved by: re (kensmith)

16 years agoIn the rare case that vm_page_cache() actually frees the given page,
alc [Mon, 8 Oct 2007 18:01:38 +0000 (18:01 +0000)]
In the rare case that vm_page_cache() actually frees the given page,
it must first ensure that the page is no longer mapped.  This is
trivially accomplished by calling pmap_remove_all() a little earlier
in vm_page_cache().  While I'm in the neighborbood, make a related
panic message a little more useful.

Approved by: re (kensmith)
Reported by: Peter Holm and Konstantin Belousov
Reviewed by: Konstantin Belousov

16 years agoResolve conflicts to complete less v408 import.
delphij [Mon, 8 Oct 2007 16:17:42 +0000 (16:17 +0000)]
Resolve conflicts to complete less v408 import.

Approved by: re (kensmith)

16 years agoVirgin import of less v408.
delphij [Mon, 8 Oct 2007 16:14:52 +0000 (16:14 +0000)]
Virgin import of less v408.

Approved by: re (kensmith)

16 years agoThis commit was generated by cvs2svn to compensate for changes in r172468,
delphij [Mon, 8 Oct 2007 16:14:52 +0000 (16:14 +0000)]
This commit was generated by cvs2svn to compensate for changes in r172468,
which included commits to RCS files with non-trunk default branches.

16 years agoAdd FBSDID to all files in netinet so that people can more
silby [Sun, 7 Oct 2007 20:44:24 +0000 (20:44 +0000)]
Add FBSDID to all files in netinet so that people can more
easily include file version information in bug reports.

Approved by: re (kensmith)

16 years agoCorrect a lock assertion failure in sparc64's pmap_page_is_mapped() that is
alc [Sun, 7 Oct 2007 18:03:03 +0000 (18:03 +0000)]
Correct a lock assertion failure in sparc64's pmap_page_is_mapped() that is
a consequence of sparc64/sparc64/vm_machdep.c revision 1.76.  It occurs
when uma_small_free() frees a page.  The solution has two parts: (1) Mark
pages allocated with VM_ALLOC_NOOBJ as PG_UNMANAGED.  (2) Defer the lock
assertion in pmap_page_is_mapped() until after PG_UNMANAGED is tested.
This is safe because both PG_UNMANAGED and PG_FICTITIOUS are immutable
flags, i.e., they do not change state between the time that a page is
allocated and freed.

Approved by: re (kensmith)
PR: 116794

16 years agoImprove the debugging message:
silby [Sun, 7 Oct 2007 00:07:27 +0000 (00:07 +0000)]
Improve the debugging message:

TCP: [X.X.X.X]:X to [X.X.X.X]:X tcpflags 0x18<PUSH,ACK>; tcp_do_segment: FIN_WAIT_2: Received data after socket was closed, sending RST and removing tcpcb

So that it also includes how many bytes of data were received.  It now looks
like this:

TCP: [X.X.X.X]:X to [X.X.X.X]:X tcpflags 0x18<PUSH,ACK>; tcp_do_segment: FIN_WAIT_2: Received X bytes of data after socket was closed, sending RST and removing tcpcb

Approved by: re (gnn)

16 years agoThis patch adds an M_NOFREE flag which allows one to mark an mbuf as
kmacy [Sat, 6 Oct 2007 21:42:39 +0000 (21:42 +0000)]
This patch adds an M_NOFREE flag which allows one to mark an mbuf as
not being independently freeable. This allows one to embed an mbuf in
the cluster itself. This confers the benefits of the packet zone on
all cluster sizes. Embedded mbufs currently suffer from the same
limitation that packet zone mbufs do in that one cannot disconnect
them and pass them around independently of the cluster. It would
likely be possible to eliminate this limitation in the future by
adding a second reference for the mbuf itself.

Approved by: re(gnn)

16 years agoAllow drivers to free an mbuf without having the mbuf be touched if
kmacy [Sat, 6 Oct 2007 21:13:55 +0000 (21:13 +0000)]
Allow drivers to free an mbuf without having the mbuf be touched if
the driver has already freed any attached tags

Approved by: re(gnn)

16 years ago- Fix the one-2-one model to properly do a socantrecv()
rrs [Sat, 6 Oct 2007 13:23:42 +0000 (13:23 +0000)]
- Fix the one-2-one model to properly do a socantrecv()
Approved by: re@freeBSD.org (Ken Smith)

16 years agoAdd an MLINKS for pci_find_dbsf.9.
marius [Fri, 5 Oct 2007 22:50:44 +0000 (22:50 +0000)]
Add an MLINKS for pci_find_dbsf.9.

Submitted by: ru
Approved by: re (gnn)

16 years agoDisable TCP syncache debug logging by default. While useful in debugging
rwatson [Fri, 5 Oct 2007 22:39:44 +0000 (22:39 +0000)]
Disable TCP syncache debug logging by default.  While useful in debugging
problems with the syncache, it produces a lot of console noise and has led
to quite a few false positive bug reports.  It can be selectively
re-enabled when debugging specific problems by frobbing the same sysctl.

Discussed with: silby
Approved by: re (gnn)

16 years agoUse the correct pid when checking to see whether or not the /proc/<pid>
jhb [Fri, 5 Oct 2007 17:37:25 +0000 (17:37 +0000)]
Use the correct pid when checking to see whether or not the /proc/<pid>
directory itself (rather than any of its contents) is visible to the
current thread.

MFC after: 1 week
PR: kern/90063
Submitted by: john of 8192.net
Approved by: re (kensmith)

16 years agomanpage update for the recent commit to uscanner.c
luigi [Fri, 5 Oct 2007 15:17:14 +0000 (15:17 +0000)]
manpage update for the recent commit to uscanner.c
I also took the chance to make the list of supported devices a
bit more compact, as it was really long to read.

Even though re@ and Warner only saw the diffs for the code, i expect
their approval also covered the manpage update.

Approved by: re, imp (implicitly i hope)
MFC after: 3 days

16 years agoAdd entries for Epson multifunction scanner/printer/card readers,
luigi [Fri, 5 Oct 2007 07:26:39 +0000 (07:26 +0000)]
Add entries for Epson multifunction scanner/printer/card readers,
with all functions supported. This is done adding usb device IDs
to the table of recognised devices (because there is no standard
'scanner' class, so no other way to recognise them), and with
a small change to the uscanner attach routine that prevents
reconfiguring the whole USB device while we are dealing only with
one of its USB interfaces.

The latter part has been suggested by Steinar Hamre in
http://www.freebsd.org/cgi/query-pr.cgi?pr=107665 , i have
only added a bit of explaination to the code.

I have personally tried this on the Epson DX-5050 and DX-6000
devices (on the US market they have different names, CX-something).
I have good reasons to think that, possibly with the mere addition
of more USB ids to the table in uscanner.c, this should work with
all Epson multifunction devices in that family (from DX-3800 to
DX-7000 - these units are in the 50-120$ price range).
More details on related topics (SANE configuration, OCR, etc.)
at http://info.iet.unipi.it/~luigi/FreeBSD/dx5050.html

Manpage updates coming soon.

Approved by: re, imp
MFC after: 3 days

16 years agoAMD CS5536 and VIA 8237S support.
brueffer [Fri, 5 Oct 2007 07:06:51 +0000 (07:06 +0000)]
AMD CS5536 and VIA 8237S support.

Approved by: re (blanket)

16 years agoMake selector parsing accept the dot "." as an alternative selector
se [Thu, 4 Oct 2007 22:27:08 +0000 (22:27 +0000)]
Make selector parsing accept the dot "." as an alternative selector
with identical meaning as the colon ":". This is to support a syntax
that is more similar to a PCI device specification in the device hints
file. The selector is not fully compatible with the specification in
the hints file, since entries in that file use a different prefix,
which needs to be added to the getsel() routine, if full support of
that syntax is found to be desirable.

Approved by: re (Ken Smith)

16 years agoRestore compatibility with version before introduction of PCI domains.
se [Thu, 4 Oct 2007 22:18:53 +0000 (22:18 +0000)]
Restore compatibility with version before introduction of PCI domains.
PCI selectors with 2 or 3 elements behave exactly as before (i.e. the
domain is 0 and in the 2 element case, the function is also 0).
The form with 4 selector elements works as in the previous revision
and provides the PCI domain number as the left-most selector element.

This change allows old scripts (which used the 2 or 3 selector element
formats) to be kept. Without this patch, the 3 element form was parsed
as starting with a domain number (and the function was assumed to be 0),
with this patch, the domain is assumed to be 0 (and the last value is
used as the function number).

The man page is updated to describe the new selector semantics.

Approved by: re (Ken Smith)

16 years agoAdd support for the VIA 8237S
sos [Thu, 4 Oct 2007 19:17:16 +0000 (19:17 +0000)]
Add support for the VIA 8237S
Fix the LBA28/LBA48 crossover bug.

Approved by: re@

16 years agoAlso boot *.debug if everything else fails.
obrien [Thu, 4 Oct 2007 18:29:52 +0000 (18:29 +0000)]
Also boot *.debug if everything else fails.

Approved by: re(gnn)

16 years agoFix lock leak leading to the 'System call <name> returning with 1 locks held'
pjd [Thu, 4 Oct 2007 17:51:59 +0000 (17:51 +0000)]
Fix lock leak leading to the 'System call <name> returning with 1 locks held'
panic.

Reported by: kris
Approved by: re (kensmith)

16 years agoMFp4: Provide a dummy verb "export" to shut up the message
delphij [Thu, 4 Oct 2007 17:11:48 +0000 (17:11 +0000)]
MFp4: Provide a dummy verb "export" to shut up the message
showed up at start when NFS is enabled.

Reported by: rafan
Approved by: re (tmpfs blanket)

16 years agoAdditional work is still needed before we can claim that tmpfs
delphij [Thu, 4 Oct 2007 17:08:46 +0000 (17:08 +0000)]
Additional work is still needed before we can claim that tmpfs
is stable enough for production usage.  Warn user upon mount.

Approved by: re (tmpfs blanket)

16 years agoThe exit status of a case statement where none of the patterns is matched
stefanf [Thu, 4 Oct 2007 16:14:48 +0000 (16:14 +0000)]
The exit status of a case statement where none of the patterns is matched
is supposed to be 0, not the status of the previous command.

Reported by: Eygene Ryabinkin
PR: 116559
Approved by: re (gnn)

16 years agoFix the module name matching to the drivers present in the kernel. Previously
thompsa [Thu, 4 Oct 2007 09:45:41 +0000 (09:45 +0000)]
Fix the module name matching to the drivers present in the kernel. Previously
it would return true on a partial match where it would think the edsc module
was already present by having a positive match on 'ed'.  This changes it so
that it compares the full string including the nul terminators.

This also fixes a buffer overflow in the ifkind variable where the length of
the interface name in *argv wasnt checked for size.

Reviewed by: brooks
Approved by: re (gnn)

16 years ago- We should return error = 0 and the upper processing would
rrs [Thu, 4 Oct 2007 09:29:33 +0000 (09:29 +0000)]
- We should return error = 0 and the upper processing would
  return a zero length read. Otherwise we don't return the
  right error indication.

Approved by: re@freebsd.org (gnn)

16 years agoRecognize the CS5536 support chip for the AMD Geode LX CPU to enable
phk [Thu, 4 Oct 2007 06:21:54 +0000 (06:21 +0000)]
Recognize the CS5536 support chip for the AMD Geode LX CPU to enable
UDMA modes.

Please notice that Soekris NET5501 bios versions before 1.32f has a bug
that prevents this from working.

Approved by: re (gnn)
MFC: 2 weeks

16 years agoFreeBSD 6.2 is now known to mdoc.
ru [Thu, 4 Oct 2007 04:39:06 +0000 (04:39 +0000)]
FreeBSD 6.2 is now known to mdoc.

Approved by: re (kensmith)

16 years agoMFV: recent mdoc(7) changes.
ru [Thu, 4 Oct 2007 04:38:23 +0000 (04:38 +0000)]
MFV: recent mdoc(7) changes.

Approved by: re (kensmith)

16 years agoCorrect a buffer overflow in OpenSSL SSL_get_shared_ciphers().
simon [Wed, 3 Oct 2007 21:38:57 +0000 (21:38 +0000)]
Correct a buffer overflow in OpenSSL SSL_get_shared_ciphers().

Security: FreeBSD-SA-07:08.openssl
Approved by: re (security blanket)

16 years agoThis commit was generated by cvs2svn to compensate for changes in r172423,
ru [Wed, 3 Oct 2007 06:04:40 +0000 (06:04 +0000)]
This commit was generated by cvs2svn to compensate for changes in r172423,
which included commits to RCS files with non-trunk default branches.

16 years agoPull up current -mdoc version from vendor. This includes the
ru [Wed, 3 Oct 2007 06:04:40 +0000 (06:04 +0000)]
Pull up current -mdoc version from vendor.  This includes the
following changes:

: 2007-10-02  Ruslan Ermilov  <ru@FreeBSD.org>
:
:         * tmac/doc-common, tmac/groff_doc.man: Add FreeBSD 6.2, document
:         FreeBSD 5.5 and 7.0.
:
:         * tmac/doc-syms: Give better names for System V releases.

: 2007-05-30  Werner LEMBERG <wl@gnu.org>
:
:         * tmac/groff_mdoc.man: Convert `-' to `\-' where appropriate.
:         Recommend `tbl' instead of `-column' lists for more complicated
:         cases.

16 years agoSort as per README.
ru [Wed, 3 Oct 2007 05:51:20 +0000 (05:51 +0000)]
Sort as per README.

Approved by: re (kensmith)

16 years agoRemoved "tail +5" from the command used to sanity check changes to
ru [Wed, 3 Oct 2007 05:44:27 +0000 (05:44 +0000)]
Removed "tail +5" from the command used to sanity check changes to
mtree files -- the 5-line header is no longer printed when mtree(8)
is run with -n (as of mtree/create.c,v 1.34).

Approved by: re (kensmith)

16 years agoCorrection to the log for rev. 1.4:
obrien [Wed, 3 Oct 2007 01:26:24 +0000 (01:26 +0000)]
Correction to the log for rev. 1.4:
"One must now explicitly specify -ftree-vrp if one wants it".

Approved by: re(KenSmith)

16 years agoDo not imply -ftree-vrp with -O2 and above. One must implicitly specify
obrien [Tue, 2 Oct 2007 20:06:14 +0000 (20:06 +0000)]
Do not imply -ftree-vrp with -O2 and above.  One must implicitly specify
'-ftree-vrp' if one wants it.
Some bad code generation has been tracked to -ftree-vrp.  jdk1{5,6} are
notable examples.

Approved by: re(kensmith)

16 years agoFix usage example since we don't have wext driver.
kevlo [Tue, 2 Oct 2007 15:30:28 +0000 (15:30 +0000)]
Fix usage example since we don't have wext driver.

Reviewed by: sam
Approved by: re (kensmith)

16 years agoFix sx_try_slock(), so it only fails when there is an exclusive owner.
pjd [Tue, 2 Oct 2007 14:48:48 +0000 (14:48 +0000)]
Fix sx_try_slock(), so it only fails when there is an exclusive owner.
Before that fix, it was possible for the function to fail if number
of sharers changes between 'x = sx->sx_lock' step and atomic_cmpset_acq_ptr()
call.

This fixes ZFS problem when ZFS returns strange EIO errors under load.
In ZFS there is a code that depends on the fact that sx_try_slock() can
only fail if there is an exclusive owner.

Discussed with: attilio
Reviewed by: jhb
Approved by: re (kensmith)

16 years agoRemoving obsolete cached files after cached->nscd renaming.
bushman [Tue, 2 Oct 2007 07:51:43 +0000 (07:51 +0000)]
Removing obsolete cached files after cached->nscd renaming.

Approved by: re (kensmith), brooks (mentor)

16 years ago - Reassign the thread queue lock to newtd prior to switching. Assigning
jeff [Tue, 2 Oct 2007 01:30:18 +0000 (01:30 +0000)]
 - Reassign the thread queue lock to newtd prior to switching.  Assigning
   after the switch leads to a race where the outgoing thread still owns
   the local queue lock while another cpu may switch it in.  This race
   is only possible on machines where cpu_switch can take significantly
   longer on different cpus which in practice means HTT machines with
   unfair thread scheduling algorithms.

Found by: kris (of course)
Approved by: re

16 years agoRemove a -N flag.
kevlo [Tue, 2 Oct 2007 01:22:14 +0000 (01:22 +0000)]
Remove a -N flag.

Reviewed by: sam
Approved by: re (kensmith)

16 years ago - Move the rebalancer back into hardclock to prevent potential softclock
jeff [Tue, 2 Oct 2007 00:36:06 +0000 (00:36 +0000)]
 - Move the rebalancer back into hardclock to prevent potential softclock
   starvation caused by unbalanced interrupt loads.
 - Change the rebalancer to work on stathz ticks but retain randomization.
 - Simplify locking in tdq_idled() to use the tdq_lock_pair() rather than
   complex sequences of locks to avoid deadlock.

Reported by: kris
Approved by: re

16 years agoAlways install libpthread.* symlinks if at least one of
ru [Mon, 1 Oct 2007 18:29:55 +0000 (18:29 +0000)]
Always install libpthread.* symlinks if at least one of
the threading libraries is built.  This simplifies the
logic in makefiles that need to check if the pthreads
support is present.  It also fixes a bug where we would
build a threading library that we shouldn't have built:
for example, building with WITHOUT_LIBTHR and the default
value of DEFAULT_THREADING_LIB (libthr) would mistakenly
build the libthr library, but not install it.

Approved by: re (kensmith)

16 years agoRevise the list of directories we manually create under
ru [Mon, 1 Oct 2007 18:24:46 +0000 (18:24 +0000)]
Revise the list of directories we manually create under
${WORLDTMP} and ${LIB32TMP}; some of them are no longer
needed, and some were never needed.

Approved by: re (kensmith)

16 years agoDon't build bits that depend on the pthreads support if a
ru [Mon, 1 Oct 2007 18:23:24 +0000 (18:23 +0000)]
Don't build bits that depend on the pthreads support if a
system was configured without such support.

Approved by: re (kensmith)

16 years agoAlways install libpthread.* symlinks if at least one of
ru [Mon, 1 Oct 2007 18:22:32 +0000 (18:22 +0000)]
Always install libpthread.* symlinks if at least one of
the threading libraries is built.  This simplifies the
logic in makefiles that need to check if the pthreads
support is present.  It also fixes a bug where we would
build a threading library that we shouldn't have built:
for example, building with WITHOUT_LIBTHR and the default
value of DEFAULT_THREADING_LIB (libthr) would mistakenly
build the libthr library, but not install it.

Approved by: re (kensmith)

16 years agoFixed static linkage (build with -DNO_SHARED).
ru [Mon, 1 Oct 2007 18:17:24 +0000 (18:17 +0000)]
Fixed static linkage (build with -DNO_SHARED).

Approved by: re (kensmith)

16 years agoFixed "make checkdpadd" (missing library dependencies).
ru [Mon, 1 Oct 2007 18:15:11 +0000 (18:15 +0000)]
Fixed "make checkdpadd" (missing library dependencies).

Approved by: re (kensmith)

16 years ago- Add cddl/lib to the list of library directories.
ru [Mon, 1 Oct 2007 18:11:43 +0000 (18:11 +0000)]
- Add cddl/lib to the list of library directories.
- Add /bin to PATH to suppress a harmless warning from a
  makefile that sets a variable using cat(1).

Approved by: re (kensmith)

16 years agoThe shell_1_sh test was failing with "make -jX".
ru [Mon, 1 Oct 2007 18:09:42 +0000 (18:09 +0000)]
The shell_1_sh test was failing with "make -jX".

Approved by: re (kensmith)

16 years agoMK_LIBTHR was misspelled.
ru [Mon, 1 Oct 2007 18:08:11 +0000 (18:08 +0000)]
MK_LIBTHR was misspelled.

Approved by: re (kensmith)

16 years agoInstall the forgotten /usr/include/geom/multipath/ header.
ru [Mon, 1 Oct 2007 18:07:29 +0000 (18:07 +0000)]
Install the forgotten /usr/include/geom/multipath/ header.

Approved by: re (kensmith)

16 years ago- Bug fix managing congestion parameter on immediate
rrs [Mon, 1 Oct 2007 03:22:29 +0000 (03:22 +0000)]
- Bug fix managing congestion parameter on immediate
  retransmittion by handover event (fast mobility code)
- Fixed problem of mobility code which is caused by remaining
  parameters in the deleted primary destination.
- Add a missing lock. When a peer sends an INIT, and while we
  are processing it to send an INIT-ACK the socket is closed,
  we did not hold a lock to keep the socket from going away.
  Add protection for this case.
- Fix so that arwnd is alway uses the minimal rwnd if the user
  has set the socket buffer smaller. Found this when the test
  org decided to see what happens when you set in a rwnd of 10
  bytes (which is not allowed per RFC .. 4k is minimum).
- Fixes so a cookie-echo ootb will NOT cause an abort to
  be sent. This was happening in a MPI collision case.
- Examined all panics and unless there was no recovery, moved
  any that were not already to INVARANTS.

Approved by: re@freebsd.org (gnn)

16 years agoMake the PCI code aware of PCI domains (aka PCI segments) so we can
marius [Sun, 30 Sep 2007 11:05:18 +0000 (11:05 +0000)]
Make the PCI code aware of PCI domains (aka PCI segments) so we can
support machines having multiple independently numbered PCI domains
and don't support reenumeration without ambiguity amongst the
devices as seen by the OS and represented by PCI location strings.
This includes introducing a function pci_find_dbsf(9) which works
like pci_find_bsf(9) but additionally takes a domain number argument
and limiting pci_find_bsf(9) to only search devices in domain 0 (the
only domain in single-domain systems). Bge(4) and ofw_pcibus(4) are
changed to use pci_find_dbsf(9) instead of pci_find_bsf(9) in order
to no longer report false positives when searching for siblings and
dupe devices in the same domain respectively.
Along with this change the sole host-PCI bridge driver converted to
actually make use of PCI domain support is uninorth(4), the others
continue to use domain 0 only for now and need to be converted as
appropriate later on.
Note that this means that the format of the location strings as used
by pciconf(8) has been changed and that consumers of <sys/pciio.h>
potentially need to be recompiled.

Suggested by: jhb
Reviewed by: grehan, jhb, marcel
Approved by: re (kensmith), jhb (PCI maintainer hat)

16 years agoUpdating ObsoleteFiles.inc after cached->nscd renaming.
bushman [Sat, 29 Sep 2007 22:37:40 +0000 (22:37 +0000)]
Updating ObsoleteFiles.inc after cached->nscd renaming.

Approved by: re (bmah), brooks (mentor)

16 years agoAdd my self and my mentor.
kaiw [Sat, 29 Sep 2007 17:01:19 +0000 (17:01 +0000)]
Add my self and my mentor.

Approved by: jkoshy (mentor)
Approved by: re (bmah)

16 years agoo For dynamic rules log a parent rule number. Prefix a log message
maxim [Sat, 29 Sep 2007 15:01:41 +0000 (15:01 +0000)]
o For dynamic rules log a parent rule number.  Prefix a log message
by 'ipfw: '.

PR: kern/115755
Submitted by: sem
Approved by: re (gnn)
MFC after: 4 weeks

16 years agofix building with NO_CRYPT=true
sam [Fri, 28 Sep 2007 15:52:28 +0000 (15:52 +0000)]
fix building with NO_CRYPT=true

PR: 116439
Approved by: re (gnn)

16 years agoAdjust history.
obrien [Fri, 28 Sep 2007 15:31:44 +0000 (15:31 +0000)]
Adjust history.

Approved by: re(ken)

16 years ago- Change the description of sleepq_add(), sleepq_broadcast() and
gabor [Fri, 28 Sep 2007 11:13:40 +0000 (11:13 +0000)]
- Change the description of sleepq_add(), sleepq_broadcast() and
  sleepq_signal() to reflect recent changes

Submitted by: attilio
Approved by: re (bmah)

16 years agoFinishing renaming of cached into nscd. etc/rc.d and usr.sbin/Makefile
bushman [Fri, 28 Sep 2007 10:38:08 +0000 (10:38 +0000)]
Finishing renaming of cached into nscd. etc/rc.d and usr.sbin/Makefile
updated. Note added to UPDATING.

Approved by: re (kensmith, bmah), brooks (mentor)

16 years agoAdd a missing word in one place and delete an extraneous article in
bmah [Fri, 28 Sep 2007 05:14:39 +0000 (05:14 +0000)]
Add a missing word in one place and delete an extraneous article in
another.

Approved by: re (implicitly)

16 years agoNew release note: gvirstor(8).
bmah [Fri, 28 Sep 2007 05:04:13 +0000 (05:04 +0000)]
New release note:  gvirstor(8).

MFC noted:  camcontrol(8) readcap.

Approved by: re (implicitly)

16 years agoAdd fts_set_clientptr(3), fts_get_clientptr(3) and fts_get_stream(3) man
scf [Fri, 28 Sep 2007 02:22:56 +0000 (02:22 +0000)]
Add fts_set_clientptr(3), fts_get_clientptr(3) and fts_get_stream(3) man
page links to fts(3).

Approved by: wes
Approved by: re (hrs)
MFC after: 5 days

16 years agoOk I hope I got it right this time.
cognet [Thu, 27 Sep 2007 22:39:49 +0000 (22:39 +0000)]
Ok I hope I got it right this time.
After discussion with Sam, switch back to use firmware(9) instead of
having the firmware in hex format.
Put the binary firmware uuencoded into sys/contrib/dev/npe, and slap a
LICENSE file, as found on the Intel website.

Approved by: re (blanket), mux (mentor)
MFC After: 1 week

16 years agoNow that Intel changed the license for the NPE firmware, import it directly
cognet [Thu, 27 Sep 2007 21:18:34 +0000 (21:18 +0000)]
Now that Intel changed the license for the NPE firmware, import it directly
hexed into our tree, instead of requiring the user to download it.

Approved by: re (blanket)
MFC after: 1 week

16 years agoFix a comment to reflect the truth.
cognet [Thu, 27 Sep 2007 20:52:17 +0000 (20:52 +0000)]
Fix a comment to reflect the truth.

Spotted out by: Marius Nuennerich <marius.nuennerich AT gmx D0T de>
Approved by: re (blanket)

16 years agoWhen orphaning a provider, cancel events related to it.
pjd [Thu, 27 Sep 2007 20:18:34 +0000 (20:18 +0000)]
When orphaning a provider, cancel events related to it.
Without this change the following situation was possible:

1. Provider is orphaned from within class' access() method on last write
   close - orphan provider event is send.
2. GEOM detects last write close on a provider and sends new provider event.
3. g_orphan_register() is called, and calls all orphan methods of attached
   consumers.
4. New provider event is executed on orphaned provider, all classes can
   taste already orphaned provider, and some may attach consumers to it.
   Those consumers will never go away, because the g_orphan_register()
   was already called.

We end up with a zombie provider.

With this change, at step 3, we will cancel new provider event.

How to repeat this problem:

# mdconfig -a -t malloc -s 10m
# geli init -i 0 md0
# geli attach md0
# newfs -L test /dev/md0.eli
# mount /dev/ufs/test /mnt/tmp
# geli detach -l md0.eli
# umount /mnt/tmp
# glabel status
            Name  Status  Components
        ufs/test  N/A     N/A

Reviewed by: phk
Approved by: re (kensmith)

16 years agoFix previous commit: I should be in alphabetical order.
rpaulo [Thu, 27 Sep 2007 20:11:32 +0000 (20:11 +0000)]
Fix previous commit: I should be in alphabetical order.

Pointed out by: brueffer
Approved by: re (bmah), njl

16 years ago - Honor the PREEMPTION and FULL_PREEMPTION flags by setting the default
jeff [Thu, 27 Sep 2007 16:39:27 +0000 (16:39 +0000)]
 - Honor the PREEMPTION and FULL_PREEMPTION flags by setting the default
   value for kern.sched.preempt_thresh appropriately.  It can still by
   adjusted at runtime.  ULE will still use IPI_PREEMPT in certain
   migration situations.
 - Assert that we're not trying to compile ULE on an unsupported
   architecture.  To date, I believe only i386 and amd64 have implemented
   the third cpu switch argument required.

Approved by: re

16 years agoForced commit to note repocopy:
bushman [Thu, 27 Sep 2007 12:30:12 +0000 (12:30 +0000)]
Forced commit to note repocopy:

The files were copied in order to rename cached to nscd.

Approved by: re (kensmith), brooks (mentor)

16 years agoAdd myself and my mentor.
rpaulo [Thu, 27 Sep 2007 11:43:56 +0000 (11:43 +0000)]
Add myself and my mentor.

Reviewed by: njl (mentor)
Approved by: re