]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoFix typo (COMPAT_FREEBDS32 -> COMPAT_FREEBSD32)
gavin [Sat, 5 Jun 2010 18:30:42 +0000 (18:30 +0000)]
Fix typo (COMPAT_FREEBDS32 -> COMPAT_FREEBSD32)

Direct commit to stable/8 as this text isn't in head.

PR: docs/147497
Submitted by: Jack Low <xxjack12xx gmail.com>
Approved by: re (kib)

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

13 years agoMFC r208731:
kib [Sat, 5 Jun 2010 14:53:34 +0000 (14:53 +0000)]
MFC r208731:
Add a facility to dynamically adjust or unconfigure p1003_1b mib.
Use it to allow to tune sem_nsem_max at runtime, only when sem.ko
module is present in kernel.

Approved by:    re (bz)

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

13 years agoMFC r208374:
kib [Fri, 4 Jun 2010 14:06:59 +0000 (14:06 +0000)]
MFC r208374:
Remove POLLHUP from the flags used to test for to set exceptfsd
fd_set bits in select(2). It seems that historical behaviour is to not
reporting exception on EOF, and several applications are broken.

Approved by:    re (kensmith)

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

13 years agoMFC r208689:
mm [Fri, 4 Jun 2010 08:46:26 +0000 (08:46 +0000)]
MFC r208689:

Fix ZIL close when doing zfs rollback or zfs receive on a mounted dataset.

The fix is a partial import and merge of OpenSolaris onnv revisions
8227:f7d7be9b1f56. and 9292:e112194b5b73

Reviewed by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID 6798298)
Approved by: re (kib)

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

13 years agoMerge r205010 from head to stable/8:
rwatson [Thu, 3 Jun 2010 09:15:52 +0000 (09:15 +0000)]
Merge r205010 from head to stable/8:

  Update nfsrv_getsocksndseq() for changes in TCP internals since FreeBSD 6.x:

  - so_pcb is now guaranteed to be non-NULL and valid if a valid socket
    reference is held.

  - Need to check INP_TIMEWAIT and INP_DROPPED before assuming inp_ppcb is a
    tcpcb, as it might be a tcptw or NULL otherwise.

  - tp can never be NULL by the end of the function, so only check
    TCPS_ESTABLISHED before extracting tcpcb fields.

  The NFS server arguably incorporates too many assumptions about TCP
  internals, but fixing that is left for another day.

  Reviewed by: bz
  Reviewed and tested by: rmacklem
  Sponsored by: Juniper Networks

Approved by: re (kib)

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

13 years agoMerge r204830 from head to stable/8
rwatson [Thu, 3 Jun 2010 09:06:50 +0000 (09:06 +0000)]
Merge r204830 from head to stable/8

  Locking the tcbinfo structure should not be necessary in tcp_timer_delack(),
  so don't.

  Reviewed by:    bz
  Sponsored by:   Juniper Networks

Approved by: re (kib)

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

13 years agoMerge r204826 from head to stable/8:
rwatson [Thu, 3 Jun 2010 09:02:53 +0000 (09:02 +0000)]
Merge r204826 from head to stable/8:

  Make udp_set_kernel_tunneling() less forgiving when its invariants are
  violated: so_pcb can never be NULL for a valid UDP socket, and it is
  always SOCK_DGRAM.  Use sotoinpcb() as the rest of the UDP code does.

  Reviewed by: bz
  Sponsored by: Juniper Networks

Approved by: re (kib)

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

13 years agoMerge r204810 from head to stable/8:
rwatson [Thu, 3 Jun 2010 08:55:45 +0000 (08:55 +0000)]
Merge r204810 from head to stable/8:

  Remove unnecessary locking of divcbinfo lock from div_output(): this has
  not been required since FreeBSD 7.0 when the so_pcb pointer leading to inp
  was guaranteed to be stable when a valid socket reference is held (as it
  is in the output path).

  Reviewed by: bz
  Sponsored by: Juniper Networks

Approved by: re (kib)

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

13 years agoMFC: r208650
jkim [Wed, 2 Jun 2010 21:00:18 +0000 (21:00 +0000)]
MFC: r208650

Fix a regression from r203544 (MFC of r200554), which broke fdc(4)
attachment to acpi(4).

Approved by: re (kib)

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

13 years agoMFC r208437:
trasz [Wed, 2 Jun 2010 20:35:56 +0000 (20:35 +0000)]
MFC r208437:

Make acl_get_perm_np(3) work with NFSv4 ACLs.

Reviewed by: kientzle@
Approved by: re (kib)

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

13 years agoMerge 208554 from head:
glebius [Wed, 2 Jun 2010 18:46:12 +0000 (18:46 +0000)]
Merge 208554 from head:

  Add uep(4), driver for USB onscreen touch panel from eGalax.

  The driver is stub. It just creates device entry and feeds
  reassembled packets from hardware into it.

  If in future we would port wsmouse(4) from NetBSD, or make
  sysmouse(4) to support absolute motion events, then the driver
  can be extended to act as system mouse. Meanwhile, it just
  presents a /dev/uep0, that can be utilized by X driver, that
  I am going to commit to ports tree soon.

  The name for the driver is chosen to be the same as in NetBSD,
  however, due to different USB stacks this driver isn't a port.

