]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
11 years agoMFC 237847:
kib [Tue, 3 Jul 2012 08:47:06 +0000 (08:47 +0000)]
MFC 237847:
Do not test ki_stat as mask.

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

11 years agoMFC r237844, r237845, r237846:
kib [Tue, 3 Jul 2012 08:46:26 +0000 (08:46 +0000)]
MFC r237844, r237845, r237846:
Minor tweaks.

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

11 years agoMFC r237852
thompsa [Tue, 3 Jul 2012 01:45:38 +0000 (01:45 +0000)]
MFC r237852

 Add the same check as vlan(4) where we ignore the ifnet departure event if the
 interface is just being renamed.

PR: kern/169557

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

11 years agoMFC r238038:
dougb [Mon, 2 Jul 2012 22:18:49 +0000 (22:18 +0000)]
MFC r238038:

Unfortunately the change in r237958 resulted in s/install/instclean/ due to
the aggressive pattern matching of the :C modifier. I tested build and
install in 2 phases, however with different solutions, resulting in the
breakage. Mea culpa.

The solution is to break out the all: target. This causes a few lines of
code duplication, but now the all: target works as it should, and the
other targets continue to work as they did before.

While I'm here, add a ===> header line to the start of each port build
to make it easier to find/more clear in the logs.

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

11 years agoMFC r237245, r237250, r237251, r237273, r237330
sbruno [Mon, 2 Jul 2012 22:01:29 +0000 (22:01 +0000)]
MFC r237245, r237250, r237251, r237273, r237330

Document support for Intel Enhanced Speedstep Tech interface
of cpufreq(4) via a new man page est(4)

Document the two exposed tuneables of est(4).

Numerous cleanups and mdoc updates from reviewers. Thanks to mav, joel,
wblock, hrs, gjb

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

11 years agoMFC r217322. Original commit log:
mdf [Mon, 2 Jul 2012 20:36:54 +0000 (20:36 +0000)]
MFC r217322.  Original commit log:

sysctl(9) cleanup checkpoint: amd64 GENERIC builds cleanly.
Commit the net* piece.

The commit to HEAD was a superset of the proposed patch for PR
kern/167357.

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

11 years agoMFC: r237547
marius [Mon, 2 Jul 2012 20:07:09 +0000 (20:07 +0000)]
MFC: r237547

Fix size of the bcopy when extracting ethernet address

Obtained from: DragonFly

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

11 years agoMFC: r237546
marius [Mon, 2 Jul 2012 19:19:21 +0000 (19:19 +0000)]
MFC: r237546

Correct sizeof usage

Obtained from: DragonFly

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

11 years agoMFC: r237657, r237658, r237666
jkim [Mon, 2 Jul 2012 16:14:35 +0000 (16:14 +0000)]
MFC: r237657, r237658, r237666

Merge OpenSSL 0.9.8x and regen manual pages.

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

11 years agoMFC r237748: dtrace instruction decoder: add 0x0f 0x1f NOP opcode support
avg [Mon, 2 Jul 2012 08:09:07 +0000 (08:09 +0000)]
MFC r237748: dtrace instruction decoder: add 0x0f 0x1f NOP opcode support

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

11 years agoMFC: r233648 (by eadler), r237836
brueffer [Mon, 2 Jul 2012 06:58:10 +0000 (06:58 +0000)]
MFC: r233648 (by eadler), r237836

Remove trailing whitespace per mdoc lint warning

mps(4) is endian safe as of r237877.

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

11 years agoMFC r237958:
dougb [Mon, 2 Jul 2012 06:52:07 +0000 (06:52 +0000)]
MFC r237958:

For the ports modules building code, clean WRKDIR before building. This is
important for those that use -DNO_CLEAN routinely, since it will prevent
installing stale stuff, and even more important when the port is upgraded
to a newer version. When the user doesn't use -DNO_CLEAN, this will create
an infinitesimal amount of extra work, but won't hurt anything.

This is necessary because the ports tree has flags that prevent the ususal
'update the build if newer source files exist' logic from doing what it
would do in the base.

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

11 years agoMFC r236247 (pjd):
mm [Mon, 2 Jul 2012 06:39:21 +0000 (06:39 +0000)]
MFC r236247 (pjd):
Remove unused sysctl.

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

