]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMFC r205200 + r206199
delphij [Thu, 15 Apr 2010 01:25:17 +0000 (01:25 +0000)]
MFC r205200 + r206199

Merge OpenSolaris revision 9396:f41cf682d0d3:

6830813 zfs list -t all fails assertion

*Note that this is only a partial merge of this revision addressing only
this one issue.*

PR: bin/144720
Submitted by: mm

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

14 years agoMFC r205199:
delphij [Thu, 15 Apr 2010 01:22:38 +0000 (01:22 +0000)]
MFC r205199:

Merge OpenSolaris revision 9365:7838a22eccd6:

PSARC/2009/171 zfs list -d and zfs get -d
6762432 zfs list --depth

PR: bin/144720
Submitted by: mm

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

14 years agoMFC r205198:
delphij [Thu, 15 Apr 2010 01:20:30 +0000 (01:20 +0000)]
MFC r205198:

Merge OpenSolaris revision 8802:010b31dd4c53:

6773366 "zfs list" memory consumption can be further reduced

PR: bin/144720
Submitted by: mm

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

14 years agoMFC 205900:
jhb [Wed, 14 Apr 2010 17:17:06 +0000 (17:17 +0000)]
MFC 205900:
Use panic() (which the environment is required to provide to libstand) to
implement assert() instead of relying on a non-required exit().  The exit()
invocation also did not match the semantics of the exit() routine that
current boot environments happen to require.

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

14 years agoMFC 204214:
gibbs [Wed, 14 Apr 2010 17:01:29 +0000 (17:01 +0000)]
MFC 204214:
Enforce stronger bus-dma alignment semantics so bus-dma operates correctly
with Xen's blkfront driver.

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

14 years agoMFC revision 205781:
gibbs [Wed, 14 Apr 2010 16:37:34 +0000 (16:37 +0000)]
MFC revision 205781:
Use standard types in preference to BSD types so that these header files
can be used in applications compiled with only POSIX types visible.

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

14 years agoMFC r206409
alc [Wed, 14 Apr 2010 16:31:59 +0000 (16:31 +0000)]
MFC r206409
  Introduce the function kmem_alloc_attr(), which allocates kernel virtual
  memory with the specified physical attributes.

  Correct an error in the prototype for kmem_malloc().

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

14 years agoMFC 205886:
jhb [Wed, 14 Apr 2010 15:33:15 +0000 (15:33 +0000)]
MFC 205886:
Defer freeing a kevent list until after dropping kqueue locks.

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

14 years agoMFC 205536:
jhb [Wed, 14 Apr 2010 15:22:58 +0000 (15:22 +0000)]
MFC 205536:
Reject attempts to create a MAP_ANON mapping with a non-zero offset.

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

14 years agoMFC r206399, r206479: Disambiguate `IPs' to a more specific term.
ume [Wed, 14 Apr 2010 15:03:58 +0000 (15:03 +0000)]
MFC r206399, r206479: Disambiguate `IPs' to a more specific term.

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

14 years agoMFC 205851:
jhb [Wed, 14 Apr 2010 15:00:46 +0000 (15:00 +0000)]
MFC 205851:
Add a handler for the local APIC error interrupt.  For now it just prints
out the current value of the local APIC error register when the interrupt
fires.

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

14 years agoMFC: r205941
rmacklem [Wed, 14 Apr 2010 03:13:02 +0000 (03:13 +0000)]
MFC: r205941
This patch should fix handling of byte range locks locally
on the server for the experimental nfs server. When enabled
by setting vfs.newnfs.locallocks_enable to non-zero, the
experimental nfs server will now acquire byte range locks
on the file on behalf of NFSv4 clients, such that lock
conflicts between the NFSv4 clients and processes running
locally on the server, will be recognized and handled correctly.

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

14 years agoMFC r206436:
yongari [Wed, 14 Apr 2010 01:22:33 +0000 (01:22 +0000)]
MFC r206436:
  Consistently use capital letters.

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

14 years agoMFC r206433:
yongari [Wed, 14 Apr 2010 01:12:24 +0000 (01:12 +0000)]
MFC r206433:
  Add preliminary support for 8168E/8111E PCIe controller.
  While I'm here simplify device description string.

  Tested by: Michael Beckmann < michael <> apfel dot de >

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

