]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years ago= MFC of r211190:
gad [Mon, 29 Nov 2010 04:57:46 +0000 (04:57 +0000)]
= MFC of r211190:
- Improve the wait4data() routine so it behaves better when checking
  print-jobs which have last-modification times that are in the future.
  This shouldn't happen, of course, but it can.  And when it did happen,
  the previous check could cause completely-spooled jobs to sit in the
  queue for 20 minutes per job.  The new code waits until the last-modify
  time is not changing, instead of making decisions based on the specific
  value of last-modify.

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

13 years agoThis is an MFC of 208548
mjacob [Mon, 29 Nov 2010 04:31:25 +0000 (04:31 +0000)]
This is an MFC of 208548

Don't leak CCBs for every ABORT.

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

13 years agoThis is an MFC of 208542,208543
mjacob [Mon, 29 Nov 2010 04:29:36 +0000 (04:29 +0000)]
This is an MFC of 208542,208543

Treat PRLI the same as PLOGI and make a database entry for it (target mode).

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

13 years agoThis is an MFC of 215951
mjacob [Mon, 29 Nov 2010 04:25:44 +0000 (04:25 +0000)]
This is an MFC of 215951

Partially revert 208119. We were overwriting tunable settings.

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

13 years agoMFC r214726,214852,215258,215734
thompsa [Mon, 29 Nov 2010 03:38:40 +0000 (03:38 +0000)]
MFC r214726,214852,215258,215734

Sync all u3g device ids from head.

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

13 years agoMFC r215328:
yongari [Mon, 29 Nov 2010 01:45:25 +0000 (01:45 +0000)]
MFC r215328:
  Add flow control for 3C905B and newer controllers. Note, these
  controllers support RX pause only.

  Reviewed by: marius

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

13 years agoMFC r215329:
yongari [Mon, 29 Nov 2010 01:41:56 +0000 (01:41 +0000)]
MFC r215329:
  Add flow control for all re(4) controllers. re(4) controllers do
  not provide any MAC configuration interface for resolved flow
  control parameters. There is even no register that configures water
  mark which will control generation of pause frames.
  However enabling flow control surely enhanced performance a lot.

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

13 years agoMFC r215849:
yongari [Mon, 29 Nov 2010 01:38:41 +0000 (01:38 +0000)]
MFC r215849:
  Enable ethernet flow-control on all jme(4) controllers.

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

13 years agoMFC r215848:
yongari [Mon, 29 Nov 2010 01:36:15 +0000 (01:36 +0000)]
MFC r215848:
  Allocate 1 MSI/MSI-X vector. Originally jme(4) was designed to
  support multi-queue but the hardware limitation made it hard to
  implement supporting multi-queue. Allocating more than necessary
  vectors is resource waste and it can be added back when we
  implement multi-queue support.

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

13 years agoMFC r215847:
yongari [Mon, 29 Nov 2010 01:33:25 +0000 (01:33 +0000)]
MFC r215847:
  Disable retrying RX descriptor loading. The counter is used to set
  number of retry to be performed whenever controller found RX
  descriptor was empty. RX empty interrupt is generated only when the
  retry counter is over. Experimentation shows retrying RX descriptor
  loading increased number of dropped frames under flow-control
  enabled environments so disable it and have controller generate RX
  empty interrupt as fast as it can.
  While I'm here fix RXCSR_DESC_RT_CNT macro.

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

13 years agoMFC r215850:
yongari [Mon, 29 Nov 2010 01:28:12 +0000 (01:28 +0000)]
MFC r215850:
  Enable ethernet flow-control on all alc(4) controllers. This change
  should reduce a lot of dropped frames under high network load.

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

13 years agoMFC r215095,215104:
n_hibma [Sun, 28 Nov 2010 22:07:08 +0000 (22:07 +0000)]
MFC r215095,215104:

Add quirks for 3G MSC resets.
Add a man page for the usb_quirks module.

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

13 years agoMFC r215799:
pjd [Sun, 28 Nov 2010 20:56:51 +0000 (20:56 +0000)]
MFC r215799:

Add gptboot_enable rc variable, which allows to turn gptboot reporting off in
case user wants to implement his own actions and doesn't want the attributes to
vanish.

Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com

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

13 years agoMFC r215665,r215732: Don't lose seconds to integer overflow if we go more
cperciva [Sun, 28 Nov 2010 18:59:52 +0000 (18:59 +0000)]
MFC r215665,r215732: Don't lose seconds to integer overflow if we go more
than one second between calls to tc_windup.

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

13 years agoMFC r215641:
bz [Sun, 28 Nov 2010 17:23:28 +0000 (17:23 +0000)]
MFC r215641:

  Add a missing ';' and change the debugging sysctl from xint to int.

  Submitted by: Mikolaj Golub (to.my.trociny gmail.com)

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

13 years agoMFC r215559:
bz [Sun, 28 Nov 2010 17:02:02 +0000 (17:02 +0000)]
MFC r215559:

  In case of an early return from the function there is no need to zero
  the route upfront, so defer as long as we can.

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