The driver is supported by ports/x11-drivers/xf86-input-egalax.

Approved by: re (kib)

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

13 years agoMissing commas in Dd
des [Wed, 2 Jun 2010 10:28:26 +0000 (10:28 +0000)]
Missing commas in Dd

Approved by: re (kib@)

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

13 years agoFix expansion of AuthorizedKeysFile (upstream patch)
des [Wed, 2 Jun 2010 10:26:31 +0000 (10:26 +0000)]
Fix expansion of AuthorizedKeysFile (upstream patch)

PR: 146334, 145940
Approved by: re (kib@)

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

13 years agoMFC r207329, r208716:
attilio [Tue, 1 Jun 2010 21:19:58 +0000 (21:19 +0000)]
MFC r207329, r208716:
- Extract the IODEV_PIO interface from ia64 and make it MI.
- On i386 and amd64 the old behaviour is kept but multithreaded
  processes must use the new interface in order to work well.
- Support for the other architectures is greatly improved.

Sponsored by: Sandvine Incorporated

Approved by: re (kib, bz)

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

13 years agoMFC 208555:
jhb [Tue, 1 Jun 2010 19:38:46 +0000 (19:38 +0000)]
MFC 208555:
Ignore the 'addr' argument passed to PT_STEP (it is required to be '1'
for PT_STEP which means "ignore") and PT_DETACH.

Approved by: re (kib)

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

13 years agoMerge r206210 from head to stable/7:
rwatson [Tue, 1 Jun 2010 14:29:26 +0000 (14:29 +0000)]
Merge r206210 from head to stable/7:

  Synchronize Coda kernel module definitions in our coda.h to Coda 6's
  coda.h:

  - CodaFid typdef -> struct CodaFid throughout.
  - Use unsigned int instead of unsigned long for venus_dirent and other
    cosmetic fixes.
  - Introduce cuid_t and cgid_t and use instead of uid_t and gid_t in RPCs.
  - Synchronize comments and macros.
  - Use u_int32_t instead of unsigned long for coda_out_hdr.

  With these changes, a 64-bit Coda kernel module now works with
  coda6_client, whereas previous userspace and kernel versions of RPCs
  differed sufficiently to prevent using the file system.  This has been
  verified only with casual testing, but /coda is now usable for at least
  basic operations on amd64.

Approved by: re (kensmith)

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

13 years agoMerge r206972 from head to stable/8:
rwatson [Tue, 1 Jun 2010 14:26:27 +0000 (14:26 +0000)]
Merge r206972 from head to stable/8:

  Merge @176820, @176822, @177156 to tcpp from P4 to HEAD:

   Improve accuracy of connection data transfer math.

   Disable Nagle's algorithm to avoid delaying transfers of data --
   will want to refine this to combine payload with header transfer,
   however.

   Now that we're running w/o Nagle, try to send the initial data
   burst with the header in a single TCP segment.

   Prefer %zu to %ju for size_t.

   Sponsored by: Juniper, Inc.

Approved by: re (bz)

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

13 years agoMerge r204809 from head to stable/8:
rwatson [Tue, 1 Jun 2010 14:21:24 +0000 (14:21 +0000)]
Merge r204809 from head to stable/8:

  Add a comment to tcp_usr_accept() to indicate why it is we acquire the
  tcbinfo lock there: r175612, which re-added it, masked a race between
  sonewconn(2) and accept(2) that could allow an incompletely initialized
  address on a newly-created socket on a listen queue to be exposed.  Full
  details can be found in that commit message.

  Sponsored by: Juniper Networks

Approved by: re (bz)

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

13 years agoMerge r204806 from head to stable/8:
rwatson [Tue, 1 Jun 2010 14:18:44 +0000 (14:18 +0000)]
Merge r204806 from head to stable/8:

  Wrap use of rw_try_upgrade() on pcbinfo with macro INP_INFO_TRY_UPGRADE()
  to match other pcbinfo locking macros.

Approved by: re (bz)

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

13 years agoMerge r204435 from head to stable/8:
rwatson [Tue, 1 Jun 2010 14:09:35 +0000 (14:09 +0000)]
Merge r204435 from head to stable/8:

  Fix typo in comment.

Approved by: re (bz)

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

13 years agoMerge r204430 from head to stable/8:
rwatson [Tue, 1 Jun 2010 14:04:33 +0000 (14:04 +0000)]
Merge r204430 from head to stable/8:

  Remove stale comment about socket buffer accounting from access(2) code.
  It is the case, however, that the uidinfo of the temporary credential
  set up for access(2) is not properly updated when its effective uid is
  changed.

Approved by: re (bz)

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

