]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMFC r226940 (rmh):
mm [Wed, 26 Sep 2012 12:36:09 +0000 (12:36 +0000)]
MFC r226940 (rmh):

Fix a few gratuitous library dependencies. Some of the ZFS utilities
are linked with libraries they don't use:

 - zinject doesn't use libavl
 - ztest doesn't use libz
 - zdb uses neither libavl nor libz
 - zfs uses neither libbsdxml nor libm, nor libsbuf
 - zpool uses neither libbsdxml nor libm, nor libsbuf

In addition, libzfs needs libm because it uses pow(), however it isn't
linked with -lm.  This went unnoticed because all its users had -lm before.

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

11 years agoMFC r236248-r236250:
mm [Wed, 26 Sep 2012 10:58:15 +0000 (10:58 +0000)]
MFC r236248-r236250:

MFC r236248 (pjd):
Remove unused variable.

MFC r236249 (pjd):
Eliminate 'where' argument, we don't use it.

MFC r236250 (pjd):
Tighten up the assertion: because size can't be 0 and even if sm_space is equal
to sm_size, any 'sm_space - size' will be less than sm_size.

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

11 years agoMFC r240135:
kib [Wed, 26 Sep 2012 09:22:28 +0000 (09:22 +0000)]
MFC r240135:
Add support for new Intel on-CPU Bull Mountain random number generator.

MFC r240455:
Rename the IVY_RNG option to RDRAND_RNG.

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

11 years agoMFC r240862
alc [Wed, 26 Sep 2012 03:54:55 +0000 (03:54 +0000)]
MFC r240862
  Address a race condition that was introduced in r238212.  Unless the page
  queues lock is acquired before the page lock is released, there is no
  guarantee that the page will still be in that same page queue when
  vm_page_requeue() is called.

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

11 years agoMFC r240701:
tijl [Tue, 25 Sep 2012 13:32:05 +0000 (13:32 +0000)]
MFC r240701:

Fix a panic when trying to play invalid audio tracks.

PR: kern/167340
Reported by: Michael L. Semon <mlsemon35 gmail com>

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

11 years agoMFC r240480:
eadler [Tue, 25 Sep 2012 01:33:22 +0000 (01:33 +0000)]
MFC r240480:
Belatedly add myself

Approved by: cperciva (implicit)

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

11 years agoMFC r240470:
eadler [Tue, 25 Sep 2012 01:31:24 +0000 (01:31 +0000)]
MFC r240470:
Remove scripts and tools which only functioned when src was using CVS

Approved by: cperciva (implicit)

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

11 years agoMFC r240466:
eadler [Tue, 25 Sep 2012 01:28:14 +0000 (01:28 +0000)]
MFC r240466:
Define missing DEBUGOUT# macros. DEBUGOUT[45] are not yet used but are
being defined pre-emptively to avoid future build breakage

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

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

11 years agoMFC r240773:
dim [Mon, 24 Sep 2012 20:05:52 +0000 (20:05 +0000)]
MFC r240773:

After r205013, amd64 and i386 CPU family and model IDs were printed out
in hexadecimal, but without any 0x prefix, which can be very misleading.

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

11 years agoMFC r240531:
dim [Mon, 24 Sep 2012 20:03:13 +0000 (20:03 +0000)]
MFC r240531:

Pull in r163967 from upstream llvm trunk:

  X86: Emitting x87 fsin/fcos for sinf/cosf is not safe without unsafe
  fp math.

This should make clang emit calls to libm for sinf/cosf by default.

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

11 years agoMFC r240144:
dim [Mon, 24 Sep 2012 20:00:31 +0000 (20:00 +0000)]
MFC r240144:

After r240104, make sure the hpt27xx driver also compiles with clang,
when it is statically linked into the kernel.

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

11 years agoMFC r238601
sbruno [Sun, 23 Sep 2012 20:28:47 +0000 (20:28 +0000)]
MFC r238601

On BIO_ERROR, set bio_resid to stop losing data in the error case.

Submitted by: Mark Johnston <markjdb@gmail.com>

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

11 years agoMFC r238371
sbruno [Sun, 23 Sep 2012 20:17:28 +0000 (20:17 +0000)]
MFC r238371
When an MFI command fails, the driver needs to set bio->bio_resid so that
the upper levels notice.  Otherwise we see commands silently failing leading
to data corruption.  This mirrors dadone()

