]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMerge r206423:
kensmith [Wed, 5 May 2010 16:58:29 +0000 (16:58 +0000)]
Merge r206423:

> Shift the version of perl used by the release build process over to
> perl-5.10.  This aligns the release build process with the current
> default version of perl in the ports tree.

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

14 years agoMerge r206422:
kensmith [Wed, 5 May 2010 16:25:57 +0000 (16:25 +0000)]
Merge r206422:

> Pass the HTTP_PROXY and FTP_PROXY environment variables through in addition
> to FTP_PASSIVE_MODE so release building works for a machine that needs
> to use a proxy.

PR: misc/137688
Submitted by: Michael Leun

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

14 years agoMerge r205386 from head:
gavin [Wed, 5 May 2010 12:39:44 +0000 (12:39 +0000)]
Merge r205386 from head:

  Fix command example, presumed leftovers of old markup.

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

14 years agoMerge r205155 from head:
gavin [Wed, 5 May 2010 12:38:22 +0000 (12:38 +0000)]
Merge r205155 from head:

  Add extra Xrefs

PR: docs/114184
Submitted by: Julian Stacey  <jhs berklix.org>

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

14 years agoMerge r203684 from head (mainly to make future merges easier for people):
gavin [Wed, 5 May 2010 12:37:07 +0000 (12:37 +0000)]
Merge r203684 from head (mainly to make future merges easier for people):

  Update .Dt on these man pages: the kernel modules and corresponding
  man pages are installed on more platforms than just i386.

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

14 years agoMFC r207009:
kib [Wed, 5 May 2010 09:29:34 +0000 (09:29 +0000)]
MFC r207009:
C language does not has references, it provides pointers.

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

14 years agoMFC r207282:
mav [Wed, 5 May 2010 05:18:08 +0000 (05:18 +0000)]
MFC r207282:
Update device identify data and serial number when device change detected.
Reprobe immediately following this should have fresh data.

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

14 years agoMFC r207490:
mav [Wed, 5 May 2010 05:11:12 +0000 (05:11 +0000)]
MFC r207490:
Add xpt_schedule_dev_sendq() call, lost at r203108. It is not needed in
usual operation, but required in some conditions to make queue running
after being shrinked.

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

14 years agoMFC r206973:
delphij [Wed, 5 May 2010 00:38:20 +0000 (00:38 +0000)]
MFC r206973:

When CPUTYPE is defined to any value, on amd64 platform "mmx" is
available through MACHINE_CPU, indicating the CPU supports that
feature, as done by revision 138685.

This changeset adds "mmx" into the default amd64 MACHINE_CPU list
when no CPUTYPE is specified to provide consistent behavior.

PR: amd64/145593
Submitted by: mm

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

14 years agoMFC r201797
thompsa [Tue, 4 May 2010 21:16:01 +0000 (21:16 +0000)]
MFC r201797

 Remove unused uhci_dump_qhs().

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

14 years agoMFC r196981, r200844, r201630, r203977, r203978, r204352:
delphij [Tue, 4 May 2010 19:18:00 +0000 (19:18 +0000)]
MFC r196981, r200844, r201630, r203977, r203978, r204352:

r196981 (rdivacky):

Add C/c/f/p/v switches plus a bunch of minor fixes and cleanups.

Obtained from: NetBSD

r200844 (jh):

Don't print the archive name with -p and -q options.

PR: bin/141280

r201630 (kientzle):

When restoring files, use the mode for the mode.

Thanks to: Jun Kuriyama for pointing this out

r203977 (gavin):

Implement the rename query, for when a file with the same name as the one
about to be extracted already exists.  The question, and interpretation
of the response is deliberately compatible with Info-Zip.

This change was originally obtained from NetBSD, but has three changes:
 - better compatibility with Info-Zip in the handling of ^D
 - Use getdelim() rather than getline()
 - bug fix: != changed to == in the "file rename" code

I suspect the latter is also a bug in NetBSD, but I can't easily confirm
this.

PR: bin/143307
Reviewed by: rdivacky (change to unzip.c only)
Obtained from: NetBSD src/usr.bin/unzip/unzip.c 1.8

r203978 (gavin):

Bump .Dd for r203977

r204352 (ru):

Fixed static linkage.

==

Requested by: Alex Kozlov <spam rm-rf kiev ua>

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

14 years agoMFC r207480:
mm [Tue, 4 May 2010 08:37:28 +0000 (08:37 +0000)]
MFC r207480:

Change description of tunable group vfs.zfs.txg to be more
understandable.

Approved by:    pjd, delphij (mentor)

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

14 years agoMFC of r201613, r201627
edwin [Tue, 4 May 2010 08:06:53 +0000 (08:06 +0000)]
MFC of r201613, r201627

Be able to specify a certain date and/or time for which to calculate
the phase of the moon.
While not worlds best improvements, it will help calendar(1) later on.

Also closed bin/79008

PR: bin/79008

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

14 years agoMFC r206893:
kib [Tue, 4 May 2010 05:34:18 +0000 (05:34 +0000)]
MFC r206893:
Slightly modernize realpath(3).

SUSv4 requires that implementation returns EINVAL if supplied path is NULL,
and ENOENT if path is empty string [1].
Bring prototype in conformance with SUSv4, adding restrict keywords.
Allow the resolved path buffer pointer be NULL, in which case realpath(3)
allocates storage with malloc().

