]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
12 years agoMFC r233298:
pluknet [Mon, 23 Apr 2012 13:13:46 +0000 (13:13 +0000)]
MFC r233298:
 Garbage collect defunct nlist(3) symbols.

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

12 years agoMFC r234121:
yongari [Mon, 23 Apr 2012 03:40:39 +0000 (03:40 +0000)]
MFC r234121:
  Back out r228476.
  r228476 fixed superfluous link UP/DOWN messages but broke IPMI
  access during boot.  It's not clear why r228476 breaks IPMI and
  should be revisited.

  Reported by: Paul Guyot <paulguyot <> ieee dot org >

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

12 years ago8.3-RELEASE was announced; call this STABLE again.
bz [Sun, 22 Apr 2012 22:39:24 +0000 (22:39 +0000)]
8.3-RELEASE was announced; call this STABLE again.

Reported by: Adrian Wontroba (aw1 stade.co.uk) on stable

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

12 years agoMFC r233387:
bschmidt [Sun, 22 Apr 2012 09:19:19 +0000 (09:19 +0000)]
MFC r233387:
Use suspend/resume methods provided by net80211. This ensures that the
appropriate state handling takes place, not doing so results in the
device doing nothing until manual intervention.

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

12 years agoMFC: revision 232784
nyan [Sun, 22 Apr 2012 03:57:33 +0000 (03:57 +0000)]
MFC: revision 232784

  MFi386: revisions 232570 and 232754

  Fix boot2 to handle boot config files that only contain a custom path to
  a loader or kernel.

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

12 years agoMFC: r228730
melifaro [Sat, 21 Apr 2012 18:30:48 +0000 (18:30 +0000)]
MFC: r228730

Add binding support to libradius(3).
Submitted by:    Sergey Matveychuk <sem33@yandex-team.ru>

Approved by:     kib(mentor)

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

12 years agoMFC r229930
melifaro [Sat, 21 Apr 2012 18:14:46 +0000 (18:14 +0000)]
MFC r229930

Add setsockopt(2) example to ng_ksocket(4).
While here, fix formatting a bit

Approved by:     ae(mentor)

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

12 years agoMFC r233973:
das [Sat, 21 Apr 2012 07:00:00 +0000 (07:00 +0000)]
MFC r233973:
  Fix bugs in remquo{,f,l}.

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

12 years agoMFC: r234303
davide [Fri, 20 Apr 2012 23:00:37 +0000 (23:00 +0000)]
MFC: r234303

Fix a typo.

Approved by: gnn (mentor)

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

12 years agoMFC r227802:
delphij [Fri, 20 Apr 2012 22:27:10 +0000 (22:27 +0000)]
MFC r227802:

Improve the way to calculate available pages in tmpfs:

 - Don't deduct wired pages from total usable counts because it does not
   make any sense.  To make things worse, on systems where swap size is
   smaller than physical memory and use a lot of wired pages (e.g. ZFS),
   tmpfs can suddenly have free space of 0 because of this;
 - Count cached pages as available; [1]
 - Don't count inactive pages as available, technically we could but that
   might be too aggressive; [1]

[1] Suggested by kib@

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

12 years agoMFC of r227310:
rmh [Fri, 20 Apr 2012 22:16:08 +0000 (22:16 +0000)]
MFC of r227310:

Don astbestos garment and remove the warning about TMPFS being experimental
-- highly experimental even. So far the closest to a bug in TMPFS that people
have gotten to relates to how ZFS can take away from the memory that TMPFS
needs. One can argue that such is not a bug in TMPFS. Irrespective, even if
there is a bug here and there in TMPFS, it's not in our own advantage to
scare people away from using TMPFS. I for one have been using it, even with
ZFS, very successfully.

Reviewed by: marcel

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

12 years agoMFC: r233045, r234302
davide [Fri, 20 Apr 2012 22:01:12 +0000 (22:01 +0000)]
MFC: r233045, r234302

r233045:
Add rudimentary profiling of the hash table used in the umtx code to
hold active lock queues.

r234302:
Fix some style bugs introduced in a previous commit (r233045)

Approved by: gnn (mentor)

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

12 years agoMFC: 234234
gnn [Fri, 20 Apr 2012 16:09:28 +0000 (16:09 +0000)]
MFC: 234234

Change SIGUSR1 to SIGTHR to properly wake up a process that is being
traced.  The use of SIGUSR1 caused traced processes (those attached to
with dtrace -p) to exit when dtrace exited.

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

12 years agoMFC: r222475
marius [Fri, 20 Apr 2012 14:45:57 +0000 (14:45 +0000)]
MFC: r222475

Fix read_ivar implementation for MMC and SD.

1. Both mmc_read_ivar() and sdhci_read_ivar() use the expression
'*(int *)result = val' to assign to result which is uintptr_t *.
This does not work on big-endian 64 bit systems.

2. The media_size ivar is declared as 'off_t' which does not fit
into uintptr_t in 32bit systems, change this to long.

Submitted by: kanthms at netlogicmicro com (initial version)

PR: 134745

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