13 years agoMerge r208601 from head to stable/8:
rwatson [Tue, 1 Jun 2010 13:59:48 +0000 (13:59 +0000)]
Merge r208601 from head to stable/8:

  When close() is called on a connected socket pair, SO_ISCONNECTED might be
  set but be cleared before the call to sodisconnect().  In this case,
  ENOTCONN is returned: suppress this error rather than returning it to
  userspace so that close() doesn't report an error improperly.

  PR: kern/144061
  Reported by: Matt Reimer <mreimer at vpop.net>,
Nikolay Denev <ndenev at gmail.com>,
Mikolaj Golub <to.my.trociny at gmail.com>

Approved by: re (kib)

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

13 years agoMerge r206206 from head to stable/8:
rwatson [Tue, 1 Jun 2010 13:57:58 +0000 (13:57 +0000)]
Merge r206206 from head to stable/8:

  Correct definition of CIOC_KERNEL_VERSION Coda ioctl() for systems
  where sizeof(int) != sizeof(sizeof(int)), or the ioctl will return
  EINVAL.

Approved by: re (kib)

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

13 years agoMFC r208300:
attilio [Tue, 1 Jun 2010 09:32:22 +0000 (09:32 +0000)]
MFC r208300:
Fix a race between ngs_rcvmsg() and soclose() which closes the control
socket while it is still in use as ngs_rcvmsg() runs without any lock
held.

Sponsored by: Sandvine Incorporated
Approved by: re (bz)

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

13 years agoMerge r204498 from head to stable/8:
rwatson [Mon, 31 May 2010 22:29:48 +0000 (22:29 +0000)]
Merge r204498 from head to stable/8:

  Whitespace tweak.

Approved by: re (kib)

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

13 years agoMerge r204581 from head to stable/8:
rwatson [Mon, 31 May 2010 22:27:08 +0000 (22:27 +0000)]
Merge r204581 from head to stable/8:

  Update device-labeling logic for Biba, LOMAC, and MLS to recognize new-style
  pts devices when various policy ptys_equal flags are enabled.

  Submitted by: Estella Mystagic <estella at mystagic.com>

Approved by: re (kib)

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

13 years agoMerge r204173 from head to stable/8:
rwatson [Mon, 31 May 2010 22:18:42 +0000 (22:18 +0000)]
Merge r204173 from head to stable/8:

  ifconfig(8) expects interface fooX to be supported by the module if_foo,
  and will try to load it if it's not present.  To better meet these
  expectations, change the module name for the loopback interface from
  'loop' to 'if_lo'.  The loopback interface is always compiled into the
  base kernel, so there are no resulting changes in kld files, etc.

  Discussed with:       brooks (ages ago)

Approved by:    re (bz, kib)

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

13 years agoMFC r208512:
yongari [Mon, 31 May 2010 22:03:56 +0000 (22:03 +0000)]
MFC r208512:
  sge_encap() can sometimes return an error with m_head set to NULL.
  Make sure not to requeue freed mbuf in sge_start_locked(). This
  should fix NULL pointer dereference panic.

  Reported by: Nikolay Denev <ndenev <> gmail dot com>
  Submitted by: jhb
  Approved by: re (bz)

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

13 years agoMerge r203410 from head to stable/8:
rwatson [Mon, 31 May 2010 21:57:31 +0000 (21:57 +0000)]
Merge r203410 from head to stable/8:

 Only audit pathnames in namei(9) if copying the directory string completes
 successfully.  Continue to do this before the empty path check so that the
 ENOENT returned in that case gets an empty string token in the BSM record.

Approved by: re (kib)

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

13 years agoMerge r200976 from head to stable/8:
rwatson [Mon, 31 May 2010 21:35:40 +0000 (21:35 +0000)]
Merge r200976 from head to stable/8:

  Minor comment tweaks in rmlocks.

Approved by: re (kib)

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

13 years agoMerge r200899 from head to stable/8:
rwatson [Mon, 31 May 2010 21:14:56 +0000 (21:14 +0000)]
Merge r200899 from head to stable/8:

  When warning about possible netisr configuration problems during boot,
  report using "netisr_init" rather than "netisr2", which was the development
  name for the project.

Approved by: re (kib)

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

13 years agoMFC r201374: g_part_gpt: Properly return the UUID represented by the alias
avg [Mon, 31 May 2010 20:17:37 +0000 (20:17 +0000)]
MFC r201374: g_part_gpt: Properly return the UUID represented by the alias

PR: kern/142174
Approved by: re (kib)
Approved by: marcel

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

13 years agoMFC r208606: Remove $Mdocdate$ from man page imported from OpenBSD;
cperciva [Mon, 31 May 2010 07:14:40 +0000 (07:14 +0000)]
MFC r208606: Remove $Mdocdate$ from man page imported from OpenBSD;
their mdoc supports it, but ours doesn't.

Approved by: re (hrs)

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

13 years agoMFC r199818:
bz [Sun, 30 May 2010 11:28:01 +0000 (11:28 +0000)]
MFC r199818:

  New style of jail(8) usage requires "-c" argument to create a jail.

Approved by: re (hrs)

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

13 years agoMFC r208493:
uqs [Sun, 30 May 2010 08:38:41 +0000 (08:38 +0000)]
MFC r208493:
   These features will first appear in 8.1, soon to be released