Submitted by: Andrew Boyer aboyer@averesystems.com

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

11 years agoMFC r238373
sbruno [Sun, 23 Sep 2012 19:14:13 +0000 (19:14 +0000)]
MFC r238373

  sys/dev/mfivar.h contains references to MFI_DEBUG, but it never gets turned on unless the file also includes opt_mfi.h.

  Submitted by: Andrew Boyer aboyer@averesystems.com

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

11 years agoMFC r240205:
zeising [Sun, 23 Sep 2012 14:49:28 +0000 (14:49 +0000)]
MFC r240205:

Change the link pointing to more information about the Yarrow algorithm, the
current link points to a irrelevant catchall site.

PR: docs/171411
Submitted by: Mark Martinec <Mark.Martinec@ijs.si> (pr), zeising (patch)
Approved by: joel (mentor)

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

11 years agoMFC r240546:
kib [Sun, 23 Sep 2012 06:16:08 +0000 (06:16 +0000)]
MFC r240546:
Handle AT_TIMEKEEP in procstat(1) -x.

PR: bin/171662

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

11 years agoMFC r240513: sched_ule: fix inverted condition in reporting of priority
avg [Sat, 22 Sep 2012 21:18:30 +0000 (21:18 +0000)]
MFC r240513: sched_ule: fix inverted condition in reporting of priority
lending via ktr

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

11 years agoMFC r240346,240356: zfs boot: bring zap_leaf_chunk field names in sync
avg [Sat, 22 Sep 2012 21:13:34 +0000 (21:13 +0000)]
MFC r240346,240356: zfs boot: bring zap_leaf_chunk field names in sync
with kernel code

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

11 years agoMFC r238973,r238975:
kib [Sat, 22 Sep 2012 12:40:52 +0000 (12:40 +0000)]
MFC r238973,r238975:
Add explicit fences right before rdtsc in the timecounters 'get' functions.

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

11 years agoMFC r237434:
kib [Sat, 22 Sep 2012 12:38:19 +0000 (12:38 +0000)]
MFC r237434:
Use struct vdso_timehands data to implement fast gettimeofday(2) and
clock_gettime(2) functions if supported.

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

11 years agoMFC r237477:
kib [Sat, 22 Sep 2012 12:36:31 +0000 (12:36 +0000)]
MFC r237477:
Move the code dealing with shared page into a dedicated
kern_sharedpage.c source file from kern_exec.c.

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

11 years agoMFC r237476:
kib [Sat, 22 Sep 2012 12:35:22 +0000 (12:35 +0000)]
MFC r237476:
Remove no longer needed forward declaration for struct sf_buf.

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

11 years agoMFC r237435:
kib [Sat, 22 Sep 2012 12:34:02 +0000 (12:34 +0000)]
MFC r237435:
Enable shared page on i386, now it has a use for vdso_timehands.

MFC r237445:
Commit changes missed from r237435.  Properly calculate the signal
trampoline addresses after the shared page is enabled.  Handle FreeBSD
ABIs without shared page support too.

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

11 years agoMFC r237433:
kib [Sat, 22 Sep 2012 12:32:00 +0000 (12:32 +0000)]
MFC r237433:
Implement mechanism to export some kernel timekeeping data to
usermode, using shared page.

MFC r237474:
Stop updating the struct vdso_timehands from even handler executed in
the scheduled task from tc_windup(). Do it directly from tc_windup in
interrupt context.

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

11 years agoMFC r237431:
kib [Sat, 22 Sep 2012 12:27:50 +0000 (12:27 +0000)]
MFC r237431:
Enchance the shared page chunk allocator.

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

11 years agoMFC 240729 (dougb):
delphij [Sat, 22 Sep 2012 08:47:29 +0000 (08:47 +0000)]
MFC 240729 (dougb):

Upgrade to 9.8.3-P3:

Prevents a crash when queried for a record whose RDATA exceeds
65535 bytes.

Prevents a crash when validating caused by using "Bad cache" data
before it has been initialized.

ISC_QUEUE handling for recursive clients was updated to address
a race condition that could cause a memory leak. This rarely
occurred with UDP clients, but could be a significant problem
for a server handling a steady rate of TCP queries.

A condition has been corrected where improper handling of
zero-length RDATA could cause undesirable behavior, including
termination of the named process.

For more information: https://kb.isc.org/article/AA-00788

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