12 years agoMFC of 234158:
mckusick [Thu, 19 Apr 2012 23:04:35 +0000 (23:04 +0000)]
MFC of 234158:

Export vinactive() from kern/vfs_subr.c (e.g., make it no longer
static and declare its prototype in sys/vnode.h) so that it can be
called from process_deferred_inactive() (in ufs/ffs/ffs_snapshot.c)
instead of the body of vinactive() being cut and pasted into
process_deferred_inactive().

Reviewed by: kib

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

12 years agoMFC of 234157:
mckusick [Thu, 19 Apr 2012 22:37:24 +0000 (22:37 +0000)]
MFC of 234157:

Whitespace cleanup.

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

12 years agoMFC r234172:
kib [Thu, 19 Apr 2012 10:53:17 +0000 (10:53 +0000)]
MFC r234172:
Add thread-private flag to indicate that error value is already placed
in td_errno. Flag is supposed to be used by syscalls returning
EJUSTRETURN because errno was already placed into the usermode frame
by a call to set_syscall_retval(9). Both ktrace and dtrace get errno
value from td_errno if the flag is set.

Use the flag to fix sigsuspend(2) error return ktrace records.

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

12 years agoMFC r234336:
mm [Thu, 19 Apr 2012 07:43:44 +0000 (07:43 +0000)]
MFC r234336:
Fix typo miror -> mirror

Reported by: Glen Barber <gjb@FreeBSD.org>

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

12 years agoAdd installation/upgrade instructions for 8.3R.
hrs [Wed, 18 Apr 2012 08:15:55 +0000 (08:15 +0000)]
Add installation/upgrade instructions for 8.3R.

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

12 years agoMFC r234122:
ae [Wed, 18 Apr 2012 05:16:20 +0000 (05:16 +0000)]
MFC r234122:
  It seems that libdisk(3) incorrectly sets d_secperunit value.
  Automatically fix it like GEOM_PART_BSD does.

  PR: bin/165789

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

12 years agoMFC r233179:
ae [Wed, 18 Apr 2012 05:12:17 +0000 (05:12 +0000)]
MFC r233179:
  Document GEOM_PART_LDM scheme and partition types.

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

12 years agoMFC r233176:
ae [Wed, 18 Apr 2012 05:00:25 +0000 (05:00 +0000)]
MFC r233176:
  Add new GEOM_PART_LDM module that implements the Logical Disk Manager
  scheme. The LDM is a logical volume manager for MS Windows NT and it
  is also known as dynamic volumes. It supports about 2000 partitions
  and also provides the capability for software RAID implementations.

  This version implements only partitioning scheme capability and based
  on the linux-ntfs project documentation and several publications across
  the Web. NOTE: JBOD, RAID0 and RAID5 volumes aren't supported.

  An access to the LDM metadata is read-only. When LDM is on the disk
  partitioned with MBR we can also destroy metadata. For the GPT
  partitioned disks destroy action is not supported.

MFC r233177:
  Connect geom_part_ldm module to the build.

MFC r233178:
  Connect geom_part_ldm to the kernel build.

MFC r233181:
  Add CTLFLAG_TUN to sysctls.

MFC r233651:
  Do proper cleanup for the GPT case when an error occurs.

MFC r233652:
  VMDB offset should be greater than logical volume size only for MBR.

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

12 years agoMFC r233175:
ae [Wed, 18 Apr 2012 04:39:37 +0000 (04:39 +0000)]
MFC r233175:
  Make kern.geom.part node not static. Also add CTLFLAG_TUN to the
  check_integrity sysctl.

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

12 years agoMFC 234059:
jhb [Tue, 17 Apr 2012 19:55:55 +0000 (19:55 +0000)]
MFC 234059:
Recognize the RDRAND instruction feature.

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

12 years agoMFC 233296,233300:
pluknet [Tue, 17 Apr 2012 11:55:19 +0000 (11:55 +0000)]
MFC 233296,233300:
 Prevent fs_file NULL pointer dereference.

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

12 years agoMFC r233939:
pluknet [Tue, 17 Apr 2012 11:49:21 +0000 (11:49 +0000)]
MFC r233939:
 Free ballooned pages with the corresponding malloc type.

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

12 years agoMerge 233103 from head:
davidxu [Tue, 17 Apr 2012 09:18:06 +0000 (09:18 +0000)]
Merge 233103 from head:

Some software think a mutex can be destroyed after it owned it, for
example, it uses a serialization point like following:
pthread_mutex_lock(&mutex);
pthread_mutex_unlock(&mutex);
pthread_mutex_destroy(&muetx);
They think a previous lock holder should have already left the mutex and
is no longer referencing it, so they destroy it. To be maximum compatible
with such code, we use IA64 version to unlock the mutex in kernel, remove
the two steps unlocking code.

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

12 years agoMFC r234206:
kevlo [Mon, 16 Apr 2012 01:20:17 +0000 (01:20 +0000)]
MFC r234206:
Partially implement zipinfo (-Z) support.
This fixes some test failures seen with perl 5.12 and 5.14.

PR: bin/166895
Submitted by: swills

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

12 years agoregen
netchild [Sun, 15 Apr 2012 16:56:28 +0000 (16:56 +0000)]
regen

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