11 years agoMFC 237800:
ken [Mon, 2 Jul 2012 02:57:52 +0000 (02:57 +0000)]
MFC 237800:
  r237800 | ken | 2012-06-29 11:00:52 -0600 (Fri, 29 Jun 2012) | 7 lines

  Change the mps(4) driver to only scan a target if that is what is
  needed instead of scanning the full bus every time.

Submitted by: mav
Discussed with: Sreekanth Reddy <Sreekanth.Reddy@lsi.com>

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

11 years agoMFC r237571:
delphij [Mon, 2 Jul 2012 02:54:22 +0000 (02:54 +0000)]
MFC r237571:

Fix a LOR acquiring the if_afdata lock while holding an rtentry lock.
Possibly do some entra work in case we would not get into the
ifa0 != NULL paths later as we already do for the mltaddr before.

XXX We should possibly error in case in6_setscope fails.

Reference: http://lists.freebsd.org/pipermail/freebsd-net/2011-September/029829.html

Submitted by: bz

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

11 years agoMFC 237730:
ken [Mon, 2 Jul 2012 02:45:33 +0000 (02:45 +0000)]
MFC 237730:

This only includes the sparc64 GENERIC, since the powerpc GENERIC64 config
file isn't in stable/8.

  r237730 | ken | 2012-06-28 14:48:24 -0600 (Thu, 28 Jun 2012) | 5 lines

  Now that the mps(4) driver is endian-safe, add it to the powerpc and
  sparc64 GENERIC config files.

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

11 years agoMFC 237682:
ken [Sun, 1 Jul 2012 05:40:33 +0000 (05:40 +0000)]
MFC 237682:

  r237682 | ken | 2012-06-27 21:36:13 -0600 (Wed, 27 Jun 2012) | 6 lines

  Fix a typo in a panic() call.

PR: kern/169497
Submitted by: Steven Hartland <steven.hartland@multiplay.co.uk>

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