11 years agoMFC r240686:
kib [Sat, 22 Sep 2012 05:27:47 +0000 (05:27 +0000)]
MFC r240686:
Do not reference z_nodeflib for !objgiven case, thus fixing LD_PRELOAD
for a non-absolute path.

PR: bin/171604

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

11 years agoMFC r239963:
pfg [Sat, 22 Sep 2012 04:18:42 +0000 (04:18 +0000)]
MFC r239963:

Bring some changes from Bull's NFSv4 libtirpc implementation.

____

Fixed infinite loop in svc_run()
____

__rpc_taddr2uaddr_af() assumes the netbuf to always have a
non-zero data. This is a bad assumption and can lead to a
seg-fault. This patch adds a check for zero length and returns
NULL when found.
____

Changed clnt_spcreateerror() to return clearer
and more concise error messages.
____

Converted all uid and gid variables of the type uid_t and gid_t.
____

libtirpc: set r_netid and r_owner in __rpcb_findaddr_timed

These fields in the rpcbind GETADDR call are being passed uninitialized
to CLNT_CALL. In the case of x86_64 at least, this usually leads to a
segfault. On x86, it sometimes causes segfaults and other times causes
garbage to be sent on the wire.

rpcbind generally ignores the r_owner field for calls that come in over
the wire, so it really doesn't matter what we send in that slot. We just
need to send something. The reference implementation from Sun seems to
send a blank string. Have ours follow suit.
____

libtirpc: be sure to free cl_netid and cl_tp

When creating a client with clnt_tli_create, it uses strdup to copy
strings for these fields if nconf is passed in. clnt_dg_destroy frees
these strings already. Make sure clnt_vc_destroy frees them in the same
way.

____

Obtained from: Bull GNU/Linux NFSv4 Project

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

11 years agoMFC r240524: siginfo(3): Document TRAP_DTRACE signal code.
jilles [Fri, 21 Sep 2012 12:33:25 +0000 (12:33 +0000)]
MFC r240524: siginfo(3): Document TRAP_DTRACE signal code.

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

11 years agoMFC r240523: siginfo(3): Document SI_LWP signal code.
jilles [Fri, 21 Sep 2012 12:31:37 +0000 (12:31 +0000)]
MFC r240523: siginfo(3): Document SI_LWP signal code.

Describe SI_LWP as being generated by pthread_kill() because thr_kill() is
a private undocumented function.

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

11 years agoMFC r240552: siginfo(3): Document SI_USER and SI_KERNEL signal codes.
jilles [Fri, 21 Sep 2012 12:28:56 +0000 (12:28 +0000)]
MFC r240552: siginfo(3): Document SI_USER and SI_KERNEL signal codes.

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

11 years agoMFC of 240219 - remove useless test.
mjacob [Fri, 21 Sep 2012 00:36:35 +0000 (00:36 +0000)]
MFC of 240219 - remove useless test.

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

11 years agoMFC r240383:
mav [Thu, 20 Sep 2012 18:59:50 +0000 (18:59 +0000)]
MFC r240383:
Fix AHCI 1.2 version checks. This should be mostly cosmetic.

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

11 years agoMFC r237168
alc [Thu, 20 Sep 2012 18:21:29 +0000 (18:21 +0000)]
MFC r237168
  The page flag PGA_WRITEABLE is set and cleared exclusively by the pmap
  layer, but it is read directly by the MI VM layer.  This change introduces
  pmap_page_is_write_mapped() in order to completely encapsulate all direct
  access to PGA_WRITEABLE in the pmap layer.

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

11 years agoMFC r238456 and r238536
alc [Thu, 20 Sep 2012 17:02:04 +0000 (17:02 +0000)]
MFC r238456 and r238536
  Various improvements to vm_contig_grow_cache().

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

11 years agoMFC r240530 from HEAD:
issyl0 [Thu, 20 Sep 2012 16:27:21 +0000 (16:27 +0000)]
MFC r240530 from HEAD:
  - Remove a reference to CVS and freefall from a user-facing man page.

PR: docs/171658
Approved by: gabor (mentor)

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

11 years agoMFC r240317
alc [Thu, 20 Sep 2012 16:03:04 +0000 (16:03 +0000)]
MFC r240317
  Simplify pmap_unmapdev().

  Don't set PTE_W on the page table entry in pmap_kenter{,_attr}() on MIPS.

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