12 years agoMFC r232799:
netchild [Sun, 15 Apr 2012 16:55:26 +0000 (16:55 +0000)]
MFC r232799:
  - add comments to syscalls.master and linux(32)_dummy about which linux
    kernel version introduced the sysctl (based upon a linux man-page)
  - add comments to syscalls.master regarding some names of sysctls which are
    different than the linux-names (based upon the linux unistd.h)
  - add some dummy sysctls
  - name an unimplemented sysctl

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

12 years agoMFC r233392, r233679:
trociny [Sat, 14 Apr 2012 17:35:59 +0000 (17:35 +0000)]
MFC r233392, r233679:

r233392:

Fix typo.

r233679:

If hastd is invoked with "-P pidfile" option always create pidfile
regardless of whether -F (foreground) option is set or not.

Also, if -P option is specified, ignore pidfile setting from configuration
not only on start but on reload too. This fixes the issue when for hastd
run with -P option reload caused the pidfile change.

Reviewed by: pjd

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

12 years agoMFC r231813:
eadler [Sat, 14 Apr 2012 02:48:19 +0000 (02:48 +0000)]
MFC r231813:
Add err(3) to strerror(3) SEE ALSO section

Approved by: cperciva (implicit)

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

12 years agoMFC r230347:
eadler [Sat, 14 Apr 2012 02:11:08 +0000 (02:11 +0000)]
MFC r230347:
Fix warning when compiling with gcc46:
error: variable 'addrs' set but not used

Approved by: cperciva (implicit)

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

12 years agoMFC r234134:
eadler [Sat, 14 Apr 2012 02:07:18 +0000 (02:07 +0000)]
MFC r234134:
s/Free Memory Pages/Free Memory/ to avoid confusion, since we're
reporting a number of bytes rather than a number of pages

Approved by: cperciva (implicit)

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

12 years agoMFC: r233888
marius [Fri, 13 Apr 2012 22:04:28 +0000 (22:04 +0000)]
MFC: r233888

- Const'ify the device lookup-table.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.
- Enable support for flow control.
  Tested by: yongari

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

12 years agoMFC r234043: intpm: return only SMB bus error codes from SMB methods
avg [Fri, 13 Apr 2012 08:11:14 +0000 (08:11 +0000)]
MFC r234043: intpm: return only SMB bus error codes from SMB methods

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

12 years agoMFC r234040: intpm: reflect the fact that SB800 and later AMD chipsets
avg [Fri, 13 Apr 2012 08:04:00 +0000 (08:04 +0000)]
MFC r234040: intpm: reflect the fact that SB800 and later AMD chipsets
are not supported

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

12 years agoMFC r233918: zfs_ioctl: no need for ddi_copyin/out here because
avg [Fri, 13 Apr 2012 07:54:09 +0000 (07:54 +0000)]
MFC r233918: zfs_ioctl: no need for ddi_copyin/out here because
sys_ioctl handles that

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

12 years agoMFC r231558: newvers.sh: unbreak git/git-svn support
avg [Fri, 13 Apr 2012 07:44:40 +0000 (07:44 +0000)]
MFC r231558: newvers.sh: unbreak git/git-svn support

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

12 years agoMFC r233000:
ae [Fri, 13 Apr 2012 04:18:12 +0000 (04:18 +0000)]
MFC r233000:
  Add MODULE_DEPEND() to geom_part modules.

MFC r233342:
  Check that scheme is not already registered. This may happens when a
  KLD is preloaded with loader(8) and leads to infinity loop.

  Also do not return EEXIST error code from MOD_LOAD handler, because
  we have undocumented(?) ability replace kernel's module with preloaded one.
  And if we have so, then preloaded module will be initialized first.
  Thus error in MOD_LOAD handler will be triggered for the kernel.

  PR: kern/165573

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

12 years agoMFC: r214018
melifaro [Thu, 12 Apr 2012 17:59:17 +0000 (17:59 +0000)]
MFC: r214018

Add links for libradius(3) functions.

Approved by:     pjd
Approved by:     kib(mentor)

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

12 years agoMFC 233670,233671:
jhb [Thu, 12 Apr 2012 13:47:23 +0000 (13:47 +0000)]
MFC 233670,233671:
- Use VM_MEMATTR_UNCACHEABLE for the constant for UC memory rather than
  VM_MEMATTR_UNCACHED on mips.
- Rename VM_MEMATTR_UNCACHED to VM_MEMATTR_WEAK_UNCACHEABLE on x86 to
  be less ambiguous and more clearly identify what it means.  An alias
  from VM_MEMATTR_WEAK_UNCACHEABLE to VM_MEMATTR_WEAK_UNCACHED remains
  on x86 to preserve the KPI.
- Remove the VM_MEMATTR_UNCACHED alias from powerpc.

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

12 years agoMFC 219737,219740,233676:
jhb [Wed, 11 Apr 2012 20:55:21 +0000 (20:55 +0000)]
MFC 219737,219740,233676:
Improve handling of MSI interrupts with HyperTransport devices:
- Always enable the HyperTransport MSI mapping window for HyperTransport
  to PCI bridges (these show up as HyperTransport slave devices) on
  powerpc.
