]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
10 years agoMFC r254237:
dteske [Wed, 14 Aug 2013 16:15:14 +0000 (16:15 +0000)]
MFC r254237:
Add optional support for default override of standard setup; but only if
corresponding functions are provided. If override function does not exist,
boot remains unmodified. This patch should not result in any changes.

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

10 years agoMFC r253850:
markj [Wed, 14 Aug 2013 02:36:21 +0000 (02:36 +0000)]
MFC r253850:
Properly print arguments to vfork(2) and rfork(2).

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

10 years agoMFC r254017:
markj [Wed, 14 Aug 2013 02:00:37 +0000 (02:00 +0000)]
MFC r254017:
Fill in the description fields for M_FICT_PAGES.

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

10 years agoMFC r254020:
markj [Wed, 14 Aug 2013 01:55:01 +0000 (01:55 +0000)]
MFC r254020:
Add a missing module version declaration to if_tun(4).

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

10 years agoMerge r254263:
scottl [Tue, 13 Aug 2013 22:05:50 +0000 (22:05 +0000)]
Merge r254263:

Update PCI drivers to no longer look at the MEMIO-enabled bit in the PCI
command register.  The lazy BAR allocation code in FreeBSD sometimes
disables this bit when it detects a range conflict, and will re-enable
it on demand when a driver allocates the BAR.  Thus, the bit is no longer
a reliable indication of capability, and should not be checked.  This
results in the elimination of a lot of code from drivers, and also gives
the opportunity to simplify a lot of drivers to use a helper API to set
the busmaster enable bit.

This changes fixes some recent reports of disk controllers and their
associated drives/enclosures disappearing during boot.

Candidate for 9.2

Submitted by: jhb
Reviewed by: jfv, marius, adrian, achim

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

10 years agoMFC r254132:
erwin [Tue, 13 Aug 2013 06:25:17 +0000 (06:25 +0000)]
MFC r254132:
  Add empty zones for Shared Address Space (RFC 6598)

Approved by:  delphij (mentor)
Sponsored by: DK Hostmaster A/S

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

10 years agoMFC r252890, 252906, r252907, r253861, r254104:
pfg [Sun, 11 Aug 2013 02:53:18 +0000 (02:53 +0000)]
MFC r252890, 252906, r252907, r253861, r254104:

Implementation of the HTree directory index.

This is a port of NetBSD's GSoC 2012 Ext3 HTree directory indexing
by Vyacheslav Matyushin.  It was cleaned up and enhanced for FreeBSD
by Zheng Liu (lz@).

This is an excellent example of work shared among different projects:
Vyacheslav was able to look at an early prototype from Zheng Liu who
was also able to check the code from Haiku (with permission).

As in linux, the feature is not available by default and must be
enabled explicitly with tune2fs. We still do not support the
workarounds required in readdir for NFS.

Submitted by: Zheng Liu
Tested by: Mike Ma
Sponsored by: Google Inc.

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

10 years agoMFC: r253926
smh [Sun, 11 Aug 2013 01:14:46 +0000 (01:14 +0000)]
MFC: r253926

zfs_ioc_rename should not leave the value of zc_name passed in via zc altered
on return.

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

10 years agoMFC: r251782, r251783, r253994
marius [Sat, 10 Aug 2013 00:06:56 +0000 (00:06 +0000)]
MFC: r251782, r251783, r253994

- Remove conflicting macros from SPARC64's atomic(9) header.
- Add MD (for now) atomic_store_acq_<type>() and use it in pmap_activate()
  to get the semantics when setting the PMAP right.

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

10 years agoMFC: r241374
marius [Sat, 10 Aug 2013 00:00:19 +0000 (00:00 +0000)]
MFC: r241374

Add an unified macro to deny ability from the compiler to reorder
instruction loads/stores at its will.
The macro __compiler_membar() is currently supported for both gcc and
clang, but kernel compilation will fail otherwise.

Reviewed by: bde, kib
Discussed with: dim, theraven

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

10 years agoMFC: r253902
marius [Fri, 9 Aug 2013 21:04:00 +0000 (21:04 +0000)]
MFC: r253902

Const'ify scc_driver_name.

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

10 years agoMFC: r253900
marius [Fri, 9 Aug 2013 21:01:41 +0000 (21:01 +0000)]
MFC: r253900

- Use NULL instead of 0 for pointers.
- Remove unnecessary __RMAN_RESOURCE_VISIBLE.

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

10 years agoMFC: r253899, r253920
marius [Fri, 9 Aug 2013 20:58:06 +0000 (20:58 +0000)]
MFC: r253899, r253920