13 years agoMFC r215423:
bz [Sun, 28 Nov 2010 16:31:39 +0000 (16:31 +0000)]
MFC r215423:

  Do not initialize flag variables before needed.
  Consistently use the LLE_ prefix for lla_lookup() and the ND6_ prefix
  for nd6_lookup() even though both are defined the same. Use the right
  flag variable when checking each.

  No real functional change.

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

13 years agoMFC r204157: Remove atkbd and friends, since they cause the XEN kernel
cperciva [Sun, 28 Nov 2010 16:25:16 +0000 (16:25 +0000)]
MFC r204157: Remove atkbd and friends, since they cause the XEN kernel
to panic.

PR: kern/148262, kern/149853

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

13 years agoMFC: r215923
marius [Sun, 28 Nov 2010 16:09:36 +0000 (16:09 +0000)]
MFC: r215923

Allow pause support advertisement to be turned off again.

Submitted by: yongari (ip1000phy(4))

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

13 years agoMFC: r215907
marius [Sun, 28 Nov 2010 16:03:01 +0000 (16:03 +0000)]
MFC: r215907

Remove the description of the dev.fxp.%d.noflow tunable as it was removed
in r215906 (MFC'ed to stable/8 in r216002) and the flowcontrol media option
now should be set as desired via ifconfig(8) instead.

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

13 years agoMFC: r215906
marius [Sun, 28 Nov 2010 15:59:39 +0000 (15:59 +0000)]
MFC: r215906

Fix and implement missing parts of flow control support. This also removes
the dev.fxp.%d.noflow tunable as the same effect can now be achieved with
ifconfig(8) by setting the flowcontrol media option as desired (besides
the tunable never having a chance to actually enable flow control support
so far).
In joint forces with: yongari

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

13 years agoMFC: r215905
marius [Sun, 28 Nov 2010 15:57:22 +0000 (15:57 +0000)]
MFC: r215905

Ensure Bay flow control is disabled as we're going to use IEEE 802.3 annex
31B full duplex flow control instead.

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

13 years agoMFC r215418:
bz [Sun, 28 Nov 2010 14:57:37 +0000 (14:57 +0000)]
MFC r215418:

  No need to re-initialize the callout.  We initially do it in in6_lltable_new()
  right after allocation.  Worse, we are losing the right flags here.

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

13 years agoMFC r215401: zfs+sendfile: populate all requested pages, not just those
avg [Sun, 28 Nov 2010 12:26:15 +0000 (12:26 +0000)]
MFC r215401: zfs+sendfile: populate all requested pages, not just those
already cached

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

13 years agoMFC r213634, r213673:
mm [Sun, 28 Nov 2010 09:52:06 +0000 (09:52 +0000)]
MFC r213634, r213673:

MFC r213634:
Change FAPPEND to IO_APPEND as this is a ioflag and not a fflag.
This corrects writing to append-only files on ZFS.

MFC r213673 (pjd):
Provide internal ioflags() function that converts ioflag provided by FreeBSD's
VFS to OpenSolaris-specific ioflag expected by ZFS. Use it for read and write
operations.

PR: kern/149495 [1], kern/151082 [2]
Submitted by: Daniel Zhelev <daniel@zhelev.biz> [1], Michael Naef <cal@linu.gs> [2]
Reviewed by: mm (r213673)
Approved by: delphij (mentor)

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

13 years agoMFC r213931 (mav)
thompsa [Sun, 28 Nov 2010 07:29:56 +0000 (07:29 +0000)]
MFC r213931 (mav)

 Allow umass to use bigger transactions for USB 3.0 devices.

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

13 years agoMFC r213872
thompsa [Sun, 28 Nov 2010 07:28:10 +0000 (07:28 +0000)]
MFC r213872

 Fix forwarding of Line Register Status changes to TTY layer.

PR: usb/149675

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

13 years agoMFC r213431
thompsa [Sun, 28 Nov 2010 07:23:05 +0000 (07:23 +0000)]
MFC r213431

 Correct IOCTL return code.

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

13 years agoMFC r215450
thompsa [Sun, 28 Nov 2010 07:19:11 +0000 (07:19 +0000)]
MFC r215450

 Correct description of the return values of
 the LibUSB v1.0 libusb_control_transfer() function.

PR: usb/151851

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

13 years agoMFC r215253
thompsa [Sun, 28 Nov 2010 07:18:14 +0000 (07:18 +0000)]
MFC r215253

 Fix LibUSB v1.0 compliancy.

 1) We need to allow the USB callback to free the USB transfer itself.
 2) The USB transfer buffer should only be automatically freed when
 freeing the USB transfer.

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

13 years agoMFC r213848
thompsa [Sun, 28 Nov 2010 07:16:53 +0000 (07:16 +0000)]
MFC r213848

 - Add a new API function to check the connected
 status of the USB handle in the LibUSB v1.0 and
 LibUSB v0.1 interfaces.

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

13 years agoMFC r213809
thompsa [Sun, 28 Nov 2010 07:04:28 +0000 (07:04 +0000)]
MFC r213809

 USB network (NCM driver):
 - correct the ethernet payload remainder which
 must be post-offseted by -14 bytes instead of
 0 bytes. This is not very clearly defined in the
 NCM specification.

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

