]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoMFC r218825. [The implementation change to kdb_sysctl_available()
mdf [Fri, 25 Mar 2011 18:16:36 +0000 (18:16 +0000)]
MFC r218825.  [The implementation change to kdb_sysctl_available()
cannot be MFC'd as it requires a non-MFCable change (adding drains to
sbuf)].

Modify kdb_trap() so that it re-calls the dbbe_trap function as long as
the debugger back-end has changed.  This means that switching from ddb
to gdb no longer requires a "step" which can be dangerous on an
already-crashed kernel.

Also add a capability to get from the gdb back-end back to ddb, by
typing ^C in the console window.

While here, simplify kdb_sysctl_available() by using
sbuf_new_for_sysctl(), and use strlcpy() instead of strncpy() since the
strlcpy semantic is desired.

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

13 years agoMFC: r219782
marius [Fri, 25 Mar 2011 13:09:57 +0000 (13:09 +0000)]
MFC: r219782

On Serengeti-class machines the OFW root isn't the parent of the CPU
nodes.

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

13 years agoMFC: r219780
marius [Fri, 25 Mar 2011 13:08:19 +0000 (13:08 +0000)]
MFC: r219780

In case reading PCIR_MINGNT fails don't use it for calculating the
latency. This is more or less a theoretical problem though as it
typically indicates way bigger problems.

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

13 years agoMFC: r219340, r219531, r219533
marius [Fri, 25 Mar 2011 13:03:13 +0000 (13:03 +0000)]
MFC: r219340, r219531, r219533

- Add support for TLS relocations.
- Emitt an error when encountering an unsupported and in case of the
  kernel also for unaligned relocations.
- Fix R_SPARC_HIX22 and R_SPARC_LOX10 relocations. Apparently these are
  hardly ever used.

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

13 years agoMFC: r219548
marius [Fri, 25 Mar 2011 12:53:09 +0000 (12:53 +0000)]
MFC: r219548

Allocate the sound buffer DMA memory coherent. While NetBSD typically
also does this for sound drivers it's probably not necessary for all
combinations of controllers and drivers. However, given that our sound
drivers completely lack bus_dmamap_sync(9) calls this at least serves
as a workaround when enabling use of the IOMMU streaming buffers on
sparc64 and generally for arm and mips.

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

13 years agoMFC: r219547
marius [Fri, 25 Mar 2011 12:50:50 +0000 (12:50 +0000)]
MFC: r219547

- Allocate the DMA memory shared between the host and the controller as
  coherent.
- Constify the ti_devs table.
- Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that.

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

13 years agoMFC: r219545
marius [Fri, 25 Mar 2011 12:48:56 +0000 (12:48 +0000)]
MFC: r219545

Allocate the DMA memory shared between the host and the controller as
coherent.

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

13 years agoMFC: r219545
marius [Fri, 25 Mar 2011 12:48:06 +0000 (12:48 +0000)]
MFC: r219545

Allocate the DMA memory shared between the host and the controller as
coherent.

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

13 years agoMFC: r219544
marius [Fri, 25 Mar 2011 12:47:01 +0000 (12:47 +0000)]
MFC: r219544

Allocate the DMA memory shared between the host and the controller as
coherent.

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

13 years agoMFC: r219543
marius [Fri, 25 Mar 2011 12:46:08 +0000 (12:46 +0000)]
MFC: r219543

Allocate the DMA memory shared between the host and the controller as
coherent.

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

13 years agoMFH r219209: Unbreak .Aq for non-ASCII output like -Tps or -Tutf8.
uqs [Thu, 24 Mar 2011 17:09:24 +0000 (17:09 +0000)]
MFH r219209: Unbreak .Aq for non-ASCII output like -Tps or -Tutf8.

PR: gnu/154822
Submitted by: Dominic Fandrey <kamikaze@bsdforen.de>

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

13 years agoMFC r218741:
pluknet [Thu, 24 Mar 2011 13:18:09 +0000 (13:18 +0000)]
MFC r218741:

Bump dummynet module version to meet dummynet schedulers' requirements,
and thus unbreak loading dummynet.ko via /boot/loader.conf.

Approved by: luigi

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

13 years agoMFC r219713:
kib [Thu, 24 Mar 2011 00:42:07 +0000 (00:42 +0000)]
MFC r219713:
Implement the usertime and systime keywords for ps, printing the
corresponding times reported by getrusage().

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

13 years agoMFC: r219608
marius [Wed, 23 Mar 2011 22:35:18 +0000 (22:35 +0000)]
MFC: r219608

Remove the advertising clause from the UCB license according to the
July 22, 1999 addendum.

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

13 years agoMFC: r219339, r219532
marius [Wed, 23 Mar 2011 22:33:29 +0000 (22:33 +0000)]
MFC: r219339, r219532

- Remove clause 3 and 4 from TNF licenses. [1]
- Add the _RF_X committed in r212998 (merged to stable/8 in r213478) also
  to the tables in the sparc64 reloc.c in order reduce differences between
  the kernel and the userland source. This results in no functional change
  though.
- Consistently abbreviate the names of the relocations.
- End sentences with dots.
- Fix whitespace.

Obtained from: NetBSD [1]

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

13 years agoMFC: r219060
marius [Wed, 23 Mar 2011 21:06:19 +0000 (21:06 +0000)]
MFC: r219060