11 years agoMFC r240464:
kib [Thu, 20 Sep 2012 10:13:14 +0000 (10:13 +0000)]
MFC r240464:
The deadfs VOPs for vop_ioctl and vop_bmap call itself recursively,
which is an elaborate way to cause kernel panic. Change the VOPs
implementation to return EBADF for a reclaimed vnode.

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

11 years agoSync the ixgbe driver from HEAD to stable/9
scottl [Thu, 20 Sep 2012 01:23:54 +0000 (01:23 +0000)]
Sync the ixgbe driver from HEAD to stable/9

r236627 - Fix driver deadlock due to OACTIVE flag
r236729 - Fix prefetch programming typo
r239940 - Improve small RX packet performance
r240155 - Fix missing braces in PHY configuration
r240366 - Remove a prefetch directive that hurts performance

Approved by: jfv
Obtained from: Netflix, inc.

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

11 years agoMFC of 239502: Remove dependence on MAXPHYS.
mjacob [Thu, 20 Sep 2012 00:51:09 +0000 (00:51 +0000)]
MFC of 239502: Remove dependence on MAXPHYS.

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

11 years agoMFC of 240580 and 240590- correct some comments.
mjacob [Wed, 19 Sep 2012 22:24:09 +0000 (22:24 +0000)]
MFC of 240580 and 240590- correct some comments.

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

11 years agoMFC r240079:
delphij [Wed, 19 Sep 2012 22:12:57 +0000 (22:12 +0000)]
MFC r240079:

Update arcmsr(4) to vendor version 1.20.00.25.

Many thanks to Areca for continuing to support FreeBSD.

Submitted by: Ching-Lung Huang <ching2048 areca com tw>

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

11 years agoMFC: r240391
bapt [Wed, 19 Sep 2012 06:18:42 +0000 (06:18 +0000)]
MFC: r240391

Fix IEC / SI binary prefixes (Ki, Mi, Gi, etc) production by humanize_number(3)

PR: bin/171487
Submitted by: matthew

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

11 years agoMFC: r240476
jkim [Tue, 18 Sep 2012 19:08:07 +0000 (19:08 +0000)]
MFC: r240476

Do not change owner, group, or mode when package database directory
and its contents are created with pkg_add(1).  It may happen when the
packing list contains @owner, @group, or @mode.

Approved by: portmgr (bapt)

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

11 years agoMFC r239056:
hselasky [Tue, 18 Sep 2012 17:30:08 +0000 (17:30 +0000)]
MFC r239056:
Regenerate usb.conf

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

11 years agoMFC r238079, r238493, r238526, r238529 and r238717:
hselasky [Tue, 18 Sep 2012 17:23:00 +0000 (17:23 +0000)]
MFC r238079, r238493, r238526, r238529 and r238717:
Add new USB ID's.

PR:             usb/169789

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

11 years agoMFC r240597:
hselasky [Tue, 18 Sep 2012 17:17:04 +0000 (17:17 +0000)]
MFC r240597:
Remove unused variable cd.
This variable is initialized but not used.

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

11 years agoMFC r240615:
hselasky [Tue, 18 Sep 2012 17:14:59 +0000 (17:14 +0000)]
MFC r240615:
Add UQ_UMS_IGNORE quirk.
Wrap two long lines.
Some minor spelling correction.

PR: usb/171721

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

11 years agoMFC r239237:
hselasky [Tue, 18 Sep 2012 17:10:26 +0000 (17:10 +0000)]
MFC r239237:
Improve auto-quirks detection for certain Kingston memory sticks.

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

11 years agoMFC r240382:
hselasky [Tue, 18 Sep 2012 17:08:14 +0000 (17:08 +0000)]
MFC r240382:
Restart the USB transfer if the error is not USB_ERR_CANCELLED.

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

11 years agoMFC r237079, r238078, r238779, r238803, r238804, r239055,
hselasky [Tue, 18 Sep 2012 17:03:32 +0000 (17:03 +0000)]
MFC r237079, r238078, r238779, r238803, r238804, r239055,
    r239298, r239358 and r239567:

Add new USB ID's and some quirks.

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

11 years agoConvert installation article to XML stanards.
gjb [Tue, 18 Sep 2012 16:49:57 +0000 (16:49 +0000)]
Convert installation article to XML stanards.
This commit should be the final fix for the 9-STABLE release build.

This is a direct commit to stable/9.

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

