]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
11 years agoMFC r236776, r236777:
gjb [Fri, 15 Jun 2012 22:56:28 +0000 (22:56 +0000)]
MFC r236776, r236777:

r236776:
 Fix a typo: s/deafult/default

r236777:
 Clean up trailing whitespace.

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

11 years agoMFC 236724, 236725:
trociny [Fri, 15 Jun 2012 20:27:15 +0000 (20:27 +0000)]
MFC 236724, 236725:

MFC 236724:

Add VIMAGE support to if_tap.

PR: kern/152047, kern/158686
Submitted by: Daan Vreeken <pa4dan Bliksem.VEHosting.nl>

MFC 236725:

Sort includes.

Submitted by: Daan Vreeken <pa4dan Bliksem.VEHosting.nl>

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

11 years agoAdd a band-aide for MFCs: at91_is_rm92 is always true in 8 until SAM9
imp [Fri, 15 Jun 2012 17:01:12 +0000 (17:01 +0000)]
Add a band-aide for MFCs: at91_is_rm92 is always true in 8 until SAM9
support is MFC'd.  The recent change to spi now references this, so
bring it in as a forward compatability.

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

11 years agoMFC r236960:
mm [Fri, 15 Jun 2012 07:14:43 +0000 (07:14 +0000)]
MFC r236960:
Document the -v flag for zpool list.

PR: 168970
Suggested by: Marcelo Araujo <araujo@FreeBSD.org>

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

11 years agoMFC r236737:
mav [Fri, 15 Jun 2012 06:14:29 +0000 (06:14 +0000)]
MFC r236737:
Add IDs for Marvell 88SE9220/9230/9235 PCIe 2.0 x2 6Gbps SATA controllers.
Marvell 88SE9230 was confirmed to work, the rest two are just guessed.

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

11 years agoRevert an inintended change in r237104
thompsa [Thu, 14 Jun 2012 21:40:14 +0000 (21:40 +0000)]
Revert an inintended change in r237104

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

11 years agoMFC r236916
thompsa [Thu, 14 Jun 2012 21:36:16 +0000 (21:36 +0000)]
MFC r236916

 Fix a panic I introduced in r234487, the bridge softc pointer is set to null
 early in the detach so rearrange things not to explode.

Reported by: David Roffiaen, Gustau Perez Querol

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

11 years agoMFC: r236495
marius [Thu, 14 Jun 2012 20:05:12 +0000 (20:05 +0000)]
MFC: r236495

- Prepend the device description with "AT91" to reflect its nature. [1]
- Move DMA tag and map creature to at91_spi_activate() where the other
  resource allocation also lives. [1]
- Flesh out at91_spi_deactivate(). [1]
- Work around the "Software Reset must be Written Twice" erratum.
- For now, run the bus at the slowest speed possible in order to work
  around data corruption on transit even seen with 9 MHz on ETHERNUT5
  (15 MHz maximum) and AT45DB321D (20 MHz maximum). This also serves as
  a poor man's work-around for the "NPCSx rises if no data data is to be
  transmitted" erratum of RM9200. Being able to use the appropriate bus
  speed would require:
  1) Adding a proper work-around for the RM9200 bug consisting of taking
     the chip select control away from the SPI peripheral and managing it
     directly as a GPIO line.
  2) Taking the maximum frequencies supported by the actual board and the
     slave devices into account and basing the whole thing on the master
     clock instead of hardcoding a divisor as previously done.
  3) Fixing the above mentioned data corruption.
- KASSERT that TX/RX command and data sizes match on transfers.
- Introduce a mutex ensuring that only one child device is running a SPI
  transfer at a time. [1]
- Add preliminary, #ifdef'ed out support for setting the chip select. [1]
- Use the RX instead of the TX commando size when setting up the RX side
  of a transfer.
- For controllers having SPI_SR_TXEMPTY, i.e. !RM9200, also wait for the
  completion of the TX part of transfers before stopping the whole thing
  again.
- Use DEVMETHOD_END. [1]
- Use NULL instead of 0 for pointers. [1, partially]

Additional testing by:  Ian Lepore

Submitted by:   Ian Lepore [1]

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

11 years agoMFC: r225882
marius [Thu, 14 Jun 2012 20:02:54 +0000 (20:02 +0000)]
MFC: r225882

Remove pointless semicolons after label

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

11 years agoMFC: r236579
marius [Thu, 14 Jun 2012 19:55:22 +0000 (19:55 +0000)]
MFC: r236579

The workaround added in r151650 for handling firmwares that don't allow
a single device to be opened multiple times concurrently unfortunately
isn't sufficient with ZFS. This is due to the fact, that ZFS may open
different partitions of a single device simultaneously. So the best we
can do in this case is to cache the lastly used device path and close
and open devices in ofwd_strategy() as needed.

