]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
12 years agoJail-mount MFC: r231265,r231267,r231269,r232059,r232186,r232247,
mm [Fri, 9 Mar 2012 16:17:46 +0000 (16:17 +0000)]
Jail-mount MFC: r231265,r231267,r231269,r232059,r232186,r232247,
r232278,r232307,r232342

MFC r231265:
Introduce the "ruleset=number" option for devfs(5) mounts.
Add support for updating the devfs mount (currently only changing the
ruleset number is supported).
Check mnt_optnew with vfs_filteropt(9).

This new option sets the specified ruleset number as the active ruleset
of the new devfs mount and applies all its rules at mount time. If the
specified ruleset doesn't exist, a new empty ruleset is created.

MFC r231267 [1]:
Add support for mounting devfs inside jails.

A new jail(8) option "devfs_ruleset" defines the ruleset enforcement for
mounting devfs inside jails. A value of -1 disables mounting devfs in
jails, a value of zero means no restrictions. Nested jails can only
have mounting devfs disabled or inherit parent's enforcement as jails are
not allowed to view or manipulate devfs(8) rules.

Utilizes new functions introduced in r231265.

MFC r231269:
Allow mounting nullfs(5) inside jails.

This is now possible thanks to r230129.

MFC r232059 [1]:
To improve control over the use of mount(8) inside a jail(8), introduce
a new jail parameter node with the following parameters:

allow.mount.devfs:
allow mounting the devfs filesystem inside a jail

allow.mount.nullfs:
allow mounting the nullfs filesystem inside a jail

Both parameters are disabled by default (equals the behavior before
devfs and nullfs in jails). Administrators have to explicitly allow
mounting devfs and nullfs for each jail. The value "-1" of the
devfs_ruleset parameter is removed in favor of the new allow setting.

MFC r232186:
Analogous to r232059, add a parameter for the ZFS file system:

allow.mount.zfs:
allow mounting the zfs filesystem inside a jail

This way the permssions for mounting all current VFCF_JAIL filesystems
inside a jail are controlled wia allow.mount.* jail parameters.

Update sysctl descriptions.
Update jail(8) and zfs(8) manpages.

MFC r232247:
mdoc(7) stype - start new sentences on new line

MFC r232278 [1]:
Add procfs to jail-mountable filesystems.

MFC r232291:
Bump .Dd to reflect latest update

MFC r232307:
Add "export" to devfs_opts[] and return EOPNOTSUPP if called with it.
Fixes mountd warnings.

MFC r232342 (jamie) [2]:
Handle the case where a boolean parameter is also a node.

PR: bin/165515 [2]
Reviewed by: jamie [1]

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

12 years agoMFC r232350:
jh [Fri, 9 Mar 2012 13:06:24 +0000 (13:06 +0000)]
MFC r232350:

Since r199137 namei() returns EINVAL for DELETE and RENAME operations if
the last component of the pathname is ".".

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

12 years agoMFC r232380:
mav [Fri, 9 Mar 2012 05:43:08 +0000 (05:43 +0000)]
MFC r232380:
Fix names of some Marvell SATA chips. It looks like chips with proprietary
interface supported by mvs(4) are 88SX, while AHCI-like chips are 88SE.

PR: kern/165271

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

12 years agoMFC r232376:
mav [Fri, 9 Mar 2012 05:37:55 +0000 (05:37 +0000)]
MFC r232376:
Add ahci(4) and siis(4) to the hardware notes.

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

12 years agoMFC r232048:
kib [Thu, 8 Mar 2012 12:54:26 +0000 (12:54 +0000)]
MFC r232048:
Allow the parent to gather the exit status of the children reparented
to the debugger.  When reparenting for debugging, keep the child in
the new orphan list of old parent.  When looping over the children in
kern_wait(), iterate over both children list and orphan list to search
for the process by pid.

MFC r232104:
Restore the return statement erronously removed in the r232048.

In order to keep stable/9 KBI, the p_dbg_child member of struct proc
was replaced with padding.

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

12 years agoMFC: r232312
brueffer [Thu, 8 Mar 2012 10:40:14 +0000 (10:40 +0000)]
MFC: r232312

Fix order of arguments to lseek().

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

12 years agoMFC r232339:
ae [Thu, 8 Mar 2012 09:55:18 +0000 (09:55 +0000)]
MFC r232339:
  Note that memory should be freed after uuid_to_string(3) call.

PR: docs/161808

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

12 years agoMFC: r2323467
rmacklem [Thu, 8 Mar 2012 03:02:48 +0000 (03:02 +0000)]
MFC: r2323467
The name caching changes of r230394 exposed an intermittent bug
in the new NFS server for NFSv4, where it would report ENOENT
when the file actually existed on the server. This turned out
to be caused by not initializing ni_topdir before calling lookup()
and there was a rare case where the value on the stack location
assigned to ni_topdir happened to be a pointer to a ".." entry,
such that "dp == ndp->ni_topdir" succeeded in lookup().
This patch initializes ni_topdir to fix the problem.

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