Approved by: re (kib)

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

13 years agoChange the current working directory to be inside the jail created by
cperciva [Thu, 27 May 2010 03:15:04 +0000 (03:15 +0000)]
Change the current working directory to be inside the jail created by
the jail(8) command. [10:04]

Fix a one-NUL-byte buffer overflow in libopie. [10:05]

Correctly sanity-check a buffer length in nfs mount. [10:06]

Approved by: so (cperciva)
Approved by: re (kensmith)
Security: FreeBSD-SA-10:04.jail
Security: FreeBSD-SA-10:05.opie
Security: FreeBSD-SA-10:06.nfsclient

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

13 years agoMFC r208488:
kib [Wed, 26 May 2010 19:26:28 +0000 (19:26 +0000)]
MFC r208488:
Fix the double counting of the last process thread td_incruntime
on exit, that is done once in thread_exit() and the second time in
proc_reap(), by clearing td_incruntime.

Approved by: re (kensmith)

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

13 years agoThis is an MFC of 208119, 208129
mjacob [Wed, 26 May 2010 18:56:06 +0000 (18:56 +0000)]
This is an MFC of 208119, 208129

Hook up some wires that were forgotten a few months ago and restore
the zombie device timeout code and the loop down time code and the fabric
hysteresis code.

Approved by:    re (ken smith)

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

13 years agoMFC: r208468
marius [Wed, 26 May 2010 17:30:14 +0000 (17:30 +0000)]
MFC: r208468

At least on sparc64 these modules require ata_machdep.c.

Approved by: re (kib)

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

13 years agoAdd packages-8.1-release directory. While here add packages-7.3-release.
kensmith [Wed, 26 May 2010 17:18:32 +0000 (17:18 +0000)]
Add packages-8.1-release directory.  While here add packages-7.3-release.

Approved by: re (implicit)

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

13 years agoBump version number from 8.0 to 8.1. Belatedly bump stable/7 to stable/8
kensmith [Wed, 26 May 2010 17:11:01 +0000 (17:11 +0000)]
Bump version number from 8.0 to 8.1.  Belatedly bump stable/7 to stable/8
for SVNBRANCH.

Approved by: re (implicit)

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

13 years agoChange the FreeBSD version that will be printed for the manual pages.
kensmith [Wed, 26 May 2010 17:07:39 +0000 (17:07 +0000)]
Change the FreeBSD version that will be printed for the manual pages.

Approved by: re (implicit)

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

13 years agoMFC: r208459, r208511
marius [Wed, 26 May 2010 17:05:54 +0000 (17:05 +0000)]
MFC: r208459, r208511

- Update the sparc64 hardware list regarding machines that will be supported
  beginning with 8.1-RELEASE as well as correct some existing entries and
  add previously missed ones. [1]
- According to simon@ when referring to a company along a product just to
  identify the company one shouldn't use the company trademark. [2]

Approved by: re (kib), blackend [1], simon [2]

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

14 years agoRegen for r208547.
jkim [Tue, 25 May 2010 20:21:46 +0000 (20:21 +0000)]
Regen for r208547.

Approved by: re (kib)

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

14 years agoMFC: r208322
jkim [Tue, 25 May 2010 20:19:31 +0000 (20:19 +0000)]
MFC: r208322

Add an option file for WITHOUT_MAN_UTILS to regenerate src.conf(5).

Approved by: re (kib)

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

14 years agoMFC: r208320
jkim [Tue, 25 May 2010 20:16:36 +0000 (20:16 +0000)]
MFC: r208320

Add a new build option, MAN_UTILS.  This option lets you control building
utilities and related support files for manual pages, which were previously
controlled by MAN.  For POLA, the default depends on MAN, i.e., WITHOUT_MAN
implies WITHOUT_MAN_UTILS and WITH_MAN implies WITH_MAN_UTILS.
Note this patch implicitly fixes a documentation bug of src.conf(5), which
says WITHOUT_MAN may be used to not build manual pages while it was also
disabling some utilities for manual pages.

Approved by: re (kib)

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

14 years agoMFC r198477,198503:
randi [Tue, 25 May 2010 03:15:09 +0000 (03:15 +0000)]
MFC r198477,198503:
  Eject CDROM after installation if used as source media.

Approved by: cperciva (mentor)

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

14 years agoMFC r208407:
randi [Tue, 25 May 2010 03:08:47 +0000 (03:08 +0000)]
MFC r208407:
  Flush all routes before adding the default route in order to allow
  sysinstall to cleanly re-initialize the network.

PR: bin/145553
Submitted by: gcooper
Approved by: cperciva (mentor)

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

14 years agoMFC r200824
thompsa [Tue, 25 May 2010 02:52:10 +0000 (02:52 +0000)]
MFC r200824

 Set correct USB device description

Submitted by: Paul B Mahol

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

14 years agoMFC r202612
thompsa [Tue, 25 May 2010 02:39:55 +0000 (02:39 +0000)]
MFC r202612

 Use the iflladdr_event event to keep the mac address on the vap in sync with
 the parent wirless interface. If the user passed in a mac address or it was
 autogenerated then flag this to avoid trashing it on update.

 This will fix wlan+lagg in a post vap world.

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