14 years agoMFC r206364:
yongari [Wed, 14 Apr 2010 00:50:18 +0000 (00:50 +0000)]
MFC r206364:
  Partial revert r204545.
  Just relying on status LE ownership of status block seems to cause
  poor performance. Always read current status index register first
  and then check status ownership as we had before. Accessing status
  index register seems to trigger immediate status update if
  controller have pending status updates.

  Reported by: Andre Albsmeier <Andre.Albsmeier <> siemens dot com>
  Tested by: Andre Albsmeier <Andre.Albsmeier <> siemens dot com>

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

14 years agoMFC r205995:
dougb [Tue, 13 Apr 2010 20:44:16 +0000 (20:44 +0000)]
MFC r205995:

Massive cleanup and synchronization with other *BSDs

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

14 years agoMFC r206248:
dougb [Tue, 13 Apr 2010 20:36:54 +0000 (20:36 +0000)]
MFC r206248:

Change where we nap so that if pwait(1) returns but kill -0 still sees
a zombie we don't print an endless string of the same pid number until
the zombie exits.

While I'm here, local'ize the variables that this function uses.

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

14 years agoPull mergeinfo from r201203 up into the etc directory
dougb [Tue, 13 Apr 2010 20:33:34 +0000 (20:33 +0000)]
Pull mergeinfo from r201203 up into the etc directory

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

14 years agoMFC r205880 by ru:
emaste [Tue, 13 Apr 2010 18:46:18 +0000 (18:46 +0000)]
MFC r205880 by ru:

  - Handle calloc() allocation failures.
  - Fixed a comment.
  - 2 -> EXIT_FAILURE in some places.
  - errx() -> err() where appropriate.

PR: 144644
Submitted by: Garrett Cooper

Also fix endinclude() prototype to avoid compiler warning.

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

14 years agoMFC r206459:
kib [Tue, 13 Apr 2010 10:23:03 +0000 (10:23 +0000)]
MFC r206459:
Handle a case when non-canonical address is loaded into the fsbase or
gsbase MSR.

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

14 years agoMFC r205853:
trasz [Tue, 13 Apr 2010 06:05:15 +0000 (06:05 +0000)]
MFC r205853:

Add myself.

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

14 years agoMFC r205796:
trasz [Tue, 13 Apr 2010 06:01:24 +0000 (06:01 +0000)]
MFC r205796:

Make acl_to_text_np(3) not crash on long group or user names in NFSv4 ACLs.

PR: amd64/145091

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

14 years agoMFC: 205994
imp [Tue, 13 Apr 2010 01:04:11 +0000 (01:04 +0000)]
MFC: 205994

  Two fixes:

  (1) We don't need a custom install_kernel.  We can install without
  symbols by adding INSTALL_NODEBUG (which likely should be
  WITHOUT_KERNEL_SYMBOLS_FILE, or something shorter) to CONF_INSTALL
  (2) for make buildenv stage, use NANO_MAKE_CONF_BUILD rather than the
  non-existant NANO_MAKE_CONF.

  MFC after: 7 days

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

14 years agoMFC: 205992
imp [Tue, 13 Apr 2010 01:02:20 +0000 (01:02 +0000)]
MFC: 205992

  Make -r mean exactly the same thing as -E for increased compatibility
  with GNU sed.

  MFC after: 7 days

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

14 years agoMFC 205980:
imp [Tue, 13 Apr 2010 00:57:54 +0000 (00:57 +0000)]
MFC 205980:

  Stop hard coding i386 as the arch for the build.  Instead, default to the
  processor we're running on.  Also, supply amd64 version of create_diskimage
  that's the same as i386's.

  # didn't fix the confusion between using the processor for this and using
  # the machine (which would be more appropriate).  NANO_ARCH smashes the two
  # together right now.

  MFC after: 7 days

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

14 years agoMFC 205838:
imp [Tue, 13 Apr 2010 00:55:11 +0000 (00:55 +0000)]
MFC 205838:

  Mark the vtoc.h structure as packed so that it is the right size and
  layout on arm.

  MFC after: 7 days

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