- Implement iclear methods for QUICC and SAB 82532. With r253161 in place,
  this is is crucial at least for the latter.
  What happens is that attaching uart(4) to scc(4) causes the SAB 82532 to
  "receive" something and trigger a SER_INT_RXREADY interrupt, given that
  at least fast/filter interrupts are already enabled. Prior to r253161,
  uart_bus_ihand() was set up at this point and handled that condition,
  i. e. read the RX FIFO and issued a Receive Message Complete.
  Now, uart_bus_ihand() and uart_intr() are setup after attaching uart(4),
  leaving the SER_INT_RXREADY interrupt triggered during the latter to
  be handled by the iclear method. However, with that method not implement,
  this in turn causes SAB 82532 to not issue any further SER_INT_RXREADY
  interrupts until the RX FIFO is full again. Thus, 15 received bytes go
  to nowhere, given that "the other half" of the RX FIFO is used for status
  information. Hence, implementing sab82532_bfe_iclear() fixes things again.
  Potentially, the same problem exists for QUICC.
- Remove unnecessary __RMAN_RESOURCE_VISIBLE.
- Remove a superfluous header.
- Use KOBJMETHOD_END.
- Mark unused arguments as such.
- Remove variables unused after initialization.

Reviewed by: marcel (earlier version)

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

10 years agoMFC: r253742
marius [Fri, 9 Aug 2013 19:45:55 +0000 (19:45 +0000)]
MFC: r253742

- Add const-qualifiers to the arguments of isonum_*().
- According to ISO 9660 7.1.2, isonum_712() should return a signed value.
- Try to get isonum_*() closer to style(9).

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

10 years agoMFC: r253266
marius [Fri, 9 Aug 2013 19:44:19 +0000 (19:44 +0000)]
MFC: r253266

Prefix the alias macros for members of struct __mcontext with an underscore
in order to avoid a clash in the net80211 code.

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

10 years agoMFC: 254004
marius [Fri, 9 Aug 2013 18:54:27 +0000 (18:54 +0000)]
MFC: 254004

As it turns out, MSIs are broken with 2820SA so introduce an AAC_FLAGS_NOMSI
quirk and apply it to these controllers [1]. The same problem was reported
for 2230S, in which case it wasn't actually clear whether the culprit is the
controller or the mainboard, though. In order to be on the safe side, flag
MSIs as being broken with the latter type of controller as well. Given that
these are the only reports of MSI-related breakage with aac(4) so far and
OSes like OpenSolaris unconditionally employ MSIs for all adapters of this
family, however, it doesn't seem warranted to generally disable the use of
MSIs in aac(4).
While at it, simplify the MSI allocation logic a bit; there's no need to
check for the presence of the MSI capability on our own as pci_alloc_msi(9)
will just fail when these kind of interrupts are not available.
Reported and tested by: David Boyd [1]

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

10 years agoMFC r252435, r252437, r253163:
pfg [Fri, 9 Aug 2013 17:52:56 +0000 (17:52 +0000)]
MFC r252435, r252437, r253163:
Change i_gen in UFS to an unsigned type.

In UFS, i_gen is a random generated value and there is not way for
it to be negative. Actually, the value of i_gen is just used to
match bit patterns and it is of no consequence if the values are
signed or not. Following other filesystems, set it to unsigned,

Calculation for older filesystems remains untouched.

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

10 years agoMFC r253173:
pfg [Fri, 9 Aug 2013 16:27:51 +0000 (16:27 +0000)]
MFC r253173:

Implement 1003.1-2001 pathconf() keys.
This is based on r106058 in UFS.

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

10 years agoMFC r242688: Hook in new files menusets.4th and manual.
dteske [Fri, 9 Aug 2013 14:17:47 +0000 (14:17 +0000)]
MFC r242688: Hook in new files menusets.4th and manual.

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

10 years agoreleng/9.2 was branched, so call this -PRERELEASE again for the duration
gjb [Fri, 9 Aug 2013 12:19:38 +0000 (12:19 +0000)]
releng/9.2 was branched, so call this -PRERELEASE again for the duration
of the 9.2-RELEASE cycle.

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

10 years agoMFC alignment fix for libcxxrt.
theraven [Fri, 9 Aug 2013 09:34:11 +0000 (09:34 +0000)]
MFC alignment fix for libcxxrt.

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

10 years agoRegenerate.
kib [Fri, 9 Aug 2013 06:54:52 +0000 (06:54 +0000)]
Regenerate.

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

10 years agoMFC r253530:
kib [Fri, 9 Aug 2013 06:51:34 +0000 (06:51 +0000)]
MFC r253530:
Implement compat32 wrappers for the ktimer_* syscalls.

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

10 years agoRegenerate.
kib [Fri, 9 Aug 2013 06:27:20 +0000 (06:27 +0000)]
Regenerate.

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

10 years agoMFC r253529:
kib [Fri, 9 Aug 2013 06:25:31 +0000 (06:25 +0000)]
MFC r253529:
Wrap kmq_notify(2) for compat32 to properly consume struct sigevent32
argument.

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

10 years agoRegenerate.
kib [Fri, 9 Aug 2013 06:23:22 +0000 (06:23 +0000)]
Regenerate.

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

10 years agoMFC r253528:
kib [Fri, 9 Aug 2013 06:20:59 +0000 (06:20 +0000)]
MFC r253528:
The freebsd32_lio_listio() compat syscall takes the struct sigevent32.

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