13 years agoMFC r213804,213879,213880,214800
thompsa [Sun, 28 Nov 2010 07:03:21 +0000 (07:03 +0000)]
MFC r213804,213879,213880,214800

Add new device IDs.

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

13 years agoMFC r215973
jchandra [Sun, 28 Nov 2010 06:43:39 +0000 (06:43 +0000)]
MFC r215973
The current implementation of vm_page_alloc_freelist() does not handle
order > 0 correctly. Remove order parameter to the function and use it
only for order 0 pages.

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

13 years agoRemove mergeinfo under sys/mips/ by r215938.
jchandra [Sun, 28 Nov 2010 04:55:31 +0000 (04:55 +0000)]
Remove mergeinfo under sys/mips/ by r215938.

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

13 years agoMFC: r215911, r215913, r215914
jfv [Sun, 28 Nov 2010 03:41:32 +0000 (03:41 +0000)]
MFC:  r215911, r215913, r215914

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

13 years agoRemove options that are not available in 8
gonzo [Sun, 28 Nov 2010 01:18:11 +0000 (01:18 +0000)]
Remove options that are not available in 8

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

13 years agoinit_static_kenv is available only in 9-CURRENT, replace its
gonzo [Sun, 28 Nov 2010 01:08:42 +0000 (01:08 +0000)]
init_static_kenv is available only in 9-CURRENT, replace its
    functionality with custom solution

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

13 years agoMFC r211509:
gonzo [Sun, 28 Nov 2010 00:53:43 +0000 (00:53 +0000)]
MFC r211509:
        add the PLL set functions to cpuops

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

13 years agoMFC r215800:
zec [Sat, 27 Nov 2010 23:48:53 +0000 (23:48 +0000)]
MFC r215800:

  Simplify ng_pipe locking model by relying on the netgraph framework
  to provide serialization of calls into the node, which is accomplished
  by markng the node as single-threaded (NGF_FORCE_WRITER).

  The price we pay is that each ng_pipe instance now has its own callout
  handler which polls for queued frames on each clock tick, as long as
  the pipe has any frames in its internal queues.  OTOH, we got rid of
  the global ng_pipe mutex, so from now on multiple ng_pipe instances
  can operate in parallel.  This change also fixes counting of forwarded
  frames when an ng_pipe node is not enforcing any packet impairments.

  While here, attempt to improve adherance to style(9) throughout
  otherwise mostly unreadable code.

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

13 years agoMFC r215843:
brian [Sat, 27 Nov 2010 21:18:08 +0000 (21:18 +0000)]
MFC r215843:

    Don't zero 'Info' after setting it up in the ASR_IOCTL_COMPAT case.

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

13 years agoMFC r213857,213861,213864,213869,213871
thompsa [Sat, 27 Nov 2010 19:47:58 +0000 (19:47 +0000)]
MFC r213857,213861,213864,213869,213871

 EHCI fixes for register and TD handling.

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

13 years agoMFC r213805
thompsa [Sat, 27 Nov 2010 19:40:51 +0000 (19:40 +0000)]
MFC r213805

 Add new driver for iPhone tethering, supports the iPhone 3G/3GS/4G ethernet
 protocol

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

13 years agoMFC r213803
thompsa [Sat, 27 Nov 2010 19:39:29 +0000 (19:39 +0000)]
MFC r213803

 USB network (UHSO):
 - Correct network interface flags.

PR: usb/149039
Submitted by: Fredrik Lindberg

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

13 years agoMFC r213802
thompsa [Sat, 27 Nov 2010 19:38:40 +0000 (19:38 +0000)]
MFC r213802

 Correct some root HUB descriptor fields in multiple controller drivers.
 Remove an unused structure.

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

13 years agoMFC r213425
thompsa [Sat, 27 Nov 2010 19:37:33 +0000 (19:37 +0000)]
MFC r213425

 The root mount hold reference was not released on USB controller
 attach failures during boot.

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

13 years agoMFC r213379, r213426, r213426, r213427, r213432, r213435, r213437, r213439,
thompsa [Sat, 27 Nov 2010 19:35:12 +0000 (19:35 +0000)]
MFC r213379, r213426, r213426, r213427, r213432, r213435, r213437, r213439,
 r214804

  Merge the XHCI usb controller and supporting code.

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

13 years agoMFC r215570:
ae [Sat, 27 Nov 2010 13:53:21 +0000 (13:53 +0000)]
MFC r215570:
  Add to gpart(8) an ability to backup partition table and
  restore it from given backup.

MFC r215671:
  Always dump partition labels with `gpart backup`, but `gpart restore`
  does restore them only when -l option is specified [1]. Make number of
  entries field in backup format optional. Document -l and -r options of
  `gpart show` action.

MFC r215672:
  Add SIGINT handler to `gpart restore` action.

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