MFC r206898:
Free() is not allowed to modify errno, remove safety brackets around it.
Add small optimization, do not copy a string to the buffer that is
to be freed immediately after.

MFC r206997:
Move realpath(3) prototype to a POSIX section.

MFC r206998:
Add standards section, improve wording, taking into account the handling
of NULL and changed type in declaration.

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

14 years agoMFC r206894:
kib [Tue, 4 May 2010 05:25:48 +0000 (05:25 +0000)]
MFC r206894:
The cache_enter(9) function shall not be called for doomed dvp.
Assert this.

Verify that dvp is not reclaimed before calling cache_enter().

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

14 years agoMFC r206264:
kib [Tue, 4 May 2010 05:14:43 +0000 (05:14 +0000)]
MFC r206264:
When OOM searches for a process to kill, ignore the processes already
killed by OOM. When killed process waits for a page allocation, try to
satisfy the request as fast as possible.

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

14 years agoMFC: r207461
imp [Tue, 4 May 2010 03:56:25 +0000 (03:56 +0000)]
MFC: r207461

  sparc64, and possibly other architectures, pads the length of the
  section holding the config file to sh_addralign bytes using NULs.
  This bogusly triggers an assert.  Break out of the loop when we hit an
  NUL within that many bytes of the end.

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

14 years agoMFC r205073
brooks [Mon, 3 May 2010 19:56:52 +0000 (19:56 +0000)]
MFC r205073

Regen:
* Hart: rev 671 of pcidevs.txt; 22-01-2008 (D-M-Y).
* Boemler: vendors.txt (2010-03126)

PR: kern/133733

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

14 years agoMFC r206881:
nwhitehorn [Mon, 3 May 2010 19:38:59 +0000 (19:38 +0000)]
MFC r206881:

Add gpart and glabel to the release CD mfsroot. Even if sysinstall
cannot partition disks on powerpc, this will allow the user to.

PR: powerpc/93203
Obtained from: ia64

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

14 years agoMFC r203874:
kib [Mon, 3 May 2010 12:43:17 +0000 (12:43 +0000)]
MFC r203874:
Rename fields to match better the msdosfs headers.

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

14 years agoMFC r203872:
kib [Mon, 3 May 2010 12:41:27 +0000 (12:41 +0000)]
MFC r203872:
Bug fixes from NetBSD.

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

14 years agoMFC r203871:
kib [Mon, 3 May 2010 12:39:27 +0000 (12:39 +0000)]
MFC r203871:
License changes from NetBSD.
Move to 2 clause license, approved by Wolfgang Solfrank.

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

14 years agoMFC r203869:
kib [Mon, 3 May 2010 12:37:33 +0000 (12:37 +0000)]
MFC r203869:
Rename variables to match msdosfs headers.

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

14 years agoMFC r203868:
kib [Mon, 3 May 2010 12:36:06 +0000 (12:36 +0000)]
MFC r203868:
Some cleanups from NetBSD.

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

14 years agoMFC r206838:
delphij [Mon, 3 May 2010 09:46:47 +0000 (09:46 +0000)]
MFC r206838:

Partially MFp4 #176265 by pjd@:

 - Properly initialize and destroy system_taskq.
 - Add a dummy implementation of taskq_create_proc().

Note: We do not currently use system_taskq in ZFS so this is mostly a
no-op at this time.  Proper system_taskq initialization is required
by newer ZFS code.

Ok'ed by: pjd

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

14 years agoMFC r207383:
delphij [Mon, 3 May 2010 09:35:40 +0000 (09:35 +0000)]
MFC r207383:

Add FreeBSD 8.1 to known list as it's being referenced by a couple of
manpages already.

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

14 years agoMFC r207275:
bms [Mon, 3 May 2010 09:31:51 +0000 (09:31 +0000)]
MFC r207275:
  Fix a regression where DVMRP diagnostic traffic, such as that used
  by mrinfo and mtrace, was dropped by the IGMP TTL check. IGMP control
  traffic must always have a TTL of 1.

Submitted by: Matthew Luckie

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

14 years agoMFC r207251:
yongari [Mon, 3 May 2010 01:04:44 +0000 (01:04 +0000)]
MFC r207251:
  It seems ale(4) controllers do not like to see TCP payload in the
  first descriptor in TSO case. Otherwise controller can generate bad
  frames during TSO. To address it, make sure to pull up ethernet +
  IP + TCP header with options in first buffer. Also ensure the
  buffer length of the first descriptor for TSO covers entire ethernet
  + IP + TCP with options and setup additional Tx descriptor if the
  first buffer includes TCP payload.

  Tested by: Amar Takhar <verm <> darkbeer dot org >

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

14 years agoMFC: r207151
marius [Sun, 2 May 2010 16:55:10 +0000 (16:55 +0000)]
MFC: r207151

Add a TestFloat based test suite for floating-point implementations
currently supporting sparc64. After a `make depend all` there are
three programs; testsoftfloat for testing against the SoftFloat in
src/lib/libc/softfloat for reference purposes, testemufloat for
testing the emulator source in src/lib/libc/sparc64/fpu and testfloat
for testing with the installed libc. Support for other architectures
can be added as needed.

PR: 144900
Submitted by: Peter Jeremy

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

14 years agoMFC: r206490, r206492
marius [Sun, 2 May 2010 16:52:23 +0000 (16:52 +0000)]
MFC: r206490, r206492

