]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoOpenSSH: allow VersionAddendum to be used again
rea [Sun, 3 Jun 2012 18:00:38 +0000 (18:00 +0000)]
OpenSSH: allow VersionAddendum to be used again

Prior to this, setting VersionAddendum will be a no-op: one will
always have BASE_VERSION + " " + VERSION_HPN for VersionAddendum
set in the config and a bare BASE_VERSION + VERSION_HPN when there
is no VersionAddendum is set.

HPN patch requires both parties to have the "hpn" inside their
advertized versions, so we add VERSION_HPN to the VERSION_BASE
if HPN is enabled and omitting it if HPN is disabled.

VersionAddendum now uses the following logics:
 * unset (default value): append " " and VERSION_ADDENDUM;
 * VersionAddendum is set and isn't empty: append " "
   and VersionAddendum;
 * VersionAddendum is set and empty: don't append anything.

Approved by: des
Reviewed by: bz

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

11 years agoMFC: let netmap build as a module (but do not connect to the main build yet)
luigi [Sun, 3 Jun 2012 17:51:53 +0000 (17:51 +0000)]
MFC: let netmap build as a module (but do not connect to the main build yet)

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

11 years agoMFC: r233666
marius [Sun, 3 Jun 2012 17:48:04 +0000 (17:48 +0000)]
MFC: r233666

Fix build after changes to trap headers.

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

11 years agoMFC: r233635
marius [Sun, 3 Jun 2012 11:54:26 +0000 (11:54 +0000)]
MFC: r233635

Allow multiple inclusion of trap.h. This has always been broken, but
until recently never caused problems.

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

11 years agoMFC r236145, r236146:
mm [Sun, 3 Jun 2012 09:37:27 +0000 (09:37 +0000)]
MFC r236145, r236146:

MFC r236145 [1]:
Import illumos changeset 13564:cf89c0c60496
1946 incorrect formatting when listing output of multiple pools with
zpool iostat -v

MFC r236146 [2]:
Import illumos changeset 13605:b5c2b5db80d6 (partial)
763 FMD msg URLs should refer to something visible
Replace sun.com URL's with illumos.org

References:
https://www.illumos.org/issues/1946 [1]
https://www.illumos.org/issues/763 [2]