- Allocate the DMA memory shared between the host and the controller as
  coherent.
- Update a comment to no longer reference Alpha.

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

13 years agoMFC: r219567
marius [Wed, 23 Mar 2011 21:04:56 +0000 (21:04 +0000)]
MFC: r219567

Sync licenses and the corresponding RCS IDs with NetBSD, mainly switching
the licenses of Matthew R. Green and the TNF to 2-clause.

Obtained from: NetBSD

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

13 years agoMFC: r219338
marius [Wed, 23 Mar 2011 20:59:20 +0000 (20:59 +0000)]
MFC: r219338

Add missing bus_dmamap_sync() calls for the work DMA map.

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

13 years agoMFC: r219337
marius [Wed, 23 Mar 2011 20:58:12 +0000 (20:58 +0000)]
MFC: r219337

Add missing bus_dmamap_sync() calls for the work DMA map.

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

13 years agoMFC: r219336
marius [Wed, 23 Mar 2011 20:56:56 +0000 (20:56 +0000)]
MFC: r219336

- Allocate the DMA memory used for the work area as coherent as at least
  the ataahci(4) and atamarvell(4) drivers share it between the host and
  the controller.
- Spell some zeros as BUS_DMA_WAITOK when used as bus_dmamem_alloc() flags.

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

13 years agoMFC: r219335
marius [Wed, 23 Mar 2011 20:55:29 +0000 (20:55 +0000)]
MFC: r219335

- Allocate the DMA memory shared between the host and the controller as
  coherent.
- Add some missing bus_dmamap_sync() calls. This includes putting such
  calls before calling reply handlers instead of calling bus_dmamap_sync()
  for the request queue from individual reply handlers as these handlers
  generally read back updates by the controller.

Tested on amd64 and sparc64.

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

13 years agoMFC r219883:
np [Wed, 23 Mar 2011 17:33:04 +0000 (17:33 +0000)]
MFC r219883:

Fix an error while constructing the table that maps context id -> egress
queue

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

13 years agoMFC r211819:
osa [Wed, 23 Mar 2011 14:18:59 +0000 (14:18 +0000)]
MFC r211819:

Add one more new memory day for Russian Federation: the end of Second World
War.

MFC r212027:

Add dim to calendar.freebsd.

MFC r212218:

Add swills to calendar.freebsd.

MFC r212260:

Add andreast to calendar.freebsd.

MFC r212591:

Remove extra ; from parse.c.

MFC r213001:

Add sunpoet to calendar.freebsd.

MFC r213482:

Add pluknet to calendar.freebsd.

MFC r213990:

Add culot to calendar.freebsd.

MFC r214027:

Fix spaces by a tab after the date, introduced in r213990.

MFC r214973:

A traditional (once per three years) sort by month/day/year/login.
While here, fixed badly formatted lines.

MFC r214974:

Add/expand country/state.

MFC r215096:

Add zack to calendar.freebsd.

MFC r215836:

Pet make checkdpadd.

MFC r216282:

Add flo to calendar.freebsd.

MFC r216895:

Add jpaetzel to calendar.freebsd.

MFC r219478:

Add trociny to calendar.freebsd.

MFC r219638:

Add dchagin to calendar.freebsd.

MFC r219731:

Add sbz to calendar.freebsd.

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

13 years agoMFC r219702:
ae [Wed, 23 Mar 2011 06:19:17 +0000 (06:19 +0000)]
MFC r219702:
  Set control flags in putc(). This should fix zfsboot hangs in drvread().

  PR: kern/153552
  Reviewed by: jhb

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

13 years agoMFC r219415 (adapted for stable/8):
ae [Tue, 22 Mar 2011 05:50:55 +0000 (05:50 +0000)]
MFC r219415 (adapted for stable/8):
  Add -p option to `gpart show` command to show provider's names of
  partitions instead of partition's indexes. This may be useful with
  GPT partitioning scheme or EBR without GEOM_PART_EBR_COMPAT option.

MFC r219416:
  It is better to sometimes have not aligned columns than
  often have wrapped lines.

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

13 years agoMFC 219834:
gjb [Mon, 21 Mar 2011 15:22:48 +0000 (15:22 +0000)]
MFC 219834:
Bump date from previous commit.

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

13 years agoMFC 219805:
gjb [Mon, 21 Mar 2011 13:28:01 +0000 (13:28 +0000)]
MFC 219805:
- Use 'list scan' in favor of 'scan', as 'scan' has a different purpose.

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

13 years agoMFC r218816:
delphij [Mon, 21 Mar 2011 06:18:26 +0000 (06:18 +0000)]
MFC r218816:

Add a helper script that detects which partition we are on and update the
other.

Obtained from: FreeNAS
Sponsored by: iXsystems, Inc.

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

13 years agoMFC r219525: amd64/NOTES: use a greater number in KSTACK_PAGES example
avg [Sun, 20 Mar 2011 11:58:42 +0000 (11:58 +0000)]
MFC r219525: amd64/NOTES: use a greater number in KSTACK_PAGES example

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

13 years agoMFC r219712:
kib [Sun, 20 Mar 2011 00:43:42 +0000 (00:43 +0000)]
MFC r219712:
Remove the #if defined(FFS) || defined(IFS) braces around the calls to
ffs_snapgone(). ufs.ko module is not build with FFS define.

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

