]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
11 years agoMFC 233925,236357:
jhb [Wed, 27 Jun 2012 21:13:00 +0000 (21:13 +0000)]
MFC 233925,236357:
Add new ktrace records for the start and end of VM faults.  This gives
a pair of records similar to syscall entry and return that a user can
use to determine how long page faults take.  The new ktrace records are
enabled via the 'p' trace type, but are not enabled in the default set of
trace points.

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

11 years agoMFC r236823 (pjd):
mm [Wed, 27 Jun 2012 12:00:35 +0000 (12:00 +0000)]
MFC r236823 (pjd):

ds_guid of 0 is special, as it is used by snapshot receive code to
differentiate between an incremental and full stream.
Be sure not to generate guid equal to 0.

Reported by: someone who saw 0 being generated as 64bit random guid

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

11 years agoMFC r237401:
mav [Wed, 27 Jun 2012 11:08:03 +0000 (11:08 +0000)]
MFC r237401:
Make cam_periph_hold() behavior consistent: drop taken reference and
return ENXIO if periph was invalidated while we were waiting for it.

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

11 years agoMFC r237398:
mav [Wed, 27 Jun 2012 11:04:04 +0000 (11:04 +0000)]
MFC r237398:
In camisr() clear CAM_SIM_ON_DONEQ flag after camisr_runqueue() purged SIM
done queue. Clearing it before caused extra SIM queueing in some cases.
It was invisible during normal operation, but during USB device unplug and
respective SIM destruction it could keep pointer on SIM without having
counted reference and as result crash the system by use afer free.

PR:             usb/168743

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

11 years agoMFC r237286, r237523:
eadler [Wed, 27 Jun 2012 06:41:14 +0000 (06:41 +0000)]
MFC r237286, r237523:
Don't close an uninitialized descriptor.

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

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

11 years agoMFC r237339:
delphij [Wed, 27 Jun 2012 00:34:06 +0000 (00:34 +0000)]
MFC r237339:

Polish previous revision: if the fts_* routines have lstat()'ed the
directory entry then use the struct stat from that instead of doing
it again, and skip the rm_overwrite() call if fts_read() indicated
that the entry couldn't be a regular file.

Obtained from: OpenBSD

MFC r237284 (kevlo):

Fix potential symlink race condition in "rm -P" by adding a check
that the file we have opened is the one we expected.  Also open in
non-blocking mode to avoid a potential hang with FIFOs.

Obtained from: NetBSD via OpenBSD

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

11 years agoMFC: netcat from OpenBSD 5.1.
delphij [Tue, 26 Jun 2012 23:31:57 +0000 (23:31 +0000)]
MFC: netcat from OpenBSD 5.1.

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

11 years agoMFC r235036:
delphij [Tue, 26 Jun 2012 21:45:47 +0000 (21:45 +0000)]
MFC r235036:

Add ToS definitions for DiffServ Codepoints as per RFC2474.

Obtained from: OpenBSD

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

11 years agoMFC r237259 r237260 r237329:
eadler [Tue, 26 Jun 2012 03:05:42 +0000 (03:05 +0000)]
MFC r237259 r237260 r237329:
Allow users with RO privilege to the device to read the RO attributes. [0]
Add __unused macros to appropriate places in order to allow building
with WARNS=6 on base gcc, gcc46, and clang

PR: bin/167302 [0]
Approved by: cperciva (implicit)

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

11 years agoMFC r225808:
wblock [Mon, 25 Jun 2012 23:40:19 +0000 (23:40 +0000)]
MFC r225808:

Fix grammar.

PR: 140457
Submitted by: jeremyhu AT apple.com
Approved by: gjb (mentor)

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

11 years agoMFC: r225482
brueffer [Mon, 25 Jun 2012 12:30:51 +0000 (12:30 +0000)]
MFC: r225482

Fix a zyd(4) comment typo that was copy+pasted into most kernel config files.

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

11 years agoMFC r237295:
fabient [Mon, 25 Jun 2012 07:36:00 +0000 (07:36 +0000)]
MFC r237295:
Fix viawd(4) that was only working as a module.

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