14 years agoMFC r202588
thompsa [Tue, 25 May 2010 02:36:06 +0000 (02:36 +0000)]
MFC r202588

 Declare a new EVENTHANDLER called iflladdr_event which signals that the L2
 address on an interface has changed. This lets stacked interfaces such as
 vlan(4) detect that their lower interface has changed and adjust things in
 order to keep working. Previously this situation broke at least vlan(4) and
 lagg(4) configurations.

 The EVENTHANDLER_INVOKE call was not placed within if_setlladdr() due to the
 risk of a loop.

 PR: kern/142927
 Submitted by: Nikolay Denev

MFC r202611

 Do not hold the lock over if_setlladdr() as it calls into the interface driver
 init routine.

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

14 years agoMFC r200014
thompsa [Tue, 25 May 2010 02:28:39 +0000 (02:28 +0000)]
MFC r200014

 Remove unknown ath hal device entries.

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

14 years agoMFC r208120:
weongyo [Mon, 24 May 2010 21:01:37 +0000 (21:01 +0000)]
MFC r208120:
  - fixes a bug that it didn't initialize the ratectl after association;
    so ni_txrate returned 0 which is a invalid result.
  - The fourth argument of ieee80211_ratectl_tx_complete() could be not
    NULL.

  Reported by:  Gustau P?rez <gperez at entel.upc.edu>
  Tested by:    Gustau P?rez <gperez at entel.upc.edu>,
                Ian FREISLICH <ianf at clue.co.za>

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

14 years agoMFC r208472, r208474:
mm [Mon, 24 May 2010 20:09:40 +0000 (20:09 +0000)]
MFC r208472, r208474:

MFC r208472:
Fix zfs receive temporarily changing unchanged stream properties.
Fix possible panic with zfs_enable_datasets.
OpenSolaris onnv revision: 8536:33bd5de3260e [1]

MFC r208474:
Remove kstat.zfs.arcstats.l2_write_bytes_written
The arcstats.l2_write_bytes_written kstat counter introduced
in r205231 was duplicite with vendor's arcstats.l2_write_bytes counter
imported in r208373 (OpenSolaris revision 8582:df9361868dbe)

Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID 67485616757075) [1]

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

14 years agoCorrect svn:mergeinfo so that they are at the right places.
delphij [Mon, 24 May 2010 19:56:33 +0000 (19:56 +0000)]
Correct svn:mergeinfo so that they are at the right places.

To quote pjd@:

The proper merge points are:

cddl/contrib/opensolaris
cddl/compat/opensolaris

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

14 years agoMFC r207482
rstone [Mon, 24 May 2010 19:42:27 +0000 (19:42 +0000)]
MFC r207482

 When configuring hwpmc to use the EXT_SNOOP event, only send a default
 cachestate qualifier on the Atom processor.  Other Intel processors do not
 accept a cachestate qualifier and currently hwpmc will return EINVAL if you
 try to use the EXT_SNOOP event on those processors

Approved by: emaste (mentor)

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

14 years agoMFC 208350:
jhb [Mon, 24 May 2010 19:36:15 +0000 (19:36 +0000)]
MFC 208350:
Add support for the Perle Speed4 LE.

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

14 years agoMFC r207484:
rstone [Mon, 24 May 2010 18:21:42 +0000 (18:21 +0000)]
MFC r207484:

 When configuring a system-wide couting PMC, hwpmc was incorrectly logging
 process mappings for that PMC.  Nothing ever reads pmc logs out of a
 counting PMC, so the log buffers were leaked when the PMC was
 deconfigured.  The process mappings are only useful for sampling PMCs
 anyway, so only log the mappings if the PMC is a sampling PMC.

 This bug would cause allocating sample-mode PMCs to fail with ENOMEM
 after allocating several counting-mode PMCs.

Approved by: emaste (mentor)

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

14 years agoMFC of driver version 2.2.0 for 8.1
jfv [Mon, 24 May 2010 18:00:28 +0000 (18:00 +0000)]
MFC of driver version 2.2.0 for 8.1

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

14 years agoMerge r208110:
kensmith [Mon, 24 May 2010 15:26:40 +0000 (15:26 +0000)]
Merge r208110:

> Do not attempt to render a logrecord with length byte, until we have
> decompressed all the bytes required.

Requested by: phk

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

14 years agoMFC 208379: Add interrupt descriptions for mxge's msi-x vectors
gallatin [Mon, 24 May 2010 13:01:02 +0000 (13:01 +0000)]
MFC 208379: Add interrupt descriptions for mxge's msi-x vectors

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

14 years agoMFC 208312: Correctly identify some twinax cables, which report
gallatin [Mon, 24 May 2010 12:51:00 +0000 (12:51 +0000)]
MFC 208312: Correctly identify some twinax cables, which report
    a media type of 1

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