11 years agoMFC r232358:
hselasky [Tue, 18 Sep 2012 16:39:04 +0000 (16:39 +0000)]
MFC r232358:
Close a detach race. Make sure all pending
CCB's get canceled at device detach.

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

11 years agoMFC r232361:
hselasky [Tue, 18 Sep 2012 16:37:11 +0000 (16:37 +0000)]
MFC r232361:
Style change: Expand redundant #if's. Remove a couple of empty lines.

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

11 years agoMFC r239050 and r239260:
hselasky [Tue, 18 Sep 2012 16:33:53 +0000 (16:33 +0000)]
MFC r239050 and r239260:
Rename command defines to match names used in the datasheet.

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

11 years agoMFC r239178, r239179, r239180, r239181, r239182 and r239299:
hselasky [Tue, 18 Sep 2012 16:28:49 +0000 (16:28 +0000)]
MFC r239178, r239179, r239180, r239181, r239182 and r239299:

Fix detach of USB serial devices so that it doesn't block
the USB explore thread forever. To accomplish this two new
functions have been added to the kernel, to claim and free
the newbus allocated softc.

This change is backwards API compatible, but not binary
compatible. The FreeBSD version has been bumped to force
a recompile of all kernel modules.

Discussed with:         kib, ed, jhb

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

11 years agoMFC r238274 and r239358
hselasky [Tue, 18 Sep 2012 16:01:25 +0000 (16:01 +0000)]
MFC r238274 and r239358
Add new USB device ID's.

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

11 years agoClose colspec tags to conform to XML standards.
gjb [Tue, 18 Sep 2012 14:05:35 +0000 (14:05 +0000)]
Close colspec tags to conform to XML standards.
This commit should fix more 9-STABLE release build problems.

This is a direct commit to stable/9.

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

11 years agoMFC r240508, r240516, r240519 (gabor):
gjb [Tue, 18 Sep 2012 13:54:48 +0000 (13:54 +0000)]
MFC r240508, r240516, r240519 (gabor):

 Update stable/9/release/doc files post-XML conversion.
 This commit fixes most of the 9-STABLE release build problems.

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

11 years agoFix release notes build on 9-STABLE.
gjb [Tue, 18 Sep 2012 11:25:04 +0000 (11:25 +0000)]
Fix release notes build on 9-STABLE.

This is a direct commit to stable/9.

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

11 years agoMFC r240340: acpi.4: machdep.cpu_idle_hlt no longer exists
avg [Tue, 18 Sep 2012 08:27:01 +0000 (08:27 +0000)]
MFC r240340: acpi.4: machdep.cpu_idle_hlt no longer exists

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

11 years agoMFC r240388:
kevlo [Tue, 18 Sep 2012 02:14:47 +0000 (02:14 +0000)]
MFC r240388:
Add missing braces

Obtained from: DragonFly

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

11 years agoMFC r240514:
jimharris [Mon, 17 Sep 2012 16:05:03 +0000 (16:05 +0000)]
MFC r240514:

isci(4): Fix SCSI/ATA translation for SCSI_WRITE_BUFFER w/ mode==0x7
(download microcode with offsets, save, and activate).

SATI translation layer was incorrectly using allocation length instead
of blocks, and was constructing the ATA command incorrectly.

Also change #define to specify that the 512 block size here is
specific for DOWNLOAD_MICROCODE, and does not relate to the device's
logical block size.

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

11 years agoMFC r232714 (nwhitehorn):
gjb [Mon, 17 Sep 2012 15:45:27 +0000 (15:45 +0000)]
MFC r232714 (nwhitehorn):

Make sure not to tar up CVS directories if this ports tree is a CVS
checkout.

PR: bin/165868

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

11 years agoMFC r240003, r240004:
trociny [Mon, 17 Sep 2012 14:53:33 +0000 (14:53 +0000)]
MFC r240003, r240004:

r240003:

In soreceive_generic() when checking if the type of mbuf has changed
check it for MT_CONTROL type too, otherwise the assertion
"m->m_type == MT_DATA" below may be triggered by the following scenario:

- the sender sends some data (MT_DATA) and then a file descriptor
  (MT_CONTROL);
- the receiver calls recv(2) with a MSG_WAITALL asking for data larger
  than the receive buffer (uio_resid > hiwat).

r240004:

In soreceive_generic() remove the optimization for the case when
MSG_WAITALL is set, and it is possible to do the entire receive
operation at once if we block (resid <= hiwat). Actually it might make
the recv(2) with MSG_WAITALL flag get stuck when there is enough space
in the receiver buffer to satisfy the request but not enough to open
the window closed previously due to the buffer being full.

The issue can be reproduced using the following scenario:

On the sender side do 2 send(2) requests:

1) data of size much smaller than SOBUF_SIZE (e.g. SOBUF_SIZE / 10);
2) data of size equal to SOBUF_SIZE.

On the receiver side do 2 recv(2) requests with MSG_WAITALL flag set:

1) recv() data of SOBUF_SIZE / 10 size;
2) recv() data of SOBUF_SIZE size;

We totally fill the receiver buffer with one SOBUF_SIZE/10 size request
and partial SOBUF_SIZE request. When the first request is processed we
get SOBUF_SIZE/10 free space. It is just enough to receive the rest of
bytes for the second request, and soreceive_generic() blocks in the
part that is a subject of this change waiting for the rest. But the
window was closed when the buffer was filled and to avoid silly window
syndrome it opens only when available space is larger than sb_hiwat/4
or maxseg. So it is stuck and pending data is only sent via TCP window
probes.

Discussed with: kib (long ago)

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

11 years agoMerge r240371:
glebius [Mon, 17 Sep 2012 13:06:47 +0000 (13:06 +0000)]
Merge r240371:
    When synchronizing, include in the config dump amount of
  bytes syncronized.
    The rationale behind this is the following: for large disks the
  percent synchronisation counter ticks too seldom, and monitoring
  software (as well as human operator) can't tell whether
  synchronisation goes on or one of disks got stuck. On an idle
  server one can look into gstat and see whether synchronisation goes
  on or not, but on a busy server that won't work. Also, new value
  monitored can be differentiated obtaining the synchronisation speed
  quite precisely.

  Submitted by: Konstantin Kukushkin <dark ramtel.ru>
  Reviewed by:  pjd

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

11 years agoMerge r238182 by theraven@:
glebius [Mon, 17 Sep 2012 13:05:39 +0000 (13:05 +0000)]
Merge r238182 by theraven@:
  Restore the __collate_load_error global that was accidentally removed in the
  xlocale refactoring.

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

11 years agoMFC r239990:
trasz [Mon, 17 Sep 2012 11:39:28 +0000 (11:39 +0000)]
MFC r239990:

Improve description for "rctl -l".

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

11 years agoMFC r233456 by joel@:
trasz [Mon, 17 Sep 2012 11:35:38 +0000 (11:35 +0000)]
MFC r233456 by joel@:

Remove superfluous paragraph macro.

MFC r233665 by joel@:

mandoc complains loudly when <TAB>s are misused in columnated lists. Fix
this syntax violation and while I'm here also convert <TAB> to Ta and adjust
quotation marks in order to prevent this problem in the future.

MFC r233667 by joel@:

Remove superfluous paragraph macro.

MFC r234568 by delphij@:

The .Fx macro needs the version number be in its own word separated by
a space.  This change have no visible effect for rendering.

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

11 years agoMFC r232329:
trasz [Mon, 17 Sep 2012 11:27:56 +0000 (11:27 +0000)]
MFC r232329:

Use proper "maxproc" name, not "nproc".

PR: docs/162172

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

11 years agoMFC r240076:
trasz [Mon, 17 Sep 2012 11:21:57 +0000 (11:21 +0000)]
MFC r240076:

Fix compact form of "synchronize" permission in setfacl(1) manual page - it
should be "s", not "S".

PR: docs/162380

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

11 years agoMFC r240506:
eadler [Mon, 17 Sep 2012 00:56:10 +0000 (00:56 +0000)]
MFC r240506:
Bump date missed in r202756

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

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

11 years agoMFC r240520:
eadler [Mon, 17 Sep 2012 00:47:35 +0000 (00:47 +0000)]
MFC r240520:
s/teh/the/g

Approved by: cperciva (implicit)

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

11 years agoMFC r240518:
eadler [Mon, 17 Sep 2012 00:44:16 +0000 (00:44 +0000)]
MFC r240518:
Correct double "the the"

Approved by: cperciva (implicit)

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

11 years agoMFC r240521:
eadler [Mon, 17 Sep 2012 00:32:36 +0000 (00:32 +0000)]
MFC r240521:

s/ is is / is /g
s/ a a / a /g