PR: 165025
Submitted by: Gavin Mu

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

11 years agoMFC r234188,r234463,r234465:
pluknet [Thu, 14 Jun 2012 11:21:21 +0000 (11:21 +0000)]
MFC r234188,r234463,r234465:

- Update the swi_add prototype after struct ithd was split up into
  struct intr_event and struct intr_thread. [1]
- Update the rest of struct ithd references.
- net_ih and softclock_ih cookies have gone away.
- Document swi_remove(9).

PR: docs/166864 [1]

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

11 years agoMFC r236287:
eadler [Thu, 14 Jun 2012 06:55:16 +0000 (06:55 +0000)]
MFC r236287:
add missing variable declaration when DEBUG is defined forgotten in r215046

PR: bin/166404
Approved by: cperciva (implicit)

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

11 years agoMFC r230188i (by das):
mav [Wed, 13 Jun 2012 20:34:14 +0000 (20:34 +0000)]
MFC r230188i (by das):
Correct some bugs that resulted from arm/_fpmath.h being blindly copied
from the x86 version, which has a completely different long double
format.

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

11 years agoRestore 229262 which was accidentally reverted in a prior change:
jhb [Wed, 13 Jun 2012 17:45:38 +0000 (17:45 +0000)]
Restore 229262 which was accidentally reverted in a prior change:
Implement BUS_ADD_CHILD() for the isab(4) driver.

Submitted by: fabient

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

11 years agoMFC 230260-230262,230269,230270,230426,230429,230538,230765,230766,230864,
jhb [Wed, 13 Jun 2012 15:25:52 +0000 (15:25 +0000)]
MFC 230260-230262,230269,230270,230426,230429,230538,230765,230766,230864,
232520 (partial),235563:
Add support for the extended FPU states on amd64, both for native
64bit and 32bit ABIs.  As a side-effect, it enables AVX on capable
CPUs.

In particular:

- Query the CPU support for XSAVE, list of the supported extensions
  and the required size of FPU save area. The hw.use_xsave tunable is
  provided for disabling XSAVE, and hw.xsave_mask may be used to
  select the enabled extensions.

- Remove the FPU save area from PCB and dynamically allocate the
  (run-time sized) user save area on the top of the kernel stack,
  right above the PCB. Reorganize the thread0 PCB initialization to
  postpone it after BSP is queried for save area size.

- The dumppcb, stoppcbs and susppcbs now do not carry the FPU state as
  well. FPU state is only useful for suspend, where it is saved in
  dynamically allocated suspfpusave area.

- Use XSAVE and XRSTOR to save/restore FPU state, if supported and
  enabled.

- Define new mcontext_t flag _MC_HASFPXSTATE, indicating that
  mcontext_t has a valid pointer to out-of-struct extended FPU
  state. Signal handlers are supplied with stack-allocated fpu
  state. The sigreturn(2) and setcontext(2) syscall honour the flag,
  allowing the signal handlers to inspect and manipilate extended
  state in the interrupted context.

- The getcontext(2) never returns extended state, since there is no
  place in the fixed-sized mcontext_t to place variable-sized save
  area. And, since mcontext_t is embedded into ucontext_t, makes it
  impossible to fix in a reasonable way.  Provide a sysarch(2)
  facility to query extended FPU state.

- Add API for obtaining extended machine context states that cannot be
  fit into existing mcontext_t.

  On i386 and amd64 return the extended FPU states using
  getcontextx(3). For other architectures, getcontextx(3) returns the
  same information as getcontext(2).

- Add ptrace(2) support for getting and setting extended state; while
  there, implement missed PT_I386_{GET,SET}XMMREGS for 32bit binaries.

- Change fpu_kern KPI to not expose struct fpu_kern_ctx layout to
  consumers, making it opaque. Internally, struct fpu_kern_ctx now
  contains a space for the extended state. Convert in-kernel consumers
  of fpu_kern KPI both on i386 and amd64.

Reviewed by: kib

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

11 years agoMFC r236286:
eadler [Wed, 13 Jun 2012 03:41:22 +0000 (03:41 +0000)]
MFC r236286:
Fix likely race condition if wait_child() is interrupted by sigchild()

PR: bin/102834
Approved by: cperciva (implicit)

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

11 years agoMFC r236288:
eadler [Wed, 13 Jun 2012 03:30:24 +0000 (03:30 +0000)]
MFC r236288:
Only set _w to 0 when the file stream is not currently reading. Without this fflush may fail to write data in the buffer.

