]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMFC r199829:
kib [Thu, 17 Dec 2009 19:53:16 +0000 (19:53 +0000)]
MFC r199829:
Implement rtld part of the support for -z nodlopen (see ld(1)).

MFC r199877:
Allow to load not-openable dso when tracing. This fixes ldd on such dso or
dso linked to non-openable object.
Remove '\n' at the end of error message.
End comments with dot.

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

14 years agoMFC r199826:
kib [Thu, 17 Dec 2009 18:56:52 +0000 (18:56 +0000)]
MFC r199826:
sigset() is the name of function specified by SUSv4.
Replace it to avoid conflict.

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

14 years agoMFC r200450:
kib [Thu, 17 Dec 2009 18:43:34 +0000 (18:43 +0000)]
MFC r200450:
Document PBDRY and SLEEPQ_STOP_ON_BDRY.

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

14 years agoMFC rev 200498:
marcel [Thu, 17 Dec 2009 02:06:07 +0000 (02:06 +0000)]
MFC rev 200498:
Work-around a race condition on ia64 while unlocking a contested lock.

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

14 years agoMFC r199764: Make ULE process usage (%CPU) accounting usable again
ivoras [Wed, 16 Dec 2009 21:48:27 +0000 (21:48 +0000)]
MFC r199764: Make ULE process usage (%CPU) accounting usable again

Approved by: gnn (mentor) (implicitly)

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

14 years agoMFC: r200459
marius [Wed, 16 Dec 2009 18:39:32 +0000 (18:39 +0000)]
MFC: r200459