Approved by: cperciva (implicit)

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

11 years agoMerge r240146 from head:
gavin [Sun, 16 Sep 2012 18:25:08 +0000 (18:25 +0000)]
Merge r240146 from head:
  - If the PCIe "SLOT" flag is set, include this in the capability output
  - Fix printing of PCIe interrupt number, the shift was incorrect.

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

11 years agoMerge r240118 from head:
gavin [Sun, 16 Sep 2012 18:17:39 +0000 (18:17 +0000)]
Merge r240118 from head:

  Support another uchcom(4) device.

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

11 years agoMFC r239326:
mav [Sun, 16 Sep 2012 12:06:45 +0000 (12:06 +0000)]
MFC r239326:
Fix "speaker" volume control, broken at r230451.

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

11 years agoMFC r239840 from HEAD:
issyl0 [Sun, 16 Sep 2012 10:40:17 +0000 (10:40 +0000)]
MFC r239840 from HEAD:
  - Fix a dead link in sk(4).

PR: docs/146958
Approved by: gabor (mentor)

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

11 years agoMFC r240465:
mav [Sun, 16 Sep 2012 09:00:53 +0000 (09:00 +0000)]
MFC r240465:
Add global and per-module sysctls/tunables to enable/disable metadata taste.
That should help to handle some cases when disk has some RAID metadata that
should be ignored, especially during boot.

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

11 years agoMFC r240465:
mav [Sun, 16 Sep 2012 08:42:40 +0000 (08:42 +0000)]
MFC r240465:
Add global and per-module sysctls/tunables to enable/disable metadata taste.
That should help to handle some cases when disk has some RAID metadata that
should be ignored, especially during boot.

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

11 years agoMFC r240252,r240253:
eadler [Sun, 16 Sep 2012 00:35:09 +0000 (00:35 +0000)]
MFC r240252,r240253:
Remove documentation and www cvsup files as they are no longer useful
with the switch to subversion.
Specifically document that an incomplete ports tree is not supported.
Remove useless comment about sendmail.

Approved by: cperciva (implicit)

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

11 years agoMFC r240060, r240062:
pfg [Sun, 16 Sep 2012 00:32:25 +0000 (00:32 +0000)]
MFC r240060, r240062:

Rename __rpc_xdr with XDR. This fixes at least one C++ application and
matches what upstream (Solaris) has done on their xdr.h header.

PR: 137443

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

11 years agoMFC r238197:
dim [Sat, 15 Sep 2012 18:53:00 +0000 (18:53 +0000)]
MFC r238197:

  Fix spelling

  PR: bin/167480
  Submitted by: zeising
  Approved by: cperciva

MFC r240365:

  Ensure mkcsmapper and mkesdb compile with clang, if WITH_ICONV is
  defined.

  PR: bin/167481
  Submitted by: zeising

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

11 years agoMFC: r240249
andreast [Sat, 15 Sep 2012 17:47:44 +0000 (17:47 +0000)]
MFC: r240249
Fix loading of kernel modules at boot time for powerpc64.

Reported by: Mathias Breuninger

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

11 years agoMFC r240412:
emaste [Sat, 15 Sep 2012 02:58:02 +0000 (02:58 +0000)]
MFC r240412:

  According to a clarification at http://austingroupbugs.net/view.php?id=503
  ptsname may set errno, so avoid saving and restoring errno across the
  function.

PR: standards/171572

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

11 years agoMFC r240410:
emaste [Sat, 15 Sep 2012 02:52:19 +0000 (02:52 +0000)]
MFC r240410:

  Avoid mapping ENOENT to ENOTDIR for non-existent path components.

  The ENOTDIR mapping was introduced in r235266 for kern/128933 based on
  an interpretation of the somewhat ambiguous language in the POSIX realpath
  specification.  The interpretation is inconsistent with Solaris and Linux,
  a regression from 9.0, and does not appear to be permitted by the
  description of ENOTDIR:

       20 ENOTDIR Not a directory.  A component of the specified pathname
               existed, but it was not a directory, when a directory was
               expected.

PR: standards/171577

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

11 years agoMFC r240081:
trociny [Fri, 14 Sep 2012 18:45:14 +0000 (18:45 +0000)]
MFC r240081:

Free memory allocated by procstat_getfiles(), which may make difference
when procstat(1) is run with -a option.

Submitted by: Daniel Dettlaff <dmilith gmail com>

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