- Enable the HyperTransport MSI mapping window for HyperTransport to PCI
  bridges when an interrupt is configured via the PCIB_MAP_MSI() call
  on x86.

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

12 years agoMFC 232228,233613:
jhb [Wed, 11 Apr 2012 20:19:29 +0000 (20:19 +0000)]
MFC 232228,233613:
Move the DTrace return IDT vector back up from 0x20 to 0x92.  The 0x20
vector is currently dedicated to servicing IRQ 0 from the 8259A's, so
it shouldn't be overloaded for DTrace.

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

12 years agoMFC 232742:
jhb [Wed, 11 Apr 2012 19:37:36 +0000 (19:37 +0000)]
MFC 232742:
MFamd64:
- Return failure for a suspend attempt if we have no wake address.
- Use intr_disable()/intr_restore() instead of ACPI_DISABLE_IRQS().
- Invoke intr_suspend() earlier and call intr_resume() if suspend
  fails.
- Use pause in the loop waiting for CPU to suspend.
- Restore PAT MSR, switchtime, switchticks, and MTRRs on resume.

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

12 years agoMFC r233688-233689:
yongari [Wed, 11 Apr 2012 07:19:46 +0000 (07:19 +0000)]
MFC r233688-233689:
r233688:
  Remove task queue based link state change handler. Driver no longer
  needs to defer link state handling.
  While I'm here, mark IFF_DRV_RUNNING before changing media.  If
  link is established without any delay, that link state change
  handling could be lost.

r233689:
  Do not report current link status if driver is not running.
  This change also workarounds dhclient's link state handling bug by
  not giving current link status.

  Unlike other controllers, ale(4)'s PHY hibernation perfectly works
  such that driver does not see a valid link if the controller is not
  brought up.  If dhclient(8) runs on ale(4) it will blindly waits
  until link UP and then gives up after 10 seconds.  Because
  dhclient(8) still thinks interface got a valid link when IFM_AVALID
  is not set for selected media,  this change makes dhclient initiate
  DHCP without waiting for link UP.

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

12 years agoMFC r233585-233587:
yongari [Wed, 11 Apr 2012 07:10:58 +0000 (07:10 +0000)]
MFC r233585-233587:
r233585:
  Partially revert r223608 and selectively allow microcode loading
  for 82550C.  For 82550 controllers this change restores CPUSaver
  microcode loading.  Due to silicon bug on 82550 and 82550C with
  server extension, these controllers seem to require CPUSaver
  microcode to receive fragmented UDP datagrams.  However the
  microcode shouldn't be used on client featured 82550C as it locks
  up the controller.  In addition, client featured 82550C does not
  have the silicon bug.  Also clear temporary memory used for
  microcode loading since the same memory area is used for other
  commands.
  While I'm here use 82550C in probe message instead of generic
  82550.

  Reported by: Andreas Longwitz <longwitz <> incore de>
  Tested by: Andreas Longwitz <longwitz <> incore de>

r233586:
  Load entire EEPROM contents in device attach time and verify
  whether the checksum of EEPROM is valid or not.  Because driver
  heavily relies on EEPROM information when it selectively enables
  features/workarounds, it would be helpful to know whether driver
  sees valid EEPROM.
  While I'm here remove all other EEPROM accesses since the entire
  EEPROM is loaded at device attach time.

r233587:
  Remove unnecessary #if as the software workaround for PCI protocol
  violation should be activated unless the system is cold-booted
  after updating EEPROM.
  The PCI protocol violation happens only when established link is
  10Mbps so the workaround should be updated whenever link state
  change is detected.  Previously the workaround was activated only
  when user checks current media status with ifconfig(8).

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

12 years agoMFC r233609, r233610:
kib [Wed, 11 Apr 2012 05:11:33 +0000 (05:11 +0000)]
MFC r233609, r233610:
Restore the writes of atimes, quotas and superblock from syncer vnode.

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

12 years agoMFC r233102:
kib [Tue, 10 Apr 2012 10:50:55 +0000 (10:50 +0000)]
MFC r233102:
Do not claim that msync(2) is obsoleted [1].
Document EIO from msync(2).

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

12 years agoMFC r233100:
kib [Tue, 10 Apr 2012 10:44:41 +0000 (10:44 +0000)]
MFC r233100:
In vm_object_page_clean(), do not clean OBJ_MIGHTBEDIRTY object flag
if the filesystem performed short write and we are skipping the page
due to this.

Propogate write error from the pager back to the callers of
vm_pageout_flush().  Report the failure to write a page from the
requested range as the FALSE return value from vm_object_page_clean(),
and propagate it back to msync(2) to return EIO to usermode.

While there, convert the clearobjflags variable in the
vm_object_page_clean() and arguments of the helper functions to
boolean.

PR: kern/165927
Tested by: David Wolfskill

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

12 years agoMFC: r233923
pfg [Mon, 9 Apr 2012 18:33:59 +0000 (18:33 +0000)]
MFC: r233923

Fix a typo in GCC affecting calculations with -ffast-math.