14 years agoMFC r203710:
imp [Tue, 13 Apr 2010 00:48:54 +0000 (00:48 +0000)]
MFC r203710:

  When you have multiple addresses on the same network on different
  interfaces (such as when you are part of a carp pool), and you run
  rpcbind -h to restrict which interfaces have rpc services, rpcbind can
  none-the-less return addresses that aren't in the -h list.  This patch
  enforces the rule that when you specify -h on the command line, then
  services returned from rpcbind must be to one of the addresses listed
  in -h, or be a loopback address (since localhost is implicit when
  running -h).

  The root cause of this is the assumption in addrmerge that there can
  be only one interface that matches a given network IP address.  This
  turns out not to be the case.  To retain historical behavior, I didn't
  try to fix the routine to prefer the address that the request came
  into, since I didn't know the side effects that might cause in the
  normal case.  My quick analysis suggests that it wouldn't be a
  problem, but since this code is tricky I opted for the more
  conservative patch of only restricting the reply when -h is in effect.

  Hence, this change will have no effect when you are running rpcbind
  without -h.

  Reviewed by: alfred@
  Sponsored by: iX Systems
  MFC after: 2 weeks

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

14 years agoMFC r206090:
fabient [Mon, 12 Apr 2010 21:37:28 +0000 (21:37 +0000)]
MFC r206090:
Improve "top" header by:
- Display sample received per PMCs (or merged PMCs).
- Display percentage vs all samples

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

14 years agoMFC r206102,206103,206175,206176: add example indent.pro file
avg [Mon, 12 Apr 2010 21:18:58 +0000 (21:18 +0000)]
MFC r206102,206103,206175,206176: add example indent.pro file

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

14 years agoMFC r206178: ibc/db/hash: cap auto-tuned block size
avg [Mon, 12 Apr 2010 21:12:03 +0000 (21:12 +0000)]
MFC r206178: ibc/db/hash: cap auto-tuned block size

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

14 years agoMFC r206128: ffs_mount: remove redundant assignment of to devvp.v_bufobj
avg [Mon, 12 Apr 2010 21:07:58 +0000 (21:07 +0000)]
MFC r206128: ffs_mount: remove redundant assignment of to devvp.v_bufobj

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

14 years agoMFC r205989: indent(1): new option, -ta, to treat all *_t identifiers as types
avg [Mon, 12 Apr 2010 21:04:35 +0000 (21:04 +0000)]
MFC r205989: indent(1): new option, -ta, to treat all *_t identifiers as types

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

14 years agoMFC r206098: mountmsdosfs: reject too high value of bytes per cluster
avg [Mon, 12 Apr 2010 20:53:17 +0000 (20:53 +0000)]
MFC r206098: mountmsdosfs: reject too high value of bytes per cluster

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

14 years agoMFC r206266: Set net.inet6.ip6.fw.enable as well.
ume [Sun, 11 Apr 2010 15:17:52 +0000 (15:17 +0000)]
MFC r206266: Set net.inet6.ip6.fw.enable as well.

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

14 years agoMFC r205385:
jh [Sat, 10 Apr 2010 14:28:58 +0000 (14:28 +0000)]
MFC r205385:

Escape characters unsafe for XML output in GEOM class, instance and
provider names.

- Characters in range 0x01-0x1f except '\t', '\n', and '\r' are replaced
  with '?'. Those characters are disallowed in XML.
- '&', '<', '>', '\'', '"' and characters in range 0x7f-0xff are
  replaced with XML numeric character reference.

If the kern.geom.confxml sysctl provides invalid XML, libgeom
geom_xml2tree() fails and utilities using it do not work. Unsafe
characters are common in msdosfs and cd9660 labels.

PR: kern/104389

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

14 years agoMFC r206383:
emaste [Fri, 9 Apr 2010 22:50:36 +0000 (22:50 +0000)]
MFC r206383:
  Remove extraneous '>'.

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

14 years agoMFC r206094:
kib [Fri, 9 Apr 2010 08:45:30 +0000 (08:45 +0000)]
MFC r206094:
Supply default implementation of VOP_RENAME() that does neccessary
unlocks and unreferences for argument vnodes, as expected by
kern_renameat(9), and returns EOPNOTSUPP. This fixes locks and
reference leaks when rename is attempted on fs that does not
implement rename.

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