11 years agoMFC r240080:
trociny [Fri, 14 Sep 2012 18:44:23 +0000 (18:44 +0000)]
MFC r240080:

Add __BEGIN_DECLS and __END_DECLS to make libprocstat more C++-friendly.

Submitted by: Daniel Dettlaff <dmilith gmail com>

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

11 years agoMFC r239829:
pluknet [Fri, 14 Sep 2012 15:09:44 +0000 (15:09 +0000)]
MFC r239829:
  Follow r239818 and remove no more relevant vslock() ENOMEM error.

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

11 years agoMFC r240026:
zont [Fri, 14 Sep 2012 14:23:17 +0000 (14:23 +0000)]
MFC r240026:
- Make kern.maxtsiz, kern.dfldsiz, kern.maxdsiz, kern.dflssiz, kern.maxssiz
  and kern.sgrowsiz sysctls writable.

MFC r240068:
- Mark some sysctls with CTLFLAG_TUN flag instead of CTLFLAG_RDTUN.

MFC r240069:
- After r240026 sgrowsiz should be used in a safer maner.

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

11 years agoMFC r239818:
zont [Fri, 14 Sep 2012 13:56:50 +0000 (13:56 +0000)]
MFC r239818:
- Don't take an account of locked memory for current process in vslock(9).

There are two consumers of vslock(9): sysctl code and drm driver.  These
consumers are using locked memory as transient memory, it doesn't belong
to a process's memory.

MFC r239895:
- Remove accounting of locked memory from vsunlock(9) that I missed in r239818.

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

11 years agoMFC r240328:
eadler [Fri, 14 Sep 2012 00:37:11 +0000 (00:37 +0000)]
MFC r240328:
Follow up to doc r39516:

Update the Vendor Relations Team information to reflect that
incoming email is now handled by core@ and the Foundation.

Approved by: cperciva (implicit)

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

11 years agoMFC r227689:
np [Thu, 13 Sep 2012 18:47:24 +0000 (18:47 +0000)]
MFC r227689:

Do not increment the parent firmware's reference count when any other
firmware image in the module is registered.  Instead, do it when the
other image is itself referenced.

This allows a module with multiple firmware images to be automatically
unloaded when none of the firmware images are in use.

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

11 years agoMFC of 240457, tzdata2012f
edwin [Thu, 13 Sep 2012 10:25:42 +0000 (10:25 +0000)]
MFC of 240457, tzdata2012f

 - Pacific/Fiji will go into DST from 21 October 2012 till 20 January 2013.
 - Fix offset for Pacific/Tokelau.
 - Gaza and West Bank had DST from 29 March to 28 September 2012.
 - Syria has DST from April till October
 - Morocco had DST from April to September 2012 except for 20 July to 20 August.
 - Cuba changed to DST from 1 April 2012 only.
 - Haiti has DST between 8 March and 1 November in 2012.

  Obtained from:  ftp://ftp.iana.org/tz/releases/

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

11 years agoMFC r240293:
eadler [Thu, 13 Sep 2012 01:05:30 +0000 (01:05 +0000)]
MFC r240293:
Sync access file date recommendation
Change from CVS to svn for canconical source of information

Approved by: cperciva (implicit)

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

11 years agoMFC r237676,r237677,r237680,r240294,r240318,r240324:
eadler [Thu, 13 Sep 2012 01:02:56 +0000 (01:02 +0000)]
MFC r237676,r237677,r237680,r240294,r240318,r240324:
Update organization.dot to reflect reality

Approved by: cperciva (implicit)

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

11 years agoMFC r240163: Fix "Corrupted DWARF expression" from (k)gdb.
emaste [Thu, 13 Sep 2012 00:58:32 +0000 (00:58 +0000)]
MFC r240163: Fix "Corrupted DWARF expression" from (k)gdb.

  Google turned up Debian bug 405116, which describes the problem in
  sufficient detail to identify the overflowing variables.

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

11 years agoMFC r240316:
eadler [Thu, 13 Sep 2012 00:54:24 +0000 (00:54 +0000)]
MFC r240316:
We moved to subversion ages ago.

Approved by: cperciva (implicit)

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

11 years agoMFC r239254:
mav [Thu, 13 Sep 2012 00:36:56 +0000 (00:36 +0000)]
MFC r239254:
Fix multichannel input signals tracing on some CODECs like ALC260.

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