Obtained from: illumos (issue #1946 [1], #763 [2])

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

11 years agoMFC r236193: libfetch: Avoid SIGPIPE on network connections.
jilles [Sat, 2 Jun 2012 20:18:34 +0000 (20:18 +0000)]
MFC r236193: libfetch: Avoid SIGPIPE on network connections.

To avoid unexpected process termination from SIGPIPE when writing to a
closed network connection, enable SO_NOSIGPIPE on all network connections.

The POSIX standard MSG_NOSIGNAL is not used since it requires modifying all
send calls to add this flag. This is particularly nasty for SSL connections.

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

11 years agoMFC: r236328
marius [Sat, 2 Jun 2012 19:16:09 +0000 (19:16 +0000)]
MFC: r236328

Try to finally get the point in time at which bge_add_sysctls() is called
right; it needs to be called before bge_can_use_msi() but in turn requires
bge_flags to be properly set.

Submitted by: yongari

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

11 years agoMFC r235829: vm_pager_object_lookup: small performance optimization
avg [Sat, 2 Jun 2012 19:13:56 +0000 (19:13 +0000)]
MFC r235829: vm_pager_object_lookup: small performance optimization

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

11 years agoMFC: r236156
marius [Sat, 2 Jun 2012 19:11:44 +0000 (19:11 +0000)]
MFC: r236156

- Fix some typos in mmc_acquire_bus() and mmc_send_csd().
- Fix some math errors in mmc_decode_csd_sd().
- Fix incorrect arguments to mmc_send_app_op_cond() in mmc_go_discovery().
- Add reporting of CSD for debug purposes.
- Add detection (and skipping) of password-locked cards.
- Add setting of block length on card if necessary.

Submitted by: Patrick Kelsey

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

11 years agoMFC: r236070
marius [Sat, 2 Jun 2012 19:10:00 +0000 (19:10 +0000)]
MFC: r236070

Consistently use USB_PAGE_SIZE. Currently, this is cosmetic.

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

11 years agoMFC: r236069, r236073
marius [Sat, 2 Jun 2012 19:08:47 +0000 (19:08 +0000)]
MFC: r236069, r236073

Make the VIA workaround actually do its intended job.

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

11 years agoMFC: r236063
marius [Sat, 2 Jun 2012 19:06:01 +0000 (19:06 +0000)]
MFC: r236063

Remove extraneous empty lines.

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

11 years agoRevert changes accidentally committed as part of r236468.
marius [Sat, 2 Jun 2012 19:04:21 +0000 (19:04 +0000)]
Revert changes accidentally committed as part of r236468.

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

11 years agoMFC: r236061
marius [Sat, 2 Jun 2012 18:57:13 +0000 (18:57 +0000)]
MFC: r236061

- When creating the DMA tag for user data, don't ask for more segments
  than required for handling MAXPHYS and report the resulting maximum
  I/O size to CAM instead of implicitly limiting it to DFLTPHYS.
- Move the variables of sym_action2() out of nested scope as required
  by style(9) and remove extraneous curly braces.
- Replace a magic value for PCIR_COMMAND with the appropriate macro.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.

Tested with a HBA donated by wilko.

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

11 years agoMFC r235479: zpool_find_import_impl: another /dev/dsk -> /dev fix
avg [Sat, 2 Jun 2012 18:56:41 +0000 (18:56 +0000)]
MFC r235479: zpool_find_import_impl: another /dev/dsk -> /dev fix

PR: bin/155104

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

11 years agoMFC r235478: zpool_do_import: use /dev instead of /dev/dsk as a default
avg [Sat, 2 Jun 2012 18:55:25 +0000 (18:55 +0000)]
MFC r235478: zpool_do_import: use /dev instead of /dev/dsk as a default

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

11 years agoMFC r235391: i386 bootinfo: re-arrange EFI fields for natural alignment
avg [Sat, 2 Jun 2012 18:36:29 +0000 (18:36 +0000)]
MFC r235391: i386 bootinfo: re-arrange EFI fields for natural alignment
and packing

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

11 years agoMFC 236333,236336
jpaetzel [Sat, 2 Jun 2012 18:28:34 +0000 (18:28 +0000)]
MFC 236333,236336

Let pkg_add use the ENV variable PACKAGESUFFIX. This
can be used to override the default .tbz package extension to
.txz .tgz or .tar

Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems

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

11 years agoMFC r235130: zfsboottest.sh: correctly check and suggest value of
avg [Sat, 2 Jun 2012 18:26:05 +0000 (18:26 +0000)]
MFC r235130: zfsboottest.sh: correctly check and suggest value of
vfs.root.mountfrom

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

11 years agoMFC r235129: zfsboottest.sh: gracefully handle default value of bootfs
avg [Sat, 2 Jun 2012 18:24:43 +0000 (18:24 +0000)]
MFC r235129: zfsboottest.sh: gracefully handle default value of bootfs
property

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

11 years agoMFC 236331
jpaetzel [Sat, 2 Jun 2012 18:22:38 +0000 (18:22 +0000)]
MFC 236331

Fix detecting available zpool names.

Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems

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

11 years agoMFC 236330:
jpaetzel [Sat, 2 Jun 2012 18:13:53 +0000 (18:13 +0000)]
MFC 236330:

Fix French Canadian console keyboard layout

Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems

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

11 years agoRFC: 235276
bapt [Sat, 2 Jun 2012 16:16:03 +0000 (16:16 +0000)]
RFC: 235276

- Print package name in case an empty pkgdep line is found.

PR: bin/164378
Submitted by: Yuri <yuri AT tsoft.com> and many others
Approved by: des (mentor)

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

11 years agoMFC: 228545,229572
bapt [Sat, 2 Jun 2012 15:13:28 +0000 (15:13 +0000)]
MFC: 228545,229572

Modify pw_copy:
- if pw is NULL and oldpw is not NULL then the oldpw is deleted
- if pw->pw_name != oldpw->pw_name but pw->pw_uid == oldpw->pw_uid
then it renames the user

add new gr_* functions so now gr_util API is similar to pw_util API,
this allow to manipulate groups in a safe way.

Add new pw_make_v7 to make a passwd line (in v7 format) out of a struct passwd

Approved by: des (mentor)

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

11 years agoMFC r236313:
kib [Sat, 2 Jun 2012 11:44:50 +0000 (11:44 +0000)]
MFC r236313:
Capitalize start of sentence.

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

11 years agoMFC r236312:
kib [Sat, 2 Jun 2012 11:39:40 +0000 (11:39 +0000)]
MFC r236312:
Clarify that the v_lockf is advisory lock list.

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

11 years agoMFC r236274, r236278, r236279:
gjb [Sat, 2 Jun 2012 02:26:37 +0000 (02:26 +0000)]
MFC r236274, r236278, r236279:

r236274:
 - Fix an mdoc(7) formatting nit.

r236278:
 - Fix mdoc(7) style nits.

r236279:
 - Add '-width Pa' to src.conf.5 for mdoc(7) style consistency.

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

11 years agoMFC 236212:
gallatin [Fri, 1 Jun 2012 18:16:10 +0000 (18:16 +0000)]
MFC 236212:

  Update mxge(4) firmware to the latest version available from
  Myricom (1.4.55).

  Sponored by: Myricom, Inc.

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

11 years agoMFC: r236251
jkim [Fri, 1 Jun 2012 17:17:46 +0000 (17:17 +0000)]
MFC: r236251

Fix 32-bit shim for BIOCSETF to drop all packets buffered on the descriptor
and reset statistics as it should.

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

11 years agoMFC r235266:
kib [Fri, 1 Jun 2012 14:40:16 +0000 (14:40 +0000)]
MFC r235266:
According to SUSv4, realpath(3) must fail if
  [ENOENT]  A component of file_name does not name an existing file or
      file_name points to an empty string.
  [ENOTDIR] A component of the path prefix is not a directory, or the
      file_name argument contains at least one non- <slash> character
      and ends with one or more trailing <slash> characters and the last
      pathname component names an existing file that is neither a
      directory nor a symbolic link to a directory.
Add checks for the listed conditions, and set errno accordingly.

Update the realpath(3) manpage to mention SUS behaviour. Remove the
requirement to include sys/param.h before stdlib.h.

PR: 128933

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

11 years agoMFC r236220,236221:
iwasaki [Fri, 1 Jun 2012 12:47:13 +0000 (12:47 +0000)]
MFC r236220,236221:
- Fix the problem acpi_sleep_force() hang.
- Reorder resume procedures to avoid hang during AcpiLeaveSleepState()
  execution.

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

11 years agoMFC r236242:
hselasky [Fri, 1 Jun 2012 07:07:36 +0000 (07:07 +0000)]
MFC r236242:
Add AHCI quirk.

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

11 years agoMFC r235725:
hselasky [Fri, 1 Jun 2012 07:06:00 +0000 (07:06 +0000)]
MFC r235725:
Update usb.conf.

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

11 years agoMFC r236260:
dim [Fri, 1 Jun 2012 06:45:14 +0000 (06:45 +0000)]
MFC r236260:

Pull in r156591 from upstream llvm trunk:

  Allow unique_file to take a mode for file permissions, but default
  to user only read/write.

and r156592 from upstream clang trunk:

  For final output files create them with mode 0664 to match other
  compilers and expected defaults.

This should fix clang creating files with mode 0600.

Reported by: James <james@hicag.org>

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

11 years agoMFC r235481:
eadler [Fri, 1 Jun 2012 06:39:55 +0000 (06:39 +0000)]
MFC r235481:
Rework sample code which sets SSH_AUTH_SOCK to the user's ssh-agent
socket path if running

PR: 167932
Approved by: cperciva (implicit)

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

11 years agoMFV r236171, MFC r236196:
dougb [Fri, 1 Jun 2012 03:46:28 +0000 (03:46 +0000)]
MFV r236171, MFC r236196:

Upgrade to BIND version 9.8.3, the latest from ISC.

Feature Change

*  BIND now recognizes the TLSA resource record type, created to
   support IETF DANE (DNS-based Authentication of Named Entities)

Bug Fix

*  The locking strategy around the handling of iterative queries
   has been tuned to reduce unnecessary contention in a multi-
   threaded environment.

Other critical bug fixes are included.

All BIND users are encouraged to upgrade.

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

11 years agoMFC r235678:
jhibbits [Thu, 31 May 2012 23:05:07 +0000 (23:05 +0000)]
MFC r235678:

"nvram,flash" may not be the first in the compatible list property of the
nvram ofw node, so check all strings in the list.

Approved by: nwhitehorn (mentor)

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

11 years agoMFC r235949, r236198:
jamie [Thu, 31 May 2012 14:18:19 +0000 (14:18 +0000)]
MFC r235949, r236198:

   Don't try to set a null TERM environment.

   When writing the jid via the -i flag, do it right when the jail is created,
   before any commands run.  /etc/rc.d/jail depends on this.

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

11 years agoMFC r235204:
eadler [Thu, 31 May 2012 07:44:27 +0000 (07:44 +0000)]
MFC r235204:
Add some missing files to OLD_FILES

PR: conf/166460
Approved by: cperciva (implicit)

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

11 years agoMFC r235842
wblock [Thu, 31 May 2012 02:51:54 +0000 (02:51 +0000)]
MFC r235842

Mention the upper hard limit for -n option.  Patch slightly modified
from PR version.

PR: 168255
Submitted by: Andy Kosela
Approved by: gjb (mentor)

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

11 years agoMFC r235459 and r235471
rstone [Wed, 30 May 2012 23:22:52 +0000 (23:22 +0000)]
MFC r235459 and r235471

r235459:
 Implement the DTrace sched provider.  This implementation aims to be
 compatible with the sched provider implemented by Solaris and its open-
 source derivatives.  Full documentation of the sched provider can be found
 on Oracle's DTrace wiki pages.

 Note that for compatibility with scripts originally written for Solaris,
 serveral probes are defined that will never fire.  These probes are defined
 to fire when Solaris-specific features perform certain actions.  As these
 features are not present in FreeBSD, the probes can never fire.

 Also, I have added a two probes that are not defined in Solaris, lend-pri
 and load-change.  These probes have been added to make it possible to
 collect schedgraph data with DTrace.

 Finally, a few probes are defined in Solaris to take a cpuinfo_t *
 argument.  As it was not immediately clear to me how to translate that to
 FreeBSD, currently those probes are passed NULL in place of a cpuinfo_t *.

 Sponsored by: Sandvine Incorporated

r235471:
 Fix typo in function name SDT_PROBE4 and unbreak 4BSD UP.

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

11 years agoMFC r228862, 228880, 228882, 228906, 228977, 229332, 229575, 229591, 229704,
theraven [Wed, 30 May 2012 19:21:54 +0000 (19:21 +0000)]
MFC r228862, 228880, 228882, 228906, 228977, 229332, 229575, 229591, 229704,
229716, 230062, 230225, 230267, 234958

This brings stdatomic.h into -STABLE and includes improvements to tgmath.h that
significantly decrease compile times on a C11 compiler (such as the clang in
the base system).

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

11 years agoMFC 235833:
jhb [Wed, 30 May 2012 16:30:51 +0000 (16:30 +0000)]
MFC 235833:
Only check to see if a memory resource is a PCI ROM BAR when activating
and deactivating PCI resources.  Previously, if a device had more than
48 MSI interrupts, then activating message 48 (which has a rid == PCIR_BIOS)
would incorrectly try to enable the PCI ROM BAR.

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

11 years agoMFC 234501:
jhb [Wed, 30 May 2012 16:13:10 +0000 (16:13 +0000)]
MFC 234501:
The amr(4) firmware contains a rather dubious "feature" where it
assumes for small buffers (< 64k) that the OS driver is actually using
a buffer rounded up to the next power of 2.  It also assumes that the
buffer is at least 4k in size.  Furthermore, there is at least one
known instance of megarc sending a request with a 12k buffer where the
firmware writes out a 24k-ish reply.

To workaround the data corruption triggered by this "feature", ensure
that buffers for user commands use a minimum size of 32k, and that
buffers between 32k and 64k use a 64k buffer.

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

11 years agoMFC 234099:
jhb [Wed, 30 May 2012 16:04:10 +0000 (16:04 +0000)]
MFC 234099:
Properly parse 40G media types from newer Mellanox adapters that are
40G capable.  For now, map all 40G links to 40GBase-CR4.

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

11 years agoUpdate the previous openssl fix. [12:01]
bz [Wed, 30 May 2012 12:01:28 +0000 (12:01 +0000)]
Update the previous openssl fix. [12:01]

Fix a bug in crypt(3) ignoring characters of a passphrase. [12:02]

Security: FreeBSD-SA-12:01.openssl (revised)
Security: FreeBSD-SA-12:02.crypt
Approved by: so (bz, simon)

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

11 years agoMFC r236149:
dim [Wed, 30 May 2012 06:53:09 +0000 (06:53 +0000)]
MFC r236149:

Pull in r157212 from upstream clang trunk:

  Revert r115805. An array type is required to have a range type,
  however, the range can be unknown for the upper bound.

  Testcase to follow.

  Part of rdar://11457152

This should fix ctfconvert producing error messages during kernel
builds, similar to:

  ERROR: scsi_all.c: die 24561: failed to retrieve array bounds

These were caused by incorrect debug information for flexible array
members of structs.

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

11 years agoMFC r235851:
kib [Wed, 30 May 2012 04:54:39 +0000 (04:54 +0000)]
MFC r235851:
Add 'cow' keyword to show per-process cow count.

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

11 years agoMFC r235850:
kib [Wed, 30 May 2012 04:51:23 +0000 (04:51 +0000)]
MFC r235850:
Calculate the count of per-process cow faults.  Export the count to
userspace using the obscure spare int field in struct kinfo_proc.

MFC r236136:
Fix ki_cow for compat32 binaries.

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

11 years agoMFC r236135:
davidxu [Wed, 30 May 2012 01:52:53 +0000 (01:52 +0000)]
MFC r236135:

Return EBUSY for PTHREAD_MUTEX_ADAPTIVE_NP too when the mutex could not
be acquired.

PR: 168317

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

11 years agoMFC r235854
emax [Wed, 30 May 2012 00:38:24 +0000 (00:38 +0000)]
MFC r235854

Tweak condition for disabling allocation from per-CPU buckets in
low memory situation. I've observed a situation where per-CPU
allocations were disabled while there were enough free cached pages.
Basically, cnt.v_free_count was sitting stable at a value lower
than cnt.v_free_min and that caused massive performance drop.

Reviewed by: alc@

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

11 years agoMFC r234106, r235751:
jimharris [Tue, 29 May 2012 23:10:10 +0000 (23:10 +0000)]
MFC r234106, r235751:

Queue CCBs internally instead of using CAM_REQUEUE_REQ status.  This fixes
problem where userspace apps such as smartctl fail due to CAM_REQUEUE_REQ
status getting returned when tagged commands are outstanding when smartctl
sends its I/O using the pass(4) interface.

Sponsored by: Intel

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

11 years agoMFC r232598:
trasz [Tue, 29 May 2012 19:47:06 +0000 (19:47 +0000)]
MFC r232598:

Make racct and rctl correctly handle jail renaming.  Previously
they would continue using old name, the one jail was created with.

PR: bin/165207

MFC r235795:

Don't leak locks in prison_racct_modify().

MFC r235803:

Fix use-after-free in kern_jail_set() triggered e.g. by attempts
to clear "persist" flag from empty persistent jail, like this:

jail -c persist=1
jail -n 1 -m persist=0

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

11 years agoMFC 235915:
jpaetzel [Tue, 29 May 2012 16:21:43 +0000 (16:21 +0000)]
MFC 235915:

Hook up mkulzma to the build.

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

11 years agoMFC r235787:
trasz [Tue, 29 May 2012 15:08:35 +0000 (15:08 +0000)]
MFC r235787:

Fix panic with RACCT that could occur in low memory (or out of swap)
situations, due to fork1() calling racct_proc_exit() without calling
racct_proc_fork() first.

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

11 years agoMFC r233628, r234598, r235229, r235831, r226986.
fabient [Tue, 29 May 2012 14:50:21 +0000 (14:50 +0000)]
MFC r233628, r234598, r235229, r235831, r226986.

Add software PMC support.

New kernel events can be added at various location for sampling or counting.
This will for example allow easy system profiling whatever the processor is
with known tools like pmcstat(8).

Simultaneous usage of software PMC and hardware PMC is possible, for example
looking at the lock acquire failure, page fault while sampling on
instructions.

Sponsored by: NETASQ

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

11 years agoMFC r235693:
gjb [Tue, 29 May 2012 14:35:51 +0000 (14:35 +0000)]
MFC r235693:

Typo and mdoc(7) style fixes.

PR: 168117

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

11 years agoMFC r235691:
gjb [Tue, 29 May 2012 13:54:53 +0000 (13:54 +0000)]
MFC r235691:

Typo and mdoc(7) style fixes.

PR: 167890

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

11 years agoMFC r236042:
kib [Tue, 29 May 2012 08:53:24 +0000 (08:53 +0000)]
MFC r236042:
Clarify the SEEK_HOLE description, it repositions the file pointer.

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

11 years agoMFC:
delphij [Tue, 29 May 2012 05:43:21 +0000 (05:43 +0000)]
MFC:

commandline -> command line.

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

11 years agoMFC r235821:
yongari [Tue, 29 May 2012 04:44:51 +0000 (04:44 +0000)]
MFC r235821:
  Don't force max payload size to 128. Root complex and Endpoint will
  negotiate with each other on the TLP payload size so blindly
  forcing the size to 128 can cause a completion error which in turn
  will stop device.

  Reported by: Geans Pin < geanspin <> broadcom dot com >

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

11 years agoMFC r235816:
yongari [Tue, 29 May 2012 04:30:02 +0000 (04:30 +0000)]
MFC r235816:
  Make IPMI work in the bce driver even when the interface is
  configured down.  Formerly, IPMI communication was lost whenever the
  interface was not up.  The reason was that the BCE_EMAC_MODE
  register was not configured with the correct media settings.  There
  are two parts to the fix.

  First, resetting the chip in bce_reset() causes the BCE_EMAC_MODE
  register to be initialized to a default value that does not
  necessarily correspond to the actual media settings.  The fix
  implemented here is a bit of a hack.  Ideally, at the end of
  bce_reset() we would poll the PHY to determine the negotiated media,
  and then we would set the BCE_EMAC_MODE register accordingly.  That
  is difficult, since the PHY is abstracted behind the MII layer and is
  not supposed to be queried directly from the MAC driver.  Instead,
  we read the BCE_EMAC_MODE register at the beginning of bce_reset()
  and then restore its media bits to their original values before
  returning.  If IPMI is up and running, then the link is already
  established and the BCE_EMAC_MODE register is already set appropriately
  when bce_reset() is called.  If IPMI is not running, no harm is
  done by preserving the BCE_EMAC_MODE settings.  The driver will set
  the register properly once the interface is configured up and link
  is established.

  Second, bce_miibus_statchg() is sometimes called when the link is
  down.  In that case, the reported media settings are invalid.
  Formerly, the driver used them anyway to setup the BCE_EMAC_MODE
  register.  We now avoid changing any MAC registers unless link is
  active and the reported media settings are valid.

  Submitted by: jdp
  Tested by: jdp

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

11 years agoMFC r230120
alc [Mon, 28 May 2012 23:31:48 +0000 (23:31 +0000)]
MFC r230120
  Neither tmpfs_nocacheread() nor tmpfs_mappedwrite() needs to call
  vm_object_pip_{add,subtract}() on the swap object because the swap
  object can't be destroyed while the vnode is exclusively locked.
  Moreover, even if the swap object could have been destroyed during
  tmpfs_nocacheread() and tmpfs_mappedwrite() this code is broken
  because vm_object_pip_subtract() does not wake up the sleeping thread
  that is trying to destroy the swap object.

  Free invalid pages after an I/O error.  There is no virtue in keeping
  them around in the swap object creating more work for the page daemon.
  (I believe that any non-busy page in the swap object will now always
  be valid.)

  vm_pager_get_pages() does not return a standard errno, so its return
  value should not be returned by tmpfs without translation to an errno
  value.

  There is no reason for the wakeup on vpg in tmpfs_mappedwrite() to
  occur with the swap object locked.

  Eliminate printf()s from tmpfs_nocacheread() and tmpfs_mappedwrite().
  (The swap pager already spams your console if data corruption is
  imminent.)

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

11 years agoMFC r229821
alc [Mon, 28 May 2012 22:58:13 +0000 (22:58 +0000)]
MFC r229821
  Correct an error of omission in the implementation of the truncation
  operation on POSIX shared memory objects and tmpfs.  Previously, neither of
  these modules correctly handled the case in which the new size of the object
  or file was not a multiple of the page size.  Specifically, they did not
  handle partial page truncation of data stored on swap.  As a result, stale
  data might later be returned to an application.

  Interestingly, a data inconsistency was less likely to occur under tmpfs
  than POSIX shared memory objects.  The reason being that a different mistake
  by the tmpfs truncation operation helped avoid a data inconsistency.  If the
  data was still resident in memory in a PG_CACHED page, then the tmpfs
  truncation operation would reactivate that page, zero the truncated portion,
  and leave the page pinned in memory.  More precisely, the benevolent error
  was that the truncation operation didn't add the reactivated page to any of
  the paging queues, effectively pinning the page.  This page would remain
  pinned until the file was destroyed or the page was read or written.  With
  this change, the page is now added to the inactive queue.

MFC r230180
  When tmpfs_write() resets an extended file to its original size after an
  error, we want tmpfs_reg_resize() to ignore I/O errors and unconditionally
  update the file's size.

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

11 years agoMFH r230044, r233456: style and markup nits
des [Mon, 28 May 2012 21:19:33 +0000 (21:19 +0000)]
MFH r230044, r233456: style and markup nits

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

11 years agoMFC: tcpdump 4.2.1.
delphij [Mon, 28 May 2012 19:13:21 +0000 (19:13 +0000)]
MFC: tcpdump 4.2.1.

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

11 years agoMFC: libpcap 1.2.1.
delphij [Mon, 28 May 2012 07:34:52 +0000 (07:34 +0000)]
MFC: libpcap 1.2.1.

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

11 years agoMFC r235425:
delphij [Mon, 28 May 2012 04:47:46 +0000 (04:47 +0000)]
MFC r235425:

Sync DLTs with the latest pcap version.

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

11 years agoMFC of 235610
mckusick [Sun, 27 May 2012 21:31:28 +0000 (21:31 +0000)]
MFC of 235610

Add missing `continue' statement at end of case.

Found by:  Kevin Lo (kevlo@)

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

11 years agoMFC r234691
rstone [Sun, 27 May 2012 18:55:23 +0000 (18:55 +0000)]
MFC r234691

 Implement the D "cpu" variable, which returns curcpu.  I have chosen not
 to follow the example of OpenSolaris and its descendants, which implemented
 cpu as an inline that took a value out of curthread.  At certain points in
 the FreeBSD scheduler curthread->td_oncpu will no longer be valid (in
 particular, just before the thread gets descheduled) so instead I have
 implemented this as its own built-in variable.

 Sponsored by: Sandvine Inc.

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

11 years agoMFC r233552
rstone [Sun, 27 May 2012 14:48:14 +0000 (14:48 +0000)]
MFC r233552

 Instead of only iterating over the set of known SDT probes when sdt.ko is
 loaded and unloaded, also have sdt.ko register callbacks with kern_sdt.c
 that will be called when a newly loaded KLD module adds more probes or
 a module with probes is unloaded.

 This fixes two issues: first, if a module with SDT probes was loaded after
 sdt.ko was loaded, those new probes would not be available in DTrace.
 Second, if a module with SDT probes was unloaded while sdt.ko was loaded,
 the kernel would panic the next time DTrace had cause to try and do
 anything with the no-longer-existent probes.

 This makes it possible to create SDT probes in KLD modules, although there
 are still two caveats: first, any SDT probes in a KLD module must be part
 of a DTrace provider that is defined in that module.  At present DTrace
 only destroys probes when the provider is destroyed, so you can still
 panic the system if a KLD module creates new probes in a provider from a
 different module(including the kernel) and then unload the the first module.

 Second, the system will panic if you unload a module containing SDT probes
 while there is an active D script that has enabled those probes.

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

11 years agoMFC r235864:
dim [Sun, 27 May 2012 12:01:04 +0000 (12:01 +0000)]
MFC r235864:

Upgrade our copy of llvm/clang to 3.1 release.  Release notes can be
found at: http://llvm.org/releases/3.1/docs/ReleaseNotes.html

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

11 years agoMFC: r234740
rmacklem [Sun, 27 May 2012 01:24:08 +0000 (01:24 +0000)]
MFC: r234740
Fix a leak of namei lookup path buffers that occurs when a
ZFS volume is exported via the new NFS server. The leak occurred
because the new NFS server code didn't handle the case where
a file system sets the SAVENAME flag in its VOP_LOOKUP() and
ZFS does this for the DELETE case.

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

11 years agonit: use >= 1000013 instead of > 1000012
des [Sat, 26 May 2012 23:48:56 +0000 (23:48 +0000)]
nit: use >= 1000013 instead of > 1000012

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

11 years agoMake yacc a bootstrap tool if building on head, since the new yacc is
des [Sat, 26 May 2012 23:42:52 +0000 (23:42 +0000)]
Make yacc a bootstrap tool if building on head, since the new yacc is
not 100% backward compatible.  Also, build yacc before lex, because lex
requires yacc but not vice versa.

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

11 years agoMFC r228513
alc [Sat, 26 May 2012 22:47:56 +0000 (22:47 +0000)]
MFC r228513
  Create large page mappings in pmap_map().

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

11 years agoMFC r235297, r235316:
mdf [Sat, 26 May 2012 20:13:24 +0000 (20:13 +0000)]
MFC r235297, r235316:

Add a -v and -N option to kenv(1), so it can be more easily used in
scripts the way sysctl(8) is.  The -N option, like in sysctl(8),
displays only the kenv names, not their values.  The -v option prints an
individual kenv variable name with its value as name="value".  This is
the inverse of sysctl(8)'s -n flag, since the default behaviour of
kenv(1) is already like sysctl(8) -n.

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

11 years agoMFH r226625, 226632: document what openpam_static.c is for
des [Sat, 26 May 2012 18:20:30 +0000 (18:20 +0000)]
MFH r226625, 226632: document what openpam_static.c is for

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

11 years agoMFH r227798, r227933: simplify build by using STATIC_CFLAGS
des [Sat, 26 May 2012 17:56:54 +0000 (17:56 +0000)]
MFH r227798, r227933: simplify build by using STATIC_CFLAGS

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

11 years agoMFH r227797, 227932: add {STATIC,SHARED}_{C,CXX}FLAGS
des [Sat, 26 May 2012 17:53:35 +0000 (17:53 +0000)]
MFH r227797, 227932: add {STATIC,SHARED}_{C,CXX}FLAGS

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

11 years agoMFH r230059: improve examples
des [Sat, 26 May 2012 17:38:55 +0000 (17:38 +0000)]
MFH r230059: improve examples

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

11 years agoMFH r234311: utf8 and drop middle name
des [Sat, 26 May 2012 17:37:07 +0000 (17:37 +0000)]
MFH r234311: utf8 and drop middle name

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

11 years agoMFH r234685: utf8 and drop middle name
des [Sat, 26 May 2012 17:28:57 +0000 (17:28 +0000)]
MFH r234685: utf8 and drop middle name

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

11 years agoMFH r234837: avoid busy-loop on slow connections when no timeout is set.
des [Sat, 26 May 2012 17:08:01 +0000 (17:08 +0000)]
MFH r234837: avoid busy-loop on slow connections when no timeout is set.
MFH r234838: don't reuse credentials when redirected to a different host.

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

11 years agoMFH r233648: cosmetic
des [Sat, 26 May 2012 16:42:47 +0000 (16:42 +0000)]
MFH r233648: cosmetic

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

11 years agoMFH r230478: fix nits in already-merged r230307.
des [Sat, 26 May 2012 16:37:43 +0000 (16:37 +0000)]
MFH r230478: fix nits in already-merged r230307.

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

11 years agoMFH r225813,r225814,r226537: cosmetic
des [Sat, 26 May 2012 16:34:39 +0000 (16:34 +0000)]
MFH r225813,r225814,r226537: cosmetic

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

11 years agoMFC: r235332
rmacklem [Sat, 26 May 2012 13:12:14 +0000 (13:12 +0000)]
MFC: r235332
PR# 165923 reported intermittent write failures for dirty
memory mapped pages being written back on an NFS mount.
Since any thread can call VOP_PUTPAGES() to write back a
dirty page, the credentials of that thread may not have
write access to the file on an NFS server. (Often the uid
is 0, which may be mapped to "nobody" in the NFS server.)
Although there is no completely correct fix for this
(NFS servers check access on every write RPC instead of at
open/mmap time), this patch avoids the common cases by
holding onto a credential that recently opened the file
for writing and uses that credential for the write RPCs
being done by VOP_PUTPAGES() for both NFS clients.

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

11 years agoMFC r235474:
bz [Sat, 26 May 2012 10:24:30 +0000 (10:24 +0000)]
MFC r235474:

 Switch to a standard 2 clause BSD license (from bsd-style-copyright).

 Approved by: Myricom Inc. (gallatin)
 Approved by: Intel Corporation (jfv)

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

11 years agoMFC: r234524
marius [Sat, 26 May 2012 09:31:23 +0000 (09:31 +0000)]
MFC: r234524

o Fixes:
  - When switching to 4-bit operation, send a SET_CLR_CARD_DETECT command
    to disconnect the card-detect pull-up resistor from the DAT3 line before
    sending the SET_BUS_WIDTH command.
  - Add the missing "reserved" zero entry to the mantissa table used to
    decode various CSD fields. This was causing SD cards to report that they
    could run at 30 MHz instead of the maximum 25 MHz mandated in the spec.
o Enhancements:
  - At the MMC layer, format various info from the CID into a string that
    uniquely identifies the card instance (manufacturer number, serial
    number, product name and revision, etc). Export it as an instance
    variable.
  - At the MMCSD layer, display the formatted card ID string, and also
    report the clock speed of the hardware (not the card's max speed), and
    the number of bits and number of blocks per transfer. It comes out like
    this now:
    mmcsd0: 968MB <SD SD01G 8.0 SN 276886905 MFG 08/2008 by 3 SD> at mmc0
    22.5MHz/4bit/128-block
o Use DEVMETHOD_END.
o Use NULL instead of 0 for pointers.

PR: 156496
Submitted by: Ian Lepore

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

11 years agoMFC: r234901
marius [Sat, 26 May 2012 09:16:37 +0000 (09:16 +0000)]
MFC: r234901

- Add missing locking in at91_usart_getc().
- Align the RX buffers on the cache line size, otherwise the requirement
  of partial cache line flushes on every are pretty much guaranteed. [1]
- Make the code setting the RX timeout match its comment (apparently,
  start and stop bits were missed in the previous calculation). [1]
- Cover the busdma operations in at91_usart_bus_{ipend,transmit}() with
  the hardware mutex, too, so these don't race against each other.
- In at91_usart_bus_ipend(), reduce duplication in the code dealing with
  TX interrupts.
- In at91_usart_bus_ipend(), turn the code dealing with RX interrupts
  into an else-if cascade in order reduce its complexity and to improve
  its run-time behavior.
- In at91_usart_bus_ipend(), add missing BUS_DMASYNC_PREREAD calls on
  the RX buffer map before handing things over to the hardware again. [1]
- In at91_usart_bus_getsig(), used a variable of sufficient width for
  storing the contents of USART_CSR.
- Use KOBJMETHOD_END.
- Remove an unused header.

Submitted by: Ian Lepore [1]
Reviewed by: Ian Lepore

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

11 years agoMFC: r234561
marius [Sat, 26 May 2012 09:13:24 +0000 (09:13 +0000)]
MFC: r234561

Interrupts must be disabled while handling a partial cache line flush,
as otherwise the interrupt handling code may modify data in the non-DMA
part of the cache line while we have it stashed away in the temporary
stack buffer, then we end up restoring a stale value.

PR: 160431
Submitted by: Ian Lepore

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

11 years agoMFC: r234560
marius [Sat, 26 May 2012 09:11:45 +0000 (09:11 +0000)]
MFC: r234560

- Add support for MCI1 revision 2xx controllers and a work-around for their
  "Data Write Operation and number of bytes" erratum.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.

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

11 years agoMFC: r234293
marius [Sat, 26 May 2012 09:08:30 +0000 (09:08 +0000)]
MFC: r234293

Generate an obviously missing STOP when having finished transmitting data.
This fixes communication with PCF8563.

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

11 years agoMFC: r234291, r234292
marius [Sat, 26 May 2012 09:05:45 +0000 (09:05 +0000)]
MFC: r234291, r234292

Add support for the Atmel SAM9XE family of microcontrollers, which
consist of a ARM926EJ-S processor core with up to 512 Kbytes of on-chip
flash. Tested with SAM9XE512.

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

11 years agoMFC: r234281
marius [Sat, 26 May 2012 09:03:14 +0000 (09:03 +0000)]
MFC: r234281

- Try to bring these files closer to style(9).
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.

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

11 years agoMFC: r234248
marius [Sat, 26 May 2012 08:58:27 +0000 (08:58 +0000)]
MFC: r234248

Add a driver for the NXP (Philips) PCF8563 RTC.

Obtained from: NetBSD (pcf8563reg.h)

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

11 years agoMFC: r234898, r235207
marius [Sat, 26 May 2012 08:54:26 +0000 (08:54 +0000)]
MFC: r234898, r235207

Add initial support for booting from ZFS on sparc64. At least on Sun Fire
V100, the firmware is known to be broken and not allowing to simultaneously
open disk devices, causing attempts to boot from a mirror or RAIDZ to cause
a crash. This will be worked around later. The firmwares of newer sun4u models
don't seem to exhibit this problem though.

PR:             165025
Submitted by:   Gavin Mu

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

11 years agoMFC r234936 (emaste)
thompsa [Sat, 26 May 2012 08:44:26 +0000 (08:44 +0000)]
MFC r234936 (emaste)

 Relax restriction on direct tx to child ports

 Lagg(4) restricts the type of packet that may be sent directly to a child
 port, to avoid undesired output from accidental misconfiguration.
 Previously only ETHERTYPE_PAE was permitted.

 BPF writes to a lagg(4) child port are presumably intentional, so just
 allow them, while still blocking other packets that should take the
 aggregation path.

PR: kern/138620

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

11 years agoMFC r231130 (pjd)
thompsa [Sat, 26 May 2012 08:41:17 +0000 (08:41 +0000)]
MFC r231130 (pjd)

 Allow to set if_bridge(4) sysctls from /boot/loader.conf.

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