13 years agor214975 was not fully adapted to stable/8 and in-kernel version of
ae [Sat, 27 Nov 2010 13:38:17 +0000 (13:38 +0000)]
r214975 was not fully adapted to stable/8 and in-kernel version of
"destroy -F" does not work, because g_part_parm_uint assumes that
parameter is an asci string, but in head/ it is not.

Add gpart_destroy wrapper function to gpart(8). It changes "force"
parameter and does convert it to string.

This is direct commit to stable/8.

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

13 years agoMerge MIPS platform support to 8-STABLE.
jchandra [Sat, 27 Nov 2010 12:26:40 +0000 (12:26 +0000)]
Merge MIPS platform support to 8-STABLE.

This commit merges the MIPS platform changes that was now stable in
-CURRENT into 8-STABLE. The MIPS changesets are too many (~400) to list
here. But the changesets merged in this commit that affect other platforms
are summarized below:

r204635 : (changes to sys/dev/hwpmc, lib/libpmc, sys/sys/pmc.h)
Add support for hwpmc(4) on the MIPS 24K, 32 bit, embedded processor.

r205845: (changes to sys/modules/Makefile)
Fix for building modules on mips and arm.

r204031: (changes to sys/kern/link_elf_obj.c)
printf fix, as part of kernel module support for MIPS.

r206404: (changes to sys/arm/include/bus.h)
Add BUS_SPACE_UNRESTRICTED and define it to be ~0, just like all the
other platforms - for arm and mips.

r206819: (changes to sys/vm/)
Add VMFS_TLB_ALIGNED_SPACE option and kmem_alloc_nofault_space(), which
is used to allocate kernel stack address on MIPS.

r208165, r211087: (sys/kern/subr_smp.c, sys/kern/sched_ule.c)
Enable ULE scheduler for MIPS, Fix for an issue in SMP when 32 cpus are
enabled.

r208659: (sys/{ia64/ia64,mips/mips,sun4v/sun4v}/pmap.c)
Simplify the inner loop of get_pv_entry()

r208794: (changes to sys/vm/)
Make vm_contig_grow_cache() extern, and use it when vm_phys_alloc_contig()
fails to allocate MIPS page table pages.

r210327:  (changes to sys/vm/)
Support for MIPS page table page allocation.  Add a new function 'vm_page_t
vm_page_alloc_freelist(int flind, int order, int req)' to vm/vm_page.c to
allocate a page from a specified freelist, and other related changes.

Reviewed by: alc(vm changes only)
Approved by: kib(re), alc(vm), imp(mips), jmallett(mips), gnn(mips pmc)

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

13 years agoMFC r215236:
delphij [Sat, 27 Nov 2010 06:33:53 +0000 (06:33 +0000)]
MFC r215236:

Sync with OpenBSD, primarily better signal and terminal handling.

Obtained from: OpenBSD

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

13 years agoThis is an MFC of 205847
mjacob [Sat, 27 Nov 2010 03:59:55 +0000 (03:59 +0000)]
This is an MFC of 205847
Change how multipath labels are created and managed. This makes it easier
to support various storage boxes which really aren't active-active.

We only write the label on the *first* provider. For all other providers
we just "add" the disk. This also allows for an "add" verb.

A usage implication is that you should specificy the currently active
storage path as the first provider.

Note that this does not add RDAC-like functionality, but better allows for
autovolumefailover configurations (additional checkins elsewhere will support
this).

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

13 years agoThis is an MFC of 204071
mjacob [Sat, 27 Nov 2010 03:57:18 +0000 (03:57 +0000)]
This is an MFC of 204071

- Style fixes.
- Prefer strlcpy() over strncpy().

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

13 years agoRoll out 209279, 200279 (which were unfortunate direct commits) and
mjacob [Sat, 27 Nov 2010 03:55:22 +0000 (03:55 +0000)]
Roll out 209279, 200279 (which were unfortunate direct commits) and
merges 204071 and 205847. This is attempt to rectify errors made
in past merges.

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

13 years agoMFC r215553:
lstewart [Sat, 27 Nov 2010 03:23:40 +0000 (03:23 +0000)]
MFC r215553:

Fix a minor code redundancy nit.

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

13 years agoMFC r215552:
lstewart [Sat, 27 Nov 2010 03:19:59 +0000 (03:19 +0000)]
MFC r215552:

When enabling or disabling SIFTR with a VIMAGE kernel, ensure we add or remove
the SIFTR pfil(9) hook functions to or from all network stacks. This patch
allows packets inbound or outbound from a vnet to be "seen" by SIFTR.

Reported and tested by: David Hayes <dahayes at swin edu au>

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

13 years agoPartially MFC r215166:
lstewart [Sat, 27 Nov 2010 02:18:55 +0000 (02:18 +0000)]
Partially MFC r215166:

Disable priming the congestion window from the host cache. The current method
interacts poorly with delayed ack and appropriate byte counting amongst other
things, resulting in undesired delay during a connection's opening slow start.
Even if we did fix the issues, the current method is still dubious at best and
needs to be thought through thoroughly.