14 years agoMFC r206093:
kib [Fri, 9 Apr 2010 08:39:28 +0000 (08:39 +0000)]
MFC r206093:
Add function vop_rename_fail(9) that performs needed cleanup for locks
and references of the VOP_RENAME(9) arguments. Use vop_rename_fail()
in deadfs_rename().

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

14 years agoMFC r206174
alc [Fri, 9 Apr 2010 06:40:30 +0000 (06:40 +0000)]
MFC r206174
  vm_reserv_alloc_page() should never be called on an OBJT_SG object, just
  as it is never called on an OBJT_DEVICE object.  (This change should have
  been included in r195840.)

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

14 years agoMFC: r205663
rmacklem [Fri, 9 Apr 2010 01:33:12 +0000 (01:33 +0000)]
MFC: r205663
Patch the experimental NFS server in a manner analagous to r205661
for the regular NFS server, to ensure that ESTALE is
returned to the client for all errors returned by VFS_FHTOVP().

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

14 years agoMFC: r205661
rmacklem [Fri, 9 Apr 2010 01:14:39 +0000 (01:14 +0000)]
MFC: r205661
Patch the regular NFS server so that it returns ESTALE to the client
for all errors returned by VFS_FHTOVP(). This is required to ensure
that EIO doesn't get returned to the client when ZFS is used as the
server file system.

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

14 years agoThis is an MFC of 206029
mjacob [Thu, 8 Apr 2010 18:33:35 +0000 (18:33 +0000)]
This is an MFC of 206029
Add a couple missing basic mode page codes.

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

14 years agoMFC r206177: hash.3: fix a factual mistake in the man page
avg [Thu, 8 Apr 2010 07:43:15 +0000 (07:43 +0000)]
MFC r206177: hash.3: fix a factual mistake in the man page

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

14 years agoMFC r204901
delphij [Thu, 8 Apr 2010 00:52:28 +0000 (00:52 +0000)]
MFC r204901

Remove the check for IFF_DRV_OACTIVE right before adding a port into lagg
interface.  The check itself seems to be coming from OpenBSD but does not
seem to be useful for our code.

Discussed with: thomasa

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

14 years agoMFC r205988: indent(1): correctly handle case/label at the very start of a function
avg [Wed, 7 Apr 2010 22:19:46 +0000 (22:19 +0000)]
MFC r205988: indent(1): correctly handle case/label at the very start of a function

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

14 years agoMFC r200028, r201193, r201752, r201930, r202460, r200672, r206375:
ume [Wed, 7 Apr 2010 19:04:36 +0000 (19:04 +0000)]
MFC r200028, r201193, r201752, r201930, r202460, r200672, r206375:
Unify rc.firewall and rc.firewall6, and obsolete rc.firewall6 and
rc.d/ip6fw.

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

14 years agoThis is an MFC of 205993
mjacob [Wed, 7 Apr 2010 17:58:29 +0000 (17:58 +0000)]
This is an MFC of 205993

For unhandled actions in xpt_action_default, remember to call
xpt_done for queued requests. This solves the problem of
indefinite hangs for unspecified transports when XPT_SCAN_BUS
is called.

A few minor cosmetics elsewhere.

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

14 years agoMFC: r205572
rmacklem [Wed, 7 Apr 2010 15:19:52 +0000 (15:19 +0000)]
MFC: r205572
Fix the experimental NFS subsystem so that it uses the correct
preprocessor macro name for not requiring strict data alignment.

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

14 years agoMFC r205986:
rpaulo [Wed, 7 Apr 2010 14:59:07 +0000 (14:59 +0000)]
MFC r205986:
 Constify vap argument of ieee80211_{note,discard}* functions.

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

14 years agoRegen.
kib [Wed, 7 Apr 2010 14:53:49 +0000 (14:53 +0000)]
Regen.

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

14 years agoMFC r205327:
kib [Wed, 7 Apr 2010 14:52:42 +0000 (14:52 +0000)]
MFC r205327:
Remove empty line.

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

14 years agoMFC r205326:
kib [Wed, 7 Apr 2010 14:50:58 +0000 (14:50 +0000)]
MFC r205326:
Convert aio syscall registration to SYSCALL_INIT_HELPER.

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

14 years agoMFC r205325:
kib [Wed, 7 Apr 2010 14:49:35 +0000 (14:49 +0000)]
MFC r205325:
Implement compat32 shims for mqueuefs.

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