The fix is similar to the one applied in GCC-4.3 in
GCCSVN-r117929 under the GPLv2.

Submitted by: Andrey Simonenko
Reviewed by: mm
Approved by: jhb (mentor)

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

12 years agoMFC: 232612
gnn [Mon, 9 Apr 2012 16:14:58 +0000 (16:14 +0000)]
MFC: 232612

 Properly mask off bits that are not supported in the IAP counters.
 This fixes a bug where users would see massively large counts, near
 to 2**64 -1, due to the bits not being cleared.

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

12 years agoMFC: r232327
rmacklem [Mon, 9 Apr 2012 15:34:23 +0000 (15:34 +0000)]
MFC: r232327
Fix the NFS clients so that they use copyin() instead of bcopy(),
when doing direct I/O. This direct I/O code is not enabled by default.

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

12 years agoMFC r219418:
emaste [Mon, 9 Apr 2012 13:29:24 +0000 (13:29 +0000)]
MFC r219418:

  Remove stray semicolon.  This fix appears in later upstream gdb versions.

PR: gnu/136705
Submitted by: eadler

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

12 years agoMFC: r2323467
rmacklem [Mon, 9 Apr 2012 04:05:22 +0000 (04:05 +0000)]
MFC: r2323467
The name caching changes of r230394 exposed an intermittent bug
in the new NFS server for NFSv4, where it would report ENOENT
when the file actually existed on the server. This turned out
to be caused by not initializing ni_topdir before calling lookup()
and there was a rare case where the value on the stack location
assigned to ni_topdir happened to be a pointer to a ".." entry,
such that "dp == ndp->ni_topdir" succeeded in lookup().
This patch initializes ni_topdir to fix the problem.

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

12 years agoMFC: r232050
rmacklem [Mon, 9 Apr 2012 03:39:50 +0000 (03:39 +0000)]
MFC: r232050
hrs@ reported a panic to freebsd-stable@ under the subject line
"panic in 8.3-PRERELEASE" on Feb. 22, 2012. This panic was caused
by use of a mix of tsleep() and msleep() calls on the same event
in the new NFS server DRC code. It did "mtx_unlock(); tsleep();"
in two places, which kib@ noted introduced a slight risk that the
wakeup() would occur before the tsleep(), resulting in a 10sec
delay before waking up. This patch fixes the problem by replacing
"mtx_unlock(); tsleep();" with mtx_sleep(..PDROP..). It also
changes a nfsmsleep() call to mtx_sleep() so that the code uses
mtx_sleep() consistently within the file.

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

12 years agoMFC: r231805
rmacklem [Mon, 9 Apr 2012 03:08:22 +0000 (03:08 +0000)]
MFC: r231805
Delete a couple of out of date comments that are no longer true in
the new NFS client.

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

12 years agoUpdate PMC events from October 2011 Intel documentation.
davide [Sun, 8 Apr 2012 20:56:47 +0000 (20:56 +0000)]
Update PMC events from October 2011 Intel documentation.

Approved by: gnn (mentor)

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

12 years agoMFC: r229469
davide [Sun, 8 Apr 2012 20:44:57 +0000 (20:44 +0000)]
MFC: r229469

Add missing MSR programming for some events.

Submitted by: me
Approved by: gnn (mentor)

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

12 years agoMFC r233284:
bschmidt [Sun, 8 Apr 2012 09:33:50 +0000 (09:33 +0000)]
MFC r233284:
Update the firmware to version 0.236

Submitted by: PseudoCylon

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

12 years agoGuess at when we will be able to announce 8.3-RELEASE.
kensmith [Sun, 8 Apr 2012 05:03:46 +0000 (05:03 +0000)]
Guess at when we will be able to announce 8.3-RELEASE.

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

12 years agoMFC r232839: sh: Add a test for variables with underscores in arithmetic.
jilles [Sat, 7 Apr 2012 20:56:29 +0000 (20:56 +0000)]
MFC r232839: sh: Add a test for variables with underscores in arithmetic.

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

12 years agosh: Allow variables starting with underscores in arithmetic.
jilles [Sat, 7 Apr 2012 20:52:21 +0000 (20:52 +0000)]
sh: Allow variables starting with underscores in arithmetic.

This is a direct commit because I do not want to merge the totally rewritten
arithmetic expression code from 9.x where this already works.

Example:
  _x=1; _x=$((_x+1))

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

12 years agoMFC: r233827
marius [Sat, 7 Apr 2012 12:46:53 +0000 (12:46 +0000)]
MFC: r233827

Fix probing of SAS1068E with a device ID of 0x0059 after r232411 (MFC'ed
to stable/8 in r232563).
Reported by: infofarmer

MFC: r233886

Refine r233827; as it turns out, controllers with a device ID of 0x0059
can be upgraded to MegaRAID mode, in which case mfi(4) should attach to
these based on the sub-vendor and -device ID instead (not currently done).
Therefore, let mpt_pci_probe() return BUS_PROBE_LOW_PRIORITY.
While it, let mpt_pci_probe() return BUS_PROBE_DEFAULT instead of 0 in
the default case.

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