11 years agoMFC 237683:
ken [Sun, 1 Jul 2012 05:23:59 +0000 (05:23 +0000)]
MFC 237683:

  r237683 | ken | 2012-06-27 21:48:54 -0600 (Wed, 27 Jun 2012) | 129 lines

  Bring in LSI's latest mps(4) 6Gb SAS and WarpDrive driver, version
  14.00.00.01-fbsd.

  Their description of the changes is as follows:

  1. Copyright contents has been changed in all respective .c
   and .h files

  2. Support for WRITE12 and READ12 for direct-io (warpdrive only)
   has been added.

  3.      Driver has added checks to see if Drive has READ_CAP_16
   support before sending it down to the device.
   If SPC3_SID_PROTECT flag is set in the inquiry data, the
   device supports protection information, and must support
   the 16 byte read capacity command, otherwise continue without
   sending read cap 16. This will optimize driver performance,
   since it will not send READ_CAP_16 to the drive which does
   not have support of READ_CAP_16.

  4.      With new approach, "MPTIOCTL_RESET_ADAPTER" IOCTL will not
   use DELAY() which is busy loop implementation.
   It will use <msleep> (Better way to sleep without busy
   loop). Also from the HBA reset code path and some other
   places, DELAY() is replaced with msleep() or "pause()",
   which is based on sleep/wakeup style calls.  Driver use
   msleep()/pause() instead of DELAY based on CAN_SLEEP/NO_SLEEP
   flags to avoid busy loop which is not required all the
   time.e.a

   a. While driver is getting loaded, driver calls most of the
      commands with NO_SLEEP.
   b. When Driver is functional and it needs Reinit of HBA,
      CAN_SLEEP flag is used.

  5. <mpslsi> driver is not Endian safe. It will not work on Big
   Endian machines like Sparc and PowerPC platforms because it
   assumes it is running on a Little Endian machine.

   Driver code is modified such way that it does not assume CPU
   arch is Little Endian.
   a. All places where Driver interacts from HBA to Host, it
      converts Little Endian format to CPU format.
   b. All places where Driver interacts from Host to HBA, it
      converts CPU format to Little Endian.

  6. Findout memory leaks in FreeBSD Driver and resolve those,
   such as memory leak in targ's luns creation/deletion.
   Also added additional checks to see memory allocation
   success/fail.

  7. Add loginfo prints as debug message, i.e. When FW sends any
   loginfo, Driver should print those as debug message.
   This will help for debugging purpose.

  8. There is possibility to get config request timeout. Current
   driver is able to detect config request timetout, but it does
   not do anything on config_request timeout.  Driver should
   call mps_reinit() if any request_poll (which is called as
   part of config_request) is time out.

  9. cdb length check is required for 32 byte CDB. Add correct mpi
   control value for 32 bit CDB as below while submitting SCSI IO
   Request to controller.
   mpi_control |= 4 << MPI2_SCSIIO_CONTROL_ADDCDBLEN_SHIFT;

  10. Check the actual status of Message unit reset
   (mps_message_unit_reset).Previously FreeBSD Driver just writes
   MPI2_FUNCTION_IOC_MESSAGE_UNIT_RESET and never check the ack
   (it just wait for 50 millisecond).  So, Driver now check the
   status of "MPI2_FUNCTION_IOC_MESSAGE_UNIT_RESET" after writing
   it to the FW.

   Now it also checking for whether doorbell ack uses msleep with
   proper sleep flags, instead of <DELAY>.

  11. Previously CAM does not detect Multi-Lun Devices. In order to
   detect Multi-Lun Devices by CAM the driver needs following change
   set:
   a. There is "max_lun" field which Driver need to set based on
      hw/fw support. Currently LSI released driver does not set
      this field.
   b. Default of "max_lun" should not be 0 in OS, but it is
      currently set to 0 in CAM layer.
   c. Export max_lun capacity to 255

  12. Driver will not reset target info after port enable complete and
   also do Device removal when Device remove from FW.  The detail
   description is as follows
   a. When Driver receive WD PD add events, it will add all
      information in driver local data structure.
   b. Only for WD, we have below checks after port enable
      completes, where driver clear off all information retrieved
      at #1.
   if ((sc->WD_available &&
               (sc->WD_hide_expose == MPS_WD_HIDE_ALWAYS)) ||
               (sc->WD_valid_config && (sc->WD_hide_expose ==
                              MPS_WD_HIDE_IF_VOLUME)) {
     // clear off target data structure.
   }
   It is mainly not to attach PDs to OS.

   FreeBSD does bus rescan as older Parallel scsi style. So Driver
   needs to handle which Drive is visible to OS.  That is a reason
   we have to clear off targ information for PDs.

   Again, above logic was implemented long time ago. Similar concept
   we have for non-wd also. For that, LSI have introduced different
   logic to hide PDs.

   Eventually, because of above gap, when Phy goes offline, we
   observe below failure. That is what Driver is not doing complete
   removal of device with FW. (which was pointed by Scott)
   Apr  5 02:39:24 Freebsd7 kernel: mpslsi0: mpssas_prepare_remove
   Apr  5 02:39:24 Freebsd7 kernel: mpssas_prepare_remove 497 : invalid handle 0xe

   Now Driver will not reset target info after port enable complete
   and also will do Device removal when Device remove from FW.

  13. Returning "CAM_SEL_TIMEOUT" instead of "CAM_TID_INVALID"
   error code on request to the Target IDs that have no devices
   conected at that moment.  As if "CAM_TID_INVALID" error code
   is returned to the CAM Layaer then it results in a huge chain
   of errors in verbose kernel messages on boot and every
   hot-plug event.

Submitted by: Sreekanth Reddy <Sreekanth.Reddy@lsi.com>

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

11 years agoMFC r237624, r237714, r237716, r237860:
pfg [Sun, 1 Jul 2012 04:26:51 +0000 (04:26 +0000)]
MFC r237624, r237714, r237716, r237860:

Bring llquantize support into Dtrace.

Bryan Cantrill implemented the equivalent of semi-log graph
paper for Dtrace so llquantize will use one logarithmic and
one linear scale.

Illumos Revision: 13355:15b74a2a9a9d

Reference:
https://www.illumos/issues/905

Obtained from: Illumos

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

11 years agoMFC r237178:
eadler [Sun, 1 Jul 2012 00:40:37 +0000 (00:40 +0000)]
MFC r237178:
attach_generic causes missing devices in /dev when the driver interacts with some non-highpoint controollers. Change attach_generic to be off by default.

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

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

11 years agoMerge r237645 from head:
gavin [Sat, 30 Jun 2012 20:25:50 +0000 (20:25 +0000)]
Merge r237645 from head:

  The -S option, to specify the sector size, has been usable on all types
  of memory disks since r135340.  Update the man page to reflect this.

Noticed by: avg

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

11 years agoMFC r237674
thompsa [Sat, 30 Jun 2012 18:58:21 +0000 (18:58 +0000)]
MFC r237674

 Update the usage with the new jail option.

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

11 years agoMFC r236503: free wdog_kern_pat calls in post-panic paths from under
avg [Sat, 30 Jun 2012 14:18:04 +0000 (14:18 +0000)]
MFC r236503: free wdog_kern_pat calls in post-panic paths from under
SW_WATCHDOG

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

11 years agoMFC r236504: cpucontrol: use CPUCTL_UPDATE ioctl on correct file
avg [Sat, 30 Jun 2012 14:06:17 +0000 (14:06 +0000)]
MFC r236504: cpucontrol: use CPUCTL_UPDATE ioctl on correct file
descriptor (in amd case)

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

11 years agoMFC 235024,235029,235556,235834,235845:
jhb [Fri, 29 Jun 2012 21:25:24 +0000 (21:25 +0000)]
MFC 235024,235029,235556,235834,235845:
Use MADT to match ACPI Processor objects to CPUs.  MADT and DSDT/SSDTs may
list CPUs in different orders, especially for disabled logical cores.  Now
we match ACPI IDs from the MADT with Processor objects, strictly order CPUs
accordingly, and ignore disabled cores.  This prevents us from executing
methods for other CPUs, e. g., _PSS for disabled logical core, which may not
exist.  Unfortunately, it is known that there are a few systems with buggy
BIOSes that do not have unique ACPI IDs for MADT and Processor objects.  To
work around these problems, 'debug.acpi.cpu_unordered' tunable is added.
Set this to a non-zero value to restore the old behavior.

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

11 years agoMFC: r236581
marius [Fri, 29 Jun 2012 18:39:31 +0000 (18:39 +0000)]
MFC: r236581

The loaddev environment variable is not modifiable once set, so it is not
update for ZFS. It seems that this does not really affect anything except
the help command. Nevertheless, rearrange things so loaddev is set only
once in all cases in order to get it right.
Pointed out by: avg

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

11 years agoMFC 237337:
jhb [Fri, 29 Jun 2012 17:28:58 +0000 (17:28 +0000)]
MFC 237337:
Only output a list of file systems that need to be dumped if the system
has a non-empty dumpdates file.

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

11 years agoMFC 197552:
jhb [Fri, 29 Jun 2012 17:28:03 +0000 (17:28 +0000)]
MFC 197552:
Silence warning printed by getfsspec(3) when /etc/fstab does not exist
  fstab: /etc/fstab:0: No such file or directory
and from dump(8) when setfsent(3) fails due to /etc/fstab not existing:
  DUMP: Can't open /etc/fstab for dump table information: No such...

This makes daily and security periodic runs somewhat cleaner in jails
which lack /etc/fstab files.

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

11 years agoMFC 233191:
jhb [Fri, 29 Jun 2012 17:21:46 +0000 (17:21 +0000)]
MFC 233191:
Fix madvise(MADV_WILLNEED) to properly handle individual mappings larger
than 4GB.  Specifically, the inlined version of 'ptoa' of the the 'int'
count of pages overflowed on 64-bit platforms.  While here, change
vm_object_madvise() to accept two vm_pindex_t parameters (start and end)
rather than a (start, count) tuple to match other VM APIs as suggested
by alc@.

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

11 years agoMFC 237334:
jhb [Fri, 29 Jun 2012 17:12:26 +0000 (17:12 +0000)]
MFC 237334:
Move the per-thread deferred user map entries list into a private list
in vm_map_process_deferred() which is then iterated to release map entries.
This avoids having a nested vm map unlock operation called from the loop
body attempt to recuse into vm_map_process_deferred().  This can happen if
the vm_map_remove() triggers the OOM killer.

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

11 years agoMFC 237008,237271,237272,237673:
jhb [Fri, 29 Jun 2012 16:30:15 +0000 (16:30 +0000)]
MFC 237008,237271,237272,237673:
- Fix a couple of bugs that prevented windows in PCI-PCI bridges from
  growing "downward" (moving the start address down).  First, an off by
  one error caused the end address to be moved down an extra alignment
  chunk unnecessarily.  Second, when aligning the new candidate starting
  address, the wrong bits were masked off.
- Add a 'wmask' variable to hold the expression '(1ul << w->step) - 1' in
  pcib_grow_window().
- For subtractively decoding bridges, don't try to grow windows but pass
  the request up the tree in order to be on the safe side. Growing windows
  in this case would mean to switch resources to positive decoding and
  it's unclear how to correctly handle this. At least with ALi/ULi M5249
  PCI-PCI bridges, this also just doesn't work out of the box.

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

11 years agoMFC 236577:
jhb [Fri, 29 Jun 2012 15:24:55 +0000 (15:24 +0000)]
MFC 236577:
Allow the -p argument to kdump to accept either a PID or a thread ID.

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

11 years agoMFC: r237219
pho [Fri, 29 Jun 2012 14:14:49 +0000 (14:14 +0000)]
MFC: r237219

In tty_makedev() the following construction:

dev = make_dev_cred();
dev->si_drv1 = tp;

leaves a small window where the newly created device may be opened
and si_drv1 is NULL.

As this is a vary rare situation, using a lock to close the window
seems overkill. Instead just wait for the assignment of si_drv1.

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

11 years agofix a mismerge in r237765
avg [Fri, 29 Jun 2012 13:02:46 +0000 (13:02 +0000)]
fix a mismerge in r237765

sys/boot stable/8 doesn't have Makefile.spac64, instead it has
spar64-specific blocks in Makefile.
This is a direct commit.

Pointyhat to: avg

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

11 years agoMFC r235390: zfs boot code: mark spa_t arguments as const where they are
avg [Fri, 29 Jun 2012 10:31:26 +0000 (10:31 +0000)]
MFC r235390: zfs boot code: mark spa_t arguments as const where they are
used as such

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

11 years agoMFC r235392,235394,235395: fixes and cleanups for zfs boot MFC
avg [Fri, 29 Jun 2012 10:28:40 +0000 (10:28 +0000)]
MFC r235392,235394,235395: fixes and cleanups for zfs boot MFC

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

11 years agoMFC r235330: zfs boot: try to set vfs.root.mountfrom from currdev as a
avg [Fri, 29 Jun 2012 10:22:35 +0000 (10:22 +0000)]
MFC r235330: zfs boot: try to set vfs.root.mountfrom from currdev as a
fallback

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

11 years agoMFC r235329,235343,235361,235364: zfsboot/zfsloader: support accessing
avg [Fri, 29 Jun 2012 10:18:36 +0000 (10:18 +0000)]
MFC r235329,235343,235361,235364: zfsboot/zfsloader: support accessing
filesystems within a pool

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

11 years agoMFC r235264: MFi386: improve argument passing via btxldr
avg [Fri, 29 Jun 2012 10:12:27 +0000 (10:12 +0000)]
MFC r235264: MFi386: improve argument passing via btxldr

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

11 years agoMFC r235219: cdboot, pxeldr: make use of bootargs.h instead of
avg [Fri, 29 Jun 2012 10:10:43 +0000 (10:10 +0000)]
MFC r235219: cdboot, pxeldr: make use of bootargs.h instead of
redefining flag constants

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

11 years agoMFC r235156: i386 zfsloader: rename LIBZFS to LIBZFSBOOT
avg [Fri, 29 Jun 2012 10:07:16 +0000 (10:07 +0000)]
MFC r235156: i386 zfsloader: rename LIBZFS to LIBZFSBOOT

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

11 years agoMFC r235155: i386 boot: consolidate MAXBDDEV definition
avg [Fri, 29 Jun 2012 10:04:23 +0000 (10:04 +0000)]
MFC r235155: i386 boot: consolidate MAXBDDEV definition

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

11 years agoMFC r235154,r235158: btxldr: future-proof argument passing from
avg [Fri, 29 Jun 2012 10:01:52 +0000 (10:01 +0000)]
MFC r235154,r235158: btxldr: future-proof argument passing from
boot1/2-ish to loader

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

11 years agoMFC r235153: sys/boot: add common CTASSERT definition
avg [Fri, 29 Jun 2012 09:56:22 +0000 (09:56 +0000)]
MFC r235153: sys/boot: add common CTASSERT definition

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

11 years agoMFC r237458:
mm [Fri, 29 Jun 2012 06:41:19 +0000 (06:41 +0000)]
MFC r237458:
Import Illumos revision 13736:9f1d48e1681f
2901 ZFS receive fails for exabyte sparse files

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

Obtained from: illumos (issue #2901)

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

11 years agoMFC r237448:
pfg [Fri, 29 Jun 2012 03:03:42 +0000 (03:03 +0000)]
MFC r237448:

Merge changes from upstream libedit.

Here we update most of the files to at least match the
version available in NetBSD's snapshot of 20091228. This
version was chosen because it still doesn't include wide
character support (UTF-8), which involves many changes and
new files.

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

11 years agoMFC 228161,230774,230822,236415:
jhb [Thu, 28 Jun 2012 21:24:56 +0000 (21:24 +0000)]
MFC 228161,230774,230822,236415:
Add a new -e flag to pciconf(8)'s list mode to display PCI error details.
Currently this dumps the status of any error bits in the PCI status register
and PCI-express device status register.  It also lists any errors indicated
by version 1 of PCI-express Advanced Error Reporting (AER).

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

11 years agoMFC 236405:
jhb [Thu, 28 Jun 2012 19:55:46 +0000 (19:55 +0000)]
MFC 236405:
Remove unnecessary initializations.  The BSS of boot2 is in fact
zero'd when boot2 begins execution by the _start() routine in btxcsu.S.

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

11 years agoMFC 235132:
jhb [Thu, 28 Jun 2012 18:52:40 +0000 (18:52 +0000)]
MFC 235132:
Display dropped transmit packets in the daily network interface output.

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

11 years agoMFC 234494:
jhb [Thu, 28 Jun 2012 18:38:50 +0000 (18:38 +0000)]
MFC 234494:
Include the associated wait channel message for context switch ktrace
records.  kdump supports both the old and new messages.

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

11 years agoMFC r237366:
kib [Thu, 28 Jun 2012 16:54:10 +0000 (16:54 +0000)]
MFC r237366:
Fix unbounded-length malloc, controlled from usermode. The added check
is performed before exact size of the buffer is calculated, but the
buffer cannot have size greater then the total space allocated for
extended attributes. The existing check is executing with precise
size, but it is too late, since buffer needs to be allocated in
advance.

Also, adapt to uio_resid being of ssize_t type.  Use lblktosize instead of
multiplying by fs block size by hand as well.

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

11 years agoMFC r237655:
wblock [Thu, 28 Jun 2012 13:11:34 +0000 (13:11 +0000)]
MFC r237655:

Point out that /usr/src, /usr/doc, and /usr/ports may be empty or not
exist until populated with csup(1) or svn(1).

PR: 169487
Submitted by: Moritz Wilhelmy

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

11 years agoMFC r237620:
wblock [Thu, 28 Jun 2012 13:05:56 +0000 (13:05 +0000)]
MFC r237620:

Use possessive "its", no apostrophe.

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

11 years agoMFC r237406:
pfg [Thu, 28 Jun 2012 01:04:59 +0000 (01:04 +0000)]
MFC r237406:

Bring a couple of fixes for gcc optimizations.

The GCC4.3 branch contains some optimization fixes
that were not considered regressions and therefore
were never backported. We are bringing a couple of
them that are under GPLv2 since they were made
before the license switch upstream.

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

11 years agoMFC r235870
thompsa [Wed, 27 Jun 2012 22:13:40 +0000 (22:13 +0000)]
MFC r235870

 Allow the socket list to be limited to a specific jail id.

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

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