14 years agoMFC r205324:
kib [Wed, 7 Apr 2010 14:47:55 +0000 (14:47 +0000)]
MFC r205324:
Implement compat32 shims for ksem syscalls.

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

14 years agoMFC r205323:
kib [Wed, 7 Apr 2010 14:46:28 +0000 (14:46 +0000)]
MFC r205323:
Move SysV IPC freebsd32 compat shims from freebsd32_misc.c to corresponding
sysv_{msg,sem,shm}.c files.

Mark SysV IPC freebsd32 syscalls as NOSTD and add required
SYSCALL_INIT_HELPER/SYSCALL32_INIT_HELPERs to provide auto
register/unregister on module load.

This makes COMPAT_FREEBSD32 functional with SysV IPC compiled and loaded
as modules.

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

14 years agoMFC r205322:
kib [Wed, 7 Apr 2010 14:35:09 +0000 (14:35 +0000)]
MFC r205322:
Move SysV IPC freebsd32 compat shims helpers from freebsd32_misc.c to
sysv_ipc.c.

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

14 years agoMFC r205321:
kib [Wed, 7 Apr 2010 14:28:47 +0000 (14:28 +0000)]
MFC r205321:
Introduce SYSCALL_INIT_HELPER and SYSCALL32_INIT_HELPER macros and
neccessary support functions to allow registering dynamically loaded
syscalls from the MOD_LOAD handlers. Helpers handle registration
failures semi-automatically.

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

14 years agoMFC r205320:
kib [Wed, 7 Apr 2010 14:22:38 +0000 (14:22 +0000)]
MFC r205320:
For SYSCALL_MODULE_HELPER, use "sys/<syscallname>" module name.
For SYSCALL32_MODULE_HELPER, use "sys32/<syscallname>" module name.
This avoids modules name conflict when compat32 syscall does not
need shims.

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

14 years agoMFC r205318:
kib [Wed, 7 Apr 2010 14:16:14 +0000 (14:16 +0000)]
MFC r205318:
Properly handle compat32 calls to sctp generic sendmsd/recvmsg functions that
take iov.

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

14 years agoMFC r205319:
kib [Wed, 7 Apr 2010 14:09:29 +0000 (14:09 +0000)]
MFC r205319:
Make freebsd32_copyiniov() available outside of freebsd32_misc.

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

14 years agoadd priority scheduler.
luigi [Wed, 7 Apr 2010 13:18:58 +0000 (13:18 +0000)]
add priority scheduler.

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

14 years agofix breakage in ipfw removal.
luigi [Wed, 7 Apr 2010 12:42:49 +0000 (12:42 +0000)]
fix breakage in ipfw removal.

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

14 years agoRegen after MFC of COMPAT_FREEBSD32.
nwhitehorn [Wed, 7 Apr 2010 02:25:36 +0000 (02:25 +0000)]
Regen after MFC of COMPAT_FREEBSD32.

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

14 years agoMFC r205014,205015:
nwhitehorn [Wed, 7 Apr 2010 02:24:41 +0000 (02:24 +0000)]
MFC r205014,205015:

Provide groundwork for 32-bit binary compatibility on non-x86 platforms,
for upcoming 64-bit PowerPC and MIPS support. This renames the COMPAT_IA32
option to COMPAT_FREEBSD32, removes some IA32-specific code from MI parts
of the kernel and enhances the freebsd32 compatibility code to support
big-endian platforms.

This MFC is required for MFCs of later changes to the freebsd32
compatibility from HEAD.

Requested by: kib

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

14 years agoMFC r203147
thompsa [Wed, 7 Apr 2010 00:34:05 +0000 (00:34 +0000)]
MFC r203147

 Add a function to check if the usb devices is still connected.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r205036
thompsa [Wed, 7 Apr 2010 00:32:59 +0000 (00:32 +0000)]
MFC r205036

 Implement USB kernel driver detach from userland.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r205681
thompsa [Wed, 7 Apr 2010 00:30:25 +0000 (00:30 +0000)]
MFC r205681

 - add some usb devices (scanner, printer, usb storage)
 - add quirks for the usb storage

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