12 years agoMFC: r232327
rmacklem [Thu, 8 Mar 2012 02:27:29 +0000 (02:27 +0000)]
MFC: r232327
Fix the NFS clients so that they use copyin() instead of bcopy(),
when doing direct I/O. This direct I/O code is not enabled by default.

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

12 years agoMFC r232177:
jhibbits [Thu, 8 Mar 2012 01:10:23 +0000 (01:10 +0000)]
MFC r232177:

Add backlight control to ATI-graphics PowerBooks and iBooks.

Approved by: nwhitehorn (mentor)

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

12 years agoMFC r232305:
kib [Wed, 7 Mar 2012 08:10:55 +0000 (08:10 +0000)]
MFC r232305:
Allow shared locks for reads when lower filesystem accept shared locking.

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

12 years agoMFC r232304:
kib [Wed, 7 Mar 2012 08:08:36 +0000 (08:08 +0000)]
MFC r232304:
Document that null_nodeget() cannot take shared-locked lowervp due to
insmntque() requirements.

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

12 years agoMFC r232303:
kib [Wed, 7 Mar 2012 08:05:12 +0000 (08:05 +0000)]
MFC r232303:
In null_reclaim(), assert that reclaimed vnode is fully constructed,
instead of accepting half-constructed vnode. Previous code cannot decide
what to do with such vnode anyway, and although processing it for hash
removal, paniced later when getting rid of nullfs reference on lowervp.

While there, remove initializations from the declaration block.

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

12 years agoMFC r232301:
kib [Wed, 7 Mar 2012 08:02:43 +0000 (08:02 +0000)]
MFC r232301:
Always request exclusive lock for the lower vnode in nullfs_vget().
The null_nodeget() requires exclusive lock on lowervp to be able to
insmntque() new vnode.

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

12 years agoMFC r232299:
kib [Wed, 7 Mar 2012 07:59:30 +0000 (07:59 +0000)]
MFC r232299:
Move the code to destroy half-contructed nullfs vnode into helper
function null_destroy_proto() from null_insmntque_dtr(). Also
apply null_destroy_proto() in null_nodeget() when we raced and a vnode
is found in the hash, so the currently allocated protonode shall be
destroyed.

Lock the vnode interlock around reassigning the v_vnlock.

MFC r232383:
Do not expose unlocked unconstructed nullfs vnode on mount list.
Lock the native nullfs vnode lock before switching the locks.

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

12 years agoMFC r232296:
kib [Wed, 7 Mar 2012 07:55:35 +0000 (07:55 +0000)]
MFC r232296:
Merge a split multi-line comment.

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

12 years agoMFC r231990
mp [Wed, 7 Mar 2012 01:26:24 +0000 (01:26 +0000)]
MFC r231990

Update to tcsh 6.18.01

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

12 years agoMFC: r231387
nyan [Tue, 6 Mar 2012 12:54:13 +0000 (12:54 +0000)]
MFC: r231387

  Reduce diffs against i386.

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

12 years agoMFC r230333
remko [Tue, 6 Mar 2012 10:26:10 +0000 (10:26 +0000)]
MFC r230333

Add new Logitech device to if_run(4).

Original commit message:
  Add support for new USB device.

  PR: usb/164275
  MFC after: 3 days

PR: usb/164275

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

12 years agoMFC r231858:
bz [Mon, 5 Mar 2012 19:13:18 +0000 (19:13 +0000)]
MFC r231858:

 Add regression tests scripts for multi-IP FIBs exercising the send,
 receive and forward path tagging packets with both the ifconfig fib
 option or using ipfw, running ICMP6, TCP/v6 and UDP/v6 tests and
 testing both setfib(2) as well as the SO_SETFIB socket option.

 At 16 FIBs a total of over 64k return codes/replies/stati are checked,
 sometimes multiple times (in different ways, e.g. the reflected request
 as well as ipfw counter values).

 The scripts need two or three machines to run and are thus not added
 to the tools/regression framework but only to tools/test.

MFC r232114:

 Update scripts to work around two sh(1) bugs found in stable/8:
 1) _x=$((_x + 1)) does not work while x=$((x + 1)) does.
 2) Parameter Expansion, esp. "${x%%bar}" does not work if quoted.

 Correct typos and improve some details forwarding.sh already
 had in initiator, esp. related to ipfw accepting if the default
 is deny.

 Add an extra stat call to the "delay" function in addition to the
 touch which together is still a lot faster than sleep 1 but seems
 to help a lot more to mitigate the unrelated kernel race seen.

Sponsored by: Cisco Systems, Inc.

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

12 years agoMFC r231855:
bz [Mon, 5 Mar 2012 19:10:55 +0000 (19:10 +0000)]
MFC r231855:

 Add regression tests for the setsockopt(2) SO_SETFIB socket option.

 Check that the expected domain(9) families all handle the socket option
 correctly and do proper bounds checks.  This would catch bugs as fixed
 in (r230938,)r230981.

Sponsored by: Cisco Systems, Inc.

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