While SPARC V9 allows tininess to be detected either before or after
rounding (impl. dep. #55), the SPARC JPS1 responsible for SPARC64 and
UltraSPARC processors defines that in all cases tininess is detected
before rounding therefore rounding up to the smallest normalized number
should set the underflow flag. This change is needed for using SoftFloat
on sparc64 for reference purposes.

PR: 144900
Submitted by: Peter Jeremy

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

14 years agoMFC: r206480
marius [Sun, 2 May 2010 16:47:50 +0000 (16:47 +0000)]
MFC: r206480

Update for UltraSPARC-IV{,+} and SPARC64 V, VI, VII and VIIIfx CPUs.

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

14 years agoMFC: r206450
marius [Sun, 2 May 2010 16:46:20 +0000 (16:46 +0000)]
MFC: r206450

Correct the DCR_IPE macro to refer to the right bit. Also improve the
associated comment as besides US-IV+ these bits are only available with
US-III++, i.e. the 1.2GHz version of the US-III+.

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

14 years agoMFC: r206449
marius [Sun, 2 May 2010 16:45:08 +0000 (16:45 +0000)]
MFC: r206449

Unlike the sun4v variant, the sun4u version of SUNW,set-trap-table
actually only takes one argument.

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

14 years agoMFC: r206448
marius [Sun, 2 May 2010 16:40:18 +0000 (16:40 +0000)]
MFC: r206448

Do as the comment suggests and determine the bus space based on the last
bus we actually mapped at rather than always based on the last bus we
encountered while moving upward in the tree. Otherwise we might use the
wrong bus space in case the bridge directly underneath the nexus doesn't
require mapping, i.e. was skipped as it's the case for ssm(4) nodes.

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

14 years agoMFC r207278:
bz [Sun, 2 May 2010 16:39:15 +0000 (16:39 +0000)]
MFC r207278:
  MFP4: @177254

  Add missing CURVNET_RESTORE() calls for multiple code paths, to stop
  leaking the currently cached vnet into callers and to the process.

Sponsored by: The FreeBSD Foundation
Sponsored by: CK Software GmbH

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

14 years agoMFC r207277:
bz [Sun, 2 May 2010 16:36:15 +0000 (16:36 +0000)]
MFC r207277:
  Enhance the historic behaviour of raw sockets and jails in a way
  that we allow all possible jail IPs as source address rather than
  forcing the "primary". While IPv6 naturally has source address
  selection, for legacy IP we do not go through the pain in case
  IP_HDRINCL was not set. People should bind(2) for that.

  This will, for example, allow ping(|6) -S to work correctly for
  non-primary addresses.

  Reported by:  (ten 211.ru)
  Tested by:    (ten 211.ru)

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

14 years agoMFC r207276:
bz [Sun, 2 May 2010 16:32:41 +0000 (16:32 +0000)]
MFC r207276:
  Make sure IPv6 source address selection does not change interface
  addresses while walking the IPv6 address list if in the jail case
  something is connecting to ::1.

  Reported by:  Pieter de Boer (pieter thedarkside.nl)
  Tested by:    Pieter de Boer (pieter thedarkside.nl)

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

14 years agoMFC r207116:
bz [Sun, 2 May 2010 15:58:25 +0000 (15:58 +0000)]
MFC r207116:
  Remove one zero from the double-0.
  This code doesn't have a license to kill.

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

14 years agoMFC r206989:
bz [Sun, 2 May 2010 15:55:29 +0000 (15:55 +0000)]
MFC r206989:
  Avoid memory access after free.  Use the (shortend) copy for the
  ipsec mtu lookup as well.

PR: kern/145736
Submitted by: Peter Molnar (peter molnar.cc)

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

14 years agoMFC r207189: symlink(7): Add lpathconf(2) and *at system calls.
jilles [Sun, 2 May 2010 13:36:23 +0000 (13:36 +0000)]
MFC r207189: symlink(7): Add lpathconf(2) and *at system calls.

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

14 years agoMFC r207222:
mav [Sun, 2 May 2010 12:50:29 +0000 (12:50 +0000)]
MFC r207222:
Move PI_TAG_ABLE check from ada driver to ATA XPT.

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

14 years agoMFC r206652:
mav [Sun, 2 May 2010 12:45:22 +0000 (12:45 +0000)]
MFC r206652:
Explicitly enable PCI busmastering on attach.
Now SiI3124 with siis(4) successfully works on sparc64 (SunBlade 100).

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

14 years agoMFC r205358:
mav [Sun, 2 May 2010 12:44:11 +0000 (12:44 +0000)]
MFC r205358:
Enable MSI by default for SiI3124.

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

14 years agoMFC r207188: symlink(7): The ownership of symlinks is used by the system,
jilles [Sun, 2 May 2010 12:43:18 +0000 (12:43 +0000)]
MFC r207188: symlink(7): The ownership of symlinks is used by the system,
in at least three ways, so do not say it is ignored:
* who may delete/rename a symlink in a sticky directory
* who may do lchflags(2)/lchown(2)/lchmod(2)
* whose inode quota is charged

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

14 years agoMFC r207221:
mav [Sun, 2 May 2010 12:40:54 +0000 (12:40 +0000)]
MFC r207221:
Mark ATA channel as idle on timeout in non-ATA_CAM mode.
This should fix possible duplicate request completion.

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

14 years agoMFC r206604:
mav [Sun, 2 May 2010 12:39:29 +0000 (12:39 +0000)]
MFC r206604:
For early ALI chips do not announce I/O sizes that require unsupported
48bit DMA commands.

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

14 years agoMFC r207187: kvm(3): Mention that some of the functions use sysctl(3)
jilles [Sun, 2 May 2010 12:38:59 +0000 (12:38 +0000)]
MFC r207187: kvm(3): Mention that some of the functions use sysctl(3)
instead of kmem.

Additionally, because of sysctl(3) use (which is generally good), behaviour
for crash dumps differs slightly from behaviour for live kernels and this
will probably never be fixed entirely, so weaken that claim.

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

14 years agoComment on new config version that's now required for amd64 and ia64.
imp [Sun, 2 May 2010 06:34:13 +0000 (06:34 +0000)]
Comment on new config version that's now required for amd64 and ia64.
Comment on the confusing error message from Apr 17th-May 2nd generated
by config(8) as well.

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

14 years agoRevert 207494: it was only for testing purposes.
imp [Sun, 2 May 2010 06:24:17 +0000 (06:24 +0000)]
Revert 207494: it was only for testing purposes.

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

14 years agoOoops. Bump the version to 600009, not 600008.
imp [Sun, 2 May 2010 06:23:15 +0000 (06:23 +0000)]
Ooops.  Bump the version to 600009, not 600008.

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

14 years agoMove to the new way of specifying compat options. The backs out the
imp [Sun, 2 May 2010 06:20:42 +0000 (06:20 +0000)]
Move to the new way of specifying compat options.  The backs out the
FOO = BAR form, in favor of listing the mapping in a separate file
for more compatibility with older versions of config.

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

14 years agoMFC r207265:
imp [Sun, 2 May 2010 06:18:57 +0000 (06:18 +0000)]
MFC r207265:
  Require the option that's mapped be listed in the options file.  This
  will allow people with old config options to either have it just work
  (if config is new enough), or get a version error (if their config is
  about 7.0 or newer) rather than getting a cryptic error about
  duplicated options in the options file, or getting an error about an
  unknown option, at which point they'd update their config file only to
  learn they need a new config, only to learn they didn't really need to
  update their config file...  All this because our version checking was
  in the wrong place for the past decade...

  # hopefully this is the last change, and we'll be able to config with an
  # 8.0 GENERIC file on stable/8 after I merge this change and add the
  # compat options.

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

14 years agoMFC r207263:
imp [Sun, 2 May 2010 06:18:08 +0000 (06:18 +0000)]
MFC r207263:

  Redo how we add compat options so as to be compatible with old
  versions of config.  Remove support for the syntax OLD = NEW form the
  options file, and instead have a new file $S/conf/options-compat.
  This file will be parsed as OLD NEW on each line.  Bump version of
  config.  Since nothing in -current ever used this, there's no hazards
  for current users, so I'm not bumping the version in the
  Makefiles.$MACHINE.  No need, really, for this version bump in
  -current, but this was introduced into -stable before I realized the
  version check was ineffective there, so the verison bump doesn't hurt
  here and keeps the two branches in sync, versionwise, after the MFC.

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

14 years agoMFC r207260:
imp [Sun, 2 May 2010 06:14:36 +0000 (06:14 +0000)]
MFC r207260:
  Move checking the version up from Makefile generation to just after
  we've parsed the config file.  Makefile generation is too late if
  we've introduce changes to the syntax of the metafiles to warn about
  version skew, since we have to try to parse them and we get an parse
  error that's rather baffling to the user rather than a 'your config is
  too old, upgrade' which we should get.

  We have to defer doing it until after we've read the user's config
  file because we define machinename there.  The version required to
  compile the kernel is encoded in Makefile.machinename.  There's no
  real reason for this to be the case, but changing it now would
  introduce some logistical issues that I'd rather avoid for the moment.
  I intend to revisit this if we're still using config in FreeBSD 10.

  This also means that we cannot introduce any config metafile changes
  that result in a syntax error or other error for the user until 9.0 is
  released.  Otherwise, we break the upgrade path, or at least reduce
  the usefulness of the error messages we generate.

  # This implies that the config file option mapping will need to be redone.

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

14 years agoMFC r207176:
weongyo [Sat, 1 May 2010 23:25:53 +0000 (23:25 +0000)]
MFC r207176:
  ifp->if_ipackets++ when RX packet interrupts are occurred.

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

14 years agoMFC r207070,r207343,r207345,r207347,r207348,r207371,r207372,r207390:
pjd [Sat, 1 May 2010 19:16:08 +0000 (19:16 +0000)]
MFC r207070,r207343,r207345,r207347,r207348,r207371,r207372,r207390:

r207070:

Fix compilation with WITHOUT_CRYPT or WITHOUT_OPENSSL options.

Reported by: Andrei V. Lavreniyuk <andy.lavr@reactor-xg.kiev.ua>

r207343:

Don't assume that "resource" property is in metadata.

Reported by: Mikolaj Golub <to.my.trociny@gmail.com>

r207345:

Use WEXITSTATUS() to obtain real exit code.

r207347:

Mark temporary issues as such.

r207348:

Restart worker thread only if the problem was temporary.
In case of persistent problem we don't want to loop forever.

r207371:

Fix a problem where hastd will stuck in recv(2) after sending request to
secondary, which died between send(2) and recv(2). Do it by adding timeout
to recv(2) for primary incoming and outgoing sockets and secondary outgoing
socket.

Reported by: Mikolaj Golub <to.my.trociny@gmail.com>
Tested by: Mikolaj Golub <to.my.trociny@gmail.com>

r207372:

- Check if the worker process was killed by signal and restart it.
- Improve logging.

Pointed out by: Garrett Cooper <yanefbsd@gmail.com>

r207390:

Default connection timeout is way too long. To make it shorter we have to
make socket non-blocking, connect() and if we get EINPROGRESS, we have to
wait using select(). Very complex, but I know no other way to define
connection timeout for a given socket.

Reported by: hiroshi@soupacific.com

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

14 years agoMFC r207070:
pjd [Sat, 1 May 2010 19:12:37 +0000 (19:12 +0000)]
MFC r207070:

Fix compilation with WITHOUT_CRYPT or WITHOUT_OPENSSL options.

Reported by: Andrei V. Lavreniyuk <andy.lavr@reactor-xg.kiev.ua>

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

14 years agoMFC r207068,r207334:
pjd [Sat, 1 May 2010 19:00:33 +0000 (19:00 +0000)]
MFC r207068,r207334:

r207068:

Allow to modify directory's content even if the ZFS_NOUNLINK (SF_NOUNLINK,
sunlnk) flag is set. We only deny dirctory's removal or rename.