13 years agoMFC 219723:
gjb [Sat, 19 Mar 2011 01:41:21 +0000 (01:41 +0000)]
MFC 219723:
- Formtting fix.

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

13 years agoMFC 219574,219575:
gjb [Sat, 19 Mar 2011 00:34:12 +0000 (00:34 +0000)]
MFC 219574,219575:
- Add example of using 'scan' for wireless networks, similarly to
  OpenBSD's ifconfig(8)[1].
- remove unneeded newline

PR: 151952 [1]

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

13 years agoMFC r219271: POSIX.1-2008 moved some constants from the XSI option to the
jilles [Fri, 18 Mar 2011 22:35:48 +0000 (22:35 +0000)]
MFC r219271: POSIX.1-2008 moved some constants from the XSI option to the
Base.

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

13 years agoMFC 219483: Remove all object files during 'make clean'.
jhb [Fri, 18 Mar 2011 17:23:23 +0000 (17:23 +0000)]
MFC 219483: Remove all object files during 'make clean'.

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

13 years agoMFC 219460: Remove now-obsolete comment.
jhb [Fri, 18 Mar 2011 17:20:32 +0000 (17:20 +0000)]
MFC 219460: Remove now-obsolete comment.

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

13 years agoMFC 219399:
jhb [Fri, 18 Mar 2011 17:18:09 +0000 (17:18 +0000)]
MFC 219399:
When constructing a new cpuset, apply the parent cpuset's mask to the new
set's mask rather than the root mask.  This was causing the root mask to
be modified incorrectly.

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

13 years agoMFC 219384:
jhb [Fri, 18 Mar 2011 17:15:10 +0000 (17:15 +0000)]
MFC 219384:
The UFS dirhash code was attempting to update shared state in the dirhash
from multiple threads while holding a shared lock during a lookup operation.
This could result in incorrect ENOENT failures which could then be
permanently stored in the name cache.