12 years agoMFC 232411:
ken [Mon, 5 Mar 2012 18:54:28 +0000 (18:54 +0000)]
MFC 232411:

  Fix a problem that was causing the mpt(4) driver to attach to MegaRAID
  cards that should be handled by the mfi(4) driver.

  The root of the problem is that the mpt(4) driver was masking off the
  bottom bit of the PCI device ID when deciding which cards to attach to.

  It appears that a number of the mpt(4) Fibre Channel cards had a LAN
  variant whose PCI device ID was just one bit off from the FC card's device
  ID.  The FC cards were even and the LAN cards were odd.

  The problem was that this pattern wasn't carried over on the SAS and
  parallel SCSI mpt(4) cards.  Luckily the SAS and parallel SCSI PCI device
  IDs were either even numbers, or they would get masked to a supported
  adjacent PCI device ID, and everything worked well.

  Now LSI is using some of the odd-numbered PCI device IDs between the 3Gb
  SAS device IDs for their new MegaRAID cards.  This is causing the mpt(4)
  driver to attach to the RAID cards instead of the mfi(4) driver.

  The solution is to stop masking off the bottom bit of the device ID, and
  explicitly list the PCI device IDs of all supported cards.

  This change should be a no-op for mpt(4) hardware.  The only intended
  functional change is that for the 929X, the is_fc variable gets set.  It
  wasn't being set previously, but needs to be because the 929X is a Fibre
  Channel card.

  Reported by: Kashyap Desai <Kashyap.Desai@lsi.com>

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

12 years agoMFC r232239:
kib [Mon, 5 Mar 2012 11:45:19 +0000 (11:45 +0000)]
MFC r232239:
Fix a race in top non-interactive mode.  Use plain sleep(3) call instead
of arming timer and then pausing.  If SIGALRM is delivered before pause(3)
is entered, top hangs.

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

12 years agoMFC r232392:
kib [Mon, 5 Mar 2012 11:43:27 +0000 (11:43 +0000)]
MFC r232392:
Belatedly add dl_iterate_phdr(3) to the list of installed manpages.

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

12 years agoMFC r232202:
delphij [Mon, 5 Mar 2012 05:18:58 +0000 (05:18 +0000)]
MFC r232202:

Drop setuid status while doing file operations to prevent potential
information leak.  This changeset is intended to be a minimal one
to make backports easier.

Reviewed by: kevlo, remko

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

12 years agoMFC r231929:
ae [Mon, 5 Mar 2012 04:53:49 +0000 (04:53 +0000)]
MFC r231929:
  If nested scheme allows dump kernel to its partition, we may allow
  dump for the parent partition too.

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

12 years agoMFC r231754:
ae [Mon, 5 Mar 2012 04:51:22 +0000 (04:51 +0000)]
MFC r231754:
  Add additional check to EBR probe and create methods:
  don't try probe and create  EBR scheme when parent partition type
  is not "ebr". This fixes error messages about corrupted EBR for
  some partitions where is actually another partition scheme.

  NOTE: if you have EBR on the partition with different than "ebr"
  (0x05) type, then you will lost access to partitions until it will be
  changed.

MFC r231928:
  Add alias for the partition type 0x0f. Now "ebr" name is used for both
  types 0x05 and 0x0f, but 0x05 is preferred and used when partition is
  created with "gpart add -t ebr ...".
  This should keep EBR partitions accessible after r231754 for those,
  who have EBR on the partition with type 0x0f.

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

12 years agoMFC r231751:
ae [Mon, 5 Mar 2012 04:46:28 +0000 (04:46 +0000)]
MFC r231751:
  Add PART::type attribute handler. It returns partition type as string.

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

12 years agoMFC r230865:
raj [Sun, 4 Mar 2012 17:53:40 +0000 (17:53 +0000)]
MFC r230865:

 Adjust mvs(4) to handle interrupt cause reg depending on the actual number of
 channels available

 - current code treats bits 4:7 in 'SATAHC interrupt mask' and 'SATAHC
   interrupt cause' as flags for SATA channels 2 and 3

 - for embedded SATA controllers (SoC) these bits have been marked as reserved
   in datasheets so far, but for some new and upcoming chips they are used for
   purposes other than SATA

 Submitted by: Lukasz Plachno
 Reviewed by: mav
 Obtained from: Semihalf

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

12 years agoMFC r228504, r228530.
raj [Sun, 4 Mar 2012 17:00:46 +0000 (17:00 +0000)]
MFC r228504, r228530.

r228504:
 Make *intr{cnt,names} on ARM reside in data section, similar to other arches.

 sintrnames and sintrcnt are initialized with non-zero values, which were
 discarded by the .bss directive, so consumers like "vmstat -i" were not
 getting correct data.

 Submitted by: Lukasz Plachno
 Obtained from: Semihalf

r228530:
 ARM pmap fixes:

 - Write Buffers have to be drained after write to Page Table even if caches
   are in write-through mode.

 - Make sure to sync PTE in pmap_zero_page_generic().

 Submitted by: Michal Mazur
 Reviewed by: cognet
 Obtained from: Semihalf

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