14 years agoMFC r203087
thompsa [Wed, 7 Apr 2010 00:27:59 +0000 (00:27 +0000)]
MFC r203087

 adds sysctl knobs to show rate statistics that it could be useful to
 debug slow TX speed.

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

14 years agoMFC r202609
thompsa [Wed, 7 Apr 2010 00:26:39 +0000 (00:26 +0000)]
MFC r202609

 Product ID of D-Link DWA-120 after loading the firmware is incorrect.

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

14 years agoMFC r202608
thompsa [Wed, 7 Apr 2010 00:25:03 +0000 (00:25 +0000)]
MFC r202608

 Remove a hack to attach TRENDnet TEW-504UB/EU, this has been solved.

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

14 years agoMFC r205805
thompsa [Tue, 6 Apr 2010 23:31:22 +0000 (23:31 +0000)]
MFC r205805

 Do not sync cache for the PL2506

PR: usb/144915
Submitted by: Monty Hall

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

14 years agoMFC r205804
thompsa [Tue, 6 Apr 2010 23:30:57 +0000 (23:30 +0000)]
MFC r205804

 Do not swap Apple keys when detecting Apple-FN keyboards.

Reported by: Steven Noonan
Submitted by: Hans Petter Selasky

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

14 years agoMFC r205803
thompsa [Tue, 6 Apr 2010 23:30:30 +0000 (23:30 +0000)]
MFC r205803

 Make sure the bsd_urb_list gets initialised and that new URB's are queued at
 the end of the list.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r205802
thompsa [Tue, 6 Apr 2010 23:30:02 +0000 (23:30 +0000)]
MFC r205802

 Add PCI IDs for two more nForce controllers.

Submitted by: Dmitry Luhtionov @ gmail.com

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

14 years agoMFC r205801
thompsa [Tue, 6 Apr 2010 23:29:38 +0000 (23:29 +0000)]
MFC r205801

 Add a couple of usb product IDs.

Submitted by: Dmitry Luhtionov @ gmail.com

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

14 years agoMFC r205043
thompsa [Tue, 6 Apr 2010 23:29:14 +0000 (23:29 +0000)]
MFC r205043

 Add device ID for the NATURAL4000 keyboard

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

14 years agoMFC r205042
thompsa [Tue, 6 Apr 2010 23:28:46 +0000 (23:28 +0000)]
MFC r205042

 - Integrate latest driver code from OpenBSD
 - Drain our tasks from the ieee80211 taskqueue
 - Add more IDs

Submitted by: Akinori Furukoshi

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

14 years agoMFC r205040
thompsa [Tue, 6 Apr 2010 23:28:18 +0000 (23:28 +0000)]
MFC r205040

 extend search for Apple Function Key.

PR: usb/144414
Submitted by: Hans Petter Selasky

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

14 years agoMFC r205039
thompsa [Tue, 6 Apr 2010 23:27:55 +0000 (23:27 +0000)]
MFC r205039

 Add new device ID for the SMC 2514HUB

Submitted by: Alexander Best

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

14 years agoMFC r205038
thompsa [Tue, 6 Apr 2010 23:27:31 +0000 (23:27 +0000)]
MFC r205038

 add new vendor ID for APACER

Submitted by: Paul B Mahol

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

14 years agoMFC r205035
thompsa [Tue, 6 Apr 2010 23:27:04 +0000 (23:27 +0000)]
MFC r205035

 Make sure there is a way to reset the endpoint FIFO on transfer errors for
 ISOCHRONOUS transfers

Submitted by: Hans Petter Selasky

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

14 years agoMFC r205034
thompsa [Tue, 6 Apr 2010 23:26:40 +0000 (23:26 +0000)]
MFC r205034

 For USS820 driver we need to manually reset TX FIFO at each SETUP transaction
 because the chip doesn't do this by itself.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r205033
thompsa [Tue, 6 Apr 2010 23:26:17 +0000 (23:26 +0000)]
MFC r205033

 isochronous endpoint descriptors should have two more bytes which are zero by
 default.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r205032
thompsa [Tue, 6 Apr 2010 23:25:53 +0000 (23:25 +0000)]
MFC r205032

 Add new uvisor(4) device ID.

PR: usb/144201

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

