]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMFC r201879:
attilio [Mon, 25 Jan 2010 12:05:51 +0000 (12:05 +0000)]
MFC r201879:
Introduce the new kernel thread called "deadlock resolver".
It is used in order to seek within the threads state and heuristically
understand if there is any deadlock happening.

In order to implement it, the sq_type in sleepqueues is mandatory and not
only compiled along with INVARIANTS option. Additively, a new sleepqueue
function, sleepq_type() is added, returning the type of the sleepqueue
linked to a wchan.
Three new sysctls are added in order to configure the thread:
debug.deadlkres.slptime_threshold
debug.deadlkres.blktime_threshold
debug.deadlkres.sleepfreq

rappresenting the thresholds for sleep and block time that will lead to
a deadlock matching (when exceeded), while the sleepfreq rappresents the
number of seconds between 2 consecutive thread runnings.
In order to enable the deadlock resolver thread recompile your kernel
with the option DEADLKRES.

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@202966 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201790:
attilio [Mon, 25 Jan 2010 11:56:53 +0000 (11:56 +0000)]
MFC r201790:
- Set td_slptick to 0 when moving threads out of sleepqueues.
- Move td_slptick from u_int to int in order to follow 'ticks' signedness
  and wrap up accordingly.

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@202965 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 202449:
tuexen [Sun, 24 Jan 2010 22:17:08 +0000 (22:17 +0000)]
MFC 202449:

Get rid of support of an old version of the SCTP-AUTH draft.
Get rid of unused MD5 code.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202951 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge r202000 from head:
gavin [Sun, 24 Jan 2010 22:01:04 +0000 (22:01 +0000)]
Merge r202000 from head:

  Don't panic on attach if we can't allocate ifp