Specifically, the dirhash code optimizes the case that a single thread is
walking a directory sequentially opening (or stat'ing) each file.  It uses
state in the dirhash structure to determine if a given lookup is using the
optimization.  If the optimization fails, it disables it and restarts the
lookup.  The problem arises when two threads both attempt the optimization
and fail.  The first thread will restart the loop, but the second thread
will incorrectly think that it did not try the optimization and will only
examine a subset of the directory entires in its hash chain.  As a result,
it may fail to find its directory entry and incorrectly fail with ENOENT.

To make this safe for use with shared locks, simplify the state stored in
the dirhash and move some of the state (the part that determines if the
current thread is trying the optimization) into a local variable.  One
result is that we will now try the optimization more often.  We still
update the value under the shared lock, but it is a single atomic store
similar to i_diroff that is stored in UFS directory i-nodes for the
non-dirhash lookup.

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

13 years agoMFC r210496:
jh [Fri, 18 Mar 2011 08:52:26 +0000 (08:52 +0000)]
MFC r210496:

- Remove some extra white space.
- Wrap g_md_dumpconf() prototype to 80 columns.

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

13 years agoMFC r210371:
jh [Fri, 18 Mar 2011 08:48:06 +0000 (08:48 +0000)]
MFC r210371:

Convert md(4) to use alloc_unr(9) and alloc_unr_specific(9) for unit
number allocation. The old approach had some problems such as it allowed
an overflow to occur in the unit number calculation.

PR: kern/122288

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

13 years agoMFC r219256: Fix some _POSIX minimum/maximum values in limits.h:
jilles [Thu, 17 Mar 2011 22:47:52 +0000 (22:47 +0000)]
MFC r219256: Fix some _POSIX minimum/maximum values in limits.h:
* Some values changed in POSIX.1-2001; provide the former value if a program
  requests compliance to an earlier version of POSIX. [1]
* Add missing _POSIX_CLOCKRES_MIN constant. This is a maximum value but
  otherwise works the same as the minimum values.

PR: standards/104743
Submitted by: bde [1] (not exact #ifdefs, but the values)

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

13 years agoMFC 219455:
gjb [Thu, 17 Mar 2011 22:35:29 +0000 (22:35 +0000)]
MFC 219455:
- Move the explanation of using arguments for the PRIMARIES above
  the list of PRIMARIES.

PR: 151812

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

13 years agoMFC of 219687, tzdata2011d:
edwin [Wed, 16 Mar 2011 03:34:12 +0000 (03:34 +0000)]
MFC of 219687, tzdata2011d:

- Pacific/Apia will have DST on 2 April instead of 3 April in 2011.
- Turkye will go to DST on 28 April instead of 27 April in 2011.
- Cuba will go to DST on 20 April in 2011.

Obtained from:  ftp://elsie.nci.nih.gov/pub/

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

13 years agoMFC: 212624, 212669, 213535
ken [Tue, 15 Mar 2011 21:34:10 +0000 (21:34 +0000)]
MFC: 212624, 212669, 213535

Merge the mps(4) man page.

  r212624 | ken | 2010-09-14 15:40:29 -0600 (Tue, 14 Sep 2010) | 7 lines

  MFp4 (//depot/projects/mps/...)

  Add a man page for the mps(4) driver, and reference it in the
  mpt(4) driver man page.

  Sponsored by:   Spectra Logic Corporation

  r212669 | ken | 2010-09-15 10:05:51 -0600 (Wed, 15 Sep 2010) | 6 lines

  MFp4 (//depot/projects/mps/...)

  Fix a typo.

  Submitted by:   pluknet at gmail dot com

  r213535 | ken | 2010-10-07 15:56:10 -0600 (Thu, 07 Oct 2010) | 36 lines

  Turn on serialization of task management commands going down to the
  controller, but make it optional.

  After a problem report from Andrew Boyer, it looks like the LSI
  chip may have issues (the watchdog timer fired) if too many aborts
  are sent down to the chip at the same time.  We know that task
  management commands are serialized, and although the manual doesn't
  say it, it may be a good idea to just send one at a time.

  But, since I'm not certain that this is necessary, add a tunable
  and sysctl variable (hw.mps.%d.allow_multiple_tm_cmds) to control
  the driver's behavior.

  mps.c: Add support for the sysctl and tunable, and add a
   comment about the possible return values to
   mps_map_command().

  mps_sas.c: Run all task management commands through two new
   routines, mpssas_issue_tm_request() and
   mpssas_complete_tm_request().

   This allows us to optionally serialize task
   management commands.  Also, change things so that
   the response to a task management command always
   comes back through the callback.  (Before it could
   come via the callback or the return value.)

  mpsvar.h: Add softc variables for the list of active task
   management commands, the number of active commands,
   and whether we should allow multiple active task
   management commands.  Add an active command flag.

  mps.4: Describe the new sysctl/loader tunable variable.

  Sponsored by:   Spectra Logic Corporation

Reminded by: Hubert Tournier <hubert at frbsd dot org>

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

13 years agoMFC r218019: Do not trip a KASSERT if /dev/null cannot be opened for a
jilles [Tue, 15 Mar 2011 20:24:21 +0000 (20:24 +0000)]
MFC r218019: Do not trip a KASSERT if /dev/null cannot be opened for a
setuid program.

The fdcheckstd() function makes sure fds 0, 1 and 2 are open by opening
/dev/null. If this fails (e.g. missing devfs or wrong permissions),
fdcheckstd() will return failure and the process will exit as if it received
SIGABRT. The KASSERT is only to check that kern_open() returns the expected
fd, given that it succeeded.

Tripping the KASSERT is most likely if fd 0 is open but fd 1 or 2 are not.

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

13 years agoMFC r218497:
netchild [Tue, 15 Mar 2011 13:19:26 +0000 (13:19 +0000)]
MFC r218497:
  Linux' shm_open() fails because it wants to find some funky shmfs
  to construct the full pathname. It starts to search at the default
  mountpoint which is /dev/shm. If this fails it runs through fstab
  and searches for shmfs and tmpfs. Whatever it finds will be
  statfs()'ed to be checked for Linux' fs magic for shmfs (0x01021994).

  Ideally our tmpfs should deliver this fs magic to Linux processes, but
  as our tmpfs is considered to be an experimental feature we can not
  assume that there is always a tmpfs available.

  To make shared memory work in the Linuxulator, force the fs type of
  /dev/shm (which can be a symlink) to match what Linux expects. The user
  is responsible (info has to be added to the linux base ports and the docs)
  to setup a suitable link for /dev/shm.

  Noticed by:        Andre Albsmeier <Andre.Albsmeier@siemens.com>
  Submitted by:      Andre Albsmeier <Andre.Albsmeier@siemens.com>

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

13 years agoMFC r219396:
kib [Tue, 15 Mar 2011 10:17:18 +0000 (10:17 +0000)]
MFC r219396:
Do not assert buffer lock in VFS_STRATEGY() when kernel already paniced.

Sponsored by: The FreeBSD Foundation

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

13 years agoMFC kern.msgbufsize: r217688-217689,r217709,r218666-218667,r218913.
pluknet [Tue, 15 Mar 2011 08:20:59 +0000 (08:20 +0000)]
MFC kern.msgbufsize: r217688-217689,r217709,r218666-218667,r218913.
Note, that arm/{s3c2xx0,econa} exist only in head, thus not merged.

r217688:
 Make MSGBUF_SIZE kernel option a loader tunable kern.msgbufsize.

r217689:
 Add kern.msgbufsize default setting to /boot/defaults/loader.conf.

r217709,218666-218667,218913 by marcel, cognet:
 Fix up for various arm subtargets: call init_param1() before we use
 msgbufsize, now that the size of the message buffer is a tunable.

Reviewed by: marcel
Approved by: avg (mentor)

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

13 years agoMFC r219127:
ae [Tue, 15 Mar 2011 07:15:04 +0000 (07:15 +0000)]
MFC r219127:
  Add XMIT_FAILOVER transmit algorithm to ng_one2many node. Packets are
  delivered out the first active "many" hook.

  PR: kern/137775
  Submitted by: Maxim Ignatenko

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

13 years agoPartially MFC r209867 and r215439, to provide rudimentary support for
dim [Mon, 14 Mar 2011 22:51:51 +0000 (22:51 +0000)]
Partially MFC r209867 and r215439, to provide rudimentary support for
linking i386 (32 bit) executables on amd64, using gcc's -m32 option.

r209867 introduces the needed multilib options to gcc's multilib.h, but
was originally intended just for powerpc64.

r215439 teaches the linker to search in /usr/lib32 for elf_i386_fbsd
output, and amends r209867 to apply to amd64 too.

NOTE: this MFC does NOT provide full support for compiling and linking
all existing 32 bit programs on amd64, since /usr/include/machine still
contains amd64-specific headers.  Though simple "Hello World" type
programs work, anything relying on machine-specific types might fail in
various interesting ways.  You have been warned. :)

MFC r209867:
Teach our toolchain how to generate 64-bit PowerPC binaries. This fixes
a variety of bugs in binutils related to handling of 64-bit PPC ELF,
provides a GCC configuration for 64-bit PowerPC on FreeBSD, and
associated build systems tweaks.

Obtained from: projects/ppc64

MFC r215439:
Let gcc and ld know where to find 32 bit libraries on amd64.

Reviewed by: arch@
Approved by: kib (mentor)

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

13 years agoMFC r209710:
jh [Mon, 14 Mar 2011 17:08:30 +0000 (17:08 +0000)]
MFC r209710:

Extend the kernel unit number allocator for allocating specific unit
numbers. This change adds a new function alloc_unr_specific() which
returns the requested unit number if it is free. If the number is
already allocated or out of the range, -1 is returned.

Update alloc_unr(9) manual page accordingly and add a MLINK for
alloc_unr_specific(9).

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

13 years agoMFC r219388:
kib [Mon, 14 Mar 2011 11:20:26 +0000 (11:20 +0000)]
MFC r219388:
Simplify uses of the web of pointers.

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

13 years agoMFC cxgbe(4) and fixes.
np [Mon, 14 Mar 2011 09:50:14 +0000 (09:50 +0000)]
MFC cxgbe(4) and fixes.

r218792:
cxgbe(4) - NIC driver for Chelsio T4 (Terminator 4) based 10Gb/1Gb adapters.

r219285:
Fix incorrect assertion.

r219286:
Resume tx immediately in response to an SGE egress update from the hardware.

r219287:
Upgrade the firmware on the card automatically if a better version is
available.  Downgrade only for a major version mismatch.

r219288:
A txpkts work request should have a valid FID.

r219289:
Store the ifnet rather than the port_info in each txq and rxq struct.

r219290:
Tweaks for rx:
- everything related to LRO should be in #ifdef INET blocks
- reorder sge_iq's fields so that the most frequently used are all together
- pull all rx code into t4_intr_data directly
- let go of the ingress queue lock when passing up data
- refill the freelist only if it is short of at least 32 buffers

r219292:
Calculate how many descriptors can be reclaimed before calling
reclaim_tx_descs

r219293:
There is no need to hold an ingress queue's lock while processing its
descriptors

r219299:
Be sure to stay within the bounds of the mod_str array when displaying
the transceiver type.

r219392:
cxgbe shouldn't directly know of the UMA zones where network buffers
come from.

r219436:
Display holdoff timers and packet counts as a list of numbers.

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

13 years agoMFC r219352:
kib [Sun, 13 Mar 2011 09:36:52 +0000 (09:36 +0000)]
MFC r219352:
The execution of the shebang script requires putting interpreter path,
possible option and script path in the place of argv[0] supplied to
execve(2).  It is possible and valid for the substitution to be shorter
then the argv[0].

Avoid signed underflow in this case.

PR:     kern/155321

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

13 years agoMFC r216697:
osa [Sat, 12 Mar 2011 14:57:10 +0000 (14:57 +0000)]
MFC r216697:

Fix typo (Pashka -> Paskha).

MFC r217025:

Fix typo: March -> September.

MFC r218471:

Fix Paskha and Paskha-specific holidays.

MFC r218473:

Always convert Paskha day from Julian (old) to Gregorian (new)
style by adding 13 days.  Bug introduced in 1.13 revision.

MFC r218771:

Fix the beginning day of the Great Lent, it starts on Monday
for 7 weeks before Paskha.
Fix the Exaltation of the Holy Cross day.
Add more Twelve holidays (dvunadesyatye prazdniki).

MFC r218797:

Replace hard-coded value by Julian2Gregorian converter function.

MFC r219174:

Fix beginning day of the Carnival.

MFC r219175:

Expand the name of Palm Sunday holiday with more canonical Entry
of the Lord into Jerusalem.
Merge the Pentecost and Trinity Sunday holidays, they are synonyms.
Remove Body of Christ day, nonexistent holiday for Orthodox Church.
Fix typo in the name of Ioann The Baptist, introduced in previous
commit.

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

13 years agoMFC r219353:
dougb [Fri, 11 Mar 2011 23:13:22 +0000 (23:13 +0000)]
MFC r219353:

mbone is no longer a physical category

Submitted by: pav

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

13 years agoPull up mergeinfo from r209199,210482,212138,217826
dougb [Fri, 11 Mar 2011 23:12:20 +0000 (23:12 +0000)]
Pull up mergeinfo from r209199,210482,212138,217826

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

13 years agoMFH r210933,219210: Typo fixes
uqs [Fri, 11 Mar 2011 22:07:28 +0000 (22:07 +0000)]
MFH r210933,219210: Typo fixes

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

13 years agoMFC r218844:
ed [Fri, 11 Mar 2011 19:44:06 +0000 (19:44 +0000)]
MFC r218844:

  Improve 256 color support.

  - Add screen-256color,
  - Improve rxvt-256color to set pa and op properly.
  - Add rxvt-unicode-256color as an alias to rxvt-256color.

  PR:           conf/152713, conf/153164
  Submitted by: Alexander Verbod and Frédéric Perrin

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

13 years agouse even larger stack size for ZFS txg_sync_thread
avg [Fri, 11 Mar 2011 19:27:31 +0000 (19:27 +0000)]
use even larger stack size for ZFS txg_sync_thread

While the stack size was larger than the default stack size on i386, it
was smaller than the default stack size on amd64 and apparently that
wasn't enough.  So, bump the size to 4 pages.  Upcoming ZFSv28 code uses
8 pages for this stack size.

This is a direct commit to stable/8.

PR: kern/154681
Discussed with: pjd

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

13 years agoMFC r216505: cyclic xcall: use smp_no_rendevous_barrier as setup
avg [Fri, 11 Mar 2011 18:46:11 +0000 (18:46 +0000)]
MFC r216505: cyclic xcall: use smp_no_rendevous_barrier as setup
function parameter

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

13 years agoMFC r216375,r216408: fix atomic_set_xxx misuse in rge
avg [Fri, 11 Mar 2011 18:28:20 +0000 (18:28 +0000)]
MFC r216375,r216408: fix atomic_set_xxx misuse in rge

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

13 years agoMFC r216374: fix atomic_set_xxx misuse in drm
avg [Fri, 11 Mar 2011 18:15:30 +0000 (18:15 +0000)]
MFC r216374: fix atomic_set_xxx misuse in drm

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

13 years agoMFC r216376: acpi_fujitsu: update for P8010
avg [Fri, 11 Mar 2011 18:07:49 +0000 (18:07 +0000)]
MFC r216376: acpi_fujitsu: update for P8010

PR: kern/121102

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

13 years agoMFC r216503: small cleanup of acpi battery status setting and checking
avg [Fri, 11 Mar 2011 16:43:39 +0000 (16:43 +0000)]
MFC r216503: small cleanup of acpi battery status setting and checking

PR: kern/124744

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

13 years agoMFC 219137: Fully honor KERNSRCDIR for 'make universe' if it is set.
jhb [Fri, 11 Mar 2011 16:24:49 +0000 (16:24 +0000)]
MFC 219137: Fully honor KERNSRCDIR for 'make universe' if it is set.

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

13 years agoMFC 219136:
jhb [Fri, 11 Mar 2011 16:21:45 +0000 (16:21 +0000)]
MFC 219136:
Use a suitable DIRPRFX for each invocation of make in the build32 and
install32 targets so that the full path to each program or library is
displayed in the make output.

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

13 years agoMFC 219135:
jhb [Fri, 11 Mar 2011 16:14:06 +0000 (16:14 +0000)]
MFC 219135:
Similar to 189574, properly handle subclasses of bus drivers when deleting
a driver during kldunload.  Specifically, recursively walk the tree of
subclasses of a given driver attachment's bus device class detaching all
instances of that driver for each class and its subclasses.

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

13 years agoMFC r216254: opensolaris cyclic: fix deadlock and make a little bit
avg [Fri, 11 Mar 2011 16:11:42 +0000 (16:11 +0000)]
MFC r216254: opensolaris cyclic: fix deadlock and make a little bit
closer to upstream

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

13 years agoMFC r216252: opensolaris cyclic xcall: no need for special handling of curcpu
avg [Fri, 11 Mar 2011 16:05:36 +0000 (16:05 +0000)]
MFC r216252: opensolaris cyclic xcall: no need for special handling of curcpu

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

13 years agoMFC r216251: dtrace_xcall: no need for special handling of curcpu
avg [Fri, 11 Mar 2011 16:00:56 +0000 (16:00 +0000)]
MFC r216251: dtrace_xcall: no need for special handling of curcpu

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

13 years agoMFC r216373: fix incorrect use of atomic_set_xxx in cxgb
avg [Fri, 11 Mar 2011 15:50:45 +0000 (15:50 +0000)]
MFC r216373: fix incorrect use of atomic_set_xxx in cxgb

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

13 years agoMFC r216250: dtrace_gethrtime_init: pin to master while examining other CPUs
avg [Fri, 11 Mar 2011 15:38:42 +0000 (15:38 +0000)]
MFC r216250: dtrace_gethrtime_init: pin to master while examining other CPUs

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

13 years agoMFC 208898:
jhb [Fri, 11 Mar 2011 15:34:06 +0000 (15:34 +0000)]
MFC 208898:
Call BUS_PROBE_NOMATCH() when device detached due to driver unload.
This allows bus to power-down device when driver unloaded on-flight.

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

13 years agoMFC r215750: taskqueue: drop unused tq_name field
avg [Fri, 11 Mar 2011 15:14:40 +0000 (15:14 +0000)]
MFC r215750: taskqueue: drop unused tq_name field

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

13 years agoMFC r215748: specialreg.h: add definitions for some useful bits found in
avg [Fri, 11 Mar 2011 15:05:23 +0000 (15:05 +0000)]
MFC r215748: specialreg.h: add definitions for some useful bits found in
CPUID.6 EAX and ECX

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

13 years agoMFC r215524: specialreg.h: add definitions for MPERF/APERF pair of MSRs
avg [Fri, 11 Mar 2011 14:58:17 +0000 (14:58 +0000)]
MFC r215524: specialreg.h: add definitions for MPERF/APERF pair of MSRs

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

13 years agoMFC r215523: specialreg.h: add AMD-specific "Hardware Configuration
avg [Fri, 11 Mar 2011 14:53:34 +0000 (14:53 +0000)]
MFC r215523: specialreg.h: add AMD-specific "Hardware Configuration
Register" MSR

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

13 years agoMFC r215522: specialreg.h: add definition for AMD Core Performance Boost bit
avg [Fri, 11 Mar 2011 14:38:35 +0000 (14:38 +0000)]
MFC r215522: specialreg.h: add definition for AMD Core Performance Boost bit

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

13 years agoUnbreak mips OCTEON1: there's no options MALLOC_DEBUG_MAXZONES in stable/8.
pluknet [Thu, 10 Mar 2011 17:26:36 +0000 (17:26 +0000)]
Unbreak mips OCTEON1: there's no options MALLOC_DEBUG_MAXZONES in stable/8.

This is a direct commit to 8.

Approved by: avg (mentor)

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

13 years agoMFC r218432:
delphij [Thu, 10 Mar 2011 01:02:53 +0000 (01:02 +0000)]
MFC r218432:

Don't consider ioctl returning error as a fatal error and move on to next
disk.  When multiple devices are specified, a non-supporting ioctl will
cause diskinfo(8) to stop at the point which does not seem to be necessary.

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

13 years agoMFC r203967:
jh [Wed, 9 Mar 2011 16:56:51 +0000 (16:56 +0000)]
MFC r203967:

Xref mdmfs(8).

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

13 years agoMFC r203966:
jh [Wed, 9 Mar 2011 16:55:17 +0000 (16:55 +0000)]
MFC r203966:

Improve descriptions for tmpfs mount options. The descriptions have
been mostly obtained from NetBSD mount_tmpfs(8) manual page.

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

13 years agoMFC r203951 by delphij:
jh [Wed, 9 Mar 2011 16:52:55 +0000 (16:52 +0000)]
MFC r203951 by delphij:

Remove clause 3 from my license.

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

13 years agoMFC r203164:
jh [Wed, 9 Mar 2011 15:27:11 +0000 (15:27 +0000)]
MFC r203164:

Add "maxfilesize" mount option for tmpfs to allow specifying the
maximum file size limit. Default is UINT64_MAX when the option is
not specified. It was useless to set the limit to the total amount of
memory and swap in the system.

Use tmpfs_mem_info() rather than get_swpgtotal() in tmpfs_mount() to
check if there is enough memory available.

Remove now unused get_swpgtotal().

MFC r203169:

Bump .Dd for r203164.

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

13 years agoMFC r202897,r208164,r212174: msgbufp mapping changes on amd64.
pluknet [Wed, 9 Mar 2011 12:14:49 +0000 (12:14 +0000)]
MFC r202897,r208164,r212174: msgbufp mapping changes on amd64.

r202897 by alc:

 Simplify the mapping of the system message buffer.  Use the direct map just
 like ia64 does.

r208164 by alc:

 Correct an error of omission in r202897: Now that amd64 uses the direct map
 to access the message buffer, we must explicitly request that the underlying
 physical pages are included in a crash dump.

r212174 by avg:

 vm_page.c: include opt_msgbuf.h for MSGBUF_SIZE use in vm_page_startup

Approved by: alc, kib (mentor), avg (mentor)

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

13 years agoMFC of tzdata2011c, r219411
edwin [Tue, 8 Mar 2011 21:14:02 +0000 (21:14 +0000)]
MFC of tzdata2011c, r219411

- No leapsecond in June 2011
- Add and update timezones for America/Juneau, America/Sitka,
  America/Metlakatla
- Change of Summer time to Winter time in Chili happens in April
  2011, not in March 2011.

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

13 years agoMFC r196526 by delphij:
jh [Tue, 8 Mar 2011 17:41:07 +0000 (17:41 +0000)]
MFC r196526 by delphij:

Add a missing .El.

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

13 years agoMFC r201773:
jh [Tue, 8 Mar 2011 17:27:36 +0000 (17:27 +0000)]
MFC r201773:

- Change the type of size_max to u_quad_t because its value is converted
  with vfs_scanopt(9) using the "%qu" format string.
- Limit the maximum value of size_max to (SIZE_MAX - PAGE_SIZE) to
  prevent overflow in howmany() macro.

PR: kern/141194

MFC r202187:

- Fix some style bugs in tmpfs_mount().
- Remove a stale comment about tmpfs_mem_info() 'total' argument.

MFC r202708:

- Change the type of nodes_max to u_int and use "%u" format string to
  convert its value.
- Set default tm_nodes_max to min(pages + 3, UINT32_MAX). It's more
  reasonable than the old four nodes per page (with page size 4096) because
  non-empty regular files always use at least one page. This fixes possible
  overflow in the calculation.
- Don't allow more than tm_nodes_max nodes allocated in tmpfs_alloc_node().

PR: kern/138367

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

13 years agoMFC: r218293
jkim [Mon, 7 Mar 2011 18:00:58 +0000 (18:00 +0000)]
MFC: r218293

Do not let pw.conf(5) or -M option affect creation of basehome, e.g., /home.
When the basehome does not exist, it creates all intermediate directories as
required, which is logically equivalent to mkdir(1) with -m and -p options.
However, it modifies all intermediate directories, not just the final home
directory unlike mkdir.  This problem was introduced in two revisions, i.e.,
r1.59 (SVN r167919) and r1.60 (SVN r168044).

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

13 years agoMFC 218970,219240:
jhb [Mon, 7 Mar 2011 17:15:10 +0000 (17:15 +0000)]
MFC 218970,219240:
Use umtx_key objects to uniquely identify futexes.  Private futexes in
different processes that happen to use the same user address in the
separate processes will now be treated as distinct futexes rather than the
same futex.  We can now honor shared futexes properly by mapping them to a
AUTO_SHARED umtx_key.  Private futexes use THREAD_SHARED umtx_key objects.

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

13 years agoMFC r215687:
jh [Mon, 7 Mar 2011 15:24:35 +0000 (15:24 +0000)]
MFC r215687:

Use g_eventlock to protect against losing wakeups in the g_event process
and replace tsleep(9) with msleep(9) which doesn't use a timeout. The
previously used timeout caused the event process to wake up ten times
per second on an idle system.

one_event() is now called with the topology lock held and it returns
with both the topology and event locks held when there are no more
events in the queue.

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

13 years agoMFC r219158:
delphij [Mon, 7 Mar 2011 09:04:06 +0000 (09:04 +0000)]
MFC r219158:

Correct a typo.

PR: bin/155175
Submitted by: Peter J. Philipp <pjp centroid.eu>

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

13 years agoMFC r219102:
yongari [Mon, 7 Mar 2011 00:42:22 +0000 (00:42 +0000)]
MFC r219102:
  Make sure changing ownership of RX descriptor to be done as last
  operation.  Previously ownership was transferred to hardware before
  setting address of new RX buffer such that it was possible for
  hardware to use wrong RX buffer address.
  While here keep compiler from re-ordering instructions by declaring
  descriptor members volatile. Memory barriers would do the same job
  but volatile is supposed to be cheaper than using memory barriers,
  especially on MP systems.

  Submitted by: marius

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

13 years agoMFC r208927 by mjacob:
jh [Sun, 6 Mar 2011 18:43:59 +0000 (18:43 +0000)]
MFC r208927 by mjacob:

Try and narrow the gap in which you act on an event that has been canceled.

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

13 years agoMFC: r218468
marius [Sun, 6 Mar 2011 11:56:07 +0000 (11:56 +0000)]
MFC: r218468

Set td_kstack_pages for thread0.

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

13 years agoMFC: r216013, r216083
marius [Sun, 6 Mar 2011 11:51:39 +0000 (11:51 +0000)]
MFC: r216013, r216083

Several chipset drivers alter parameters relevant for the DMA tag creation,
i.e. alignment, max_address, max_iosize and segsize (only max_address is
thought to have an negative impact regarding this issue though), after
calling ata_dmainit() either directly or indirectly so these values have
no effect or at least no effect on the DMA tags and the defaults are used
for the latter instead. So change the drivers to set these parameters
up-front and ata_dmainit() to honor them.

Reviewd by: mav

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

13 years ago- Use the correct DMA tag/map pair for synchronize the FC scratch area.
marius [Sun, 6 Mar 2011 11:43:02 +0000 (11:43 +0000)]
- Use the correct DMA tag/map pair for synchronize the FC scratch area.
- Allocate coherent DMA memory for the request/response queue area and
  and the FC scratch area.

These changes allow isp(4) to work properly on sparc64 with usage of the
IOMMU streaming buffers enabled.

Approved by: mjacob

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

13 years agoMFC r218896 (share/examples part):
mm [Sun, 6 Mar 2011 10:32:58 +0000 (10:32 +0000)]
MFC r218896 (share/examples part):

Add opteron-sse3, athlon64-sse3 and k8-sse3 cpu types to bsd.cpu.mk.
- add "sse3" to MACHINE_CPU for the new cpu types
- for i386, default to CPUTYPE=prescott for the new cpu types

PR: gnu/154906
Discussed with: kib, kan, dim

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

13 years agoMFC r218896:
mm [Sun, 6 Mar 2011 09:02:35 +0000 (09:02 +0000)]
MFC r218896:

Add opteron-sse3, athlon64-sse3 and k8-sse3 cpu types to bsd.cpu.mk.
- add "sse3" to MACHINE_CPU for the new cpu types
- for i386, default to CPUTYPE=prescott for the new cpu types

PR: gnu/154906
Discussed with: kib, kan, dim

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

13 years agoMFC r218895:
mm [Sun, 6 Mar 2011 09:01:29 +0000 (09:01 +0000)]
MFC r218895:

Backport svn r124339 from gcc 4.3 and add opteron-sse3, athlon64-sse3
and k8-sse3 cpu-types for -march=/-mtune= gcc options.
These new cpu-types include the SSE3 instruction set that is supported
by all newer AMD Athlon 64 and Opteron processors.
All three cpu-types are supported by clang and all gcc versions
starting with 4.3 SVN rev 124339 (at that time GPLv2 licensed).

PR: gnu/154906
Discussed with: kib, kan, dim
Obtained from: gcc 4.3 (r124339, GPLv2 licensed)

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