11 years agoMFC r237322:
fabient [Mon, 25 Jun 2012 07:29:14 +0000 (07:29 +0000)]
MFC r237322:
Allow booting XENHVM kernel without Xen hypervisor.

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

11 years agoMFC r237460:
mav [Mon, 25 Jun 2012 07:11:03 +0000 (07:11 +0000)]
MFC r237460:
Return CAM_SEL_TIMEOUT and CAM_DEV_NOT_THERE instead of CAM_TID_INVALID
and CAM_LUN_INVALID for case of missing devices. In removes tons of error
messages from CAM during bus scans.

Reported and tested by: Mike Tancsa <mike@sentex.net>

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

11 years agoMFC: r211353
brueffer [Sun, 24 Jun 2012 17:37:08 +0000 (17:37 +0000)]
MFC: r211353

Tie up some loose ends r88509 left behind:

- chooseproc() is long gone, MLINK choosethread instead
- Update NAME section for choosethread
- Mark chooseproc.9 for removal

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

11 years agoMFC r237225:
mav [Sun, 24 Jun 2012 09:42:36 +0000 (09:42 +0000)]
MFC r237225:
Remove never used CD/DA_FLAG_TAGGED_QUEUING flags.

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

11 years agoMFC: r236829
pfg [Sat, 23 Jun 2012 20:37:27 +0000 (20:37 +0000)]
MFC: r236829

Bring a couple of libstdc++ patches from Apple's llvm-gcc project.

Modified Fri Jul 10 07:44:34 2009 CDT by rafael
backport part of
http://gcc.gnu.org/ml/gcc-cvs/2007-10/msg00118.html

The patch is for libstdc++ and it was GPL2 at the time.

Modified Tue Apr 29 01:20:19 2008 CDT by asl
Backport from mainline (pre-GPLv3).
Fix for sizeof(const void*) > sizeof(unsigned long).

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

11 years agoMFC r231992:
eadler [Sat, 23 Jun 2012 19:42:06 +0000 (19:42 +0000)]
MFC r231992:
Remove reference to gsched_as module, which doesn't
actually exist.

Approved by: cperciva (implicit)

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

11 years agoMFC r235138: Add -a and -A option to the usage.
ume [Sat, 23 Jun 2012 18:07:48 +0000 (18:07 +0000)]
MFC r235138: Add -a and -A option to the usage.

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

11 years agoMFC r237195:
davide [Sat, 23 Jun 2012 17:42:37 +0000 (17:42 +0000)]
MFC r237195:

The variable 'error' in sys_poll() is initialized in declaration to value
zero but in any case is overwritten by successive copyin(), making the
previous initialization useless. Remove this.
As an added bonus this fixes a style(9) bug.

Approved by: gnn (mentor)

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

11 years agoMFC r237336:
mav [Sat, 23 Jun 2012 07:49:10 +0000 (07:49 +0000)]
MFC r237336:
Remove unused error variables in cdclose() and daclose().

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

11 years agoMFC r237335:
mav [Sat, 23 Jun 2012 07:46:33 +0000 (07:46 +0000)]
MFC r237335:
Check status of cam_periph_hold() inside cdclose().  If cd device was
invalidated while open, cam_periph_hold() will return error and won't
get the reference.  Following reference release will crash the system.

Sponsored by:   iXsystems, Inc.

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

11 years agoMFC r237348:
delphij [Sat, 23 Jun 2012 00:37:32 +0000 (00:37 +0000)]
MFC r237348:

Currently the code uses gzFile * for a zlib file descriptor, which
is not correct.  The code works by accident because gzFile is
currently defined as void *, and internally it would be casted from
or to its real type.

A newer version of zlib will instead define it as a pointer to a
specific type pointer (namely, struct gzFile_s *).  This therefore
would cause stricter checks and compiler would catch this type
mismatch.

This change does not cause any changes to the resulting binary,
as validated with md5(1).

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

11 years agoMFC r237119:
mm [Fri, 22 Jun 2012 20:38:08 +0000 (20:38 +0000)]
MFC r237119:

Do not remount ZFS dataset if changing canmount property to "on" and
dataset is already mounted.

PR: 167905
Submitted by: Bryan Drewery <bryan@shatow.net>

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