Approved by: ed (mentor, implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/8@202950 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoFix mergeinfo after r202464, which was merged to etc/rc.d rather than etc
gavin [Sun, 24 Jan 2010 21:17:06 +0000 (21:17 +0000)]
Fix mergeinfo after r202464, which was merged to etc/rc.d rather than etc

Approved by: ed (mentor, implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/8@202949 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r197752:
das [Sun, 24 Jan 2010 20:15:59 +0000 (20:15 +0000)]
MFC r197752:

  Better glibc compatibility for getline/getdelim:

  - Tolerate applications that pass a NULL pointer for the buffer and
    claim that the capacity of the buffer is nonzero.

  - If an application passes in a non-NULL buffer pointer and claims the
    buffer has zero capacity, we should free (well, realloc) it
    anyway. It could have been obtained from malloc(0), so failing to
    free it would be a small memory leak.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202947 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoRecord rev. 198277 MFC.
fjoe [Sun, 24 Jan 2010 17:00:21 +0000 (17:00 +0000)]
Record rev. 198277 MFC.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202938 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoRecord rev. 201924 MFC.
fjoe [Sun, 24 Jan 2010 16:58:20 +0000 (16:58 +0000)]
Record rev. 201924 MFC.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202936 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202500:
ed [Sun, 24 Jan 2010 14:30:57 +0000 (14:30 +0000)]
MFC r202500:

  Fix a regression that was introduced in r191882.

  I changed login_tty() to only work when the application is not a session
  leader yet. This works fine for applications in the base system, but it
  turns out various applications call this function after daemonizing,
  which means they already use their own session.

  If setsid() fails, just call tcsetsid() on the current session.
  tcsetsid() will already perform proper security checks.

Reported by: Oliver Lehmann

git-svn-id: svn://svn.freebsd.org/base/stable/8@202929 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoBump __FreeBSD_version for scandir(3) and alphasort(3) interface changes.
kib [Sun, 24 Jan 2010 12:37:30 +0000 (12:37 +0000)]
Bump __FreeBSD_version for scandir(3) and alphasort(3) interface changes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202922 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge scandir(3) interface update to stable/8.
kib [Sun, 24 Jan 2010 12:35:36 +0000 (12:35 +0000)]
Merge scandir(3) interface update to stable/8.

MFC r201512:
Modernize scandir(3) and alphasort(3) interfaces according to the IEEE
Std 1003.1-2008.

MFC r201602:
Move scandir(3) and alphasort(3) into XSI namespace.

MFC r201604:
Use thunks to adapt alphasort-like interface to the comparision function
required by qsort() and qsort_r().

MFC r202556 (by ache):
Use strcoll() in opendir() and alphasort(). Remove some comments.

MFC r202572 (by ache):
Revert to using strcmp() for opendir().

MFC r202677 (by ache):
Style.

MFC r202679 (by ache):
Style: rename internal function to opendir_compar().

MFC r202691 (by ache):
For alphasort(3) add reference to strcoll(3).

MFC r202693 (by ache):
Style: reword comment.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202921 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202469:
bz [Sun, 24 Jan 2010 12:22:38 +0000 (12:22 +0000)]
MFC r202469:
  Garbage collect references to the no longer implemented tcp_fasttimo().

git-svn-id: svn://svn.freebsd.org/base/stable/8@202920 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: Send link state change control messages to "orphans" hook as well.
fjoe [Sun, 24 Jan 2010 08:59:33 +0000 (08:59 +0000)]
MFC: Send link state change control messages to "orphans" hook as well.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202911 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202468:
bz [Sat, 23 Jan 2010 16:40:35 +0000 (16:40 +0000)]
MFC r202468:

  Add ip4.saddrsel/ip4.nosaddrsel (and equivalent for ip6) to control
  whether to use source address selection (default) or the primary
  jail address for unbound outgoing connections.

  This is intended to be used by people upgrading from single-IP
  jails to multi-IP jails but not having to change firewall rules,
  application ACLs, ... but to force their connections (unless
  otherwise changed) to the primry jail IP they had been used for
  years, as well as for people prefering to implement similar policies.

  Note that for IPv6, if configured incorrectly, this might lead to
  scope violations, which single-IPv6 jails could as well, as by the
  design of jails. [1]

  Reviewed by: jamie, hrs (ipv6 part)
  Pointed out by: hrs [1]

git-svn-id: svn://svn.freebsd.org/base/stable/8@202891 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200764
rnoland [Sat, 23 Jan 2010 16:29:04 +0000 (16:29 +0000)]
MFC r200764

Fix a handful of issues with via agp support.

  * Read the pci capability register to identify AGP 3 support
  * Add missing smaller aperture sizes for AGP3 chips.
  * Fix the aperture size calculation on AGP2 chips.
    All sizes between 32M and 256M reported as 256M.
  * Add \n to error string.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202890 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r202162
brueffer [Sat, 23 Jan 2010 14:12:40 +0000 (14:12 +0000)]
MFC: r202162

Various fixes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202885 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202863
np [Sat, 23 Jan 2010 08:37:04 +0000 (08:37 +0000)]
MFC r202863

Don't forget to release the adapter lock for a no-op.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202874 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC rev 202552:
marcel [Sat, 23 Jan 2010 06:29:34 +0000 (06:29 +0000)]
MFC rev 202552:
Add command-line option -dev to set the default value of the currdev
variable.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202866 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202268:
delphij [Sat, 23 Jan 2010 01:25:09 +0000 (01:25 +0000)]
MFC r202268:

 o Add PCI ID for BCM 5756.
 o Don't enable BGE_FLAG_BER_BUG on both 5722 and 5756, and based
   on their PCI IDs rather than their chip IDs.

Reported by:    several PC-BSD users via kmoore
Reviewed by:    yongari, imp, jhb, davidch
Sponsored by:   iXsystems, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202862 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202709:
delphij [Sat, 23 Jan 2010 00:52:32 +0000 (00:52 +0000)]
MFC r202709:

Give the right value when complaining it being wrong.

Reported by: danfe

git-svn-id: svn://svn.freebsd.org/base/stable/8@202859 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201894:
delphij [Sat, 23 Jan 2010 00:49:10 +0000 (00:49 +0000)]
MFC r201894:

Fix formatting.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202857 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201892:
delphij [Sat, 23 Jan 2010 00:43:44 +0000 (00:43 +0000)]
MFC r201892:

Add a set of manual pages for pthread[_attr]_[sg]etaffinity(3).

Reviewed by: davidxu

git-svn-id: svn://svn.freebsd.org/base/stable/8@202855 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200930:
delphij [Sat, 23 Jan 2010 00:32:19 +0000 (00:32 +0000)]
MFC r200930:

Adapt OpenBSD pf's "sloopy" TCP state machine which is useful for Direct
Server Return mode, where not all packets would be visible to the load
balancer or gateway.

This commit should be reverted when we merge future pf versions.  The
benefit it would provide is that this version does not break any existing
public interface and thus won't be a problem if we want to MFC it to
earlier FreeBSD releases.

Discussed with: mlaier
Obtained from: OpenBSD
Sponsored by: iXsystems, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202852 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoSynchronize pkg_install with HEAD.
flz [Fri, 22 Jan 2010 23:13:46 +0000 (23:13 +0000)]
Synchronize pkg_install with HEAD.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202840 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201261:
brooks [Fri, 22 Jan 2010 20:24:55 +0000 (20:24 +0000)]
MFC r201261:
  Add missing `void' keywords.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202828 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge r201647 from head:
gavin [Fri, 22 Jan 2010 20:02:22 +0000 (20:02 +0000)]
Merge r201647 from head:
  Print leading zeros in the UFS2 FSID.

PR: bin/142155
Submitted by: Efstratios Karatzas  gpf.kira gmail.com
Approved by: ed (mentor, implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/8@202824 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201350:
brooks [Fri, 22 Jan 2010 19:51:34 +0000 (19:51 +0000)]
MFC r201350:

  The devices that supported EVFILT_NETDEV kqueue filters were removed in
  r195175.  Remove all definitions, documentation, and usage.

The change of function signature for vlan_link_state() was not merged to
maintain the ABI.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202823 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202582:
dougb [Fri, 22 Jan 2010 17:30:36 +0000 (17:30 +0000)]
MFC r202582:
Update named.conf for documentation IP addresses and domains

git-svn-id: svn://svn.freebsd.org/base/stable/8@202818 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r201848
brueffer [Fri, 22 Jan 2010 17:03:49 +0000 (17:03 +0000)]
MFC: r201848

Free allocated sbufs before returning ENOMEM.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202815 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202798:
mav [Fri, 22 Jan 2010 11:42:23 +0000 (11:42 +0000)]
MFC r202798:
Add "MIXER CONTROLS" chapter.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202804 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202160:
mav [Fri, 22 Jan 2010 11:40:55 +0000 (11:40 +0000)]
MFC r202160:
Update, reflecting added multichannel playback support.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202803 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202127, r202156:
mav [Fri, 22 Jan 2010 11:37:19 +0000 (11:37 +0000)]
MFC r202127, r202156:
Add multichannel (4.0, 5.1 and 7.1) playback support.

Stereo stream is no more duplicated to all ports. If you loose sound, check
you are using right connectors. Front speakers connector is usually green,
center/LFE - orange, rear - black, side - gray.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202802 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202267:
mav [Fri, 22 Jan 2010 11:31:49 +0000 (11:31 +0000)]
MFC r202267:
Hide from default sndstat some information not used on daily basis,
to make it readable by average user with average screen size.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202801 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202166:
mav [Fri, 22 Jan 2010 11:30:32 +0000 (11:30 +0000)]
MFC r202166:
Make default recording source choosing more intelligent.
Change default recording level from 0 to 75.
It should increase chances for things to work just out of the box.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202800 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r197420:
mav [Fri, 22 Jan 2010 11:16:46 +0000 (11:16 +0000)]
MFC r197420:
Lock bus scan.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202799 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202567: acpi_ec: remove redundant acpi_disabled check
avg [Fri, 22 Jan 2010 09:41:09 +0000 (09:41 +0000)]
MFC r202567: acpi_ec: remove redundant acpi_disabled check

git-svn-id: svn://svn.freebsd.org/base/stable/8@202792 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202558: acpi_ec: clean up 'private' ivar when freeing memory
avg [Fri, 22 Jan 2010 09:34:57 +0000 (09:34 +0000)]
MFC r202558: acpi_ec: clean up 'private' ivar when freeing memory

git-svn-id: svn://svn.freebsd.org/base/stable/8@202790 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202585: fix a comment typo
avg [Fri, 22 Jan 2010 09:27:31 +0000 (09:27 +0000)]
MFC r202585: fix a comment typo

git-svn-id: svn://svn.freebsd.org/base/stable/8@202787 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC rev. 202271-202273:
marcel [Fri, 22 Jan 2010 03:59:05 +0000 (03:59 +0000)]
MFC rev. 202271-202273:
o  Add wrappers for the RT Variable Services.
o  Add ioctl requests to /dev/io on ia64 for reading and writing
   EFI variables.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202777 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC rev. 202097:
marcel [Fri, 22 Jan 2010 03:50:43 +0000 (03:50 +0000)]
MFC rev. 202097:
Use io(4) for I/O port access on ia64, rather than through sysarch(2).

git-svn-id: svn://svn.freebsd.org/base/stable/8@202776 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 198411:
jhb [Thu, 21 Jan 2010 19:11:18 +0000 (19:11 +0000)]
MFC 198411:
- Fix several off-by-one errors when using MAXCOMLEN.  The p_comm[] and
  td_name[] arrays are actually MAXCOMLEN + 1 in size and a few places that
  created shadow copies of these arrays were just using MAXCOMLEN.
- Prefer using sizeof() of an array type to explicit constants for the
  array length in a few places.
- Ensure that all of p_comm[] and td_name[] is always zero'd during
  execve() to guard against any possible information leaks.  Previously
  trailing garbage in p_comm[] could be leaked to userland in ktrace
  record headers via td_name[].

git-svn-id: svn://svn.freebsd.org/base/stable/8@202764 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 198134,198149,198170,198171,198391,200948:
jhb [Thu, 21 Jan 2010 17:54:29 +0000 (17:54 +0000)]
MFC 198134,198149,198170,198171,198391,200948:
Add a facility for associating optional descriptions with active interrupt
handlers.  This is primarily intended as a way to allow devices that use
multiple interrupts (e.g. MSI) to meaningfully distinguish the various
interrupt handlers.
- Add a new BUS_DESCRIBE_INTR() method to the bus interface to associate
  a description with an active interrupt handler setup by BUS_SETUP_INTR.
  It has a default method (bus_generic_describe_intr()) which simply passes
  the request up to the parent device.
- Add a bus_describe_intr() wrapper around BUS_DESCRIBE_INTR() that supports
  printf(9) style formatting using var args.
- Reserve MAXCOMLEN bytes in the intr_handler structure to hold the name of
  an interrupt handler and copy the name passed to intr_event_add_handler()
  into that buffer instead of just saving the pointer to the name.
- Add a new intr_event_describe_handler() which appends a description string
  to an interrupt handler's name.
- Implement support for interrupt descriptions on amd64, i386, and sparc64 by
  having the nexus(4) driver supply a custom bus_describe_intr method that
  invokes a new intr_describe() MD routine which in turn looks up the
  associated interrupt event and invokes intr_event_describe_handler().

git-svn-id: svn://svn.freebsd.org/base/stable/8@202762 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r202587
marius [Thu, 21 Jan 2010 17:37:25 +0000 (17:37 +0000)]
MFC: r202587

Add epic(4) also here.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202759 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r202290
brueffer [Thu, 21 Jan 2010 16:31:45 +0000 (16:31 +0000)]
MFC: r202290

Build iwi(4) and iwifw(4) modules on amd64 as well.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202753 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 202286:
jhb [Thu, 21 Jan 2010 15:10:20 +0000 (15:10 +0000)]
MFC 202286:
Update the ident for the XENHVM kernel config to match the filename.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202752 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202578 and r202579:
ru [Thu, 21 Jan 2010 13:15:14 +0000 (13:15 +0000)]
MFC r202578 and r202579:

If CTAGS is not set or set to something other than "ctags" or "gtags",
"cleandepend" was not removing the .depend file; fixed. [1]

Allow the CTAGS to be set to something other than "gtags" or "ctags",
but assume it supports a ctags(1)-compatible syntax. [2]

PR: 126747 [1], 46676 [2]

git-svn-id: svn://svn.freebsd.org/base/stable/8@202747 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC of 202280, 202281
edwin [Thu, 21 Jan 2010 10:16:21 +0000 (10:16 +0000)]
MFC of 202280, 202281

- Remove -d option, whois.nic.mil doesn't exist anymore.

- Make whois capable of searching for IPv6 addresses just like it can
  do for IPv4 addresses without having to explicetly specify that the
  ARIN server should be used to get the initial information.

PR: bin/142507, bin/128725
Submitted by: Dan Mahoney <danm@prime.gushi.org>, "Matt D. Harris" <mdh_lists@yahoo.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@202740 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201416:
np [Thu, 21 Jan 2010 10:12:21 +0000 (10:12 +0000)]
MFC r201416:

Avoid NULL dereference in arpresolve.

Requested by: kib@

git-svn-id: svn://svn.freebsd.org/base/stable/8@202739 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201907,202671,202678
np [Thu, 21 Jan 2010 03:06:52 +0000 (03:06 +0000)]
MFC r201907,202671,202678

r201907:
Extra parantheses to keep certain compilers happy.

r202671:
Fix for a cxgb(4) panic.  cxgb_ioctl can be called by the IP and IPv6
layers with non-sleepable locks held.  Don't (potentially) sleep in
those situations.

r202678:
Complain if freelist queue sizes are significantly less than desired.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202733 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202406:
yongari [Thu, 21 Jan 2010 00:53:00 +0000 (00:53 +0000)]
MFC r202406:
  Don't free mbuf chains when bge(4) fails to collapse the mbuf
  chains. This part of code is to enhance performance so failing the
  collapsing should not free TX frames. Otherwise bge(4) will
  unnecessarily drop frames which in turn can freeze the network
  connection.

  Reported by: Igor Sysoev (is <> rambler-co dot ru)
  Tested by: Igor Sysoev (is <> rambler-co dot ru)

git-svn-id: svn://svn.freebsd.org/base/stable/8@202730 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202294:
yongari [Thu, 21 Jan 2010 00:49:14 +0000 (00:49 +0000)]
MFC r202294:
  Add check for fiber mode for BCM5714 PHY. This PHY supports both
  copper and fiber interfaces over GMII so an explicit check is
  necessary to know whether it was configured for fiber interface.
  This change make BCM5715S work.

  Tested by: olli
  PR: kern/122551

git-svn-id: svn://svn.freebsd.org/base/stable/8@202728 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202293:
yongari [Thu, 21 Jan 2010 00:45:12 +0000 (00:45 +0000)]
MFC r202293:
  For controllers that has dual mode PHY(copper or fiber) interfaces
  over GMII, make sure to enable GMII. With this change brgphy(4) is
  used to handle the dual mode PHY. Since we still don't have a sane
  way to pass PHY specific information to mii(4) layer special
  handling is needed in brgphy(4) to determine which mode of PHY was
  configured in parent interface.
  This change make BCM5715S work.

  Tested by: olli
  Obtained from: OpenBSD
  PR: kern/122551

git-svn-id: svn://svn.freebsd.org/base/stable/8@202726 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202269:
yongari [Thu, 21 Jan 2010 00:37:14 +0000 (00:37 +0000)]
MFC r202269:
  Add BCM5754 PHY id that is found on Dell Studio XPS 16.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202724 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200018:
nwhitehorn [Wed, 20 Jan 2010 16:28:39 +0000 (16:28 +0000)]
MFC r200018:

Bump limits on PowerPC. This allows large executables like parts of LLVM
to function.

Reviewed by: grehan
Obtained from: NetBSD

git-svn-id: svn://svn.freebsd.org/base/stable/8@202706 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198470, r198521:
kib [Wed, 20 Jan 2010 15:24:24 +0000 (15:24 +0000)]
MFC r198470, r198521:
Syncronize iwn(4) manpages with HEAD.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202705 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198429, r198439, r198468, r201209, r201822, r201882:
kib [Wed, 20 Jan 2010 15:22:34 +0000 (15:22 +0000)]
MFC r198429, r198439, r198468, r201209, r201822, r201882:
Syncronize iwn(4) driver in stable/8 with HEAD.

Approved by: rpaulo

git-svn-id: svn://svn.freebsd.org/base/stable/8@202704 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 198344:
jhb [Wed, 20 Jan 2010 15:13:38 +0000 (15:13 +0000)]
MFC 198344:
Change gcc to assume a default machine architecture of 486 instead of 386
on "i386".  Doing it in the compiler is deemed to be less fragile then
attempting to provide a default -march setting via bsd.cpu.mk.  FreeBSD
itself has not supported plain 386 CPUs since 5.x.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202702 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 202285:
jhb [Wed, 20 Jan 2010 14:48:42 +0000 (14:48 +0000)]
MFC 202285:
- Note that if_xname, if_dname, and if_dunit are usually initialized via
  if_initname().
- Document if_drv_flags and replace references to IFF_(RUNNING|OACTIVE)
  with references to IFF_DRV_(RUNNING|OACTIVE).
- Complete truncated sentence in the description of if_transmit by copying
  from the description in if_qflush.
- Add missing line breaks for translators.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202700 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201690:
delphij [Wed, 20 Jan 2010 01:14:54 +0000 (01:14 +0000)]
MFC r201690:

Space cleanup for revision 202669 committed separately for easier review.
This commit is purely space changes.

Submitted by: Matt Reimer
Sponsored by: VPOP Technologies, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202670 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201689:
delphij [Wed, 20 Jan 2010 01:13:52 +0000 (01:13 +0000)]
MFC r201689:

Instead of assuming all vdevs are healthy, check the newest vdev label
for each vdev's status.  Booting from a degraded vdev should now be
more robust.

Submitted by: Matt Reimer <mattjreimer at gmail.com>
Sponsored by: VPOP Technologies, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202669 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200802:
delphij [Wed, 20 Jan 2010 00:53:44 +0000 (00:53 +0000)]
MFC r200802:

Use vsprintf instead of rolling our own.

PR: bin/140496
Submitted by: Jeremy Huddleston <jeremyhu apple.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@202666 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200800:
delphij [Wed, 20 Jan 2010 00:53:03 +0000 (00:53 +0000)]
MFC r200800:

Use vsscanf instead of rolling our own.

PR: bin/140530
Submitted by: Jeremy Huddleston <jeremyhu apple.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@202665 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200799:
delphij [Wed, 20 Jan 2010 00:52:24 +0000 (00:52 +0000)]
MFC r200799:

K&R -> ANSI prototype.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202664 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200795:
delphij [Wed, 20 Jan 2010 00:43:15 +0000 (00:43 +0000)]
MFC r200795:

Add support of using environment variable BURNCD_SPEED to specify
recodring speed.

PR: bin/140530
Submitted by: Alexander Best <alexbestms wwu.de>

git-svn-id: svn://svn.freebsd.org/base/stable/8@202662 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r202453
marius [Tue, 19 Jan 2010 22:09:41 +0000 (22:09 +0000)]
MFC: r202453

Update the sparc64 hardware list regarding machines that will be supported
by 7.3-RELEASE.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202657 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 202157:
fabient [Tue, 19 Jan 2010 20:55:57 +0000 (20:55 +0000)]
MFC 202157:
 Bug fix: add a missing initializer.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202654 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 202284,202650:
jhb [Tue, 19 Jan 2010 20:48:23 +0000 (20:48 +0000)]
MFC 202284,202650:
- Update required headers for namei() to add <sys/fcntl.h> and remove
  <sys/proc.h>.
- Add RETURN VALUES and ERROR sections for namei()'s error return values.
- Add a missing link to NDHASGIANT.9.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202652 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r202176
brueffer [Tue, 19 Jan 2010 17:09:18 +0000 (17:09 +0000)]
MFC: r202176

Miscellaneous mdoc, spelling and inconsistency fixes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202632 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r201603
brueffer [Tue, 19 Jan 2010 16:51:51 +0000 (16:51 +0000)]
MFC: r201603

Fix a double free().

git-svn-id: svn://svn.freebsd.org/base/stable/8@202630 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201222:
mav [Tue, 19 Jan 2010 13:36:12 +0000 (13:36 +0000)]
MFC r201222:
Usually these controllers are able to automatically decode command code to
get required command protocol. But they have no idea about new commands,
such as DATA SET MANAGEMENT (TRIM). As soon as this info any way provided
by CAM, give controller specific instructions.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202626 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200814:
mav [Tue, 19 Jan 2010 13:33:31 +0000 (13:33 +0000)]
MFC r200814:
Clear all ports interrupt status bits in single write. Clearing one by one
causes additional MSIs messages sent if several ports asked for attention
same time. Time window before clearing is not important, as these interrupts
are level triggered by interrupt source.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202624 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201993:
mav [Tue, 19 Jan 2010 13:27:54 +0000 (13:27 +0000)]
MFC r201993:
Report which of IXP700 legacy ATA channels are SATA.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202622 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200857:
mav [Tue, 19 Jan 2010 13:26:45 +0000 (13:26 +0000)]
MFC r200857:
Add support for Intel SCH PATA controller.

PR:             kern/140251

git-svn-id: svn://svn.freebsd.org/base/stable/8@202621 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200817:
mav [Tue, 19 Jan 2010 13:25:31 +0000 (13:25 +0000)]
MFC r200817:
Spell AMD properly.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202620 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200754:
mav [Tue, 19 Jan 2010 13:24:11 +0000 (13:24 +0000)]
MFC r200754:
Add VIA CX700/VX800 chipsets SATA/PATA support.

PR:             kern/121521

git-svn-id: svn://svn.freebsd.org/base/stable/8@202619 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200753:
mav [Tue, 19 Jan 2010 13:21:25 +0000 (13:21 +0000)]
MFC r200753:
Fairly set master/slave shared PIO/WDMA timings on ITE 821x controllers.
Previous implementation could only limit mode, but not rise it back.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202618 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200655:
mav [Tue, 19 Jan 2010 13:07:25 +0000 (13:07 +0000)]
MFC r200655:
Serverworks OSB4 has no 0x4a (piomode) register, do not touch it.
Also OSB4 has some problems with UDMA transfers, limit it to WDMA2.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202617 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201990:
mav [Tue, 19 Jan 2010 13:00:33 +0000 (13:00 +0000)]
MFC r201990:
- Report SATA in legacy emulation mode still as SATA.
- Make ATA XPT able to handle such case.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202616 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201139:
mav [Tue, 19 Jan 2010 12:58:29 +0000 (12:58 +0000)]
MFC r201139:
Add BIO_DELETE support to ada(4):
- For SSDs use TRIM feature of DATA SET MANAGEMENT command, as defined by
ACS-2 specification working draft.
- For CompactFlash use CFA ERASE command, same as ad(4) does.

With this patch, `newfs -E /dev/ada1` was able to restore write speed of
my heavily weared OCZ Vertex SSD (firmware 1.4) up to the initial level
for the most part of it's capacity.

I have no idea whether it is normal, but for some reason it takes 200ms
to handle any TRIM command on this drive, that was making delete extremely
slow. But TRIM command is able to accept long list of LBAs and the length of
that list seems doesn't affect it's execution time. Implemented request
clusting algorithm allowed me to rise delete rate up to reasonable numbers,
when many parallel DELETE requests running.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202615 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202085
alc [Mon, 18 Jan 2010 21:17:03 +0000 (21:17 +0000)]
MFC r202085
  Simplify pmap_init().  Additionally, correct a harmless misbehavior on
  i386.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202591 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200447,201703,201709-201710:
attilio [Mon, 18 Jan 2010 14:43:44 +0000 (14:43 +0000)]
MFC r200447,201703,201709-201710:
In current code, threads performing an interruptible sleep
will leave the waiters flag on forcing the owner to do a wakeup even
when the waiter queue is empty.
That operation may lead to a deadlock in the case of doing a fake wakeup
on the "preferred" queue while the other queue has real waiters on it,
because nobody is going to wakeup the 2nd queue waiters and they will
sleep indefinitively.
A similar bug, is present, for lockmgr in the case the waiters are
sleeping with LK_SLEEPFAIL on.

Add a sleepqueue interface which does report the actual number of waiters
on a specified queue of a waitchannel and track if at least one sleepfail
waiter is present or not. In presence of this or empty "preferred" queue,
wakeup both waiters queues.

Discussed with: kib
Tested by: Pete French <petefrench at ticketswitch dot com>,
Justin Head <justin at encarnate dot com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@202576 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: Sync Groff with trunk except libulog addition.
ru [Mon, 18 Jan 2010 13:11:37 +0000 (13:11 +0000)]
MFC: Sync Groff with trunk except libulog addition.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202570 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: revision 201415
nyan [Mon, 18 Jan 2010 11:03:39 +0000 (11:03 +0000)]
MFC: revision 201415

  Re-enable more options and devices.  Now kernel size problem is gone.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202564 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: revision 201392
nyan [Mon, 18 Jan 2010 10:55:29 +0000 (10:55 +0000)]
MFC: revision 201392

  Use UFS2 as default filesystem on pc98.  Now pc98's boot2 works for UFS2.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202562 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: revision 201391
nyan [Mon, 18 Jan 2010 10:53:03 +0000 (10:53 +0000)]
MFC: revision 201391

  Do kgzip to the loader on pc98, too.  Now pc98's boot2 works for ELF.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202560 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201532:
ed [Mon, 18 Jan 2010 09:04:53 +0000 (09:04 +0000)]
MFC r201532:

  Make TIOCSTI work again.

  It looks like I didn't implement this when I imported MPSAFE TTY.
  Applications like mail(1) still use this. I think it's conceptually bad.

  Tested by:    Pete French <petefrench ticketswitch com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@202553 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202129:
delphij [Mon, 18 Jan 2010 05:03:40 +0000 (05:03 +0000)]
MFC r202129:

Report ZFS filesystem version instead of the zpool version when we say it.

Reported by: Yuri Pankov (on -fs@)
Submitted by: delphij

git-svn-id: svn://svn.freebsd.org/base/stable/8@202549 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r210520:
delphij [Mon, 18 Jan 2010 04:58:14 +0000 (04:58 +0000)]
MFC r210520:

Test index value is within the range before using it to reference
array member.

PR: bin/141838
Submitted by: Henning Petersen <henning.petersen@t-online.de>

git-svn-id: svn://svn.freebsd.org/base/stable/8@202548 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202019:
imp [Mon, 18 Jan 2010 00:53:21 +0000 (00:53 +0000)]
MFC r202019:
  Add INCLUDE_CONFIG_FILE in GENERIC on all non-embedded platforms.
  # This is the resolution of removing it from DEFAULTS...

git-svn-id: svn://svn.freebsd.org/base/stable/8@202536 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r201442
rmacklem [Sun, 17 Jan 2010 20:49:34 +0000 (20:49 +0000)]
MFC: r201442
The test for "same client" for the experimental nfs server over NFSv4
was broken w.r.t. byte range lock conflicts when it was the same client
and the request used the open_to_lock_owner4 case, since lckstp->ls_clp
was not set. This patch fixes it by using "clp" instead of "lckstp->ls_clp".

git-svn-id: svn://svn.freebsd.org/base/stable/8@202525 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r201439
rmacklem [Sun, 17 Jan 2010 20:18:59 +0000 (20:18 +0000)]
MFC: r201439
Fix three related problems in the experimental nfs client when
checking for conflicts w.r.t. byte range locks for NFSv4.
1 - Return 0 instead of EACCES when a conflict is found, for F_GETLK.
2 - Check for "same file" when checking for a conflict.
3 - Don't check for a conflict for the F_UNLCK case.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202524 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoHook up uhso to the build.
thompsa [Sun, 17 Jan 2010 18:37:36 +0000 (18:37 +0000)]
Hook up uhso to the build.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202515 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202054
thompsa [Sun, 17 Jan 2010 18:36:22 +0000 (18:36 +0000)]
MFC r202054

 Add the Globetrotter GE40x.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202514 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201766
thompsa [Sun, 17 Jan 2010 18:33:47 +0000 (18:33 +0000)]
MFC r201766

 Remove unneeded includes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202513 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201714
thompsa [Sun, 17 Jan 2010 18:33:05 +0000 (18:33 +0000)]
MFC r201714

 Fix debug printf on 64bit arches.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202512 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201701
thompsa [Sun, 17 Jan 2010 18:32:20 +0000 (18:32 +0000)]
MFC r201701

 Add new umass quirks for Western Digital MYBook and JMicron JM20337.

PR: usb/142225, usb/142228
Submitted by: Thomas Ward, Yoshikazu GOTO

git-svn-id: svn://svn.freebsd.org/base/stable/8@202511 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201681
thompsa [Sun, 17 Jan 2010 18:31:27 +0000 (18:31 +0000)]
MFC r201681

 Improve u3g device ejecting by providing additional methods for the eject
 command in the usb_msctest routines, as well as a general tidyup.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202510 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201680
thompsa [Sun, 17 Jan 2010 18:30:37 +0000 (18:30 +0000)]
MFC r201680

 scratch_size was incorrectly passed as language ID when retrieving the language
 ID table, this broke string retrieval on some devices.

Submitted by: Hans Petter Selasky
Reported by: Renato Botelho

git-svn-id: svn://svn.freebsd.org/base/stable/8@202509 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201318
thompsa [Sun, 17 Jan 2010 18:29:30 +0000 (18:29 +0000)]
MFC r201318

 Add new device ID to uipaq driver

PR: usb/141936
Submitted by: HASHI Hiroaki

git-svn-id: svn://svn.freebsd.org/base/stable/8@202508 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202026
thompsa [Sun, 17 Jan 2010 18:27:53 +0000 (18:27 +0000)]
MFC r202026

 Print error messages to stderr.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202507 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f