12 years agoMFC r227626, r227642:
eadler [Sun, 4 Mar 2012 16:21:20 +0000 (16:21 +0000)]
MFC r227626, r227642:
- be more precise about the unit of measurement

Approved by: cperciva

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

12 years agoAdd an ifconfig carp option that enables users to set
remko [Sun, 4 Mar 2012 10:37:26 +0000 (10:37 +0000)]
Add an ifconfig carp option that enables users to set
the state of the carp cluster.

This is a direct commit to stable/9 because -HEAD's
code is very different. I discussed this with Gleb
and the reason for this is that since we do not
touch the kernel itself and are not adding very
weird or confusing things, we can commit this to the
stable branch directly.

The options 'master' and 'backup' are now available,
which enables the administrator to force a node into
the backup or master state on the cluster. Ofcourse
preempt has to be disabled otherwise the master node
will become master again.

One can do that with:

sysctl net.inet.carp.preempt=0

After that one can schedule maintenance on the node
normally running as the master and such.

PR: 100956
Discussed with: glebius
MFC after: 1 weeks

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

12 years agoMerge r227419:
glebius [Sun, 4 Mar 2012 07:29:35 +0000 (07:29 +0000)]
Merge r227419:
  Note that NAT instance argument can be tablearg.

  PR: misc/162265
  Submitted by: Paul Procacci <pprocacci gmail.com>

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

12 years agoMFC r232143:
kib [Sat, 3 Mar 2012 10:11:18 +0000 (10:11 +0000)]
MFC r232143:
Do not write to the user address directly, use suword().

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

12 years agoMerge r232435:
kensmith [Sat, 3 Mar 2012 05:14:37 +0000 (05:14 +0000)]
Merge r232435:

> Add entry for packages-8.3-release directory.

Insta-merge because this is part of the prep work for branching releng/8.3
as part of doing 8.3-RC1.

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

12 years agoMFC r231888:
delphij [Sat, 3 Mar 2012 02:35:45 +0000 (02:35 +0000)]
MFC r231888:

Put the signal trap output to standard error instead of standard output.
Without this change, pressing ^T could result in rc.d script putting
junk strings like:

Script <filename> running

in configuration files when redirecting standard output to these files.

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

12 years agoMFC r232200:
nwhitehorn [Sat, 3 Mar 2012 02:23:09 +0000 (02:23 +0000)]
MFC r232200:
Fix segfault if distfetch and distextract binaries are run standalone
without the DISTRIBUTIONS environment variable set.

PR: bin/165492
Submitted by: Fernando Apesteguia

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

12 years agoMFC r231810:
nwhitehorn [Sat, 3 Mar 2012 02:20:46 +0000 (02:20 +0000)]
MFC r231810:
Make sure to synchronize icache for the newly loaded loader. Not an issue
on most systems, when the relevant icache lines are not full.

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

12 years agoMFC r230123,230139:
nwhitehorn [Sat, 3 Mar 2012 02:19:33 +0000 (02:19 +0000)]
MFC r230123,230139:

Rework SLB trap handling so that double-faults into an SLB trap handler are
possible, and double faults within an SLB trap handler are not. The result
is that it possible to take an SLB fault at any time, on any address, for
any reason, at any point in the kernel.

This lets us do two important things. First, it removes the (soft) 16 GB RAM
ceiling on PPC64 as well as any architectural limitations on KVA space.
Second, it lets the kernel tolerate poorly designed hypervisors that
have a tendency to fail to restore the SLB properly after a hypervisor
context switch.

Now that we can tolerate LPAR context switches on the PS3 hypervisor, going
to hypervisor-idle on both threads will not hang the kernel.

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

12 years agoMFC r231770:
nwhitehorn [Sat, 3 Mar 2012 02:16:45 +0000 (02:16 +0000)]
MFC r231770:
Improve error handling in smusat(4).

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

12 years agoMFC r230992:
nwhitehorn [Sat, 3 Mar 2012 02:15:52 +0000 (02:15 +0000)]
MFC r230992:
Avoid warnings about duplicate modules.

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

12 years agoMFC r231046:
nwhitehorn [Sat, 3 Mar 2012 02:14:59 +0000 (02:14 +0000)]
MFC r231046:

Inherit from PCI bridge driver instead of manually specifying all of its
methods.

Obtained from: sparc64

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

12 years agoMFC r230482-230484,r230997:
nwhitehorn [Sat, 3 Mar 2012 02:13:53 +0000 (02:13 +0000)]
MFC r230482-230484,r230997:

Per popular demand, if installing from a graphics terminal, show the
installer log in real time on VTY 3, and spawn a shell on VTY 4.

PR: bin/161048

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

12 years agoMFC: r232309
jkim [Sat, 3 Mar 2012 00:36:30 +0000 (00:36 +0000)]
MFC: r232309

Fix a long standing bug.  The caller expects a non-zero value for success.
Luckily keyboard probing was turned off by default from the first revision.

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