14 years agoMFC 208309: Update mxge firmware to latest available from Myricom.
gallatin [Mon, 24 May 2010 12:10:53 +0000 (12:10 +0000)]
MFC 208309: Update mxge firmware to latest available from Myricom.

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

14 years agoMFC r208410:
mav [Mon, 24 May 2010 11:01:56 +0000 (11:01 +0000)]
MFC r208410:
Report ATA/SATA channel number to NewBus at location string.

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

14 years agoMFC r208414:
mav [Mon, 24 May 2010 10:54:50 +0000 (10:54 +0000)]
MFC r208414:
Fill rman range start/end values. It makes devinfo output more readable.

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

14 years agoMFC r208449:
mav [Mon, 24 May 2010 10:45:51 +0000 (10:45 +0000)]
MFC r208449:
mvs(4) will first appear in FreeBSD 8.1.

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

14 years agoMFC r207920,r207934,r207936,r207937,r207970,r208142,r208147,r208148,r208166,
pjd [Mon, 24 May 2010 10:09:36 +0000 (10:09 +0000)]
MFC r207920,r207934,r207936,r207937,r207970,r208142,r208147,r208148,r208166,
r208454,r208455,r208458:

r207920:

Back out r205134. It is not stable.

r207934:

Add missing new line characters to the warnings.

r207936:

Eventhough r203504 eliminates taste traffic provoked by vdev_geom.c,
ZFS still like to open all vdevs, close them and open them again,
which in turn provokes taste traffic anyway.

I don't know of any clean way to fix it, so do it the hard way - if we can't
open provider for writing just retry 5 times with 0.5 pauses. This should
elimitate accidental races caused by other classes tasting providers created on
top of our vdevs.

Reported by: James R. Van Artsdalen <james-freebsd-fs2@jrv.org>
Reported by: Yuri Pankov <yuri.pankov@gmail.com>

r207937:

I added vfs_lowvnodes event, but it was only used for a short while and now
it is totally unused. Remove it.

r207970:

When there is no memory or KVA, try to help by reclaiming some vnodes.
This helps with 'kmem_map too small' panics.

No objections from: kib
Tested by: Alexander V. Ribchansky <shurik@zk.informjust.ua>

r208142:

The whole point of having dedicated worker thread for each leaf VDEV was to
avoid calling zio_interrupt() from geom_up thread context. It turns out that
when provider is forcibly removed from the system and we kill worker thread
there can still be some ZIOs pending. To complete pending ZIOs when there is
no worker thread anymore we still have to call zio_interrupt() from geom_up
context. To avoid this race just remove use of worker threads altogether.
This should be more or less fine, because I also thought that zio_interrupt()
does more work, but it only makes small UMA allocation with M_WAITOK.
It also saves one context switch per I/O request.

PR: kern/145339
Reported by: Alex Bakhtin <Alex.Bakhtin@gmail.com>

r208147:

Add task structure to zio and use it instead of allocating one.
This eliminates the only place where we can sleep when calling zio_interrupt().
As a side-effect this can actually improve performance a little as we
allocate one less thing for every I/O.

Prodded by: kib

r208148:

Allow to configure UMA usage for ZIO data via loader and turn it on by
default for amd64. On i386 I saw performance degradation when UMA was used,
but for amd64 it should help.

r208166:

Fix userland build by making io_task available only for the kernel and by
providing taskq_dispatch_safe() macro.

r208454:

Remove ZIO_USE_UMA from arc.c as well.

r208455:

ZIO_USE_UMA is no longer used.

r208458:

Create UMA zones unconditionally.

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

14 years agoMFC r208373:
mm [Mon, 24 May 2010 06:11:33 +0000 (06:11 +0000)]
MFC r208373:

Update L2ARC code and fix several bugs.

- improve ARC memory consumption (Bug ID 6488341)
- ARC/L2ARC metadata accounting (Bug ID 6748019)
- L2ARC turbo warmup (Bud ID 6748023)
- kstats for ARC content (Bug ID 6748023)
- kstats for evicted bytes from ARC by L2ARC state (Bud ID 6871680)
- fix panic on i386 systems (Bug ID 6821260)

OpenSolaris onnv revisions:
8582:df9361868dbe, 8628:97dcded6e556, 9215:7c4584f76b47,
9274:a10f8bd993c1, 10357:29060492b29d

OpenSolaris Bug IDs:
67480196748023674803064883416798268682126067902616871680

Approved by: pjd, delphij (mentor)
Obtained from: OpenSlaris (multiple bug IDs)

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

14 years agoMFC r208370, r208371, r208372, r208442, r208443:
mm [Mon, 24 May 2010 06:07:55 +0000 (06:07 +0000)]
MFC r208370, r208371, r208372, r208442, r208443:

MFC r208370:
Fix: vdev_reopen() can lead to failed allocations
OpenSolaris onnv-revision: 7980:589f37f25048, Bug ID: 6764914

MFC r208371:
Fix stack overflow in zfs send.
OpenSolaris onnv-revision: 8012:8ea30813950f, Bug ID: 6765626

MFC r208372:
Reorder some already introduced locking variables.
OpenSolaris onnv revision: 8214:d7abf7c1f1c1, Bug ID: 6747934