11 years agoMFC: 234424
gnn [Fri, 22 Jun 2012 19:19:53 +0000 (19:19 +0000)]
MFC: 234424

Set SIGCANCEL to SIGTHR as part of some cleanup of DTrace code.

Reviewed by:    davidxu@

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

11 years agoMFC 230063
gnn [Fri, 22 Jun 2012 16:31:00 +0000 (16:31 +0000)]
MFC 230063
Clean up a switch statement for uncore events on Westmere processors.

Submitted by: Davide Italiano
Reviewed by: gnn

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

11 years agoMFC r237256:
eadler [Fri, 22 Jun 2012 05:46:43 +0000 (05:46 +0000)]
MFC r237256:
Remove variables which are initialized but never used thereafter reported by gcc46 warning

Approved by: cperciva (implicit)

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

11 years agoMFC r237257:
eadler [Fri, 22 Jun 2012 05:40:15 +0000 (05:40 +0000)]
MFC r237257:
Remove variables which are initialized but never used thereafter reported by gcc46 warning

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

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

11 years agoMFC r236376:
eadler [Fri, 22 Jun 2012 05:36:42 +0000 (05:36 +0000)]
MFC r236376:
Add characters mapping for codepages used in Germany.

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

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

11 years agoMFC r237258:
eadler [Fri, 22 Jun 2012 05:23:49 +0000 (05:23 +0000)]
MFC r237258:
Remove variables which are initialized but never used thereafter reported by gcc46 warning

Approved by: cperciva (implicit)

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

11 years agoMFC r221839:
fabient [Thu, 21 Jun 2012 14:55:35 +0000 (14:55 +0000)]
MFC r221839:
Allow direct children of PCI-ISA bridges to allocate resources from
the parent PCI bus.

Heavily inspired by jhb@ and a similar implementation present in
sys/dev/pci/vga_pci.c.

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

11 years agoMFC: r231617
marius [Thu, 21 Jun 2012 12:10:09 +0000 (12:10 +0000)]
MFC: r231617

Add ARM relocations types used for thread-local storage

Reviewed by: cognet

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

11 years agoMFC: r236496
marius [Thu, 21 Jun 2012 11:16:13 +0000 (11:16 +0000)]
MFC: r236496

- Loop up to 3 seconds when waiting for a device to get ready. [1]
- Make the device description match the driver name.
- Identify the chip variant based on the JEDEC and use that information
  to use the proper values for page count, offset and size instead of
  hardcoding a AT45DB642x with 2^N byte page support disabled.
- Take advantage of bioq_takefirst().
- Given that CONTINUOUS_ARRAY_READ_HF (0x0b) command isn't even mentioned
  in Atmel's DataFlash Application Note, as suggested by the previous
  comment may not work on all all devices and actually doesn't properly
  on at least AT45DB321D (JEDEC 0x1f2701), rewrite at45d_task() to use
  CONTINUOUS_ARRAY_READ (0xe8) for reading instead. This rewrite is laid
  out in a way allowing to easily add support for BIO_DELETE later on.
- Add support for reads and writes not starting on a page boundary.
- Verify the flash content after writing.
- Let at45d_task() gracefully handle errors on SPI transfers and the
  device not becoming ready afterwards again. [1]
- Use DEVMETHOD_END. [1]
- Use NULL instead of 0 for pointers. [1]

Additional testing by: Ian Lepore

Submitted by: Ian Lepore [1]

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

11 years agoMFC: r237239
marius [Thu, 21 Jun 2012 11:10:55 +0000 (11:10 +0000)]
MFC: r237239