Unbreak the ata_atapi() usage. Since r200171 (MFC'ed in r200432) the
mode setting functions get a ata_device type device passed instead of
a ata_channel one, thus ata_atapi() has to be adjusted accordingly.

Reviewed by: mav

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

14 years agoMFC r200607:
mav [Wed, 16 Dec 2009 17:48:26 +0000 (17:48 +0000)]
MFC r200607:
Large I/Os on Promise controllers reported to cause UDMA ICRC errors and
subsequent timeouts. Restore previous limit for now, at least until
I will have hardware to experiment.

PR:             kern/141438

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

14 years agoRe-apply the fix from r199029 (MFC from r198162) to allow
dougb [Tue, 15 Dec 2009 23:05:16 +0000 (23:05 +0000)]
Re-apply the fix from r199029 (MFC from r198162) to allow
$name_program to override $command.

PR: conf//141642
Submitted by: Petr Lampa <lampa@fit.vutbr.cz>

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

14 years agoAdd SA-09:15.ssl, SA-09:16.rtld and SA-09:17.freebsd-update.
delphij [Tue, 15 Dec 2009 20:47:51 +0000 (20:47 +0000)]
Add SA-09:15.ssl, SA-09:16.rtld and SA-09:17.freebsd-update.

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

14 years agoMFC: r200272
marius [Tue, 15 Dec 2009 20:00:34 +0000 (20:00 +0000)]
MFC: r200272

Add additional checks of the kernel stack addresses in order to
ensure we don't overrun the beginning of the call chain.

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

14 years agoMFC r199995:
ume [Tue, 15 Dec 2009 15:01:52 +0000 (15:01 +0000)]
MFC r199995:
Don't try to bind to an anycast address.  The KAME IPv6 stack doesn't
allow bind to an anycast address.  It does away with an annoying
message.

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

14 years agoMFC r198318:
stas [Tue, 15 Dec 2009 10:16:57 +0000 (10:16 +0000)]
MFC r198318:
  - On entrance to the rx_eof sync RX rings maps with POSTWRITE flag
    instead of POSTREAD: the hardware do not touch this memory (CPU
    updates it).  It is already synchronized as PREWRITE after the
    processing is done.

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

14 years ago- MFC r197832, r197834, r197837:
stas [Tue, 15 Dec 2009 10:00:00 +0000 (10:00 +0000)]
- MFC r197832, r197834, r197837:
  - Add support for new BGE chips (5761, 5784 and 57780).  These chips uses new
    BGE_PCI_PRODID_ASICREV register to store the chip identifier and its revision.
  - Add new grouping macro for 7575+ chips (BGE_IS_5755_PLUS).
  - Add IDs for Fujitsu-branded Broadcom adapters.

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

14 years agoMFC: expose only bio_cmd and bio_flags values to userland
luigi [Tue, 15 Dec 2009 07:32:08 +0000 (07:32 +0000)]
MFC: expose only bio_cmd and bio_flags values to userland

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

14 years agoMFC r200287:
delphij [Tue, 15 Dec 2009 01:14:33 +0000 (01:14 +0000)]
MFC r200287:

Allow using IPv6 in nfsrvd_sentcache() callback.

PR: kern/141289
Submitted by: Petr Lampa <lampa fit vutbr cz>

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

14 years agosync with head
luigi [Tue, 15 Dec 2009 00:26:42 +0000 (00:26 +0000)]
sync with head

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

14 years agoMFC r199123:
delphij [Mon, 14 Dec 2009 22:38:51 +0000 (22:38 +0000)]
MFC r199123:

Add a minimal change to prevent NULL deference in ee(1).

To repeat the problem, one can press "Ctrl+C" and then enter "0".

Submitted by:   Alexander Best <alexbestms wwu de>
PR: bin/137707

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

14 years agoWrap some socket handling code in a !NULL bow
dougb [Mon, 14 Dec 2009 21:50:34 +0000 (21:50 +0000)]
Wrap some socket handling code in a !NULL bow

This patch or something similar will likely be included in a future
BIND release.

PR: bin/138061
Submitted by: Michael Baker <michael.baker@diversit.com.au>
Original patch submitted by: Volker <volker@vwsoft.com>
Patch reviewed and tweaked by: ISC

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

14 years agoMFC rev 200397:
marcel [Mon, 14 Dec 2009 17:42:40 +0000 (17:42 +0000)]
MFC rev 200397:
Fix interrupt handling.

PR: kern/140947

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

14 years agoMerge r199798 from head to stable/8:
rwatson [Mon, 14 Dec 2009 13:23:33 +0000 (13:23 +0000)]
Merge r199798 from head to stable/8:

  Fix comment typo.

  Submitted by: Marc Balmer <marc at msys.ch>

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

14 years agoMerge r199270 from head to stable/8:
rwatson [Mon, 14 Dec 2009 13:16:50 +0000 (13:16 +0000)]
Merge r199270 from head to stable/8:

  Fix white space in rtld runtime error printf.

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

14 years agoMerge r197841 from head to stable/8:
rwatson [Mon, 14 Dec 2009 13:13:43 +0000 (13:13 +0000)]
Merge r197841 from head to stable/8:

  Add a new errno, ENOTCAPABLE, to be returned when a process requests an
  operation on a file descriptor that is not authorized by the descriptor's
  capability flags.

  Sponsored by: Google

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

14 years agoMerge r197808 from head to stable/8:
rwatson [Mon, 14 Dec 2009 12:19:21 +0000 (12:19 +0000)]
Merge r197808 from head to stable/8:

  In rtld's map_object(), use pread(..., 0) rather than read() to read the
  ELF header from the front of the file.  As all other I/O on the binary
  is done using mmap(), this avoids the need for seek privileges on the
  file descriptor during run-time linking.

  Sponsored by: Google

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

14 years agoMerge r198438 from head to stable/8:
rwatson [Mon, 14 Dec 2009 11:53:02 +0000 (11:53 +0000)]
Merge r198438 from head to stable/8:

  Correct spelling typo in ip_input comment.

  Pointed out by:       N.J. Mann <njm at njm.me.uk>,
                John Nielsen <john at jnielsen.net>, julian (!), lstewart

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

14 years agoMerge r198417 from head to stable/8:
rwatson [Mon, 14 Dec 2009 11:45:53 +0000 (11:45 +0000)]
Merge r198417 from head to stable/8:

  Remove unneeded blank line from bpf_drvinit().

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

14 years agoMerge r198393 from head to stable/8:
rwatson [Mon, 14 Dec 2009 11:15:47 +0000 (11:15 +0000)]
Merge r198393 from head to stable/8:

  Improve grammar in ip_input comment while attempting to maintain what
  might be its meaning.

(Note, merge of the revision correcting a spelling error in this commit
will follow as well!)

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

14 years agoMerge r197720 from head to stable/8:
rwatson [Mon, 14 Dec 2009 10:48:19 +0000 (10:48 +0000)]
Merge r197720 from head to stable/8:

  Don't comment on stream socket handling in sosend_dgram, since that's
  not handled.

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

14 years agoMFC rev 200202:
marcel [Mon, 14 Dec 2009 01:10:05 +0000 (01:10 +0000)]
MFC rev 200202:
Fix Read-After-Write (RAW) dependency violation for ar.ccv in
isc_atomic_xadd() and isc_atomic_cmpxchg().

Approved by: dougb@

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

14 years agoMFC r200392:
delphij [Mon, 14 Dec 2009 01:05:40 +0000 (01:05 +0000)]
MFC r200392:

Apply two vendor fixes for CVE-2009-3720.

Security: CVE-2009-3720

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

14 years agoRegenerate sysent files after r200491.
rwatson [Mon, 14 Dec 2009 00:20:48 +0000 (00:20 +0000)]
Regenerate sysent files after r200491.

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

14 years agoMerge r197636 from head to stable/8:
rwatson [Mon, 14 Dec 2009 00:19:31 +0000 (00:19 +0000)]
Merge r197636 from head to stable/8:

  Reserve system call numbers for Capsicum security framework capabilities,
  capability mode, and process descriptors: cap_new, cap_getrights, cap_enter,
  cap_getmode, pdfork, pdkill, pdgetpid, and pdwait.

  Obtained from: TrustedBSD Project
  Sponsored by: Google

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

14 years agoMerge r197624 from head to stable/8:
rwatson [Mon, 14 Dec 2009 00:15:56 +0000 (00:15 +0000)]
Merge r197624 from head to stable/8:

  Add audit events for process descriptor system calls, which will appear in
  a future OpenBSM release.

  Sponsored by: Google
  Obtained from: TrustedBSD Project

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

14 years agoMFC r200377:
dougb [Sun, 13 Dec 2009 23:56:46 +0000 (23:56 +0000)]
MFC r200377:

Update to the December 12, 2008 version of this file. The one
substantive change is to add the IPv6 address of L. The other
changes are all CAPS LOCK related.

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

14 years agoMFC r198694,r198697
rnoland [Sun, 13 Dec 2009 15:03:54 +0000 (15:03 +0000)]
MFC r198694,r198697

    Some general cleanup of scatter/gather memory allocation

     - We don't need to check malloc return values with M_WAITOK
     - remove variables that we don't really need
     - cleanup the error paths by just calling drm_sg_cleanup()
     - fix drm_sg_cleanup() to be safe to call at any time

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

14 years agoMFC 198332
rnoland [Sun, 13 Dec 2009 14:55:50 +0000 (14:55 +0000)]
MFC 198332

Check pointer for NULL before dereferencing it, not after.

Originally committed by: brueffer

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

14 years agoMFC r200122
syrinx [Sat, 12 Dec 2009 20:26:11 +0000 (20:26 +0000)]
MFC r200122

Make sure enough memory is allocated for a struct pft_entry when
refreshing the list of pf tables.

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

14 years agoMFC: r200215
marius [Sat, 12 Dec 2009 20:24:12 +0000 (20:24 +0000)]
MFC: r200215

Add <machine/pcb.h> missed in r199135 (MFC'ed in r200443).

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

14 years agoMFC r199135:
kib [Sat, 12 Dec 2009 20:06:25 +0000 (20:06 +0000)]
MFC r199135:
Extract the code that records syscall results in the frame into MD
function cpu_set_syscall_retval().

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

14 years agoMFC r200162:
kib [Sat, 12 Dec 2009 14:44:04 +0000 (14:44 +0000)]
MFC r200162:
Change VOP_FSYNC for zfs vnode from VOP_PANIC to zfs_freebsd_fsync().

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

14 years agoMFC r199193 to stable/8:
antoine [Sat, 12 Dec 2009 12:36:41 +0000 (12:36 +0000)]
MFC r199193 to stable/8:
  - Remove trailing ";" after if statement
  - Remove #if 0 section that was never needed/used
  Reviewed by: raj@

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

14 years agoMFC r199187 to stable/8:
antoine [Sat, 12 Dec 2009 12:34:20 +0000 (12:34 +0000)]
MFC r199187 to stable/8:
  Remove trailing ";" in struct ieee80211_beacon_offsets declaration
  Found by: phk's FlexeLint in September
  Reviewed by: rpaulo@

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

14 years agoMFC r199186 to stable/8:
antoine [Sat, 12 Dec 2009 12:31:11 +0000 (12:31 +0000)]
MFC r199186 to stable/8:
  Fix off by one in ieee80211_send_action_register
  Found by: phk's FlexeLint in September
  Reviewed by: rpaulo@

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

14 years agoMFC r200171, r200182, r200275, r200295, r200359:
mav [Sat, 12 Dec 2009 10:37:31 +0000 (10:37 +0000)]
MFC r200171, r200182, r200275, r200295, r200359:
Introduce ATA_CAM kernel option, turning ata(4) controller drivers into
cam(4) interface modules. When enabled, this option deprecates all ata(4)
peripheral drivers (ad, acd, ...) and interfaces and allows cam(4) drivers
(ada, cd, ...) and interfaces to be natively used instead.

As side effect of this, ata(4) mode setting code was completely rewritten
to make controller API more strict and permit above change. While doing
this, SATA revision was separated from PATA mode. It allows DMA-incapable
SATA devices to operate and makes hw.ata.(ata|atapi)_dma tunable work again.

Also allow ata(4) controller drivers (except some specific or broken ones)
to handle larger data transfers. Previous constraint of 64K was artificial
and is not really required by PCI ATA BM specification or hardware.

Submitted by:   nwitehorn (powerpc part)

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

14 years agoMFC rev 199893, 199941, 200200 and 200207:
marcel [Sat, 12 Dec 2009 05:14:40 +0000 (05:14 +0000)]
MFC rev 199893, 199941, 200200 and 200207:
o   Eliminate MAXCPU.
o   Revamp the PCPU structure.

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

14 years agoMFC rev 200045:
marcel [Sat, 12 Dec 2009 04:34:22 +0000 (04:34 +0000)]
MFC rev 200045:
Include <sys/sysctl.h>, to get the declarations of ostype and
osrelease. Remove the duplicate declarations from this file.

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

14 years agoMFC r199888:
nwhitehorn [Sat, 12 Dec 2009 02:34:00 +0000 (02:34 +0000)]
MFC r199888:

Add support for interpreting taps on ADB touchpads as a button click.

Submitted by: Andreas Tobler <andreast-list at fgznet dot ch>

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

14 years agoMFC r200083:
nwhitehorn [Sat, 12 Dec 2009 02:31:16 +0000 (02:31 +0000)]
MFC r200083:

The first argument of dcbz interprets r0 as a literal zero, not the second.
This worked before by accident.

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

14 years agoMFC r200180:
mav [Fri, 11 Dec 2009 12:53:09 +0000 (12:53 +0000)]
MFC r200180:
If we panicked with SIM lock held, do not try to flush caches.
Extra lock recursing will not make debugging easier.

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

14 years agoMFC r200353:
mav [Fri, 11 Dec 2009 12:44:44 +0000 (12:44 +0000)]
MFC r200353:
Limit maximum I/O size, depending on command set supported by device.
It is required to suppot non-LBA48 devices with MAXPHYS above 128K.
Same is done in ada(4).

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

14 years agoMFC 196739:
fabient [Fri, 11 Dec 2009 12:36:02 +0000 (12:36 +0000)]
MFC 196739:
Add counters for the i7 architecture which were accidentally left
out of the original commit of i7 support.  These are all the counters
on pages A-32 and A-33 of the _Intel(R) 64 and IA32 Architectures
Software Developer's Manual Vol 3B_, June 2009.  Almost all
of these counters relate to operations on the L2 cache.

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

14 years agoRegen
kib [Fri, 11 Dec 2009 11:07:48 +0000 (11:07 +0000)]
Regen

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

14 years agoMFC r200111:
kib [Fri, 11 Dec 2009 11:07:05 +0000 (11:07 +0000)]
MFC r200111:
Add several syscall compat32 entries for acl manipulation.

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

14 years agoMFC rev 200240:
marcel [Fri, 11 Dec 2009 01:26:26 +0000 (01:26 +0000)]
MFC rev 200240:
In exception_save, write-back ar.rnat after switching the backing-store.

PR: ia64/120315

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

14 years agoMFC r199958:
dougb [Fri, 11 Dec 2009 01:23:58 +0000 (01:23 +0000)]
MFC r199958:

Update to BIND 9.6.1-P2. The vulnerability this is designed to fix is
related to DNSSEC validation on a resolving name server that allows
access to untrusted users. If your system does not fall into all 3 of
these categories you do not need to update immediately.

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

14 years agoMFC r199846:
mav [Fri, 11 Dec 2009 01:06:30 +0000 (01:06 +0000)]
MFC r199846:
Add two Cirrus Logic codec IDs.
Add GPIO setting quirk for Apple MacBookPro5,5.

Submitted by:   ed

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

14 years agoMFC r200282, r200290:
mav [Thu, 10 Dec 2009 23:51:24 +0000 (23:51 +0000)]
MFC r200282, r200290:
Change gmirror default balance algorithm from "split" to improved "load".
"split" is very ineffective for devices with rotating media as HDDs.
To be effective, it needs that transfer time reduction due to block
splitting was bigger then access time increase due to non-sequential
access. For modern HDDs I was able to reproduce it only with read sizes
of 2MB and above, which is almost not applicable in real life.
"load" algorithm same time is more universal and effective now.

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

14 years agoMFC r197044:
mav [Thu, 10 Dec 2009 23:46:37 +0000 (23:46 +0000)]
MFC r197044:
Actually component with the greatest priority is used by the prefer balance
algorithm.

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

14 years agoMFC r200124,r200126,
pjd [Thu, 10 Dec 2009 18:38:40 +0000 (18:38 +0000)]
MFC r200124,r200126,

r200124:

Avoid using additional variable for storing an error if we are not going
to do anything with it.

r200126:

Fix deadlock when ZVOLs are present and we are replacing dead component or
calling scrub when pool is in a degraded state. It will try to taste ZVOLs,
which will lead to deadlock, as ZVOL will try to acquire the same locks as
replace/scrub is holding already.

We can't simply skip provider based on their GEOM class, because ZVOL can have
providers build on top of it and we need to skip those as well.

We do it by asking for ZFS::iszvol attribute. Any ZVOL-based provider will give
us positive answer and we have to skip those providers.

This way we remove possibility to create ZFS pools on top of ZVOLs, but it is
not very useful anyway.

I believe deadlock is still possible in some very complex situations like when
we have MD provider on top of UFS file on top of ZVOL. When we try to replace
dead component in the pool mentioned ZVOL is based on, there might be a
deadlock when ZFS will try to taste MD provider. There is no easy way to detect
that, but it isn't very common.

r200125,r200158:

Fix order of looking for providers.

Before r200125 the order of looking for providers was wrong. It was:
1. Find provider by name.
2. Find provider by guid.
3. Find provider by name and guid.

Where it should have been:
1. Find provider by name and guid.
2. Find provider by guid.
3. Find provider by name.

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

14 years agoMFC r200063
syrinx [Thu, 10 Dec 2009 11:52:16 +0000 (11:52 +0000)]
MFC r200063

Fix a problem with high CPU consumption (up to 30%) by bsnmpd on a loaded system.
Instead of constantly calling the mibII_idle function when the server is not busy
call the function only once every 10 seconds to avoid bsnmpd constantly doing
gettimeofday syscalls. Make the idle polling interval confugurable via
begemotIfDataPoll.

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

14 years agoMFC rev 200230:
marcel [Thu, 10 Dec 2009 05:45:40 +0000 (05:45 +0000)]
MFC rev 200230:
Add support for the NetMos NM9865 family of Serial/Parallel ports.

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

14 years agoMFC r198833
thompsa [Wed, 9 Dec 2009 23:14:53 +0000 (23:14 +0000)]
MFC r198833

 Add more verbose output when dumping the configuration descriptor.

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

14 years agoMFC r199677
thompsa [Wed, 9 Dec 2009 23:12:52 +0000 (23:12 +0000)]
MFC r199677

 add support for MIDI devices without audio control stream.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r199576
thompsa [Wed, 9 Dec 2009 23:12:14 +0000 (23:12 +0000)]
MFC r199576

 remove volume alignment (was previously not correctly implemented)

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

14 years agoMFC r199060
thompsa [Wed, 9 Dec 2009 23:11:27 +0000 (23:11 +0000)]
MFC r199060

 Improve support for High-speed USB audio devices.
 - fix issues regarding the mixer, where the interface number was not set in
   time.
 - fix wrong use of resolution parameter.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r196487
thompsa [Wed, 9 Dec 2009 23:10:32 +0000 (23:10 +0000)]
MFC r196487

 Remove redundant Giant reference. Giant will be dropped
 automatically when the mutex argument is NULL.

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

14 years agoMFC r199816
thompsa [Wed, 9 Dec 2009 22:42:40 +0000 (22:42 +0000)]
MFC r199816

 Remove overuse of exclamation marks in kernel printfs, there mere fact a
 message has been printed is enough to get someones attention. Also remove the
 line number for DPRINTF/DPRINTFN, it already prints the funtion name and a
 unique message.

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

14 years agoMFC r199814
thompsa [Wed, 9 Dec 2009 22:41:50 +0000 (22:41 +0000)]
MFC r199814

 Disable interrupts after doing early takeover of the usb controller in case usb
 isnt actually compiled in (or kldloaded) as the controller could cause spurious
 interrupts.

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

14 years agoMFC r199718
thompsa [Wed, 9 Dec 2009 22:41:11 +0000 (22:41 +0000)]
MFC r199718

 Actually disable interrupts in ehci_detach().

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

14 years agoMFC r199676
thompsa [Wed, 9 Dec 2009 22:40:27 +0000 (22:40 +0000)]
MFC r199676

 Correct register access for USB device side operation on the musb controller.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r199675
thompsa [Wed, 9 Dec 2009 22:39:09 +0000 (22:39 +0000)]
MFC r199675

 Provide tunables for some of the usb sysctls that affect boot behaviour.

Submitted by: Andriy Gapon

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

14 years agoMFC r199673
thompsa [Wed, 9 Dec 2009 22:38:02 +0000 (22:38 +0000)]
MFC r199673

 Initialise variable before use.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r199672
thompsa [Wed, 9 Dec 2009 22:37:06 +0000 (22:37 +0000)]
MFC r199672

 Improve High Speed slot allocation mechanism by moving the computation to the
 endpoint rather than per xfer and provide functions around get/free of resources.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r199062
thompsa [Wed, 9 Dec 2009 22:36:16 +0000 (22:36 +0000)]
MFC r199062

 Correct Olympus quirk.

Submitted by: Pavel Gubin

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

14 years agoMFC r199061
thompsa [Wed, 9 Dec 2009 22:35:08 +0000 (22:35 +0000)]
MFC r199061

 Add missing mtx_destroy().

Submitted by: Sebastian Huber

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

14 years agoMFC r199059
thompsa [Wed, 9 Dec 2009 22:34:11 +0000 (22:34 +0000)]
MFC r199059

 improve support for high speed isochronous endpoints which does not run 1:1,
 but needs intervalling 1:2, 1:4 or 1:8

Submitted by: Hans Petter Selasky

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

14 years agoMFC r199057
thompsa [Wed, 9 Dec 2009 22:33:22 +0000 (22:33 +0000)]
MFC r199057

 ehci_init() will do reset and set the usbrev flag.  Fix problem where
 ehci_reset() was called before ehci_init().

PR: usb/140242
Submitted by: Sebastian Huber

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

14 years agoMFC r198776
thompsa [Wed, 9 Dec 2009 22:32:36 +0000 (22:32 +0000)]
MFC r198776

 - Add usb_fill_bulk_urb() and usb_bulk_msg() linux compat functions [1]
 - Don't write actual length if the actual length pointer is NULL [2]
 - correct Linux Compatibility error codes for short isochronous IN transfers
   and make status field signed.

Submitted by: Leunam Elebek [1], Manuel Gebele [2]

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

14 years agoMFC r198774
thompsa [Wed, 9 Dec 2009 22:31:45 +0000 (22:31 +0000)]
MFC r198774

 Check unit number and provide string name for consdev.

Submitted by: HPS

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

14 years agoMFC r197761,r198194,r198862
thompsa [Wed, 9 Dec 2009 22:10:45 +0000 (22:10 +0000)]
MFC r197761,r198194,r198862

 updates device entries supported with the product name not magic numbers
 and sorts entries.  WUSB54GCV2 is added.

 overhauls urtw(4) for supporting RTL8187B devices properly that there
 was major changes to initialize RF chipset and set H/W registers and
 removed a lot of magic numbers on code.

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

14 years agoMFC r199949:
nwhitehorn [Wed, 9 Dec 2009 21:58:39 +0000 (21:58 +0000)]
MFC r199949:

Add atp(4) to powerpc GENERIC. Most late-generation Apple PowerPC laptops
have trackpads that do not work at all without this driver.

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

14 years agoMFC r199169:
nwhitehorn [Wed, 9 Dec 2009 21:56:55 +0000 (21:56 +0000)]
MFC r199169:

Reduce probe priority of USB input devices to BUS_PROBE_GENERIC from
BUS_PROBE_SPECIFIC. This allows device-specific drivers like atp to
attach reliably.

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

14 years agoMFC r199086,199151,199680,199948,200241
thompsa [Wed, 9 Dec 2009 21:47:42 +0000 (21:47 +0000)]
MFC r199086,199151,199680,199948,200241

 Driver for the Apple Touchpad present on MacBook (non-Pro & Pro).

Submitted by: Rohit Grover <rgrover1 at gmail.com>

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

14 years agoMFC r199575
thompsa [Wed, 9 Dec 2009 21:34:38 +0000 (21:34 +0000)]
MFC r199575

  - fix a transfer cancelling bug/segfault [1]
  - correct a return code in the transfer cancel function.
  - add new API function, libusb20_tr_bulk_intr_sync().

 Submitted by: HPS
 Reported by: Robert Jenssen [1]

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

14 years agoMFC r200121:
mav [Wed, 9 Dec 2009 17:20:10 +0000 (17:20 +0000)]
MFC r200121:
Do not ignore device interrupt if bus mastering is still active. It is
normal in case of media read error and some ATAPI cases, when transfer size
is unknown beforehand. PCI ATA BM specification tells that in case of such
underrun driver should just manually stop DMA engine. DMA engine should
same time guarantie that all bus mastering transfers completed at the moment
of driver reads interrupt flag asserted.
This change fixes interrupt storms and command timeouts in many cases.

PR:             kern/103602, sparc64/121539, kern/133122, kern/139654

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

14 years agoMFC r200117:
mav [Wed, 9 Dec 2009 17:11:09 +0000 (17:11 +0000)]
MFC r200117:
On Soft Reset, read device signature from FIS receive area, instead of
PxSIG register. It works better for NVidia chipsets. ahci(4) does the same.

PR:             kern/140472, i386/138668

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

14 years agoMFC r200223:
mav [Wed, 9 Dec 2009 13:32:49 +0000 (13:32 +0000)]
MFC r200223:
Explicitly acknowledge MSI completion, as required by SiI3124 datasheet.
It makes MSI working there. Later (and cheaper) PCIe chips (3132/3531)
still randomly crashing system in few seconds of high MSI rates, generating
something inaporopriate, like NMI or "Fatal trap 30".

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

14 years agoMFC r200217:
mav [Wed, 9 Dec 2009 13:30:11 +0000 (13:30 +0000)]
MFC r200217:
SiI3124 has no SNotification register. Handle Asynchronous Notifications
there without it as good as possible.

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

14 years agoMFC r200196:
mav [Wed, 9 Dec 2009 13:27:06 +0000 (13:27 +0000)]
MFC r200196:
Add Asynchronous Notification support for controllers without SNTF
capability by snooping SDB FIS receive area. It should be even faster
then regular way, but less reliable.

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

14 years agoMFC r200086:
mav [Tue, 8 Dec 2009 23:23:45 +0000 (23:23 +0000)]
MFC r200086:
Change 'load' balancing mode algorithm:
- Instead of measuring last request execution time for each drive and
choosing one with smallest time, use averaged number of requests, running
on each drive. This information is more accurate and timely. It allows to
distribute load between drives in more even and predictable way.
- For each drive track offset of the last submitted request. If new request
offset matches previous one or close for some drive, prefer that drive.
It allows to significantly speedup simultaneous sequential reads.

PR:             kern/113885

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

14 years agoMFC r196879:
mav [Tue, 8 Dec 2009 23:15:48 +0000 (23:15 +0000)]
MFC r196879:
Add support for changing providers priority.

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

14 years agoMFC: r199715
rmacklem [Tue, 8 Dec 2009 22:41:37 +0000 (22:41 +0000)]
MFC: r199715
Modify the experimental nfs server so that it falls back to
using VOP_LOOKUP() when VFS_VGET() returns EOPNOTSUPP in the
ReaddirPlus RPC. This patch is based upon one by pjd@ for the
regular nfs server which has not yet been committed. It is needed
when a ZFS volume is exported and ReaddirPlus (which almost
always happens for NFSv4) is performed by a client. The patch
also simplifies vnode lock handling somewhat.

Tested by: gerrit at pmp.uni-hannover.de

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

14 years agoMFC: r199616
rmacklem [Tue, 8 Dec 2009 22:28:55 +0000 (22:28 +0000)]
MFC: r199616
Patch the experimental NFS server is a manner analagous to
r197525, so that the creation verifier is handled correctly
in va_atime for 64bit architectures. There were two problems.
One was that the code incorrectly assumed that
sizeof (struct timespec) == 8 and the other was that the tv_sec
field needs to be assigned from a signed 32bit integer, so that
sign extension occurs on 64bit architectures. This is required
for correct operation when exporting ZFS volumes.

Tested by: gerrit at pmp.uni-hannover.de
Reviewed by: pjd

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

14 years agoMFC 198464:
fabient [Tue, 8 Dec 2009 18:23:52 +0000 (18:23 +0000)]
MFC 198464:
Inform hwpmc(4) of a thread's impending demise prior to invoking sched_throw().

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

14 years agoMFC revisions 196550 and 196552:
delphij [Tue, 8 Dec 2009 18:23:51 +0000 (18:23 +0000)]
MFC revisions 196550 and 196552:

Add a new rc.d script, static_arp, which enables the administrator to
statically bind IPv4 <-> MAC address at boot time.

In order to use this, the administrator needs to configure the following
rc.conf(5) variable:

 - static_arp_pairs: A list of names for static bind pairs, and,
 - a series of static_arp_(name): the arguments that is being passed to
   ``arp -S'' operation.

Example:
  static_arp_pairs="gw"
  static_arp_gw="192.168.1.1 00:01:02:03:04:05"

See the rc.conf(5) manual page for more details.

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

14 years agoMFC r199968: x86 cpu features: add MOVBE reporting and flag
avg [Tue, 8 Dec 2009 15:27:06 +0000 (15:27 +0000)]
MFC r199968: x86 cpu features: add MOVBE reporting and flag

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

14 years agoMFC r199184: reflect that pg_ps_enabled is a tunable
avg [Tue, 8 Dec 2009 15:21:39 +0000 (15:21 +0000)]
MFC r199184: reflect that pg_ps_enabled is a tunable

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

14 years agoMFC r200052: ichsmb: add pci ids for some newer supported hardware
avg [Tue, 8 Dec 2009 15:14:55 +0000 (15:14 +0000)]
MFC r200052: ichsmb: add pci ids for some newer supported hardware

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

14 years agoMFC r199886:
nwhitehorn [Tue, 8 Dec 2009 05:37:08 +0000 (05:37 +0000)]
MFC r199886:

Add a CPU features framework on PowerPC and simplify CPU setup a little
more. This provides three new sysctls to user space:
hw.cpu_features - A bitmask of available CPU features
hw.floatingpoint - Whether or not there is hardware FP support
hw.altivec - Whether or not Altivec is available

PR: powerpc/139154

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

14 years agoMFC r198678:
nwhitehorn [Tue, 8 Dec 2009 05:32:44 +0000 (05:32 +0000)]
MFC r198678:

ake procstat -k work on PowerPC by avoiding mistakenly using signed
compares with a low address (0x1000) and a high address
(the KVA kernel stack).

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

14 years agoMFC r198445:
nwhitehorn [Tue, 8 Dec 2009 05:27:06 +0000 (05:27 +0000)]
MFC r198445:

Turn on NAP mode on G5 systems, and refactor the HID0 setup code a little.
This makes my G5 Xserve sound slightly less like it is filled with
howling banshees.

MFC r198968:

Unbreak E500 builds. The inline assembly for the 970 CPUs
is invalid when compiling for BookE.

MFC r199533:

Fix cpuid output on E500 core.

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