MFC r208442:
Fix mutex_exit misorder that can cause a kernel panic.
OpenSolaris onnv revision: 8667:5c308a17eb7c, Bug ID: 6795440

MFC r208443:
Fix kernel panic when calling spa_tryimport() on a corrupted pool.
OpenSolaris onnv revision: 8680:005fe27123ba, Bug ID: 6786321

Approved by: pav, delphij (mentor)
Obtained from: OpenSolaris (multiple Bug IDs)

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

14 years agoMFC: r208279
jkim [Mon, 24 May 2010 01:46:06 +0000 (01:46 +0000)]
MFC: r208279

Restore the previous video mode after VESA BIOS POST, just in case.

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

14 years agoMFC: r208276
jkim [Mon, 24 May 2010 01:44:30 +0000 (01:44 +0000)]
MFC: r208276

Remove unnecessary pointer increment. A wrong pointer may be passed to
free(9) and it can cause kernel panic when there are multiple graphics
controllers in the system.

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

14 years agoMFC r208159
alc [Sun, 23 May 2010 21:57:45 +0000 (21:57 +0000)]
MFC r208159
  Add a comment about the proper use of vm_object_page_remove().

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

14 years agoUpgrade to 9.6.2-P2, which addresses the following;
dougb [Sun, 23 May 2010 21:15:36 +0000 (21:15 +0000)]
Upgrade to 9.6.2-P2, which addresses the following;

Named could return SERVFAIL for negative responses
from unsigned zones.

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

14 years agoMFC: r207998
brueffer [Sun, 23 May 2010 20:27:13 +0000 (20:27 +0000)]
MFC: r207998

Fix grammar in a line of output.

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

14 years agoMFC: r208054
brueffer [Sun, 23 May 2010 20:23:34 +0000 (20:23 +0000)]
MFC: r208054

List /var/cron/tabs in FILES and add descriptions for the other entries.

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

14 years agoMFC: r208056
brueffer [Sun, 23 May 2010 20:18:51 +0000 (20:18 +0000)]
MFC: r208056

Wording fixes.

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

14 years agoMFC: r208053
brueffer [Sun, 23 May 2010 20:10:11 +0000 (20:10 +0000)]
MFC: r208053

Mention LSI Logic FC949E.

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

14 years agoMFC: r208349
marius [Sun, 23 May 2010 16:16:33 +0000 (16:16 +0000)]
MFC: r208349

Change ad_firmware_geom_adjust() to operate on a struct disk * only and
hook it up to ada(4) also. While at it, rename *ad_firmware_geom_adjust()
to *ata_disk_firmware_geom_adjust() etc now that these are no longer
limited to ad(4). This also allows to maintain a compatibility shim for
pc98_ad_firmware_geom_adjust() for the tier-1 PC98 in stable/8.

Reviewed by: mav (r208349)

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

14 years agoMFC r200534,200535:
nwhitehorn [Sun, 23 May 2010 15:30:32 +0000 (15:30 +0000)]
MFC r200534,200535:

Simplify partition type parsing by using a data-oriented model.
While there add more Apple and Linux partition types.

This unbreaks the build after r208341.

Reported by: many
Pointy hat to: me

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

14 years agoMFC r208375, r208393:
mav [Sun, 23 May 2010 11:29:34 +0000 (11:29 +0000)]
MFC r208375, r208393:
Improve suspend/resume support. Make sure controller is idle on suspend
and reset it on resume.

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

14 years agoMFC r208273:
bcr [Sun, 23 May 2010 11:26:43 +0000 (11:26 +0000)]
MFC r208273:
Add a sentence to the man page explaining that the -d option
can only be used when ntpd is compiled with DEBUG support.

PR:             docs/138206
Submitted by:   Oliver Pinter (oliver dot pntr at gmail dot com)
Approved by:    roberto

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

14 years agoMFC: r208348
marius [Sun, 23 May 2010 11:20:26 +0000 (11:20 +0000)]
MFC: r208348

Remove unnecessary headers which were inherited from cam_xpt.c without
reason.

Reviewed by: mav

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

14 years agoMFC: r208341
marius [Sun, 23 May 2010 11:18:05 +0000 (11:18 +0000)]
MFC: r208341

Update to a config.h created by a file 5.03 configure script. This causes
file.1 to contain the correct version number and SIZEOF_LONG_LONG to be
defined as appropriate, which is crucial for 64-bit big-endian ELF files
to be handled correctly on big-endian systems.

PR: 146387
Reviewed by: delphij

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

14 years agoMFC r208356.
np [Sun, 23 May 2010 09:27:14 +0000 (09:27 +0000)]
MFC r208356.

Remove bad assertion.

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

14 years agoMFC r208293: ffs_mount: accept and drop userland-only options that can
avg [Sun, 23 May 2010 07:21:50 +0000 (07:21 +0000)]
MFC r208293: ffs_mount: accept and drop userland-only options that can
be passed from loader(8)

PR: kern/141050

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