Revert the part of r236495 (MFC'ed to stable/8 in r237096) that
introduced checking of SPI_SR_TXEMPTY for TX transfer completion as
for reasons unknown this occasionally causes SPI_SR_RXBUFF and
SPI_SR_ENDRX to not rise.
In any case, once the RX part of the transfer is done it's obvious
that the preceding TX part had finished and checking of SPI_SR_TXEMPTY
was introduced to rule out a possible cause for the data corruption
mentioned in r236495 but which didn't turn out to be the problem
anyway.

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

11 years agoMFC: r230242, r237102, r237236
marius [Thu, 21 Jun 2012 11:06:31 +0000 (11:06 +0000)]
MFC: r230242, r237102, r237236

- Add support for the FT2232 based egnite Turtelizer 2 JTAG/RS232 Adapter.
  This includes adding support for skipping FTDI interfaces used for JTAG
  leaving them for userland and just attaching to the RS232 half, similarly
  to how the corresponding Linux drivers handles these kind of adapters.
  While at it, sort uftdi_devs and return BUS_PROBE_SPECIFIC (because
  uftdi_probe() alters the instance variables for better or worse as do
  other probe routines of USB drivers) instead of 0.
- Remove duplicated entries for BeagleBone.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.
- Remove some stray lines.

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

11 years agoMFC r236952:
mav [Thu, 21 Jun 2012 10:41:27 +0000 (10:41 +0000)]
MFC r236952:
 - Limit r214102 workaround to only x86. On arm it causes more problems
then solves because of cache coherency issues. This fixes periodic error
messages on console and command timeouts.
 - Patch SATA PHY configuration for 65nm SoCs to improve SNR same as
Linux does.

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

11 years agoMFC: r237235
marius [Thu, 21 Jun 2012 09:57:34 +0000 (09:57 +0000)]
MFC: r237235

Document the hw.ahci.force tunable here, too, as it's also used by
ataahci(4) and atanvidia(4).

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

11 years agoMFC: r237234
marius [Thu, 21 Jun 2012 09:48:21 +0000 (09:48 +0000)]
MFC: r237234

Avoid hard sentence break.

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

11 years agoMFC r237061:
kib [Thu, 21 Jun 2012 08:55:07 +0000 (08:55 +0000)]
MFC r237061:
Make sure that fstab fd is not leaked on exec.

PR: kern/169023

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

11 years agoMFC r235873:
wblock [Wed, 20 Jun 2012 23:47:48 +0000 (23:47 +0000)]
MFC r235873:

Fixes to man8 groff mandoc style, usage mistakes, or typos.

Includes a partial MFC of r233648 for sbin/gvinum/gvinum.8.

PR: 168016
Submitted by: Nobuyuki Koganemaru
Approved by: gjb (mentor)

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

11 years agoMFC r236246
rnoland [Wed, 20 Jun 2012 21:29:19 +0000 (21:29 +0000)]
MFC r236246

Add device ids for the Winbond 83627DHG-P chip and set the registers to
trigger the keyboard reset line on timeout.

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

11 years agoMFC r236245
rnoland [Wed, 20 Jun 2012 21:28:17 +0000 (21:28 +0000)]
MFC r236245

Fix a typo in wbwd so that CRF5 is actually written to the data register
rather than the index register.

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

11 years agoMFC r236713:
mav [Wed, 20 Jun 2012 14:47:39 +0000 (14:47 +0000)]
MFC r236713:
Add CAM_DEBUG_INFO debug messages for periph created/invalidated/destroyed
and for asyncs sent.

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

11 years agoMFC r236712:
mav [Wed, 20 Jun 2012 14:39:35 +0000 (14:39 +0000)]
MFC r236712:
To make CAM debugging easier, compile in some debug flags (CAM_DEBUG_INFO,
CAM_DEBUG_CDB, CAM_DEBUG_PERIPH and CAM_DEBUG_PROBE) by default.
List of these flags can be modified with CAM_DEBUG_COMPILE kernel option.
CAMDEBUG kernel option still enables all possible debug, if not overriden.

Additional 50KB of kernel size is a good price for the ability to debug
problems without rebuilding the kernel. In case where size is important,
debugging can be compiled out by setting CAM_DEBUG_COMPILE option to 0.

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

11 years agoMFC r236689 (by ken):
mav [Wed, 20 Jun 2012 14:29:01 +0000 (14:29 +0000)]
MFC r236689 (by ken):
Fix a memory leak in the kernel case in scsi_command_string().

Submitted by:   Kashyap Desai <Kashyap.Desai@lsi.com>

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

11 years agoMFC r236639:
mav [Wed, 20 Jun 2012 14:23:10 +0000 (14:23 +0000)]
MFC r236639:
Use default error handler when flushing disk caches.

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

11 years agoMFC r236555:
mav [Wed, 20 Jun 2012 14:15:39 +0000 (14:15 +0000)]
MFC r236555:
Add -p argument for `camcontrol debug` to allow enabling CAM_DEBUG_PROBE
added at r208911.

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

11 years agoMFC r236819
melifaro [Wed, 20 Jun 2012 14:15:14 +0000 (14:15 +0000)]
MFC r236819

Validate IPv4 network mask being passed to ipfw kernel interface.
Incorrect mask can possibly be one of the reasons for kern/127209 existance.

Approved by:        ae(mentor)

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

11 years agoMFC r236602, r236613:
mav [Wed, 20 Jun 2012 14:11:18 +0000 (14:11 +0000)]
MFC r236602, r236613:
Tune and add some missing CAM_DEBUG() points for better consistency.

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

11 years agoMFC r236605:
mav [Wed, 20 Jun 2012 13:42:40 +0000 (13:42 +0000)]
MFC r236605:
Replace #ifdef CAMDEBUG + if + panic() with single KASSERT().

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

11 years agoMFC: r232051
brueffer [Wed, 20 Jun 2012 10:59:11 +0000 (10:59 +0000)]
MFC: r232051

Catch up with r195837 (2.5 years ago) which renamed net_add_domain() to domain_add().

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

11 years agoMFC r236999:
eadler [Wed, 20 Jun 2012 06:58:38 +0000 (06:58 +0000)]
MFC r236999:
Include a warning when using the example code as it may not
work in unusual situations.
Also slightly optimize the command.

Approved by: cperciva (implicit)

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

11 years agoMFC r236944:
hselasky [Tue, 19 Jun 2012 06:52:21 +0000 (06:52 +0000)]
MFC r236944:
LibUSB v1.0 API compliance and bugfixes.

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

11 years agoMFC: r235948
jkim [Mon, 18 Jun 2012 17:21:02 +0000 (17:21 +0000)]
MFC: r235948

Catch up with realpath(3) changes (r236400) and unbreak acpidump(8).

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

11 years agoMFC 236352:
eadler [Mon, 18 Jun 2012 05:02:21 +0000 (05:02 +0000)]
MFC 236352:
Bump date for content missed in r236290

Approved by: cperciva (implicit)

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

11 years agoImprove the functionality of the PORTS_MODULES knob by adding
dougb [Sun, 17 Jun 2012 21:07:00 +0000 (21:07 +0000)]
Improve the functionality of the PORTS_MODULES knob by adding
LOCALBASE/bin and sbin to PATH, which allows dependencies to be found;
adding SRC_BASE and OSVERSION to match the new kernel, and putting the
related builds under MAKEOBJDIRPREFIX so that they only need to be built
once per kernel.

In addition to the PR this includes ideas/contributions from crees
and matthew.

PR: ports/161452
Submitted by: Garrett Cooper <yanegomi@gmail.com>

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

11 years agoMFC: r237107
marius [Sun, 17 Jun 2012 11:16:17 +0000 (11:16 +0000)]
MFC: r237107

- As a baind-aid, disable ATAPI DMA when using ATA_CAM for these controllers
  as well as it causes the kernel to hang during boot.
  Reported and tested by: Kevin Oberman
- Use NULL instead of 0 for a pointer.

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

11 years agoMFC: r230179
marius [Sun, 17 Jun 2012 09:50:59 +0000 (09:50 +0000)]
MFC: r230179

BeagleBone uses an FTDI chip with
an altered Product ID.

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

11 years agoMFC: r237101
marius [Sun, 17 Jun 2012 09:43:04 +0000 (09:43 +0000)]
MFC: r237101

Fix a braino in r236469 (MFC'ed to stable/8 in r236469); the number of
DMA tags required for handling MAXPHYS should be based on PAGE_SIZE rather
than SYM_CONF_DMA_BOUNDARY.
While at it, reuse the SYM_CONF_MAX_SG macro for specifying the maximum
number of DMA tags so sym(4) itself doesn't size memory beyond what's
required for handling MAXPHYS.

PR: 168928

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

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