14 years agoMFC r205031
thompsa [Tue, 6 Apr 2010 23:25:19 +0000 (23:25 +0000)]
MFC r205031

 It appears that some UVISOR devices do not handle when the clear stall command
 is issued at the beginning of the initial IN/OUT data transfers.  Reason
 unknown, probably firmware fault. Now the stall is only cleared on data
 transfer errors.

PR: usb/144199
Submitted by: Hans Petter Selasky

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

14 years agoMFC r205030
thompsa [Tue, 6 Apr 2010 23:24:55 +0000 (23:24 +0000)]
MFC r205030

 - make the usb_temp_setup() and usb_temp_unsetup() functions public so that
   other modules can generate USB descriptors.
 - extend the vendor specific request function by one length pointer argument,
   because not all descriptors store the length in the first byte. For example
   HID descriptors.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r205029
thompsa [Tue, 6 Apr 2010 23:24:29 +0000 (23:24 +0000)]
MFC r205029

 Use wMaxPacketSize for the uftdi input buffer size.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r205026
thompsa [Tue, 6 Apr 2010 23:24:07 +0000 (23:24 +0000)]
MFC r205026

 Reapply r185998 which was overwritten at some point.

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

14 years agoMFC r205005
thompsa [Tue, 6 Apr 2010 23:23:43 +0000 (23:23 +0000)]
MFC r205005

 Wrap the proc wakeup special case for ddb in ifdef DDB.

Submitted by: Giovanni Trematerra

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

14 years agoMFC r203906
thompsa [Tue, 6 Apr 2010 23:23:19 +0000 (23:23 +0000)]
MFC r203906

 Add device ID for the FTDI 4232H.

PR: usb/143832
Submitted by: UEMURA Tetsuya

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

14 years agoMFC r203905
thompsa [Tue, 6 Apr 2010 23:22:47 +0000 (23:22 +0000)]
MFC r203905

 Add support for the E1752 3G modem and the required eject command.

Submitted by: Milan Obuch

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

14 years agoMFC r203903
thompsa [Tue, 6 Apr 2010 23:22:19 +0000 (23:22 +0000)]
MFC r203903

 Make umodem more tolerant for devices which modem descriptors are misplaced.

Reported by: Erick Wales
Submitted by: Hans Petter Selasky

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

14 years agoMFC r203899
thompsa [Tue, 6 Apr 2010 23:21:54 +0000 (23:21 +0000)]
MFC r203899

 Add UQ_KBD_BOOTPROTO quirk needed in r203896

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

14 years agoMFC r203896
thompsa [Tue, 6 Apr 2010 23:21:30 +0000 (23:21 +0000)]
MFC r203896

 Detect when we are polling from kernel via cngetc() in the boot process and
 reserve the keypresses so they do not get passed to syscons.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r203693
thompsa [Tue, 6 Apr 2010 23:21:06 +0000 (23:21 +0000)]
MFC r203693

 Disable the use of the IAAD usb doorbell on NVidia controllers as it can cause
 the hardware to stall.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r203507
thompsa [Tue, 6 Apr 2010 23:20:41 +0000 (23:20 +0000)]
MFC r203507

 The ZTE MF633R modem has a different type of cdrom driver disk, add the product
 ID and use a standard scsi eject.

Reported by: Patrick Lamaiziere

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

14 years agoMFC r203506
thompsa [Tue, 6 Apr 2010 23:20:13 +0000 (23:20 +0000)]
MFC r203506

 Properly name the 0x0016 ZTE product as MF633R now that its known.

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

14 years agoMFC r203146
thompsa [Tue, 6 Apr 2010 23:19:43 +0000 (23:19 +0000)]
MFC r203146

 Rework cam error handling to fix Mitsumi floppy drives.

Submitted by: mav

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

14 years agoMFC r203145
thompsa [Tue, 6 Apr 2010 23:19:11 +0000 (23:19 +0000)]
MFC r203145

 Simplify attach for UMASS_PROTO_CBI_I mode and change some switch() returns
 into breaks.

Submitted by: Hans Petter Selesky

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

14 years agoMFC r203144
thompsa [Tue, 6 Apr 2010 23:18:41 +0000 (23:18 +0000)]
MFC r203144

 Add null check on quirk lookup and add a couple of umass quirks.

Submitted by: Hans Petter Selesky

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