10 years agoMFC r253527:
kib [Fri, 9 Aug 2013 06:01:52 +0000 (06:01 +0000)]
MFC r253527:
Move the convert_sigevent32() utility function into freebsd32_misc.c
for consumption outside the vfs_aio.c.

For SIGEV_THREAD_ID and SIGEV_SIGNAL notification delivery methods,
also copy in the sigev_value, since librt event pumping loop compares
note generation number with the value passed through sigev_value.

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

10 years agoFixup mergeinfo.
delphij [Fri, 9 Aug 2013 01:27:05 +0000 (01:27 +0000)]
Fixup mergeinfo.

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

10 years agoMFC 235964,236311,247505
jfv [Fri, 9 Aug 2013 00:39:20 +0000 (00:39 +0000)]
MFC 235964,236311,247505
Add the INET opt file creation, module name change, and include
making the Makefile match HEAD.

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

10 years agoCommit missing mergeinfo for SVN r254109 (commit performed in wrong sub-
dteske [Thu, 8 Aug 2013 23:53:47 +0000 (23:53 +0000)]
Commit missing mergeinfo for SVN r254109 (commit performed in wrong sub-
dir of where the merge was done -- pointy-hat).

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

10 years agoSynchronize stable/9 Forth code with head via MFC of 22 revisions:
dteske [Thu, 8 Aug 2013 22:49:18 +0000 (22:49 +0000)]
Synchronize stable/9 Forth code with head via MFC of 22 revisions:
227727, 233941, 235560, 238431, 241310, 241361, 241363, 241365, 241367,
241523, 242667-242669, 242923, 243114, 243660, 244048, 244089, 244158,
253715, 254105, and 254108.

This includes critical fixes that sadly should have been merged prior.
Namely, SVN r244158 fixes a possible regression.

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

10 years agoRecord r253176 and r253179 into svn:mergeinfo.
hrs [Thu, 8 Aug 2013 18:40:19 +0000 (18:40 +0000)]
Record r253176 and r253179 into svn:mergeinfo.

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

10 years agoClearing the rxbuf flags got lost along the way... adding it back.
jfv [Thu, 8 Aug 2013 17:21:59 +0000 (17:21 +0000)]
Clearing the rxbuf flags got lost along the way... adding it back.

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

10 years agoMFC 253887,253977:
hrs [Thu, 8 Aug 2013 17:20:09 +0000 (17:20 +0000)]
MFC 253887,253977:

- Use pget(PGET_CANDEBUG | PGET_NOTWEXIT) to determine if the specified
  PID is valid for monitoring in FILEMON_SET_PID ioctl.

- Set the monitored PID to -1 when the process exits.

Suggested by: jilles
Tested by: sjg

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

10 years agoMFC r253191:
kib [Thu, 8 Aug 2013 06:15:58 +0000 (06:15 +0000)]
MFC r253191:
The vm_fault() should not be allowed to proceed on the map entry which
is being wired now.  The entry wired count is changed to non-zero in
advance, before the map lock is dropped.  This makes the vm_fault() to
perceive the entry as wired, and breaks the fragment which moves the
wire count from the shadowed page, to the upper page, making the code
unwiring non-wired page.

On the other hand, the vm_fault() calls from vm_fault_wire() should be
allowed to proceed, so only drain MAP_ENTRY_IN_TRANSITION from
vm_fault() when wiring_thread is not current.

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

10 years agoMFC r253190:
kib [Thu, 8 Aug 2013 06:12:29 +0000 (06:12 +0000)]
MFC r253190:
Add the thread owner of the MAP_ENTRY_IN_TRANSITION flag to struct
vm_map_entry.  In vm_map_wire() and vm_map_unwire(), only process the
entries which transition owner is the current thread.

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

10 years agoMFC r253189:
kib [Thu, 8 Aug 2013 06:07:28 +0000 (06:07 +0000)]
MFC r253189:
Never remove user-wired pages from an object when doing
msync(MS_INVALIDATE).  The vm_fault_copy_entry() requires that object
range which corresponds to the user-wired vm_map_entry, is always
fully populated.

Add OBJPR_NOTWIRED flag for vm_object_page_remove() to request the
preserving behaviour, use it when calling vm_object_page_remove() from
vm_object_sync().

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

10 years agoMFC r253188:
kib [Thu, 8 Aug 2013 06:03:34 +0000 (06:03 +0000)]
MFC r253188:
In the vm_page_set_invalid() function, do not assert that the page is
not busy, since its only caller brelse() can legitimately call it on
busy page.

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

10 years agoMFC r253187:
kib [Thu, 8 Aug 2013 06:00:42 +0000 (06:00 +0000)]
MFC r253187:
Do not invalidate page of the B_NOCACHE buffer or buffer after an I/O
error if any user wired mappings exist.

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

10 years agoMFC r253859:
kib [Thu, 8 Aug 2013 05:35:58 +0000 (05:35 +0000)]
MFC r253859:
Remove unused malloc type.

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

10 years agoMFC r245347: Add color.4th.
marcel [Wed, 7 Aug 2013 21:51:19 +0000 (21:51 +0000)]
MFC r245347: Add color.4th.
MFC r253919: Fix the bootable CD.

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

10 years agoMFC r250261: Update zlib to 1.2.8.
delphij [Wed, 7 Aug 2013 19:42:17 +0000 (19:42 +0000)]
MFC r250261: Update zlib to 1.2.8.

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

10 years agoMFC r245055 (by neel):
kib [Wed, 7 Aug 2013 17:07:42 +0000 (17:07 +0000)]
MFC r245055 (by neel):
Add macros required to enable VMX operation on Intel processors.

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

10 years agoSync-up bsdinstall(8)/bsdconfig(8) list of mirrors.
dteske [Wed, 7 Aug 2013 16:01:45 +0000 (16:01 +0000)]
Sync-up bsdinstall(8)/bsdconfig(8) list of mirrors.

SVN r253543:
Update mirror list to more closely match
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html

SVN r253545:
Sync-up with bsdinstall(8) FTP mirrorselect changes.

SVN r253566:
Remove ftp2.tr.freebsd.org, it is out of date.

Reviewed by: gjb

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

10 years agoRevert the MFC of the r244237, done as r244806. There are indeed bugs
kib [Wed, 7 Aug 2013 09:18:21 +0000 (09:18 +0000)]
Revert the MFC of the r244237, done as r244806.  There are indeed bugs
in XEN pmap.  The revert hides a panic with the cost of non-working
vfork(2), which means more obscure misbehaviour in the usermode.
Revert is only done on the stable branch to maintain the consistent
erratic behaviour.

PR: kern/180788

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

10 years agoMFC r253073: zfs: try to properly handle i/o errors in mappedread_sf
avg [Wed, 7 Aug 2013 07:44:03 +0000 (07:44 +0000)]
MFC r253073: zfs: try to properly handle i/o errors in mappedread_sf

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

10 years agoMFC r253070: zfs: load zpool.cache after a root fs is mounted
avg [Wed, 7 Aug 2013 07:41:48 +0000 (07:41 +0000)]
MFC r253070: zfs: load zpool.cache after a root fs is mounted

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

10 years agoMFC r253602: newvers.sh: add another git-svn fallback
avg [Wed, 7 Aug 2013 07:39:44 +0000 (07:39 +0000)]
MFC r253602: newvers.sh: add another git-svn fallback

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

10 years agoMFC r253601: newvers.sh: fix the fallback case of git-svn detection
avg [Wed, 7 Aug 2013 07:38:11 +0000 (07:38 +0000)]
MFC r253601: newvers.sh: fix the fallback case of git-svn detection

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

10 years agoMFC r253072: amd64: use -mno-omit-leaf-frame-pointer in addition to
avg [Wed, 7 Aug 2013 07:36:28 +0000 (07:36 +0000)]
MFC r253072: amd64: use -mno-omit-leaf-frame-pointer in addition to
-fno-omit-frame-pointer

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

10 years agoMFC r253605: zfsboottest: remove explicit -Werror
avg [Wed, 7 Aug 2013 07:34:51 +0000 (07:34 +0000)]
MFC r253605: zfsboottest: remove explicit -Werror

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

10 years agoMFC r253068: zfsboottest.sh: remove checks for things that are not
avg [Wed, 7 Aug 2013 07:32:56 +0000 (07:32 +0000)]
MFC r253068: zfsboottest.sh: remove checks for things that are not
strictly required

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

10 years agoMFC r253067: zfsboottest: sync with changes in zfs boot code
avg [Wed, 7 Aug 2013 07:31:21 +0000 (07:31 +0000)]
MFC r253067: zfsboottest: sync with changes in zfs boot code

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

10 years agoMFC r253076: rc.d/zfs: pass -v option to zfs mount
avg [Wed, 7 Aug 2013 07:27:49 +0000 (07:27 +0000)]
MFC r253076: rc.d/zfs: pass -v option to zfs mount

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

10 years agoMFC r253352:
kib [Wed, 7 Aug 2013 07:24:20 +0000 (07:24 +0000)]
MFC r253352:
MFi386: add ddb "show sysregs" command.

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

10 years agoMFC r253526:
kib [Wed, 7 Aug 2013 06:39:19 +0000 (06:39 +0000)]
MFC r253526:
Fix several warnings.
Fix crash in aio_pty_cleanup() by initializing the pointer before
dereferencing.

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

10 years agoMFC r253525:
kib [Wed, 7 Aug 2013 06:36:48 +0000 (06:36 +0000)]
MFC r253525:
Use the same union name on the left and right sides of the conversion.

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

10 years agoMFC r253328:
kib [Wed, 7 Aug 2013 06:34:01 +0000 (06:34 +0000)]
MFC r253328:
Create a proper stack frame for i386 version of bcopy().

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

10 years agoMFC r253417:
kib [Wed, 7 Aug 2013 06:05:57 +0000 (06:05 +0000)]
MFC r253417:
Clear the vnode knotes before destroying vpollinfo.

MFC r253737:
Split the destruction into the helper destroy_vpollinfo_free(), and
call it when raced, instead of destroy_vpollinfo().

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

10 years agoMFC r253709:
kib [Wed, 7 Aug 2013 05:55:02 +0000 (05:55 +0000)]
MFC r253709:
The pmap_qenter() and pmap_qremove() perform TLB invalidation on its
own, no need to call pmap_invalidate_range() one more time.

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

10 years agoMFC r253497:
kib [Wed, 7 Aug 2013 05:52:11 +0000 (05:52 +0000)]
MFC r253497:
Use the right name for the vm_map_find(9) flag to specify shared mapping.

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

10 years agoMFC 253048,253423,253449,253653,253774,253785:
jhb [Tue, 6 Aug 2013 19:23:57 +0000 (19:23 +0000)]
MFC 253048,253423,253449,253653,253774,253785:
- Allow mlx4 devices to switch between Ethernet and Infiniband:
  - Fix sysfs attribute handling by using sysctl_handle_string() and
    properly handling trailing newlines in attribute values.
  - Remove check forbidding requests that would result in one port being
    set to Ethernet and the subsequent port being set to IB.
- Avoid trashing IP fragments by correctly managing hardware checksumming.
- Fix panics when downing or unloading the mlx4 driver.

PR: kern/179999, kern/174213, kern/180430, kern/180791

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

10 years agoWhen the igb driver is static there are cases when early interrupts occur,
jfv [Tue, 6 Aug 2013 18:20:31 +0000 (18:20 +0000)]
When the igb driver is static there are cases when early interrupts occur,
resulting in a panic in refresh_mbufs, to prevent this add a check in the
interrupt handler for DRV_RUNNING.

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

10 years agoMFC r253865: Fixes to RX_COPY optimization code allowing the removal of the rearm_queues
jfv [Tue, 6 Aug 2013 17:11:12 +0000 (17:11 +0000)]
MFC r253865: Fixes to RX_COPY optimization code allowing the removal of the rearm_queues
             routine used in local_timer.
    r253965: Correct the queue mask bit clearing in the link interrupt handler.

Approved by: re

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

10 years agoBump __FreeBSD_version to a value higher than releng/9.2.
gjb [Sat, 3 Aug 2013 12:45:00 +0000 (12:45 +0000)]
Bump __FreeBSD_version to a value higher than releng/9.2.

Approved by: re (implicit)
Approved by: kib (mentor, implicit)

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

10 years agoMFC r253818:
smh [Fri, 2 Aug 2013 23:31:28 +0000 (23:31 +0000)]
MFC r253818:

Fix zfs send -D hang after processing requiring a CTRL+C to interrupt due to
pthread_join prior to fd close.

Approved by: re (delphij)

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

10 years agoMFC r253810
ache [Fri, 2 Aug 2013 17:13:29 +0000 (17:13 +0000)]
MFC r253810

grep -i does not work for simple patterns and single byte locales, like
LANG=ru_RU.KOI8-R grep -i <some single KOI8-R letter>
Fix it.

Approved by:    re (delphij,kib)

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

10 years agoMFC 253751 and 253843:
hrs [Fri, 2 Aug 2013 03:46:45 +0000 (03:46 +0000)]
MFC 253751 and 253843:

- Relax the restriction on the member interfaces with LLAs.  Two or more
  LLAs on the member interfaces are actually harmless when the parent
  interface does not have a LLA.

- Add net.link.bridge.allow_llz_overlap.  This is a knob to allow LLAs on
  a bridge and the member interfaces at the same time.  The default is 0.

Approved by: re (marius)

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

10 years agoMFC: r249410 (partial)
marius [Thu, 1 Aug 2013 13:18:47 +0000 (13:18 +0000)]
MFC: r249410 (partial)

Remove ctl(4) from GENERIC.

With ctl(4) being built as a module and automatically loaded by ctladm(8),
this makes CTL work out of the box.

Note that unlike the original r249410, this commit does not remove the
kern.cam.ctl.disable tunable for POLA reasons.

PR: 174671, 175694, 179112
Reviewed by: ken (original version)
Sponsored by: FreeBSD Foundation (original version)
Approved by: re (hrs)

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

10 years agoMFC r253754:
mav [Thu, 1 Aug 2013 09:42:17 +0000 (09:42 +0000)]
MFC r253754:
Partially close race between calls of orphan() method from GEOM and close()
method from ZFS core, that reliably causes use-after-free panic if SSD vdev
detached during inititial erase.

Approved by: re (delphij)

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

10 years agoRevert r249530 and re-enable compilation of ctl.ko for all configurations
marius [Wed, 31 Jul 2013 11:36:20 +0000 (11:36 +0000)]
Revert r249530 and re-enable compilation of ctl.ko for all configurations
except i386 XEN, for which it still doesn't build so far.
This is a direct commit to stable/9.

Approved by: re (delphij, kib)

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

10 years agoMFC r249328:
trasz [Wed, 31 Jul 2013 10:54:24 +0000 (10:54 +0000)]
MFC r249328:

Make ctladm(8) try to load ctl.ko kernel module if needed.

Approved by: re (delphij)

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

10 years agoMFC: r238896, r238897, r241331 (usr.bin/script/ only), r241972, r242138,
obrien [Tue, 30 Jul 2013 19:24:05 +0000 (19:24 +0000)]
MFC: r238896, r238897, r241331 (usr.bin/script/ only), r241972, r242138,
     r248388, 253814

+ Add "-f" to also output filemon(4) information.
+ Add d, p and r switches for recording script sessions with timing data
  and playing sessions back with or without time delays.
+ Remove contractions.

Approved by: releng (glebius)

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

10 years agoMFC r253554:
jlh [Tue, 30 Jul 2013 12:17:45 +0000 (12:17 +0000)]
MFC r253554:
  Fix a panic in the racct code when munlock(2) is called with incorrect values.

  The racct code in sys_munlock() assumed that the boundaries provided by
  the userland were correct as long as vm_map_unwire() returned
  successfully.  However the latter contains its own logic and sometimes
  manages to do something out of those boundaries, even if they are buggy.
  This change makes the racct code to use the accounting done by the vm
  layer, as it is done in other places such as vm_mlock().

  Despite fixing the panic, Alan Cox pointed that this code is still
  race-y though: two simultaneous callers will produce incorrect values.

  Reviewed by:  alc

MFC r253556:
  Fix previous commit when option RACCT is not used.

Approved by: re (kib)

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

10 years agoMFC: 253676
marius [Tue, 30 Jul 2013 10:37:11 +0000 (10:37 +0000)]
MFC: 253676

- Once we have shifted arguments thrice, base-bits-dir is $1 rather than $4.
  Introduce $BASEBITSDIR for clarity and in order to avoid repeating this
  mistake in the future. Fixing this ensures that we pick up the newly built
  boot code and loader native to the target, which is especially relevant
  when cross-building release images.
- It is pointless to specify an endianess for ISO 9660 images so strip that.

Approved by: re (kib)

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

10 years agoMFC: r253675
marius [Tue, 30 Jul 2013 10:24:09 +0000 (10:24 +0000)]
MFC: r253675

Ensure that makefs.h is included when using ufs_bswap.h so the FFS_EI macro
is picked up when defined. Previously, ffs_subr.c was always built without
support for opposite endianess as it doesn't include makefs.h on its own.

Approved by: re (kib)

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

10 years agoMFC: r253707
marius [Tue, 30 Jul 2013 10:22:08 +0000 (10:22 +0000)]
MFC: r253707

- Set the System Identifier in the Primary Volume Descriptor to FreeBSD
  rather than NetBSD.
- Correctly set the Expiration Time in the Primary Volume Descriptor;
  according to ISO 9660 8.4.26.1 unspecified date and time are denoted
  by the digit 0 in RBP 1 to 16 but the number 0 in RBP 17. [1]
- Merge iso9660_rrip.c rev. 1.11 from NetBSD: name_len should be read
  as unsigned byte. [2]
  Note: This is according to ISO 9660 9.1.10.
- Rock Ridge TF entries should use a length of 5, because after the 4
  bytes of generic SUSP header there is one byte of flags. See typedef
  of ISO_RRIP_TF in iso9660_rrip.h. [1]

Submitted by: Thomas Schmitt [1]
Approved by: re (kib)
Obtained from: NetBSD [2]

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

10 years agoMFC r253407:
np [Mon, 29 Jul 2013 19:21:54 +0000 (19:21 +0000)]
MFC r253407:
Specify a timeout for the PL block.

Approved by: re (kib)

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

10 years agoMFC r253217,253699
np [Mon, 29 Jul 2013 19:17:11 +0000 (19:17 +0000)]
MFC r253217,253699

r253217:
Attach to the 4x10G T540-CR card.

r253699:
Expand the list of devices claimed by cxgbe(4).

Approved by: re (kib)

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

10 years agoApproved by: re (hrs, marius)
rodrigc [Sat, 27 Jul 2013 05:32:26 +0000 (05:32 +0000)]
Approved by: re (hrs, marius)

MFC 253346:

    PR: 168520 170096
    Submitted by: adrian, zec

    Fix multiple kernel panics when VIMAGE is enabled in the kernel.
    These fixes are based on patches submitted by Adrian Chadd and Marko Zec.

    (1)  Set curthread->td_vnet to vnet0 in device_probe_and_attach() just before calling
     device_attach().  This fixes multiple VIMAGE related kernel panics
     when trying to attach Bluetooth or USB Ethernet devices because
     curthread->td_vnet is NULL.

    (2)  Set curthread->td_vnet in if_detach().  This fixes kernel panics when detaching networking
         interfaces, especially USB Ethernet devices.

    (3)  Use VNET_DOMAIN_SET() in ng_btsocket.c

    (4)  In ng_unref_node() set curthread->td_vnet.  This fixes kernel panics
         when detaching Netgraph nodes.

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

10 years agoUpdate stable/9 branch to -BETA2 status.
gjb [Fri, 26 Jul 2013 23:41:22 +0000 (23:41 +0000)]
Update stable/9 branch to -BETA2 status.

Approved by: re (implicit)
Approved by: kib (mentor, implicit)

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

10 years agoFix Denial of Service vulnerability in named(8). [13:07]
delphij [Fri, 26 Jul 2013 22:43:09 +0000 (22:43 +0000)]
Fix Denial of Service vulnerability in named(8). [13:07]

Security: CVE-2013-4854
Security: FreeBSD-SA-13:07.bind
Approved by: re (rodrigc)

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

10 years agoMFC 253262, 253318, 243184, 253444, 253505, 253520:
hrs [Fri, 26 Jul 2013 18:27:13 +0000 (18:27 +0000)]
MFC 253262, 253318, 243184, 253444, 253505, 253520:

- Add a leaf node CTL_NET.PF_ROUTE.0.AF.NET_RT_DUMP.0.FIB.  This returns
  routing table with the specified FIB number, not td->td_proc->p_fibnum.

- Add check_namevarlist() to check if ${name}_var is reserved in
  rc.subr or not.

- Fix a bug in ipv6_prefix_IF.  It did not work with the 64-bit prefix
  notation like 2001:db8:1:1.

- Use eui64 flag in ifconfig(8) instead of network6_getladdr()[*] for
  interface indentifier part.

- Fix address range specification with ifconfig(8) options such as:

  * inet 192.0.2.1-10 netmask 255.255.255.0 (inet range spec + ifconfig options)
  * inet6 2001:db8:1::1-f prefixlen 60 (inet6 range spec + ifconfig options)

  If prefixlen or netmask option is specified with CIDR notation at
  the same time, the option is used.

-  Do not set ND6_IFF_ACCEPT_RTADV on if_bridge(4) interfaces when
   ipv6_enable=yes.

Approved by: re (marius)

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

10 years agoMFC r253532:
hselasky [Fri, 26 Jul 2013 06:24:33 +0000 (06:24 +0000)]
MFC r253532:

Fix an XHCI regression:

The Block Event Interrupts, BEI, feature does not
work like expected with the Renesas XHCI chipsets.
Revert feature.

While at it correct the TD SIZE computation in
case of Zero Length Packet, ZLP, in the end of a
multi frame USB transfer.

PR:             usb/180726
Approved by:    re, hrs

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

10 years agoMFC r253404:
yongari [Fri, 26 Jul 2013 06:23:06 +0000 (06:23 +0000)]
MFC r253404:
   o TxD ring requires 8 bytes alignment to work so change alignment
     constraint to 8. Previously it may have triggered watchdog
     timeouts.
   o Check whether interrupt is ours or not.
   o Enable interrupts before attemping to transmit queued packets.
     This will slightly improve TX performance.
   o No need to clear IFF_DRV_OACTIVE in a loop. AE_FLAG_TXAVAIL is
     used to know whether there are enough available TxD ring space.
   o Added missing bus_dmamap_sync(9) in ae_rx_intr() and rearranged
     code to avoid unncessary register access.
   o Make sure to clear TxD, TxS, RxD rings in driver initialization.
     Otherwise some data in these rings could be interpreted as
     'updated' which in turn will advance internally maintained
     pointers and can trigger watchdog timeouts.

  PR: kern/180382
  Approved by: re (hrs)

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

10 years agoprotect acpi_battery_ioctl with Giant
avg [Thu, 25 Jul 2013 08:05:25 +0000 (08:05 +0000)]
protect acpi_battery_ioctl with Giant

This is a direct commit to stable/9.

There is a bug in the ACPICA version 20110527 that is used in stable/9.
The bug can lead to unprotected reference counting on ACPI objects
and eventually to a crash or a memory corruption.  The bug has been fixed
upstream and imported to head as of ACPICA version 20130328.
Unfortunately, ACPICA version in stable has not been updated,
so merging all past ACPICA versions or cherry-picking parts of 20130328
would be a big change with a risk of potential regressions.

During debugging it was determined that the most probable vector for the
bug was through concurrent calls to ACPI battery sysctls and ioctls.
The sysctls are already guarded by Giant (not MPSAFE), but ioctls could
execute in parallel to a sysctl call and to each other. All the calls
go through acpi_battery_ioctl function, which makes the actual calls
into ACPICA and those are the calls that lack necessary protection.
Thus preventing concurrency in acpi_battery_ioctl should prevent the
conditions that triggered the ACPICA bug.

Some additional details can be found in this thread:
http://thread.gmane.org/gmane.os.freebsd.devel.acpi/7707/focus=7774

Tested by: kron24@gmail.com,
David Demelier <demelier.david@gmail.com>
Approved by: re (kib)

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

10 years agoMFC r253541:
cperciva [Thu, 25 Jul 2013 02:48:01 +0000 (02:48 +0000)]
MFC r253541:
  Remove weirdly-named autofoo file.  This is not needed for the (FreeBSD)
  build, and freebsd-update chokes on it.

Approved by: re (delphij)

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

10 years agoMFC r253513, r253542:
gjb [Thu, 25 Jul 2013 02:43:05 +0000 (02:43 +0000)]
MFC r253513, r253542:

r253513:
 Create memstick images with the '.img' filename extension.

r253542:
 For consistency with previous releases, name the cdrom install
 cd 'disc1.iso'.

Approved by: kib (mentor)
Approved by: re (marius)

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

10 years agoMFC r253476:
jimharris [Wed, 24 Jul 2013 22:48:29 +0000 (22:48 +0000)]
MFC r253476:

  Add message when nvd disks are attached and detached.

  As part of this commit, add an nvme_strvis() function which borrows
  heavily from cam_strvis().  This will allow stripping of
  leading/trailing whitespace and also handle unprintable characters
  in model/serial numbers.  This function goes into a new nvme_util.c
  file which is used by both the driver and nvmecontrol.

Approved by: re (kib)
Sponsored by: Intel

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

10 years agoMFC r253474:
jimharris [Wed, 24 Jul 2013 22:46:27 +0000 (22:46 +0000)]
MFC r253474:

  Fix nvme(4) and nvd(4) to support non 512-byte sector sizes.

  Recent testing with QEMU that has variable sector size support for
  NVMe uncovered some of these issues.  Chatham prototype boards supported
  only 512 byte sectors.

Approved by: re (kib)
Sponsored by: Intel

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

10 years agoMFC r253473:
jimharris [Wed, 24 Jul 2013 22:44:46 +0000 (22:44 +0000)]
MFC r253473:

  Do not call disk_create() until we have completed all initialization of our
  internal disk structure.

Approved by: re (kib)
Sponsored by: Intel

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

10 years agoMFC r253459:
jimharris [Wed, 24 Jul 2013 22:43:40 +0000 (22:43 +0000)]
MFC r253459:

  Use _PATH_DEV (from paths.h) for the "/dev/" string, rather than
  hard-coding it.

Approved by: re (kib)
Sponsored by: Intel

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

10 years agoMFC r253438:
jimharris [Wed, 24 Jul 2013 22:42:00 +0000 (22:42 +0000)]
MFC r253438:

  Use pause() instead of DELAY() when polling for completion of admin
  commands during controller initialization.

  DELAY() does not work here during config_intrhook context - we need to
  explicitly relinquish the CPU for the admin command completion to
  get processed.

Approved by: re (kib)
Sponsored by: Intel

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

10 years agoMFC r253437:
jimharris [Wed, 24 Jul 2013 22:40:34 +0000 (22:40 +0000)]
MFC r253437:

  Define constants for the lengths of the serial number, model number
  and firmware revision in the controller's identify structure.

  Also modify consumers of these fields to ensure they only use the
  specified number of bytes for their respective fields.

Approved by: re (kib)
Sponsored by: Intel

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

10 years agoMFC r253436, r253458:
jimharris [Wed, 24 Jul 2013 22:38:37 +0000 (22:38 +0000)]
MFC r253436, r253458:

  Simplify open_dev() by returning errno values rather than just 0 or 1.

  Also remove stat() call and just rely on errno from open() call to discern
  whether dev node exists or not.

Approved by: re (kib)
Sponsored by: Intel

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

10 years agoMFC r253393:
jimharris [Wed, 24 Jul 2013 22:34:06 +0000 (22:34 +0000)]
MFC r253393:

  Do not throw an error if the user requests to activate the image from
  an empty firmware slot, as long as the user has specified a firmware
  image to download into the empty firmware slot.

Approved by: re (kib)
Sponsored by: Intel

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

10 years agoMFC: r253455
jkim [Wed, 24 Jul 2013 22:26:11 +0000 (22:26 +0000)]
MFC: r253455

Decode PCIe ASPM capability and status.

Approved by: re (delphij)

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

10 years agoMFC: r253439
jkim [Wed, 24 Jul 2013 21:53:33 +0000 (21:53 +0000)]
MFC: r253439

Reload font when syscons(4) is resuming without switching mode.

Approved by: re (delphij)

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

10 years agoModernize the package list for 9.2-RELEASE cycle:
gjb [Wed, 24 Jul 2013 13:43:09 +0000 (13:43 +0000)]
Modernize the package list for 9.2-RELEASE cycle:

 o Update the perl package version to 5.14.

 o Add devel/subversion and devel/subversion-static so we provide
   a package for source-based users to check out the various trees,
   both with and without extra dependencies.

This is a direct commit to stable/9.

Approved by: kib (mentor)
Approved by: re (glebius)

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