PR: kern/143343
Reported by: marck

r207334:

Backport fix for 'zfs_znode_dmu_init: existing znode for dbuf' panic from OpenSolaris.

PR: kern/144402
Reported by: Alex Bakhtin <alex.bakhtin@gmail.com>
Tested by: Alex Bakhtin <alex.bakhtin@gmail.com>
Obtained from: OpenSolaris, Bug ID 6895088

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

14 years agoMFC r207168: builtin(1): Add missing escaping for !, . and : in the table.
jilles [Sat, 1 May 2010 14:49:20 +0000 (14:49 +0000)]
MFC r207168: builtin(1): Add missing escaping for !, . and : in the table.

This caused these commands to look differently (not bold) from the other
commands in the table (bold).

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

14 years agoMFC r207166: builtin(1): Mention [ sh builtin.
jilles [Sat, 1 May 2010 14:41:37 +0000 (14:41 +0000)]
MFC r207166: builtin(1): Mention [ sh builtin.

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

14 years agoMFC r207153: stat: Allow -f %Sf to display the file flags symbolically.
jilles [Sat, 1 May 2010 14:36:04 +0000 (14:36 +0000)]
MFC r207153: stat: Allow -f %Sf to display the file flags symbolically.

PR: 124349

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

14 years agoMFC r207021: ln: Allow a trailing slash when creating a link to a directory.
jilles [Sat, 1 May 2010 14:33:26 +0000 (14:33 +0000)]
MFC r207021: ln: Allow a trailing slash when creating a link to a directory.

In the 'ln source... directory' synopsis, the basename of each source
determines the name of the created link. Determine this using basename(3)
instead of strrchr(..., '/') which is incorrect if the pathname ends in a
slash.

PR: 121568

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

14 years agoMFC r206773: ln: Do not delete a file by hardlinking it to itself.
jilles [Sat, 1 May 2010 14:29:33 +0000 (14:29 +0000)]
MFC r206773: ln: Do not delete a file by hardlinking it to itself.

Two pathnames refer to the same directory entry iff the directories match
and the final components' names match.

Example: (assuming file1 is an existing file)
  ln -f file1 file1
This now fails while leaving file1 intact. It used to delete file1 and then
complain it cannot be linked because it is gone.

With -i, this error is detected before the question is asked.

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

14 years agoMFC: r207170
rmacklem [Sat, 1 May 2010 00:50:51 +0000 (00:50 +0000)]
MFC: r207170
An NFSv4 server will reply NFSERR_GRACE for non-recovery RPCs
during the grace period after startup. This grace period must
be at least the lease duration, which is typically 1-2 minutes.
It seems prudent for the experimental NFS client to wait a few
seconds before retrying such an RPC, so that the server isn't
flooded with non-recovery RPCs during recovery. This patch adds
an argument to nfs_catnap() to implement a 5 second delay
for this case.

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

14 years agoRemove 2 empty files, leftovers from previous MFCs.
bschmidt [Fri, 30 Apr 2010 18:39:07 +0000 (18:39 +0000)]
Remove 2 empty files, leftovers from previous MFCs.

Approved by: rpaulo (mentor)

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

14 years agoMFC r206443-206446, 206474-206477, 207001
bschmidt [Fri, 30 Apr 2010 18:13:11 +0000 (18:13 +0000)]
MFC r206443-206446, 206474-206477, 207001

r206443:
Small whitespace cleanup.

r206444 [1]:
- Rename bluetooth coexistence flags, no binary change.
- Enable DC calibration and crystal calibration on Centrino Advanced-N
  6250 parts.
- Workaround for a HW bug (does not affect 4965AGN) that may sporadically
  affect latency under some rare circumstances. From a similar commit to
  iwlwifi.
- Update sensitivity settings for 5000 series to workaround a performance
  bug in the DSP (1000 is not affected so we keep the old values for 5000).
- Update sensitivity settings for 6000 series.
- Set differential gains on 6250 too (but use a 1.0 factor, not 1.5).
- Init OFDM sensitivity with min value (which depends on the chip)
  instead of hardcoding it to 90.
- Read calibration version from ROM and set IWN_GP_DRIVER_CALIB_VER6
  bit on 6x50 if version >= 6.

r206445 [2]:
iwn4965_set_txpower() uses maxpwr from EEPROM to calculate the power to
set, it make sense to actually initialize that array.  This fixes some
issues with 4965 adapters where the TX power is crucial.

This got lost somewhere while merging with the OpenBSD code.

r206446:
Update firmware for the 6000 series Intel cards to version 9.193.4.1.

r206474:
Add some missing protoypes.

r206475:
iwn5000_reset_sched() is not used; #ifdef it.

r206476:
Hook ieee80211_media_change() to ieee80211_vap_attach().

r206477:
Declare all functions as static.

r207001 [3]:
Use correct bus_dma_tag_t for TX frames.

Approved by: rpaulo (mentor)
Obtained from: Openbsd [1], [2]
Reported by: Andreas Nilsson <andrnils at gmail.com> [3]

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

14 years agoMFC r206763-206767:
bschmidt [Fri, 30 Apr 2010 17:08:27 +0000 (17:08 +0000)]
MFC r206763-206767:

r206763:
Fix comment about ipw_assoc and remove some whitespaces; no functional
changes.

r206764:
Pass correct RSSI to ieee80211_input*().

r206765:
- Make ipw usable again by moving directly into ASSOC state.
- No need to manually switch to RUN state, assoc response takes care
  of that.

r206766:
Use iv_appie_wpa, with this commit WPA works again.

r206767:
Remove IPW_LOCK_DECL and fix various LORs.

Approved by: rpaulo (mentor)

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

14 years agoMFC: r207082
rmacklem [Thu, 29 Apr 2010 23:48:09 +0000 (23:48 +0000)]
MFC: r207082
When the experimental NFS client is handling an NFSv4 server reboot
with delegations enabled, the recovery could fail if the renew
thread is trying to return a delegation, since it will not do the
recovery. This patch fixes the above by having nfscl_recalldeleg()
fail with the I/O operations returning EIO, so that they will be
attempted later. Most of the patch consists of adding an argument
to various functions to indicate the delegation recall case where
this needs to be done.

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

14 years agoMFC r207080
thompsa [Thu, 29 Apr 2010 22:49:21 +0000 (22:49 +0000)]
MFC r207080

 Use a more obvious prefix for the USB control (endpoint 0) transfers rather
 than default_*.

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

14 years agoMFC r207079
thompsa [Thu, 29 Apr 2010 22:48:19 +0000 (22:48 +0000)]
MFC r207079

 Properly name the sxlocks, mutexes and condvars.

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

14 years agoMFC r207078
thompsa [Thu, 29 Apr 2010 22:47:01 +0000 (22:47 +0000)]
MFC r207078

 Use SX_DUPOK rather than making the string unique.

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

14 years agoMFC r207077
thompsa [Thu, 29 Apr 2010 22:44:04 +0000 (22:44 +0000)]
MFC r207077

 Change USB_DEBUG to #ifdef and allow it to be turned off. Previously this had
 the illusion of a tunable setting but was always turned on regardless.

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

14 years agoMFC r207020, r207027, r207072.
thompsa [Thu, 29 Apr 2010 22:40:12 +0000 (22:40 +0000)]
MFC r207020, r207027, r207072.

 Change usb devd events from fake attach to a notify. The ugen device is not a
 proper device_t so it faked the devctl event to appear like one, this is now a
 notify which allows more information to be passed.

 We notify for both the device attach/detach and for each usb interface. A devd
 rule can now match on the interface properties, including composite devices
 which may have a uvideo interface and also usound and possibly uhid too.

 An example to match a umass device with a scsi subclass and BBB protocol would be

 notify 100 {
  match "system"          "USB";
  match "subsystem"       "INTERFACE";
  match "type"            "ATTACH";
  match "intclass"        "0x08";
  match "intsubclass"     "0x06";
  match "intprotocol"     "0x50";
  action ...
 };

 The old attach devctl event has been retained for the moment to make merging to
 8.1 easier. This was never compatible with 7.x or earlier due to the ugen regex
 change needed.

 Document the new USB notification types.

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

14 years agoThis is an MFC of 205932.
mjacob [Thu, 29 Apr 2010 19:11:25 +0000 (19:11 +0000)]
This is an MFC of 205932.
nit: xpt_bus_deregister has to be called with the sim lock held.

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

14 years agoThis is an MFC of 205847
mjacob [Thu, 29 Apr 2010 19:06:43 +0000 (19:06 +0000)]
This is an MFC of 205847

Change how multipath labels are created and managed. This makes it easier
to support various storage boxes which really aren't active-active.

We only write the label on the *first* provider. For all other providers
we just "add" the disk. This also allows for an "add" verb.

A usage implication is that you should specificy the currently active
storage path as the first provider.

Note that this does not add RDAC-like functionality, but better allows for
autovolumefailover configurations (additional checkins elsewhere will support
this).

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

14 years agoMFC r205938:
delphij [Thu, 29 Apr 2010 00:28:34 +0000 (00:28 +0000)]
MFC r205938:

Sync with OpenBSD:
 - avoid coredump when there's only one token on a line;
 - Use calloc();
 - Remove a line inherited from example mdoc.

Obtained from:  OpenBSD

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

14 years agoOnly enable MAGIC WOL by default, MCAST causes
jfv [Wed, 28 Apr 2010 18:28:08 +0000 (18:28 +0000)]
Only enable MAGIC WOL by default, MCAST causes
systems to just wakeup immediately in many
environments.

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

14 years agoMFC r206617:
rpaulo [Wed, 28 Apr 2010 15:15:06 +0000 (15:15 +0000)]
MFC r206617:
  Make this code a little more portable by wrapping the mtx calls
  into macros.

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

14 years agoMFC r207008:
kib [Wed, 28 Apr 2010 10:03:54 +0000 (10:03 +0000)]
MFC r207008:
Provide compat32 shims for kinfo_proc sysctl.

MFC r207016:
Fix typo.

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

14 years agoMFC r207007:
kib [Wed, 28 Apr 2010 09:59:28 +0000 (09:59 +0000)]
MFC r207007:
Extract the code to copy-out struct rusage32 from struct rusage
into the new function.

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

14 years agoMFC r206637:
delphij [Wed, 28 Apr 2010 00:49:24 +0000 (00:49 +0000)]
MFC r206637:

When an underlying ioctl(2) handler returns an error, our ioctl(2)
interface considers that it hits a fatal error, and will not copyout
the request structure back for _IOW and _IOWR ioctls, keeping them
untouched.

The previous implementation of the SIOCGIFDESCR ioctl intends to
feed the buffer length back to userland.  However, if we return
an error, the feedback would be defeated and ifconfig(8) would
trap into an infinite loop.

This commit changes SIOCGIFDESCR to set buffer field to NULL to
indicate the previous ENAMETOOLONG case.

Reported by: bschmidt

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

14 years agoMerge r204418 from head (original commit by antoine)
gavin [Tue, 27 Apr 2010 20:51:50 +0000 (20:51 +0000)]
Merge r204418 from head (original commit by antoine)

  Add files moved in r203976 and r207292 to ObsoleteFiles.inc

Requested by: Alex Kozlov <spam rm-rf.kiev.ua>
Merge OK'd by: antoine

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

14 years agoMerge r203692 from head:
gavin [Tue, 27 Apr 2010 20:18:54 +0000 (20:18 +0000)]
Merge r203692 from head:

  Kernel modules for these drivers are installed on all platforms, so
  install the man pages on all platforms too.

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

14 years agoMFC 206662: Cleanup if_media handling in mxge(4)
gallatin [Tue, 27 Apr 2010 15:38:58 +0000 (15:38 +0000)]
MFC 206662: Cleanup if_media handling in mxge(4)

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

14 years agoMFC 206452:
bms [Tue, 27 Apr 2010 13:50:15 +0000 (13:50 +0000)]
MFC 206452:
  Fix a few issues related to the legacy 4.4 BSD multicast APIs.

  IPv4 addresses can and do change during normal operation. Testing by
  pfSense developers exposed an issue where OpenOSPFD was using the IPv4
  address to leave the OSPF link-scope multicast groups on a dynamic
  OpenVPN tun interface, rather than using RFC 3678 with the interface
  index, which won't be raced when the interface's addresses change.

  In inp_join_group():
   If we are already a member of an ASM group, and IP_ADD_MEMBERSHIP or
   MCAST_JOIN_GROUP ioctls are re-issued, return EADDRINUSE as per the
   legacy 4.4BSD multicast API. This bends RFC 3678 slightly, but does
   not violate POLA for apps using the old API.
   It also stops us falling through to kicking IGMP state transactions
   in what is otherwise a no-op case.
   [This has already been dealt with in HEAD, but make it explicit before
    we MFC the change to 8.]

  In inp_leave_group():
   Fix a bogus conditional.
   Move the ifp null check to ioctls MCAST_LEAVE* in the switch..case
   where it actually belongs.
   If an interface was specified, by primary IPv4 address, for ioctl
   IP_DROP_MEMBERSHIP or MCAST_LEAVE_GROUP (an ASM full leave operation),
   then and only then should we look up the ifp from the IPv4 address in
   mreqs.imr_interface.
   If not, we fall through to imo_match_group() as before, but only in
   the IP_DROP_MEMBERSHIP case.

  With these changes, the legacy 4.4BSD multicast API idempotence should
  be mostly preserved in the SSM enabled IPv4 stack.

  [Note: this is not a straight svn merge as head and 8 differ slightly]

Found by: ermal (with pfSense)

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

14 years agoMFC 206454:
bms [Tue, 27 Apr 2010 13:27:51 +0000 (13:27 +0000)]
MFC 206454:
  When embedding the scope ID in MLDv1 output, check if the scope of the address
  being embedded is in fact link-local, before attempting to embed it.

  Note that this operation is a side-effect of trying to avoid recursion on
  the IN6 scope lock.

PR: 144560
Submitted by: Petr Lampa

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

14 years agoMFC r206992:
kib [Tue, 27 Apr 2010 10:50:09 +0000 (10:50 +0000)]
MFC r206992:
As was done in r155238 for i386 and in r155239 for amd64, clear the carry
flag for ia32 binary executed on amd64 host in get_mcontext().

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

14 years agoMFC r206547:
kib [Tue, 27 Apr 2010 10:47:54 +0000 (10:47 +0000)]
MFC r206547:
Handle a case in kern_openat() when vn_open() change file type from
DTYPE_VNODE.

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

14 years agoMFC: r206880
rmacklem [Tue, 27 Apr 2010 01:00:22 +0000 (01:00 +0000)]
MFC: r206880
For the experimental NFS client doing an NFSv4 mount,
set the NFSCLFLAGS_RECVRINPROG while doing recovery from an expired
lease in a manner similar to r206818 for server reboot recovery.
This will prevent the function that acquires stateids for I/O
operations from acquiring out of date stateids during recovery.
Also, fix up mutex locking on the nfsc_flags field.

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

14 years agoMFC: r204773
jkim [Mon, 26 Apr 2010 20:55:03 +0000 (20:55 +0000)]
MFC: r204773
Merge ACPICA 20100304.

MFC: r204874
Update module Makefile for ACPICA 20100304.

MFC: r204877
Allow ACPI module build on amd64.  Although we strongly recommend building
it into kernel, there is no need to prevent it from building at all.

MFC: r204916
- Allow users to enable dumping Debug objects without ACPI debugger.
Setting the new sysctl MIB "debug.acpi.enable_debug_objects" to a non-zero
value enables us to print Debug object when something is written to it.
- Allow users to disable interpreter slack mode.  Setting the new tunable
"debug.acpi.interpreter_slack" to zero disables some workarounds for common
BIOS mistakes and enables strict ACPI implementations by the specification.

MFC: r204920
Since the interpreter slack mode is a tunable now, enable a local hack only
when it is set.  Note the default behaviour does not change by this change.

MFC: r204965
Fix white spaces.

MFC: r206117
Merge ACPICA 20100331 (and four additional upstream patches).

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

14 years agoMFC: r206384
jkim [Mon, 26 Apr 2010 19:19:29 +0000 (19:19 +0000)]
MFC: r206384

Allocate memory for VBE info block with malloc(9), not as static local.

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

14 years agoMFC r207071:
yongari [Mon, 26 Apr 2010 18:07:55 +0000 (18:07 +0000)]
MFC r207071:
  Intialize interrupt moderation control register. The magic value
  was chosen by lots of trial and errors. The chosen value shows
  good interrupt moderation without additional latency.
  Without this change, controller can generate more than 140k
  interrupts per second under high network load.

  Submitted by: xclin <xclin <> cs dot nctu dot edu dot tw >

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

14 years agoMFC r206876:
yongari [Mon, 26 Apr 2010 18:02:12 +0000 (18:02 +0000)]
MFC r206876:
  With r206844, CSUM_TCP is also set for CSUM_TSO case. Modify
  drivers to take into account for the change. Basically CSUM_TSO
  should be checked before checking CSUM_TCP.

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

14 years agoMFC r206672:
yongari [Mon, 26 Apr 2010 17:54:49 +0000 (17:54 +0000)]
MFC r206672:
  Fix include path.

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

14 years agoMFC r206631:
yongari [Mon, 26 Apr 2010 17:30:41 +0000 (17:30 +0000)]
MFC r206631:
  Add sge(4) man page and hook up sge(4) to the build.
  Also add Xr to appropriate man pages.

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

14 years agoMFC r206628:
yongari [Mon, 26 Apr 2010 17:27:08 +0000 (17:27 +0000)]
MFC r206628:
  Add sge(4) to the list of supported network interface.

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

14 years agoMFC r198443 (by antoine):
delphij [Mon, 26 Apr 2010 17:24:10 +0000 (17:24 +0000)]
MFC r198443 (by antoine):

Add more obsolete man pages.

Requested by: Alex Kozlov
Ok'ed by: antoine

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

14 years agoMFC r206625:
yongari [Mon, 26 Apr 2010 17:03:56 +0000 (17:03 +0000)]
MFC r206625:
  Add driver for Silicon Integrated Systems SiS190/191 Fast/Gigabit Ethernet.
  This driver was written by Alexander Pohoyda and greatly enhanced
  by Nikolay Denev. I don't have these hardwares but this driver was
  tested by Nikolay Denev and xclin.

  Because SiS didn't release data sheet for this controller, programming
  information came from Linux driver and OpenSolaris. Unlike other open
  source driver for SiS190/191, sge(4) takes full advantage of TX/RX
  checksum offloading and does not require additional copy operation in
  RX handler.
  The controller seems to have advanced offloading features like VLAN
  hardware tag insertion/stripping, TCP segmentation offload(TSO) as
  well as jumbo frame support but these features are not available
  yet. Special thanks to xclin <xclin<> cs dot nctu dot edu dot tw>
  who sent fix for receiving VLAN oversized frames.

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

14 years agoMFC r206859:
jh [Mon, 26 Apr 2010 16:20:18 +0000 (16:20 +0000)]
MFC r206859:

Fix ddb(4) "show geom addr" command when INVARIANTS is enabled. Don't
assert that the topology lock is held when g_valid_obj() is called from
debugger.

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

14 years agoMFC r200130 (partly): /usr/share/examples/etc/rc.firewall6 was
ume [Mon, 26 Apr 2010 15:01:14 +0000 (15:01 +0000)]
MFC r200130 (partly): /usr/share/examples/etc/rc.firewall6 was
also obsoleted.

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