Due to a mistake on my behalf, the change described above was committed to head
as part of a larger patch in revision 215166. Instead of waiting for the MFC of
215166, I'm merging just this small portion for the upcoming release without
bringing the mergeinfo for r215166 along. The mergeinfo will sort itself out
when r215166 is eventually merged.

This is an intentional direct commit to the 8-STABLE branch.

Reported by: Maxim Dounin <mdounin at mdounin ru> and others
Submitted by: andre

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

13 years agoMFC r215752:
nwhitehorn [Sat, 27 Nov 2010 00:46:57 +0000 (00:46 +0000)]
MFC r215752:
Properly use SCHAR_MAX instead of CHAR_MAX for 0x7f. This fixes operation
of locate(1) on systems on which char is unsigned by default (ARM and
PowerPC).

Reported by: Paul Mather

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

13 years agoMFC r214494:
nwhitehorn [Sat, 27 Nov 2010 00:37:13 +0000 (00:37 +0000)]
MFC r214494:
Fix netboot on some Apple machines on which calling dma-free on the
network device can hang the machine. This causes the loss of 64 KB of
accessible memory on netbooted machines.

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

13 years agoMFC r214493,214495:
nwhitehorn [Sat, 27 Nov 2010 00:36:11 +0000 (00:36 +0000)]
MFC r214493,214495:
Fix some memory management issues discovered when trying to boot the PPC
OF loader on systems where address cells and size cells are both 2 (the
Mambo simulator) and fix an error where cons_probe() was called before
init_heap() but used malloc() to set environment variables.

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

13 years agoThis is an MFC of 211282
mjacob [Sat, 27 Nov 2010 00:26:08 +0000 (00:26 +0000)]
This is an MFC of 211282
Avoid a memory leak.

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

13 years agoMFC of 209704.
mjacob [Sat, 27 Nov 2010 00:23:55 +0000 (00:23 +0000)]
MFC of 209704.

Fix the clear function which has been broken for a bit.

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

13 years agoMFC: r214646, r215781, 215789, 215808
jfv [Sat, 27 Nov 2010 00:04:29 +0000 (00:04 +0000)]
MFC: r214646, r215781, 215789, 215808

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

13 years agoMerge OpenSSL 0.9.8p into stable/8.
simon [Fri, 26 Nov 2010 22:50:58 +0000 (22:50 +0000)]
Merge OpenSSL 0.9.8p into stable/8.

This merges up to and including head/crypto/openssl/ r215697; and
head/secure/lib/libcrypto/, head/secure/lib/libssl/,
head/secure/usr.bin/openssl/ r215698.

To make the merge simpler, a hack was added to set MACHINE_CPUARCH.

Security: CVE-2010-2939, CVE-2010-3864
Security: http://www.openssl.org/news/secadv_20101116.txt
Security: FreeBSD-SA-10:10.openssl
Approved by: re (implicitly - they did not object of the general idea
of OpenSSL update)

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

13 years agoadd UPDATING entry for amd64 minidump version 2
avg [Fri, 26 Nov 2010 22:31:56 +0000 (22:31 +0000)]
add UPDATING entry for amd64 minidump version 2

This is a direct commit.

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

13 years agoMFC r215779,215782:
bschmidt [Fri, 26 Nov 2010 22:23:52 +0000 (22:23 +0000)]
MFC r215779,215782:
Add a few functions used in newer drivers. Fix RtlCompareMemory() while
here.

Submitted by: Paul B Mahol <onemda at gmail.com>

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

13 years agoMFC: r215753
jkim [Fri, 26 Nov 2010 21:39:11 +0000 (21:39 +0000)]
MFC: r215753

Reinitialize PAT MSR via pmap_init_pat() while resuming.

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

13 years agoMFC: r211202, r211292
jkim [Fri, 26 Nov 2010 21:36:38 +0000 (21:36 +0000)]
MFC: r211202, r211292

Reset switchtime and switchticks after resynchronizing the system clock.

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

13 years agoMFC: r210942
jkim [Fri, 26 Nov 2010 21:33:26 +0000 (21:33 +0000)]
MFC: r210942

Remove unnecessary casting and simplify code.

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

13 years agoMFC: r210940
jkim [Fri, 26 Nov 2010 21:30:14 +0000 (21:30 +0000)]
MFC: r210940

Correct argument order of acpi_restorecpu().

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

13 years agoMFC: r215780
marius [Fri, 26 Nov 2010 21:27:13 +0000 (21:27 +0000)]
MFC: r215780

Remove the description of the link0 link option, since r215297 (merged to
stable/8 in r215881) the master media option generally should be used
instead.

This is MFC'ed in order to discourage the use of the link0 link option,
although it's still available in stable/8).

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

13 years agoMFC: r198422
jkim [Fri, 26 Nov 2010 21:26:13 +0000 (21:26 +0000)]
MFC: r198422

Try hiding annoying text cursor after the video controller is reset.

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

13 years agoMFC: r210810
jkim [Fri, 26 Nov 2010 21:22:49 +0000 (21:22 +0000)]
MFC: r210810

Remove an unnecessary register load.

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