12 years agoMFC r233390:
trociny [Fri, 6 Apr 2012 16:32:29 +0000 (16:32 +0000)]
MFC r233390:

When displaying binary information show also osreldate.

Suggested by: kib

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

12 years agoMFC r233389:
trociny [Fri, 6 Apr 2012 16:30:17 +0000 (16:30 +0000)]
MFC r233389:

Add a sysctl to set and retrieve binary osreldate of another process.

Suggested by: kib
Reviewed by: kib

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

12 years agoMFC r228648:
trociny [Thu, 5 Apr 2012 18:43:27 +0000 (18:43 +0000)]
MFC r228648:

On start most of sysctl_kern_proc functions use the same pattern:
locate a process calling pfind() and do some additional checks like
p_candebug(). To reduce this code duplication a new function pget() is
introduced and used.

As the function may be useful not only in kern_proc.c it is in the
kernel name space.

Suggested by: kib
Reviewed by: kib

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

12 years agoUpdate relevant to the 9.6-ESV-R6 release.
dougb [Thu, 5 Apr 2012 04:32:57 +0000 (04:32 +0000)]
Update relevant to the 9.6-ESV-R6 release.

Add Bv9ARM.pdf to the list of docs to install.

(Direct commit because this file varies widely between BIND versions)

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

12 years agoUpdate to version 9.6-ESV-R6, the latest from ISC, which contains numerous
dougb [Thu, 5 Apr 2012 04:31:17 +0000 (04:31 +0000)]
Update to version 9.6-ESV-R6, the latest from ISC, which contains numerous
bug fixes.

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

12 years agoMFC: r233747, r233748
marius [Wed, 4 Apr 2012 21:19:24 +0000 (21:19 +0000)]
MFC: r233747, r233748