12 years agoMFC r227368
jpaetzel [Fri, 2 Mar 2012 23:54:11 +0000 (23:54 +0000)]
MFC r227368

Welcome the initial patches for OSX bootcamp support!!!
This should let you select the ada0p3 hybrid MBR/GPT partition, and do an installation to it.

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

12 years agoMFC r231514:
ed [Fri, 2 Mar 2012 21:38:27 +0000 (21:38 +0000)]
MFC r231514:

  Set read buffer size to multiple of sizeof(struct futx).

  If the utmpx database gets updated while an application is reading it,
  there is a chance the reading application processes partially
  overwritten entries. To solve this, make sure we always read a multiple
  of sizeof(struct futx) at a time.

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

12 years agoMFC r231383, r231385 and r231648:
ed [Fri, 2 Mar 2012 21:36:24 +0000 (21:36 +0000)]
MFC r231383, r231385 and r231648:

  Detect file modification properly by using tv_nsec.

  POSIX 2008 standardizes st_mtim, meaning we can simply use nanosecond
  precision to detect file modification.

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

12 years agoMFC r231378:
ed [Fri, 2 Mar 2012 21:29:57 +0000 (21:29 +0000)]
MFC r231378:

  Remove direct access to si_name.

  Code should just use the devtoname() function to obtain the name of a
  character device. Also add const keywords to pieces of code that need it
  to build properly.

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

12 years agoMFC r231376:
ed [Fri, 2 Mar 2012 21:17:24 +0000 (21:17 +0000)]
MFC r231376:

  Remove outdated piece of information.

  devtoname() always returns a pathname to the device. It will never
  return a #major/minor string.

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

12 years agoMFC r231869:
kib [Fri, 2 Mar 2012 11:50:37 +0000 (11:50 +0000)]
MFC r231869:
Document dl_iterate_phdr(3).

MFC r231873:
Fix cross-references.

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

12 years agoMFC r231868:
kib [Fri, 2 Mar 2012 11:47:34 +0000 (11:47 +0000)]
MFC r231868:
Fetch the aux vector for the static libc, and use the entries to
initialize the cache of the system information as it was done for the
dynamic libc. This removes several sysctls from the static binary
startup.

Use the aux vector to fill the single struct dl_phdr_info describing
the static binary itself, to implement dl_iterate_phdr(3) for the
static binaries.

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

12 years agoMFC r231885:
kib [Fri, 2 Mar 2012 11:32:47 +0000 (11:32 +0000)]
MFC r231885:
Fix misuse of the kernel map in miscellaneous image activators.
Vnode-backed mappings cannot be put into the kernel map, since it is a
system map.

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

12 years agoMFC r232267:
emaste [Fri, 2 Mar 2012 00:21:07 +0000 (00:21 +0000)]
MFC r232267:
  Workaround for PCIe 4GB boundary issue

  Enforce a boundary of no more than 4GB - transfers crossing a 4GB
  boundary can lead to data corruption due to PCIe limitations.  This
  change is a less-intrusive workaround that can be quickly merged back
  to older branches; a cleaner implementation will arrive in HEAD later
  but may require KPI changes.

  This change is based on a suggestion by jhb@.

Sponsored by:   Sandvine Incorporated

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

12 years agoMFC r232225
sbruno [Thu, 1 Mar 2012 22:32:30 +0000 (22:32 +0000)]
MFC r232225

Update PCI-IDs with devices found on Intel SDP

Return  BUS_PROBE_DEFAULT so that non-default drivers may be loaded

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

12 years agoMFC r232074:
dim [Thu, 1 Mar 2012 17:54:07 +0000 (17:54 +0000)]
MFC r232074:

Use a better way to silence unneeded internal declaration warnings in
several sys/cam/ctl files.

Suggested by: ed
Reviewed by: ken

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

12 years agoMFC r231982:
dim [Thu, 1 Mar 2012 17:51:15 +0000 (17:51 +0000)]
MFC r231982:

When building with clang, disable -Wformat-security for
sys/dev/hpt27xx/osm_bsd.c, since it gets the following warnings:

sys/dev/hpt27xx/osm_bsd.c:1180:25: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security]
    S_IRUSR | S_IWUSR, driver_name);
       ^~~~~~~~~~~
@/dev/hpt27xx/hpt27xx_config.h:46:21: note: expanded from:
#define driver_name hpt27xx_driver_name
    ^~~~~~~~~~~~~~~~~~~

Since 'hpt27xx_driver_name' is a constant string symbol (coming from the
proprietary hpt27xx_lib.o file), there is no security problem.

Because this driver is provided by the vendor, and applying changes
requires re-certification and other bureaucratic exercises, just disable
the warning for now.

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

12 years agoMFC r230642: Remove trailing whitespace.
jh [Thu, 1 Mar 2012 15:51:19 +0000 (15:51 +0000)]
MFC r230642: Remove trailing whitespace.

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

12 years agoMFC r232064:
mm [Thu, 1 Mar 2012 08:22:59 +0000 (08:22 +0000)]
MFC r232064:
Import illumos changeset 13608 [1]:

add support for "-t <datatype>" argument to zfs get

References:
https://www.illumos.org/issues/1936

Update zfs(8) manpage in respect of [1].
Fix typo in zfs(8) manpage.

Obtained from: illumos (issue #1936)

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

12 years agoMFC r232176:
jhibbits [Thu, 1 Mar 2012 00:22:52 +0000 (00:22 +0000)]
MFC r232176:

Fix the scc(4) module build.  Without the file it's missing a required
symbol.

Approved by: nwhitehorn (mentor)

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

12 years agoMFC r231883
gibbs [Wed, 29 Feb 2012 18:41:59 +0000 (18:41 +0000)]
MFC r231883
===========
Fix regression in the handling of blkback close events for
devices that are unplugged via QEMU.

sys/dev/xen/blkback/blkback.c:
Toolstack initiated closures change the frontend's state
to Closing.  The backend must change to Closing as well,
even if we can't actually close yet, in order for the
frontend to notice and start the closing process.

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

12 years agoRecord MFC of r230981 (by hrs) done with r232292:
bz [Wed, 29 Feb 2012 12:13:05 +0000 (12:13 +0000)]
Record MFC of r230981 (by hrs) done with r232292:

  Fix input validation in SO_SETFIB.

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

12 years agoMFC r231852,232127:
bz [Wed, 29 Feb 2012 09:47:26 +0000 (09:47 +0000)]
MFC r231852,232127:

 Merge multi-FIB IPv6 support.

 Extend the so far IPv4-only support for multiple routing tables (FIBs)
 introduced in r178888 to IPv6 providing feature parity.

 This includes an extended rtalloc(9) KPI for IPv6, the necessary
 adjustments to the network stack, and user land support as in netstat.

Sponsored by: Cisco Systems, Inc.

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

12 years agoMFC 230857:
davidxu [Wed, 29 Feb 2012 06:19:00 +0000 (06:19 +0000)]
MFC 230857:

If multiple threads call kevent() to get AIO events on same kqueue fd,
it is possible that a single AIO event will be reported to multiple
threads, it is not threading friendly, and the existing API can not
control this behavior.
Allocate a kevent flags field sigev_notify_kevent_flags for AIO event
notification in sigevent, and allow user to pass EV_CLEAR, EV_DISPATCH
or EV_ONESHOT to AIO kernel code, user can control whether the event
should be cleared once it is retrieved by a thread. This change should
be comptaible with existing application, because the field should have
already been zero-filled, and no additional action will be taken by
kernel.

PR: kern/156567

MFC 231006:

Add 32-bit compat code for AIO kevent flags introduced in revision 230857.

MFC 231724:

Add notes about sigev_notify_kevent_flags introduced in revision 230857
which enables thread-friendly polling on same fd for AIO events.

Reviewed by: delphij

MFC 231777:

Bump .Dd date for previous revision.

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

12 years agoMFC r232003:
kib [Wed, 29 Feb 2012 01:39:39 +0000 (01:39 +0000)]
MFC r232003:
Properly lock DQREF() with dqhlock. Missed locking caused counter
corruption.

Assert that the dq reference value is sane before decrementing it.

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

12 years agoMFC r231998:
kib [Wed, 29 Feb 2012 01:36:00 +0000 (01:36 +0000)]
MFC r231998:
Use DOINGASYNC() to test for async allowance, to honor VFS syncing requests.

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

12 years agoMFC r232008,232010,232080,232089
thompsa [Wed, 29 Feb 2012 00:52:56 +0000 (00:52 +0000)]
MFC r232008,232010,232080,232089

 Using the flowid in the mbuf assumes the network card is giving a good hash for
 the traffic flow, this may not be the case giving poor traffic distribution.
 Add a sysctl which allows us to fall back to our own flow hash code.

PR: kern/164901

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

12 years agoMFC r228924:
delphij [Tue, 28 Feb 2012 23:30:19 +0000 (23:30 +0000)]
MFC r228924:

In POSIX.1-2008:

P_tmpdir [OB XSI]  Default directory prefix for tempnam().

This macro is used in a lot of places in legacy applications,
and is why we see a lot of programs written for e.g. Linux
store volatile temporary files in /var/tmp and not /tmp.

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

12 years agoMFC: r232050
rmacklem [Tue, 28 Feb 2012 15:52:01 +0000 (15:52 +0000)]
MFC: r232050
hrs@ reported a panic to freebsd-stable@ under the subject line
"panic in 8.3-PRERELEASE" on Feb. 22, 2012. This panic was caused
by use of a mix of tsleep() and msleep() calls on the same event
in the new NFS server DRC code. It did "mtx_unlock(); tsleep();"
in two places, which kib@ noted introduced a slight risk that the
wakeup() would occur before the tsleep(), resulting in a 10sec
delay before waking up. This patch fixes the problem by replacing
"mtx_unlock(); tsleep();" with mtx_sleep(..PDROP..). It also
changes a nfsmsleep() call to mtx_sleep() so that the code uses
mtx_sleep() consistently within the file.

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

12 years agoMFC: r231843, r232061, r232063, r232065, r232069
jkim [Mon, 27 Feb 2012 18:28:18 +0000 (18:28 +0000)]
MFC: r231843, r232061, r232063, r232065, r232069

- Set the initial mode for the adapter after executing VESA BIOS POST.
- Probe supported states for save/restore function.
- Defer to VGA methods if no state is supported.

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

12 years agoMFC: r231841, r231842
jkim [Mon, 27 Feb 2012 18:17:03 +0000 (18:17 +0000)]
MFC: r231841, r231842

Properly check VESA video mode number.

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

12 years agoBackout r230934 (MFCed as r231859) which didn't work with unix sockets and
pluknet [Mon, 27 Feb 2012 17:41:23 +0000 (17:41 +0000)]
Backout r230934 (MFCed as r231859) which didn't work with unix sockets and
several filesystem layers mounted at the specified path.

Pointy hat to: pluknet
Reported by: flo via broken tinderbox

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

12 years agoMFC r231860
sbruno [Mon, 27 Feb 2012 17:29:42 +0000 (17:29 +0000)]
MFC r231860

During work to port isci(4) to stable/7 I noted that the maxio portion of
struct ccb_pathinq from sys/cam/cam_ccb.h wasn't added to stable/7 at all
and didn't appear in stable/8 until svn R195534.  Since __FreeBSD_version
did not get bumped until svn R195634, assume that maxio is valid at 800102
or higher.

Obtained from: Yahoo! Inc.

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

12 years agoMFC r232039:
hselasky [Sun, 26 Feb 2012 21:24:02 +0000 (21:24 +0000)]
MFC r232039:
Avoid creating PCM devices for MIDI only adapters.

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

12 years agoMFC r231991:
ae [Sun, 26 Feb 2012 10:20:13 +0000 (10:20 +0000)]
MFC r231991:
  Don't use `m' after m_megapullup.

  PR: kern/165373

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

12 years agoMFC: r232060
brueffer [Sun, 26 Feb 2012 00:54:13 +0000 (00:54 +0000)]
MFC: r232060

Add isci(4) to the hardware notes.

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

12 years agoMFC: r232056
brueffer [Sun, 26 Feb 2012 00:52:10 +0000 (00:52 +0000)]
MFC: r232056

Rename DESCRIPTION section to HARDWARE, so this manpage can be used for
automatic hardware notes generation.

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

12 years agoMFC r232011:
gjb [Sat, 25 Feb 2012 19:20:53 +0000 (19:20 +0000)]
MFC r232011:
  Xref the following in wlan(4):

  - bwn(4)
  - mwl(4)
  - run(4)

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

12 years agoMFC: r231871
brueffer [Sat, 25 Feb 2012 10:10:43 +0000 (10:10 +0000)]
MFC: r231871

Switch the license boilerplates to our standard one.

Advantages:
- Reduces the number of different license versions in the tree
- Eliminates a typo
- Removes some incorrect author attributions due to c/p
- Removes c/p error potential for future pmc manpages

Approved by: jkoshy, gnn, rpaulo, fabient (copyright holders)

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

12 years agoMFC r232002:
kib [Sat, 25 Feb 2012 01:20:53 +0000 (01:20 +0000)]
MFC r232002:
Remove wrong comment.

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

12 years agoMFC: r231985
marius [Sat, 25 Feb 2012 01:18:42 +0000 (01:18 +0000)]
MFC: r231985

Fix memset sizeof

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

12 years agoMFC: r231914
marius [Sat, 25 Feb 2012 00:41:35 +0000 (00:41 +0000)]
MFC: r231914

Probe the National DP83849, which is a dual-port version of the PHYTER.

Obtained from: NetBSD

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

12 years agoMFC: r231913
marius [Sat, 25 Feb 2012 00:35:19 +0000 (00:35 +0000)]
MFC: r231913

- Probe BCM57780.
- In case the parent is bge(4), don't set the Jumbo frame settings unless
  the MAC actually is Jumbo capable as otherwise the PHY might not have the
  corresponding registers implemented. This is also in line with what the
  Linux tg3 driver does.

PR: 165032
Submitted by: Alexander Milanov
Obtained from: OpenBSD

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

12 years agoMFC r231904
alc [Fri, 24 Feb 2012 17:50:23 +0000 (17:50 +0000)]
MFC r231904
  Close a race due to dropping of the map lock between creating a map entry
  for a shared mapping and marking the entry for inheritance.

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

12 years agoMFC: r231880,r231915,r231937
brueffer [Fri, 24 Feb 2012 07:00:29 +0000 (07:00 +0000)]
MFC: r231880,r231915,r231937

Add a manpage for the oce(4) driver.

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

12 years agoMFC: r231621
marius [Fri, 24 Feb 2012 00:47:14 +0000 (00:47 +0000)]
MFC: r231621

- As it turns out, MSI-X is broken for at least LSI SAS1068E when passed
  through by VMware so blacklist their PCI-PCI bridge for MSI/MSI-X here.
  Note that besides currently there not being a quirk type that disables
  MSI-X only and there's no evidence that MSI doesn't work with the VMware
  pass-through, it's really questionable whether MSI generally works in
  that setup as VMware only mention three know working devices [1, p. 4].
  Also not that this quirk entry currently doesn't affect the devices
  emulated by VMware in any way as these don't claim support MSI/MSI-X to
  begin with. [2]
  While at it, make the PCI quirk table const and static.
- Remove some duplicated empty lines.
- Use DEVMETHOD_END.

PR: 163812, http://forums.freebsd.org/showthread.php?t=27899 [2]
Reviewed by: jhb

[1]: http://www.vmware.com/pdf/vsp_4_vmdirectpath_host.pdf

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

12 years agoMFC: r231781
jkim [Thu, 23 Feb 2012 22:34:44 +0000 (22:34 +0000)]
MFC: r231781

Some BIOSes are known for corrupting low 64KB between suspend and resume.
Mask off the first 16 pages unless we appear to be running in a VM.  This
address may be overridden by 'hw.physmem.start' tunable from loader.

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

12 years agoMFC: r231474
jkim [Thu, 23 Feb 2012 22:29:36 +0000 (22:29 +0000)]
MFC: r231474

De-obfuscate acpi_acquire_global_lock().

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

12 years agoMFC: r231161
jkim [Thu, 23 Feb 2012 22:26:14 +0000 (22:26 +0000)]
MFC: r231161

- Give all clocks and timers on acpi0 the equal probing order.
- Increase probing order for ECDT table to match HID-based probing.
- Decrease probing order for HPET table to match HID-based probing.
- Decrease probing order for CPUs and system resources.
- Fix ACPI_DEV_BASE_ORDER to reflect the reality.

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

12 years agoMFC: r231797
jkim [Thu, 23 Feb 2012 22:20:52 +0000 (22:20 +0000)]
MFC: r231797

Clean up RFLAG and CR3 register handling and nearby comments.  For BSP, use
spinlock_enter()/spinlock_exit() to save/restore RFLAGS.  We know interrupt
is disabled when returning from S3.  For AP, we do not have to save/restore
it because IRET will do it for us any way.  Do not save CR3 locally because
savectx() does it and BSP does not have to switch to kernel map for amd64.
Change contigmalloc(9) flag while I am in the neighborhood.

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

12 years agoMFC: r231227
jkim [Thu, 23 Feb 2012 22:15:56 +0000 (22:15 +0000)]
MFC: r231227

Reset clock after atrtc(4) is properly resumed.

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

12 years agoMFC: r231226, r231295
jkim [Thu, 23 Feb 2012 22:10:49 +0000 (22:10 +0000)]
MFC: r231226, r231295

Revert r211288 and move the logic to the acpi_timer itself.

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

12 years agoMFC: r231791, r231840
jkim [Thu, 23 Feb 2012 22:03:20 +0000 (22:03 +0000)]
MFC: r231791, r231840

Set up an event handler to turn off speaker if user requested it.  Speaker
will stop beeping after all device drivers are resumed.  Use proper API to
"acquire" and "release" PIC timer2 for consistency and correctness.

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

12 years agoMFC: r231787
jkim [Thu, 23 Feb 2012 22:00:31 +0000 (22:00 +0000)]
MFC: r231787

Make ACPI resume beeper less cryptic.  Set PIC timer2 mode properly.

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

12 years agoMFC: r231169
jkim [Thu, 23 Feb 2012 21:54:04 +0000 (21:54 +0000)]
MFC: r231169

Do not EOI local APIC too early when suspending APs.  Just do doreti instead
of taking a shortcut.

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

12 years agoMFC: r230958
jkim [Thu, 23 Feb 2012 21:50:13 +0000 (21:50 +0000)]
MFC: r230958

Restore callee saved registers later and micro-optimize.

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

12 years agoMFC: r230957
jkim [Thu, 23 Feb 2012 21:48:39 +0000 (21:48 +0000)]
MFC: r230957

Fix a function prototype to reflect reality.

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

12 years agoMFC: r230830
jkim [Thu, 23 Feb 2012 21:44:44 +0000 (21:44 +0000)]
MFC: r230830

Restore XCR0 before restoring extended FPU states.

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

12 years agoMFC: r230777
jkim [Thu, 23 Feb 2012 21:42:41 +0000 (21:42 +0000)]
MFC: r230777

Naturally align a newly added wakeup_fpusave.

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

12 years agoMFC 230183: Make XENHVM work on i386 by fixing the definition of __ffs.
cperciva [Thu, 23 Feb 2012 19:52:33 +0000 (19:52 +0000)]
MFC 230183: Make XENHVM work on i386 by fixing the definition of __ffs.

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

12 years agoMFC 230184, 230185: Add XENHVM config file to i386.
cperciva [Thu, 23 Feb 2012 19:49:25 +0000 (19:49 +0000)]
MFC 230184, 230185: Add XENHVM config file to i386.

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