13 years agoMFC: r196769, r196771, r211424, r215703, r215754
jkim [Fri, 26 Nov 2010 21:16:21 +0000 (21:16 +0000)]
MFC: r196769, r196771, r211424, r215703, r215754

- Disable caches and flush caches/TLBs when we update PAT as we do for MTRR.
Flushing TLBs is required to ensure cache coherency according to the AMD64
architecture manual.  Flushing caches is only required when changing from a
cacheable memory type (WB, WP or WT) to an uncacheable type (WC, UC or UC-).
Since this function is only used once per processor during startup, there is
no need to take any shortcuts.
- Leave PAT indices 0-3 at the default of WB, WT, UC-, and UC.  Program 5 as
WP (from default WT) and 6 as WC (from default UC-).  Leave 4 and 7 at the
default of WB and UC.  This is to avoid transition from a cacheable memory
type to an uncacheable type to minimize possible cache incoherency.  Since
we perform flushing caches and TLBs now, this change may not be necessary
any more but we do not want to take any chances.
- Improve pmap_cache_bits() with an array to map PAT memory type to index.
This array is initialized early from pmap_init_pat(), so that we do not need
to handle special cases in the function any more.  Now this function is
identical on both amd64 and i386.

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

13 years agoMFC: r215721
marius [Fri, 26 Nov 2010 21:07:19 +0000 (21:07 +0000)]
MFC: r215721

- Fix and enable support for flow control.
- Fix compilation with CAS_DEBUG defined.

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

13 years agoMFC: r215768
marius [Fri, 26 Nov 2010 21:02:57 +0000 (21:02 +0000)]
MFC: r215768

- Sprinkle const on tables.
- Remove an alpha remnant.
- Minor comment and style fixes.

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

13 years agoMFC: r215722
marius [Fri, 26 Nov 2010 21:01:19 +0000 (21:01 +0000)]
MFC: r215722

- Fix and enable support for flow control.
- Partially revert r172334; as it turns out the DELAYs in gem_reset_{r,t}x()
  are actually necessary although bus space barriers and gem_bitwait() are
  used, otherwise the controller may trigger an IOMMU errors on at least
  sparc64. This is in line with what Linux and OpenSolaris do.

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

13 years agoMFC: r215720
marius [Fri, 26 Nov 2010 20:59:43 +0000 (20:59 +0000)]
MFC: r215720

- Also probe BCM5214 and BCM5222.
- Add some DSP init code for BCM5221. The values derived from Apple's GMAC
  driver and the same init code also exists in Linux's sungem_phy driver.
- Only read media status bits when they are valid.

Obtained from: NetBSD, OpenBSD

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

13 years agoMFC: r215711
marius [Fri, 26 Nov 2010 20:57:45 +0000 (20:57 +0000)]
MFC: r215711

Add missing newlines.

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

13 years agoMFC: r215302
marius [Fri, 26 Nov 2010 20:55:58 +0000 (20:55 +0000)]
MFC: r215302

Move the limiting of the PHY to 10/100 modes of operation due to limitations
of certain MAC models from brgphy(4) to bge(4) where it belongs. While at it,
update the list of models having that restriction to what OpenBSD uses, which
in turn seems to have obtained that information from the Linux tg3 driver.

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

13 years agoMFC: r215298, r215459, r215714, r215716
marius [Fri, 26 Nov 2010 20:45:49 +0000 (20:45 +0000)]
MFC: r215298, r215459, r215714, r215716

- Change these drivers to take advantage and use the generic IEEE 802.3
  annex 31B full duplex flow control as well as the IFM_1000_T master
  support committed in r215297 (merged to stable/8 in r215881). For
  atphy(4) and jmphy(4) this includes changing these PHY drivers to no
  longer unconditionally advertise support for flow control but only if
  the selected media has IFM_FLOW set (or MIIF_FORCEPAUSE is set).
- Rename {atphy,jmphy}_auto() to {atphy,jmphy}_setmedia() as these handle
  other media types as well.

Reviewed by: yongari (plus additional testing)
Obtained from: NetBSD (partially), OpenBSD (partially)

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

13 years agoMFC: r214608, r215297(partial), r215713
marius [Fri, 26 Nov 2010 20:37:19 +0000 (20:37 +0000)]
MFC: r214608, r215297(partial), r215713

o Flesh out the generic IEEE 802.3 annex 31B full duplex flow control
  support in mii(4):
  - Merge generic flow control advertisement (which can be enabled by
    passing by MIIF_DOPAUSE to mii_attach(9)) and parsing support from
    NetBSD into mii_physubr.c and ukphy_subr.c. Unlike as in NetBSD,
    IFM_FLOW isn't implemented as a global option via the "don't care
    mask" but instead as a media specific option this. This has the
    following advantages:
    o allows flow control advertisement with autonegotiation to be
      turned on and off via ifconfig(8) with the default typically
      being off (though MIIF_FORCEPAUSE has been added causing flow
      control to be always advertised, allowing to easily MFC this
      changes for drivers that previously used home-grown support for
      flow control that behaved that way without breaking POLA)
    o allows to deal with PHY drivers where flow control advertisement
      with manual selection doesn't work or at least isn't implemented,
      like it's the case with brgphy(4), e1000phy(4) and ip1000phy(4),
      by setting MIIF_NOMANPAUSE
    o the available combinations of media options are readily available
      from the `ifconfig -m` output
  - Add IFM_FLOW to IFM_SHARED_OPTION_DESCRIPTIONS and IFM_ETH_RXPAUSE
    and IFM_ETH_TXPAUSE to IFM_SUBTYPE_ETHERNET_OPTION_DESCRIPTIONS so
    these are understood by ifconfig(8).