- Fix panic on kernel traps having a mapping in trap_sig b0rked in r206086
  (MFC'ed to stable/8 in r206198).
  Reported by: David E. Cross
- Remove checks that are redundant due to tf_type being unsigned.

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

12 years agoMFC r225610: Print the package name on deletion errors.
pluknet [Wed, 4 Apr 2012 13:22:10 +0000 (13:22 +0000)]
MFC r225610: Print the package name on deletion errors.

PR: bin/160516
Approved by: portmgr (pav)
Obtained from: NetBSD

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

12 years agoMFC r232165, r232247 (partial), r232307:
mm [Wed, 4 Apr 2012 09:14:16 +0000 (09:14 +0000)]
MFC r232165, r232247 (partial), r232307:

MFC r232165:
Introduce the "ruleset=number" option for devfs(5) mounts.
Add support for updating the devfs mount (currently only changing the
ruleset number is supported).
Check mnt_optnew with vfs_filteropt(9).

This new option sets the specified ruleset number as the active ruleset
of the new devfs mount and applies all its rules at mount time. If the
specified ruleset doesn't exist, a new empty ruleset is created.

MFC r232247 (partial):
mdoc(7) type - start new sentences on new line

MFC r232307:
Add "export" to devfs_opts[] and return EOPNOTSUPP if called with it.
Fixes mountd warnings.

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

12 years agoMFC r230397, r230438, r232064:
mm [Wed, 4 Apr 2012 08:19:13 +0000 (08:19 +0000)]
MFC r230397, r230438, r232064:

MFC r230397 (pjd):
By default turn off prefetch when listing snapshots.
In my tests it makes listing snapshots 19% faster with cold cache and
47% faster with warm cache.

MFC r230438 (pjd):
Dramatically optimize listing snapshots when user requests only snapshot
names and wants to sort them by name, ie. when executes:

# zfs list -t snapshot -o name -s name

Because only name is needed we don't have to read all snapshot properties.

Below you can find how long does it take to list 34509 snapshots from a single
disk pool before and after this change with cold and warm cache:

before:

# time zfs list -t snapshot -o name -s name > /dev/null
cold cache: 525s
warm cache: 218s

after:

# time zfs list -t snapshot -o name -s name > /dev/null
cold cache: 1.7s
warm cache: 1.1s

MFC r232064:
Import illumos changeset 13608 [1]:

add support for "-t <datatype>" argument to zfs get

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

Update zfs(8) manpage in respect of [1].
Fix typo in zfs(8) manpage.

Obtained from: illumos (issue #1936) [1]

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

12 years agoMFC r233608:
kib [Wed, 4 Apr 2012 05:33:28 +0000 (05:33 +0000)]
MFC r233608:
Microoptimize: in qsync loop over mount vnodes, only unlock mount
interlock after we committed to try to vget() the vnode.

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

12 years agoMFC r233571:
bschmidt [Tue, 3 Apr 2012 17:08:34 +0000 (17:08 +0000)]
MFC r233571:
strip (R) to match manpage and pci_vendors

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

12 years agoMFC r233568:
bschmidt [Tue, 3 Apr 2012 17:05:26 +0000 (17:05 +0000)]
MFC r233568:
Add a list of available devices which matches the names shown by pciconf.
While here add 2 missing firmware modules.

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

12 years agoMFC r233567:
bschmidt [Tue, 3 Apr 2012 17:03:33 +0000 (17:03 +0000)]
MFC r233567:
Add support for 6150 series devices.

Tested by: Shane Riddle <sh4neriddle at yahoo dot com>

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

12 years agoMFC r233544:
fabient [Tue, 3 Apr 2012 07:48:58 +0000 (07:48 +0000)]
MFC r233544:
Fix random deadlock on pmcstat exit:
- Exit the thread when soft shutdown is requested
- Wakeup owner thread.

Reproduced/tested by looping pmcstat measurement:
pmcstat -S instructions -O/tmp/test ls

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

12 years agoMFC 232700:
jhb [Mon, 2 Apr 2012 20:34:41 +0000 (20:34 +0000)]
MFC 232700:
Add a new sched_clear_name() method to the scheduler interface to clear
the cached name used for KTR_SCHED traces when a thread's name changes.
This way KTR_SCHED traces (and thus schedgraph) will notice when a thread's
name changes, most commonly via execve().

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

12 years agoMFC: r233701
marius [Mon, 2 Apr 2012 20:14:40 +0000 (20:14 +0000)]
MFC: r233701

- Remove erroneous trailing semicolon. [1]
- Correctly determine the maximum payload size for setting the TX link
  frequent NACK latency and replay timer thresholds.

Submitted by: stefanf [1]

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

12 years agoMFC r231976:
trociny [Mon, 2 Apr 2012 18:54:10 +0000 (18:54 +0000)]
MFC r231976:

unp_connect() may use a shared lock on the vnode to fetch the socket.

Suggested by: jhb
Reviewed by: jhb, kib, rwatson

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

12 years agoMFC: r233702
jkim [Mon, 2 Apr 2012 18:27:06 +0000 (18:27 +0000)]
MFC: r233702

Work around Erratum 721 for AMD Family 10h and 12h processors.

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

12 years agoMFC: r233619
jkim [Mon, 2 Apr 2012 17:34:50 +0000 (17:34 +0000)]
MFC: r233619

Add a PNP ID for Japanese 106-key keyboard.

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

12 years agoMFC Revision 233465
gibbs [Mon, 2 Apr 2012 16:50:48 +0000 (16:50 +0000)]
MFC Revision 233465

Correct failure to attach the PV block front device on Citrix
XenServer configurations that advertise the multi-page ring extension,
but only allow a single page of ring space.

sys/dev/xen/blkfront/blkfront.c:
If only one page of ring space is being used, do not publish
in the XenStore the number of pages in use (1), via either
of the supported multi-page ring extension schemes.

Single page operation is the same with or without the
ring-page extension being negotiated.   Relying on the
legacy behavior avoids an incompatible difference in how
the two ring-page extension schemes that are out in the
wild deal with the base case of a single page.  The
Amazon/Red Hat drivers use the same XenStore variable as
if the extension was not negotiated.  The Citrix drivers
assume the new ring reference XenStore variables will be
available.

Reported by: Oliver Schonefeld <schonefeld@ids-mannheim.de>

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

12 years agoMFC r233663:
jimharris [Mon, 2 Apr 2012 16:36:44 +0000 (16:36 +0000)]
MFC r233663:

Fix bug where isci(4) would report only 15 bytes of returned data on a
READ_CAP_16 comnmand to a SATA target.

Sponsored by: Intel
Approved by: sbruno

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

12 years agoMFC r233622:
jimharris [Mon, 2 Apr 2012 16:31:53 +0000 (16:31 +0000)]
MFC r233622:

Ensure consistent target IDs for direct-attached devices.

Sponsored by: Intel
Reported by: sbruno, Ravi Pokala <rpokala at panasas dot com>
Tested by: Ravi Pokala <rpokala at panasas dot com>
Approved by: sbruno

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

12 years agoMFC r232828:
kib [Sun, 1 Apr 2012 21:35:34 +0000 (21:35 +0000)]
MFC r232828:
ELF image can have several PT_NOTE program headers.  Look for the ELF
brand note in each header, instead of using only first one.

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

12 years agoMFC r233101:
kib [Sun, 1 Apr 2012 21:13:13 +0000 (21:13 +0000)]
MFC r233101:
Add sysctl vfs.nfs.nfs_keep_dirty_on_error to switch the nfs client
behaviour on error from write RPC back to behaviour of old nfs client.
When set to not zero, the pages for which write failed are kept dirty.

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

12 years agoMFC r233607:
kib [Sun, 1 Apr 2012 21:08:56 +0000 (21:08 +0000)]
MFC r233607:
Update comment.

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

12 years agoMFC r208190, r229667, r230541, r230869, r231909, r231910, r231911, r231912:
trociny [Sun, 1 Apr 2012 20:56:07 +0000 (20:56 +0000)]
MFC r208190, r229667, r230541, r230869, r231909, r231910, r231911, r231912:

r208190 (ivoras):

Slightly improve wording.

r229667, r230541, r230869 (ghelmer):

Change the notes about the pidfile to include Doug's preference
for pre-creating the pidfile with appropriate owner and permissions.

Requested by dougb

r231909:

The pidfile_open(3) is going to be fixed to set close-on-exec in order
not to leak the descriptor after exec(3). This raises the issue for
daemon(3) of the pidfile lock to be lost when the child process
executes.

To solve this and also to have the pidfile cleaned up when the program
exits, if a pidfile is specified, spawn a child to exec the command
and wait in the parent keeping the pidfile locked until the child
process exits and remove the file.

Reported by: Andrey Zonov <andrey zonov org>
Suggested by: pjd
Reviewed by: pjd

r231910:

If the supervising process receives SIGTERM, forward it to the spawned
process.  Normally it will cause the child to exit followed by the
termination of the supervisor after removing the pidfile.

This looks like desirable behavior, because termination of a
supervisor usually supposes termination of its charge. Also it will
fix the issue with stale pid files after reboot due to init kills a
supervisor before its child exits.

r231911:

Add -r option to restart the program if it has been terminated.

Suggested by: Andrey Zonov <andrey zonov org>

r231912:

If permitted protect the supervisor against pageout kill.

Suggested by: Andrey Zonov <andrey zonov org>

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

12 years agoMFC r233256
alc [Sat, 31 Mar 2012 18:29:24 +0000 (18:29 +0000)]
MFC r233256
  Eliminate vm.pmap.shpgperproc and vm.pmap.pv_entry_max because they no
  longer serve any purpose.

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

12 years agoMFC: r233427
marius [Sat, 31 Mar 2012 10:47:40 +0000 (10:47 +0000)]
MFC: r233427

Add cas(4), gem(4) and hme(4) to x86 GENERICs as suggested by netchild@ in
<20120222095239.Horde.0hpYHJjmRSRPRKzXsoFRbYk@webmail.leidinger.net>.
According to some private emails received, it apparently is not unpopular
to use at least Quad GigaSwift cards driven by cas(4) in x86 machines.

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

12 years agoMFC: r233425
marius [Sat, 31 Mar 2012 10:27:00 +0000 (10:27 +0000)]
MFC: r233425

Consistently update to the MPI header set version 01.05.20 after r224761
(MFC'ed to stable/8 in r224820).
Requested by: mjacob

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

12 years agoMFC: r233426
marius [Sat, 31 Mar 2012 10:20:50 +0000 (10:20 +0000)]
MFC: r233426

Add QGE-X to the list of known-working cards.

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

12 years agoMFC r233328,r233382:
bschmidt [Sat, 31 Mar 2012 08:46:11 +0000 (08:46 +0000)]
MFC r233328,r233382:
Fix incorrect parameter usage.

Submitted by: Monthadar Al Jaberi

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

12 years agoMFC: r233423
marius [Sat, 31 Mar 2012 01:21:53 +0000 (01:21 +0000)]
MFC: r233423

Initialize the mutexes used for the NVM and the swflag as MTX_DUPOK in
order to avoid otherwise harmless witness warnings when these are acquired
at the same time and due to both using MTX_NETWORK_LOCK as their type.
The right fix actually would be to use different, descriptive types for
these. However, the latter would require undesirable changes to the shared
code base. Another approach would be to just supply NULL as the type, which
was deemed as less desirable though as it would cause the unique but cryptic
name also to be used for the type and to diverge from the type used by other
network device drivers.

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

12 years agoMFC: r233421
marius [Sat, 31 Mar 2012 00:13:46 +0000 (00:13 +0000)]
MFC: r233421

Given that this is a host-PCI-Express bridge driver, create the parent
DMA tag with a 4 GB boundary as required by PCI-Express. With r232403
(MFC'ed to stable/8 in r233394) in place this actually is redundant.
However, the host-PCI-Express bridge driver is the more appropriate
place for implementing this restriction.

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

12 years agoMFC: r233403, r233404
marius [Sat, 31 Mar 2012 00:10:17 +0000 (00:10 +0000)]
MFC: r233403, r233404

- Use the PCI ID macros from mpi_cnfg.h rather than duplicating them here.
  Note that this driver additionally probes some device IDs for the most
  part not know to other MPT drivers, if at all. So rename the macros not
  present in mpi_cnfg.h to match the naming scheme in the latter and but
  suffix them with a _FB in order to not cause conflicts.
- Like mpt_set_config_regs(), comment out mpt_read_config_regs() as the
  content of the registers read isn't actually used and both functions
  aren't exactly up to date regarding the possible layouts of the BARs
  (these function might be helpful for debugging though, so don't remove
  them completely).
- Use DEVMETHOD_END.
- Use NULL rather than 0 for pointers.
- Remove an unusual check for the softc being NULL.
- Remove redundant zeroing of the softc.
- Remove an overly banal and actually partly incorrect as well as partly
  outdated comment regarding the allocation of the memory resource.

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

12 years agoMFC: r233287
marius [Sat, 31 Mar 2012 00:07:54 +0000 (00:07 +0000)]
MFC: r233287

Use the common/shared CRC-32 implementation instead of duplicating it.

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

12 years agoMFC: r233282
marius [Fri, 30 Mar 2012 23:56:19 +0000 (23:56 +0000)]
MFC: r233282

- First pass at const'ifying ata(4) as appropriate.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.

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