14 years agoMFC r207366: ffs_vfsops: restore alphabetic order of options in ffs_opts
avg [Sun, 23 May 2010 07:04:21 +0000 (07:04 +0000)]
MFC r207366: ffs_vfsops: restore alphabetic order of options in ffs_opts

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

14 years agoMFC: r208254
rmacklem [Sun, 23 May 2010 02:55:59 +0000 (02:55 +0000)]
MFC: r208254
Allow the experimental NFSv4 client to use cached attributes
when a write delegation is held. Also, add a missing
mtx_unlock() call for the ACL debugging code.

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

14 years agoMFC r200557,208173:
nwhitehorn [Sun, 23 May 2010 02:40:04 +0000 (02:40 +0000)]
MFC r200557,208173:

Teach gpart about bootcode on APM.

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

14 years agoMFC r208167:
nwhitehorn [Sun, 23 May 2010 02:32:52 +0000 (02:32 +0000)]
MFC r208167:

Enable smu(4) to report fan speeds on late-model Powermac G5s.

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

14 years agoMFC r205497,208364,208405:
nwhitehorn [Sun, 23 May 2010 02:31:37 +0000 (02:31 +0000)]
MFC r205497,208364,208405:

Fix a long-standing bug in the PowerPC OFW call function on SMP machines
by forcing all secondary CPUs into a busy wait with interrupts off during
the call. This bug caused ofwdump -a to hang the system.

Following section 8.4 of the Open Firmware PowerPC processor binding,
the firmware is free to overwrite the system interrupt handlers during
OF calls, restoring the OS handlers on exit. On single CPU systems, this
process is invisible to the operating system. On multiple CPU systems,
taking any exception on a secondary CPU while an OF call is in progress
ends with that exception vectored into OF, resulting in a slow movement
of the entire system into firmware context and a machine hang.

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

14 years agoAdd a file missed by svn in r208425 (the MFC of r208149,208285)
nwhitehorn [Sun, 23 May 2010 02:20:26 +0000 (02:20 +0000)]
Add a file missed by svn in r208425 (the MFC of r208149,208285)

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

14 years agoMFC r208152,208172:
nwhitehorn [Sun, 23 May 2010 02:18:40 +0000 (02:18 +0000)]
MFC r208152,208172:

On PowerMac11,2 and (presumably) PowerMac12,1, we need to quiesce the
firmware in order to take over control of the SMU. Without doing this,
the firmware background process doing fan control will run amok as we
take over the system and crash the management chip.

This is limited to these two machines because our kernel is heavily
dependent on firmware accesses, and so quiescing firmware can cause
nasty problems.

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

14 years agoMFC r208150:
nwhitehorn [Sun, 23 May 2010 02:16:29 +0000 (02:16 +0000)]
MFC r208150:

On SMP G5 systems, sometimes the power-mode-data property is only found
on CPU 0, so look there if it is not otherwise available.

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

14 years agoMFC r208149,208285:
nwhitehorn [Sun, 23 May 2010 02:15:31 +0000 (02:15 +0000)]
MFC r208149,208285:

Add support for the U4 PCI-Express bridge chipset used in late-generation
Powermac G5 systems. MSI and several other things are not presently
supported.

The U3/U4 internal device support portions of this change were contributed
by Andreas Tobler.

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

14 years agoMFC r205356:
nwhitehorn [Sun, 23 May 2010 02:12:44 +0000 (02:12 +0000)]
MFC r205356:

Let unin(4) attach to U3 controllers found on G5 machines.

Submitted by: Andreas Tobler

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

14 years agoMerge OpenSSL 0.9.8n from head into stable/8.
simon [Sat, 22 May 2010 18:40:54 +0000 (18:40 +0000)]
Merge OpenSSL 0.9.8n from head into stable/8.

Approved by: re (kib)

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

14 years agoMFC: r208234
rmacklem [Sat, 22 May 2010 01:01:59 +0000 (01:01 +0000)]
MFC: r208234
Add a sanity check for a negative args.fhsize to the experimental
NFS client.

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

14 years agoMFC r198317,206995:
randi [Fri, 21 May 2010 23:08:53 +0000 (23:08 +0000)]
MFC r198317,206995:
  Introduce 'netDev=ANY' support for scripted (install.cfg) installs, which
  results in the first ethernet interface with physical link being selected.

Approved by: cperciva (mentor)

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

14 years agoMFC: r201490
marius [Fri, 21 May 2010 19:47:52 +0000 (19:47 +0000)]
MFC: r201490

There are actually 129 tests here.

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

14 years agoMFC: r197362
marius [Fri, 21 May 2010 19:45:54 +0000 (19:45 +0000)]
MFC: r197362

IEEE Std 1003.1, 2004 Edition states:

"The escape sequence '\n' shall match a <newline> embedded in
the pattern space."

It is unclear whether this also applies to a \n embedded in a
character class.  Disable the existing handling of \n in a character
class following Mac OS X, GNU sed version 4.1.5 with --posix, and
SunOS 5.10 /usr/bin/sed.

Pointed by: Marius Strobl
Obtained from: Mac OS X

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