o Make the master/slave support in mii(4) actually usable:
  - Change IFM_ETH_MASTER from being implemented as a global option via
    the "don't care mask" to a media specific one as it actually is only
    applicable to IFM_1000_T to date.
  - Let mii_phy_setmedia() set GTCR_MAN_MS in IFM_1000_T slave mode to
    actually configure manually selected slave mode (like we also do in
    the PHY specific implementations).
  - Add IFM_ETH_MASTER to IFM_SUBTYPE_ETHERNET_OPTION_DESCRIPTIONS so it
    is understood by ifconfig(8).
o Switch bge(4), bce(4), msk(4), nfe(4) and stge(4) along with brgphy(4),
  e1000phy(4) and ip1000phy(4) to use the generic flow control support
  instead of home-grown solutions via IFM_FLAGs. This includes changing
  these PHY drivers and smcphy(4) to no longer unconditionally advertise
  support for flow control but only if the selected media has IFM_FLOW
  set (or MIIF_FORCEPAUSE is set) and implemented for these media variants,
  i.e. typically only for copper.
o Switch brgphy(4), ciphy(4), e1000phy(4) and ip1000phy(4) to report and
  set IFM_1000_T master mode via IFM_ETH_MASTER instead of via IFF_LINK0
  and some IFM_FLAGn.
o Switch brgphy(4) to add at least the the supported copper media based on
  the contents of the BMSR via mii_phy_add_media() instead of hardcoding
  them. The latter approach seems to have developed historically, besides
  causing unnecessary code duplication it was also undesirable because
  brgphy_mii_phy_auto() already based the capability advertisement on the
  contents of the BMSR though.
o Let brgphy(4) set IFM_1000_T master mode on all supported PHY and not
  just BCM5701. Apparently this was a misinterpretation of a workaround
  in the Linux tg3 driver; BCM5701 seem to require RGPHY_1000CTL_MSE and
  BRGPHY_1000CTL_MSC to be set when configuring autonegotiation but
  this doesn't mean we can't set these as well on other PHYs for manual
  media selection.
o Let ukphy_status() report IFM_1000_T master mode via IFM_ETH_MASTER so
  IFM_1000_T master mode support now is generally available with all PHY
  drivers.
o Don't let e1000phy(4) set master/slave bits for IFM_1000_SX as it's
  not applicable there.

Reviewed by: yongari (plus additional testing)
Obtained from: NetBSD (partially), OpenBSD (partially)

Unlike as in head, bge(4), bce(4), msk(4), nfe(4) and stge(4) are changed
to set MIIF_FORCEPAUSE in stable/8 so they continue to always advertise
support of flow control and brgphy(4), ciphy(4), e1000phy(4) as well as
ip1000phy(4) are changed to still also accept IFF_LINK0 in addition to
the master media option for setting master mode, both in order to not
violate POLA.

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

13 years agoMFC: r215259, r215272
marius [Fri, 26 Nov 2010 18:44:01 +0000 (18:44 +0000)]
MFC: r215259, r215272

- When printing media with more than one media option set aggregate these
  in a comma delimited list instead of repeating "mediaopt" for each one.
  This matches how the options of the active media are printed with
  print_media_word() and brings us in line what NetBSD does.
- When setting a media with no sub-type specified also reset the type
  specific options along with the global ones so these options don't
  stick when f.e. switching to IFM_AUTO.

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

13 years agoMFC r215398: hwpstate: use CPU_FOREACH when binding to all available
avg [Fri, 26 Nov 2010 17:31:02 +0000 (17:31 +0000)]
MFC r215398: hwpstate: use CPU_FOREACH when binding to all available
processors

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

13 years agoRevert a completely fouled up merge.
mjacob [Fri, 26 Nov 2010 16:21:44 +0000 (16:21 +0000)]
Revert a completely fouled up merge.

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

13 years agoMFC r215133: amd64: introduce minidump version 2
avg [Fri, 26 Nov 2010 16:09:08 +0000 (16:09 +0000)]
MFC r215133: amd64: introduce minidump version 2

This should reduce size of the minidump.
Compatibility with version 1 should be preserved in libkvm.

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

13 years agoMFC r215726:
zec [Fri, 26 Nov 2010 15:46:49 +0000 (15:46 +0000)]
MFC r215726:

  Allow for vlan(4) ifnets to have overlapping unit numbers if they are
  created in separated vnets.  As a side-effect of having a separated
  if_cloner instance for each vnet, all vlan ifnets created in a vnet
  will be automatically destroyed when vnet teardown is initiated.

  Disallow SIOCSETVLAN and SIOCGETVLAN ioctls on vlan ifnets which are
  associated with physical ifnets residing in parent vnets.

  This is an interim vlan-specific solution which will be superseded by a
  more generic if_cloner V_irtualization change from p4.  For nooptions
  VIMAGE builds, this should be a no-op change.

  Discussed with:       bz

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