PR: kern/137819
Approved by: cperciva (implicit)

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

11 years agoMFC r236290:
eadler [Wed, 13 Jun 2012 03:19:11 +0000 (03:19 +0000)]
MFC r236290:
Document daily_status_security_chkportsum_enable

PR: docs/167980
Approved by: cperciva (implicit)

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

11 years agoMFC r236550, r236551:
trociny [Tue, 12 Jun 2012 20:05:22 +0000 (20:05 +0000)]
MFC r236550, r236551:

r236550:

On a child exit, call waitpid(2) to clean up the process table.

Submitted by: Andrey Zonov <andrey zonov.org>

r236551:

Document -r option in SYNOPSIS and usage statement.

Submitted by: Andrey Zonov <andrey zonov.org>

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

11 years agoFix a problem where zero-length RDATA fields can cause named(8) to crash.
bz [Tue, 12 Jun 2012 12:10:10 +0000 (12:10 +0000)]
Fix a problem where zero-length RDATA fields can cause named(8) to crash.
[12:03]

Correct a privilege escalation when returning from kernel if
running FreeBSD/amd64 on non-AMD processors. [12:04]

Fix reference count errors in IPv6 code. [EN-12:02]

Security: CVE-2012-1667
Security: FreeBSD-SA-12:03.bind
Security: CVE-2012-0217
Security: FreeBSD-SA-12:04.sysret
Security: FreeBSD-EN-12:02.ipv6refcount
Approved by: so (simon, bz)

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

11 years agoMFC r236847:
mav [Tue, 12 Jun 2012 08:10:14 +0000 (08:10 +0000)]
MFC r236847:
Partially revert r236666:
Return PROTO_ATA protocol in response to XPT_PATH_INQ.

smartmontools uses it to identify ATA devices and I don't know any other
place now where it is important. It could probably use XPT_GDEV_TYPE
instead for more accurate protocol information, but let it live for now.

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

11 years agoMFC 236649,236670:
yongari [Tue, 12 Jun 2012 07:53:39 +0000 (07:53 +0000)]
MFC 236649,236670:
  Check the return value of pci_find_extcap()

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

11 years agoMFC r236700:
yongari [Tue, 12 Jun 2012 07:43:01 +0000 (07:43 +0000)]
MFC r236700:
  Fix a logic error when use PCIY_PMG capability

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

11 years agoPartial merge of r213507 from head:
issyl0 [Mon, 11 Jun 2012 19:09:55 +0000 (19:09 +0000)]
Partial merge of r213507 from head:

In r178993, the ability to view a man page by giving a path to the
man page itself was added, but never documented.  Subsequently, the
GNU-licensed man(1) and its man page were replaced by BSD licensed
implementations, and later on this undocumented functionality was
also added to the new BSD-licensed man(1), together with
documentation.

This is a merge of the documentation part of that commit (r213507)
into the GNU-licensed man(1) man page in stable/8, in order to
document the available functionality.

PR: docs/158973
Merge help: bz
Approved by: gabor (mentor)

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

11 years agoMFC r230377:
jh [Mon, 11 Jun 2012 18:22:04 +0000 (18:22 +0000)]
MFC r230377:

Don't print the nmount(2) provided error message if it is empty.

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

11 years agoMFC r236738:
mjg [Mon, 11 Jun 2012 18:10:12 +0000 (18:10 +0000)]
MFC r236738:
Plug socket refcount leak on error in sys_sctp_peeloff.

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

11 years agoMFC r230373:
jh [Mon, 11 Jun 2012 18:02:30 +0000 (18:02 +0000)]
MFC r230373:

Change mount_fs() to not exit on error. The "failok" mount option
requires that errors are passed to the caller.

PR: 163668

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

11 years agoMFC r236407:
hselasky [Mon, 11 Jun 2012 17:22:27 +0000 (17:22 +0000)]
MFC r236407:
Improve support for detaching kernel drivers on a per interface basis.

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

11 years agoMFC: r235381
rmacklem [Mon, 11 Jun 2012 13:17:45 +0000 (13:17 +0000)]
MFC: r235381
Fix two cases in the new NFS server where a tsleep() is
used, when the code should actually protect the tested
variable with a mutex. Since the tsleep()s had a 10sec
timeout, the race would have only delayed the allocation
of a new clientid for a client. The sleeps will also
rarely occur, since having a callback in progress when
a client acquires a new clientid, is unlikely.
in practice, since having a callback in progress when
a fresh clientid is being acquired by a client is unlikely.

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

11 years agoMFC r236572:
delphij [Mon, 11 Jun 2012 07:11:34 +0000 (07:11 +0000)]
MFC r236572:

Replace the use of wall clock time with monotonically increasing
clock.  In general, gettimeofday() is not appropriate interface
when accounting for elasped time because it can go backward, in
which case the policy code could errornously consider the limit
as exceeded.

Reported by: Mahesh Arumugam
Submitted by: Dorr H. Clark via gnn
Sponsored by: Citrix / NetScaler

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

11 years agoMFC r236716:
wblock [Sun, 10 Jun 2012 19:43:32 +0000 (19:43 +0000)]
MFC r236716:

Add specific supported revision of ASUS USB-N13 ver. A1.
http://lists.freebsd.org/pipermail/freebsd-doc/2012-June/019960.html

Submitted by: PseudoCylon (AK)
Approved by: gjb (mentor)

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

11 years agoMFC r236155:
mm [Sun, 10 Jun 2012 07:40:43 +0000 (07:40 +0000)]
MFC r236155:
Import illumos changeset 13570:3411fd5f1589
1948 zpool list should show more detailed pool information

Display per-vdev information with "zpool list -v".
The added expandsize property has currently no value on FreeBSD.
This changeset allows adding expansion support to individual vdevs
in the future.

References:
https://www.illumos.org/issues/1948

Obtained from: illumos (issue #1948)

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

11 years agoMFC r236143, r236705:
mm [Sun, 10 Jun 2012 07:24:04 +0000 (07:24 +0000)]
MFC r236143, r236705:

MFC r236143 [1]:
Import illumos changeset 13571:a5771a96228c
1950 ztest backwards compatibility testing option

MFC r236705 [2]:
Import Illumos revision 13715:351036203e4b
2803 zfs get guid pretty-prints the output

References:
https://www.illumos.org/issues/1950 [1]
https://www.illumos.org/issues/2803 [2]

Obtained from: illumos (issue #1950 [1], #2803 [2])

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

11 years agoMFC r236615:
bz [Sat, 9 Jun 2012 22:44:49 +0000 (22:44 +0000)]
MFC r236615:

 Plug two interface address refcount leaks in early error return cases
 in the ioctl path.

 Reported by: rpaulo
 Reviewed by: emax

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

11 years agoMFC r233746:
mav [Sat, 9 Jun 2012 09:11:07 +0000 (09:11 +0000)]
MFC r233746:
Be more conservative in using READ CAPACITY(16) command. Previous code
checked PROTECT bit in INQUIRY data for all SPC devices, while it is defined
only since SPC-3. But there are some SPC-2 USB devices were reported, that
have PROTECT bit set, return no error for READ CAPACITY(16) command, but
return wrong sector count value in response.

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

11 years agoMFC r231745 (by gibbs):
mav [Sat, 9 Jun 2012 09:08:33 +0000 (09:08 +0000)]
MFC r231745 (by gibbs):
Limit the ST3146855LW U320 drive to 55 tags to avoid command timeouts
under load.

Submitted by:   Gelson Borsoi

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

11 years agoMFC r236044:
kib [Sat, 9 Jun 2012 09:04:59 +0000 (09:04 +0000)]
MFC r236044:
Implement SEEK_HOLE/SEEK_DATA for UFS.

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

11 years agoMFC r236043:
kib [Sat, 9 Jun 2012 09:01:24 +0000 (09:01 +0000)]
MFC r236043:
Add a vn_bmap_seekhole(9) vnode helper which can be used by any
filesystem which supports VOP_BMAP(9) to implement SEEK_HOLE/SEEK_DATA
commands for lseek(2).

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

11 years agoMFC r224806i (by mjacob):
mav [Sat, 9 Jun 2012 08:51:25 +0000 (08:51 +0000)]
MFC r224806i (by mjacob):
Fixes for sure bus reference miscounting and potential device and
target reference miscounts.  It also adds a helper function to get
the current reference counts for components of cam_path for debug
aid.  One minor style(9) change.

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

11 years agoMFC r219241 (by mjacob):
mav [Sat, 9 Jun 2012 08:41:30 +0000 (08:41 +0000)]
MFC r219241 (by mjacob):
Don't automatically send a START UNIT to sequential access devices --
this might cause them to load the tape unintentionally.

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

11 years agoMFC r236691:
mav [Sat, 9 Jun 2012 08:07:38 +0000 (08:07 +0000)]
MFC r236691:
Remove declaration of scsi_interpret_sense(), removed 11 years ago.

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

11 years agor236666:
mav [Sat, 9 Jun 2012 07:57:52 +0000 (07:57 +0000)]
r236666:
ATA/SATA controllers have no idea about protocol of the connected device
until transport will do some probe actions (at least soft reset).
Make ATA/SATA SIMs to not report bogus and confusing PROTO_ATA protocol.
Make ATA/SATA transport to fill that gap by reporting protocol to SIM with
XPT_SET_TRAN_SETTINGS and patching XPT_GET_TRAN_SETTINGS results if needed.

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

11 years agoMFC r236552:
mav [Sat, 9 Jun 2012 07:49:09 +0000 (07:49 +0000)]
MFC r236552:
Remove some dead code that I doubt will ever be implemented.

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

11 years agoMFC r236437:
mav [Sat, 9 Jun 2012 07:44:51 +0000 (07:44 +0000)]
MFC r236437:
Rewrite enabling NCQ for SATA devices in a way more alike to SCSI TCQ.
This allows to control it with `camcontrol negotiate adaX -T (en|dis)able`
on the fly, same as for SCSI devices.

Sponsored by:   iXsystems, Inc.

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

11 years agoMFC r236393:
mav [Sat, 9 Jun 2012 07:36:18 +0000 (07:36 +0000)]
MFC r236393:
Use AC_GETDEV_CHANGED async to notify ada driver about DMA and NCQ status
change. Now that allows switching between PIO and DMA modes on the fly.

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

11 years agoMFC r236234:
mav [Sat, 9 Jun 2012 07:29:07 +0000 (07:29 +0000)]
MFC r236234:
Allow to change number of openings (used tags) for ATA/SATA devices
via `camcontrol tags ... -N ...`.  There is no need to tune it in
usual cases, but some users want to have it for debugging purposes.

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

11 years agoMFC r236228:
mav [Sat, 9 Jun 2012 07:22:50 +0000 (07:22 +0000)]
MFC r236228:
Plug request and references leak caused by race between invalidated
probe periph destruction and new incoming probe request.

This at least caused problems with SATA Port Multipliers hot-plug.

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

11 years agoMFC r236122,r236595:
wblock [Sat, 9 Jun 2012 01:42:22 +0000 (01:42 +0000)]
MFC r236122,r236595:

Wording corrections and simplifications.

Approved by: gjb (mentor)

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

11 years agoMerge r215463 from head:
gavin [Fri, 8 Jun 2012 20:54:05 +0000 (20:54 +0000)]
Merge r215463 from head:

  Fix paths for example files.

PR: docs/140725

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

11 years agoMFC r235982:
mav [Fri, 8 Jun 2012 20:32:11 +0000 (20:32 +0000)]
MFC r235982:
Add tunable/sysctl kern.cam.pmp.hide_special, controlling whether special
PMP ports such as PMP configuration or SEMB should be exposed or hidden.
These ports were always hidden before as useless and sometimes promatic.
But with updated ses driver supporting SEMB it is no longer so straight.
Keep ports hidden by default to avoid probe request ttimeouts if SEP is
not connected to PMP's SEMB via I2C, that is very often situation.

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

11 years agoMFC r233692:
mav [Fri, 8 Jun 2012 13:27:30 +0000 (13:27 +0000)]
MFC r233692:
Reenable unsolicited responses on CODEC if hdaa_sense_init() called again.
This fixes jack connection events handling after suspend/resume.

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

11 years agoMFC r233606:
mav [Fri, 8 Jun 2012 13:25:46 +0000 (13:25 +0000)]
MFC r233606:
Stop HDA controller polling callout on suspend and reset it on resume.

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

11 years agoMFC r230845:
mav [Fri, 8 Jun 2012 13:22:50 +0000 (13:22 +0000)]
MFC r230845:
Make sound(4) more flexible in setting soft buffer and block sizes when
hardware imposes strict limitations on hard buffer and block sizes.

Previous code set soft buffer to be no smaller then hard buffer. On some
cards with fixed 64K physical buffer that caused up to 800ms play latency.
New code allows to set soft buffer size down to just two blocks of the hard
buffer and to not write more then that size ahead to the hardware buffer.
As result of that change I was able to reduce full practically measured
record-playback loop delay in those conditions down to only about 115ms
with theoretical playback latency of only about 50ms.

New code works fine for both vchans and direct cases. In both cases sound(4)
tries to follow hw.snd.latency_profile and hw.snd.latency values and
application-requested buffer and block sizes as much as limitation of two
hardware blocks allows.

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

11 years agoMFC r230181, r230312, r230326, r230331, r230451, r230465, r230488,
mav [Fri, 8 Jun 2012 13:10:18 +0000 (13:10 +0000)]
MFC r230181, r230312, r230326, r230331, r230451, r230465, r230488,
r230507, r230511, r230513, r230532, r230537, r230551, r230554, r230571,
r230574, r230585, r230641, r230768, r230807, r231024:
Sync snd_hda(4) driver with HEAD.

This includes major code refactoring, HDMI support, new volume control,
automatic recording source selection, runtime reconfigureation, support
for more then 4 PCM devices on controller, multichannel recording,
additional playback/record streams, higher bandwidths support, more
informative device names and many other things.

Sponsored by: iXsystems, Inc.

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

11 years agoPartially MFC r227701, r227847 and r227849 (by hselasky):
mav [Fri, 8 Jun 2012 12:56:10 +0000 (12:56 +0000)]
Partially MFC r227701, r227847 and r227849 (by hselasky):
Provide new device_delete_children() KPI without touching all consumers.

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

11 years agoMFC r230130:
mav [Fri, 8 Jun 2012 12:35:43 +0000 (12:35 +0000)]
MFC r230130:
Major snd_hda driver rewrite:
 - Huge old hdac driver was split into three independent pieces: HDA
controller driver (hdac), HDA CODEC driver (hdacc) and HDA sudio function
driver (hdaa).
 - Support for multichannel recording was added. Now, as specification
defines, driver checks input associations for pins with sequence numbers
14 and 15, and if found (usually) -- works as before, mixing signals
together. If it doesn't, it configures input association as multichannel.
 - Signal tracer was improved to look for cases where several DACs/ADCs in
CODEC can work with the same audio signal. If such case found, driver
registers additional playback/record stream (channel) for the pcm device.
 - New controller streams reservation mechanism was implemented. That
allows to have more pcm devices then streams supported by the controller
(usually 4 in each direction). Now it limits only number of simultaneously
transferred audio streams, that is rarely reachable and properly reported
if happens.
 - Codec pins and GPIO signals configuration was exported via set of
writable sysctls. Another sysctl dev.hdaa.X.reconfig allows to trigger
driver reconfiguration in run-time.
 - Driver now decodes pins location and connector type names. In some cases
it allows to hint user where on the system case connectors, related to the
pcm device, are located. Number of channels supported by pcm device,
reported now (if it is not 2), should also make search easier.
 - Added workaround for digital mic on some Asus laptops/netbooks.

Sponsored by:   iXsystems, Inc.

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

11 years agoMFC r223118:
mav [Fri, 8 Jun 2012 12:31:49 +0000 (12:31 +0000)]
MFC r223118:
Hide driver revision behind bootverbose.

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

11 years agoMFC r224967:
mav [Fri, 8 Jun 2012 12:24:47 +0000 (12:24 +0000)]
MFC r224967:
Fix headphones pin configuration on Lenovo B450 laptop.

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

11 years agoMFC r223058:
mav [Fri, 8 Jun 2012 12:23:02 +0000 (12:23 +0000)]
MFC r223058:
Add bunch of Conexant codec IDs. For some of them add quirks to disable
excessive signal paths to simplify tracer's life.

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

11 years agoMFC r222826:
mav [Fri, 8 Jun 2012 11:58:28 +0000 (11:58 +0000)]
MFC r222826:
Make automatic hw.snd.default_unit choice a bit more intelligent. Instead
of just setting it to the first registered device, reevaluate it for each
device registered, trying to choose best candidate, unless one was forced.
For now use such preference order: play&rec, play, rec.

As side effect, this should workaround the situation when HDMI audio output
of the video card, usually not connected to anything, becomes default, that
requires manual user intervention to make sound working. If at some point
this won't be enough, we can try to fetch some additional priority flags
from the device driver.

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

11 years agoMFC r214332:
mav [Fri, 8 Jun 2012 11:40:30 +0000 (11:40 +0000)]
MFC r214332:
Make hw.snd.vpc_0db to be also a loader tunable.

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

11 years agoMFC r236619:
mav [Fri, 8 Jun 2012 05:54:36 +0000 (05:54 +0000)]
MFC r236619:
Add missing newlines into XML output.

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

11 years agoMFC r236412,236418,236420,236591,236624
sbruno [Thu, 7 Jun 2012 19:19:12 +0000 (19:19 +0000)]
MFC r236412,236418,236420,236591,236624

Doc updates for bce(4) tuneables

Note that for 7/8/9 the strict_rx_mtu variable is named
loose_rx_mtu.

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

11 years agoMFC r236323
sbruno [Thu, 7 Jun 2012 18:54:42 +0000 (18:54 +0000)]
MFC r236323

Cosmetic nit.  If a configured volume has no label, don't emit an empty
string for the name during probe.  Simply indicate that it has no label.

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

11 years agoCorrect the format specifier for shm_size. shm_size is a size_t unlike
jhb [Thu, 7 Jun 2012 14:02:07 +0000 (14:02 +0000)]
Correct the format specifier for shm_size.  shm_size is a size_t unlike
the uint64_t size field in libprocstat's shmstat structure in 9.x and
later.

Pointy hat to: jhb

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

11 years agoMFC r236371:
yongari [Thu, 7 Jun 2012 05:37:46 +0000 (05:37 +0000)]
MFC r236371:
  Remove unnecessary device_printfs.

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

11 years agoMFC 233760:
jhb [Wed, 6 Jun 2012 21:57:03 +0000 (21:57 +0000)]
MFC 233760:
Export some more useful info about shared memory objects to userland
via procstat(1) and fstat(1):
- Change shm file descriptors to track the pathname they are associated
  with and add a shm_path() method to copy the path out to a caller-supplied
  buffer.
- Use shm_path() to export the path of a shared memory object via
  struct kinfo_file.
- Change procstat to always print out the path for a given object if it
  is valid.
- Teach fstat about shared memory objects and to display their path,
  mode, and size.

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

11 years agoMFC: r232272, r232273
oleg [Wed, 6 Jun 2012 18:04:49 +0000 (18:04 +0000)]
MFC: r232272, r232273

- lookup_dyn_rule_locked(): style(9) cleanup
- Refresh dynamic tcp rule only if both sides answered keepalive packets.
- Remove some useless assignments.

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

11 years agoMFC r235854
emax [Wed, 6 Jun 2012 16:20:59 +0000 (16:20 +0000)]
MFC r235854

Seems applicable here as well.

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
Requested by: Andrew Boyer aboyer at averesystems dot com

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

11 years agoMFC 228509,228620,228533:
jhb [Wed, 6 Jun 2012 16:01:45 +0000 (16:01 +0000)]
MFC 228509,228620,228533:
Add a helper API to allow in-kernel code to map portions of shared memory
objects created by shm_open(2) into the kernel's address space.  This
provides a convenient way for creating shared memory buffers between
userland and the kernel without requiring custom character devices.

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

11 years agoMFC r223084 (by gibbs):
mav [Wed, 6 Jun 2012 12:36:40 +0000 (12:36 +0000)]
MFC r223084 (by gibbs):
sys/cam/scsi/scsi_da.c:
        - Only attempt the closing synchronize cache on a disk
          if it is still there.
        - When a device is lost, report the number of outstanding
          I/Os as they are drained.
        - When a device is lost, return any unprocessed bios with
          ENXIO instead of EIO.
        - Filter asynchronous events, but always allow cam_periph_async()
          to see them too.

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

11 years agoMFC r208911 (by mjacob):
mav [Wed, 6 Jun 2012 11:46:37 +0000 (11:46 +0000)]
MFC r208911 (by mjacob):
Implement the usage of Report Luns as part of SCSI probing for SCP3 or
better devices. This can be disabled on a per-device basis using quirks as
well.

This also handles the case where there is actually no connected LUN 0
(which can definitely be the case for storage arrays).

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

11 years agoMFC r208896, r208900 (by mjacob):
mav [Wed, 6 Jun 2012 11:40:16 +0000 (11:40 +0000)]
MFC r208896, r208900 (by mjacob):
Do a minor amount of stylifying. Also, get a Fibre Channel WWPN if one exists
for a da unit and create a sysctl OID for it.

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

11 years agoMFC: r233774
marius [Wed, 6 Jun 2012 07:46:14 +0000 (07:46 +0000)]
MFC: r233774

Fix compiler warnings, mostly signed issues,
when USB modules are compiled with WARNS=9.

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

11 years agoMFC r236289:
eadler [Wed, 6 Jun 2012 06:39:14 +0000 (06:39 +0000)]
MFC r236289:
Relax security permissions on '.seq' file creation - the strict,
but odd permissions resulted in a security alert from 110.neggrpperm

PR: bin/165533
Approved by: cperciva (implicit)

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

11 years agoMFC r236285:
eadler [Wed, 6 Jun 2012 06:35:29 +0000 (06:35 +0000)]
MFC r236285:
Add missing flag enable when certain arguments are parsed

PR: bin/163053
Approved by: cperciva (implicit)

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

11 years agoMFC r236379:
eadler [Wed, 6 Jun 2012 04:38:45 +0000 (04:38 +0000)]
MFC r236379:
   Adding missing dependancies for loading hptiop(4), hptmv(4) and isp(4) as modules.

PR: kern/166239
Approved by: cperciva (implicit)

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

11 years agoMFC r236283:
eadler [Wed, 6 Jun 2012 04:26:27 +0000 (04:26 +0000)]
MFC r236283:
 Add support for newer garmin devices

PR: kern/163932
Approved by: cperciva (implicit)

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

11 years agoMFC r236282:
eadler [Wed, 6 Jun 2012 04:18:04 +0000 (04:18 +0000)]
MFC r236282:
Add support for Sun 1040 PCI Quad Serial

PR: kern/163450
Approved by: cperciva (implicit)

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

11 years agoMFC: r236491
marius [Tue, 5 Jun 2012 20:53:53 +0000 (20:53 +0000)]
MFC: r236491

Add missing prototypes. While at it, sort them alphabetically.

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

11 years agoMFC: r236488
marius [Tue, 5 Jun 2012 20:34:56 +0000 (20:34 +0000)]
MFC: r236488

Take advantage of nitems().

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

11 years agoMFC: r236486
marius [Tue, 5 Jun 2012 19:59:02 +0000 (19:59 +0000)]
MFC: r236486

Add nitems(), a macro for determining the number of elements in a
statically-allocated array.

Obtained from: OpenBSD (in principle)

MFC: r236489

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

11 years agoMFC r236575 (by emax):
bz [Tue, 5 Jun 2012 11:29:00 +0000 (11:29 +0000)]
MFC r236575 (by emax):

 Plug more refcount leaks and possible NULL deref for interface
 address list.

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

11 years agoMFC r236501 (by emax):
bz [Tue, 5 Jun 2012 11:27:11 +0000 (11:27 +0000)]
MFC r236501 (by emax):

  Plug reference leak.

  Interface addresses are refcounted as packets move through the stack,
  and there's garbage collection tied to it so that address changes can
  safely propagate while traffic is flowing. In our setup, we weren't
  changing or deleting any addresses, but the refcounting logic in
  ip6_input() was wrong and caused a reference leak on every inbound
  V6 packet. This eventually caused a 32bit overflow, and the resulting
  0 value caused the garbage collection to run on the active address.
  That then snowballed into the panic.

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

11 years agoMFC r236327 (by emax):
bz [Tue, 5 Jun 2012 11:24:05 +0000 (11:24 +0000)]
MFC r236327 (by emax):

  When we return deprecated addresses, we need to reference them.

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

11 years agoUpgrade to 9.6-ESV-R7-P1, the latest from ISC. This version contains
dougb [Mon, 4 Jun 2012 22:21:55 +0000 (22:21 +0000)]
Upgrade to 9.6-ESV-R7-P1, the latest from ISC. This version contains
a critical bugfix:

  Processing of DNS resource records where the rdata field is zero length
  may cause various issues for the servers handling them.

  Processing of these records may lead to unexpected outcomes. Recursive
  servers may crash or disclose some portion of memory to the client.
  Secondary servers may crash on restart after transferring a zone
  containing these records. Master servers may corrupt zone data if the
  zone option "auto-dnssec" is set to "maintain". Other unexpected
  problems that are not listed here may also be encountered.

All BIND users are strongly encouraged to upgrade.

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

11 years agoMFC r236184:
mav [Mon, 4 Jun 2012 07:08:58 +0000 (07:08 +0000)]
MFC r236184:
Make legacy ATA to not call device_add_child() with unit number but
without driver name.

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

11 years agoMFC r235333:
mav [Mon, 4 Jun 2012 07:05:13 +0000 (07:05 +0000)]
MFC r235333:
Add two functions xpt_batch_start() and xpt_batch_done() to the CAM SIM KPI
to allow drivers to handle request completion directly without passing
them to the CAM SWI thread removing extra context switch.
Modify all ATA/SATA drivers to use them.

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

11 years agoOpenSSH: allow VersionAddendum to be used again
rea [Sun, 3 Jun 2012 18:05:19 +0000 (18:05 +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/8@236521 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r236193: libfetch: Avoid SIGPIPE on network connections.
jilles [Sun, 3 Jun 2012 11:31:45 +0000 (11:31 +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/8@236510 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r236145, r236146:
mm [Sun, 3 Jun 2012 09:37:47 +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/8@236506 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

11 years agoMFC: r236328
marius [Sat, 2 Jun 2012 19:15:21 +0000 (19:15 +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/8@236482 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r236156
marius [Sat, 2 Jun 2012 19:11:47 +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/8@236480 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

Consistently use USB_PAGE_SIZE. Currently, this is cosmetic.

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

11 years agoMFC: r236069, r236073
marius [Sat, 2 Jun 2012 19:08:48 +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/8@236476 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

Remove extraneous empty lines.

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

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

PR: bin/155104

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

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

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

11 years agoMFC: r236061
marius [Sat, 2 Jun 2012 18:57:16 +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/8@236469 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f