13 years agoMFC r215677:
zec [Fri, 26 Nov 2010 15:45:34 +0000 (15:45 +0000)]
MFC r215677:

   Remove an apparently redundant CURVNET_SET() / CURVNET_RESTORE() pair.

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

13 years agoMFC r215673:
zec [Fri, 26 Nov 2010 15:44:16 +0000 (15:44 +0000)]
MFC r215673:

  Allow for MTU sizes of up to ETHER_MAX_LEN_JUMBO (i.e. 9018) bytes to be
  configured on ng_eiface ifnets.  The default MTU remains unchanged at
  1500 bytes.

  Mark ng_eiface ifnets as IFCAP_VLAN_MTU capable, so that the associated
  vlan(4) ifnets may use full-sized Ethernet MTUs (1500 bytes).

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

13 years agoMFC r215469:
kib [Fri, 26 Nov 2010 15:33:09 +0000 (15:33 +0000)]
MFC r215469:
Only increment object generation count when inserting the page into
object page list.

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

13 years agoMFC r215471:
kib [Fri, 26 Nov 2010 15:30:02 +0000 (15:30 +0000)]
MFC r215471:
In vm_object_page_clean(), handle the pages that might be cached
or not written by vm_pageout_flush().

MFC r215574:
The runlen returned from vm_pageout_flush() might be zero legitimately

MCF r215610:
Eliminate the mab, maf arrays and related variables.
The change also fixes off-by-one error in the calculation of mreq.

MFC r215796:
After the sleep caused by encountering a busy page, relookup the page.

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

13 years agoMFC r215708:
bschmidt [Fri, 26 Nov 2010 11:55:51 +0000 (11:55 +0000)]
MFC r215708:
Resurrect amd64 support.
- Many drivers on amd64 are picking system uptime, interrupt time and ticks
  via global data structure instead of calling functions for performance
  reasons. For now just patch such address so driver will not trigger page
  fault when trying to access such data. In future, additional callout may
  be added to update data in periodic intervals.
- On amd64 we need to allocate "shadow space" on stack before calling any
  function.

Submitted by: Paul B Mahol <onemda at gmail.com>

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

13 years agoMFC r215707:
bschmidt [Fri, 26 Nov 2010 11:48:47 +0000 (11:48 +0000)]
MFC r215707:
Prefer pmap_extract() over pmap_kextract() as done in MmIsAddressValid().
According to the comment for MmIsAddressValid() there are issues on PAE
kernels using pmap_kextract().

Submitted by: Paul B Mahol <onemda at gmail.com>

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

13 years agoPartial MFC r215548:
kib [Fri, 26 Nov 2010 11:37:35 +0000 (11:37 +0000)]
Partial MFC r215548:
Remove printf()s in the vop_inactive and vop_reclaim() methods related
to prtactive variable. The prtactive variable definition and declaration
are kept in the stable branch to preserve the KPI and KBI.

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

13 years agoMFC r215741:
kib [Fri, 26 Nov 2010 11:11:48 +0000 (11:11 +0000)]
MFC r215741:
Add include guards.

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

13 years agoMFC r215742:
kib [Fri, 26 Nov 2010 11:05:29 +0000 (11:05 +0000)]
MFC r215742:
Add PT_GNU_STACK definition.

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

13 years agoMFC r213471:
netchild [Fri, 26 Nov 2010 11:02:51 +0000 (11:02 +0000)]
MFC r213471:
  Fix a comparision of an uninitialised pointer.

  Submitted by: arundel
  Found by: clang analysis (automatic service by uqs@)
  Reviewed by: rdivacky

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

13 years agoMFC r215666:
netchild [Fri, 26 Nov 2010 10:57:52 +0000 (10:57 +0000)]
MFC r215666:
  Remove trailing dot from the unimplemented futex messages to make
  them consistent with the syscall and ipc messages.

  Submitted by: arundel

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

13 years agoMFC r214426: Add a short note about kernel modules in FIXIT mode.
delphij [Fri, 26 Nov 2010 02:15:39 +0000 (02:15 +0000)]
MFC r214426: Add a short note about kernel modules in FIXIT mode.

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

13 years agoMFC r215135,215419,215420:
bschmidt [Thu, 25 Nov 2010 18:50:59 +0000 (18:50 +0000)]
MFC r215135,215419,215420:
- According to specs for MmAllocateContiguousMemorySpecifyCache() physically
  contiguous memory with requested restrictions must be allocated.
- Use kmem_alloc_contig() to honour the cache_type variable.
- Fix a panic on i386 for drivers using MmAllocateContiguousMemory()
  and MmAllocateContiguousMemorySpecifyCache().

Submitted by: Paul B Mahol <onemda at gmail.com>

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