]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
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

13 years agoMFC r216137:
das [Sun, 6 Mar 2011 08:52:23 +0000 (08:52 +0000)]
MFC r216137:
  Disable gcc's built-in rint() function when compiling s_nearbyint.c.
  It results in incorrect optimizations that break nearbyint().

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

13 years agoBump __FreeBSD_version for the MFC of log2(), for the benefit of ports
das [Sun, 6 Mar 2011 08:50:15 +0000 (08:50 +0000)]
Bump __FreeBSD_version for the MFC of log2(), for the benefit of ports
such as opencity and inkscape that have workarounds for the lack of a
log2() in the base system.

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

13 years agoMFC
das [Sun, 6 Mar 2011 08:49:44 +0000 (08:49 +0000)]
MFC
  r216210: refactor log(3)
  r216211: add log2(3) and log2f(3)

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

13 years agoMFC r219178:
kib [Sat, 5 Mar 2011 09:42:00 +0000 (09:42 +0000)]
MFC r219178:
Fix a bug in the result of manual assembly.

PR: kern/155118

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

13 years agoMFHead 219059:
glebius [Sat, 5 Mar 2011 08:56:42 +0000 (08:56 +0000)]
MFHead 219059:
  Connect uep.ko to build

  PR:           kern/155044
  Submitted by: Carl <k0802647 telus.net>

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

13 years agoMFC r218965, 219055:
brucec [Sat, 5 Mar 2011 04:27:02 +0000 (04:27 +0000)]
MFC r218965, 219055:

Fix typos - remove duplicate "is".

PR: docs/154934

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

13 years agoMFC r219081:
brucec [Sat, 5 Mar 2011 04:15:46 +0000 (04:15 +0000)]
MFC r219081:

Merge fix from r1.108 of NetBSD's usr.bin/ftp/main.c:

Only attempt to el_parse() a command unknown by the default parser
if editing is enabled.

PR:           bin/100089

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

13 years agoMFC r218535:
dougb [Sat, 5 Mar 2011 04:06:12 +0000 (04:06 +0000)]
MFC r218535:

Synthesize the change from NetBSD's 1.33:

"Do not crash if a date cannot be represented (localtime returning
NULL), use the Epoch value instead."

Obtained from:  njoly@NetBSD.org

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

13 years agoMFC r219096, r219126:
brucec [Sat, 5 Mar 2011 03:46:24 +0000 (03:46 +0000)]
MFC r219096, r219126:

r177626 broke some sentences. Reword them to avoid the duplicate "in".

PR: 121490

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

13 years agoMFC r218961:
dougb [Sat, 5 Mar 2011 02:11:23 +0000 (02:11 +0000)]
MFC r218961:

Update how accounting log files are rotated, clean up the rc.d script
a bit.

MFC r218986:

The new accounting file needs to be 644 so that unprivileged users
can use lastcomm(1)

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

13 years agoMFC: r219046
jkim [Fri, 4 Mar 2011 22:59:14 +0000 (22:59 +0000)]
MFC: r219046

Set C1 "I/O then Halt" capability bit for Intel EIST.  Some broken BIOSes
refuse to load external SSDTs if this bit is unset for _PDC.

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

13 years agoMFC r218966, r219124:
brucec [Fri, 4 Mar 2011 20:26:35 +0000 (20:26 +0000)]
MFC r218966, r219124:

Change the return type of vmspace_swap_count to a long to match the other
vmspace_*_count functions.

While here, clean up some style(9) issues.

PR: kern/152200

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

13 years agoMFC r219031:
pluknet [Fri, 4 Mar 2011 12:18:50 +0000 (12:18 +0000)]
MFC r219031:

 Fix division by zero, causing floating point exception in a drive progress
 command.

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

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

13 years agoMFC 218969:
jhb [Thu, 3 Mar 2011 22:08:51 +0000 (22:08 +0000)]
MFC 218969:
Expose the umtx_key structure and API to the rest of the kernel.

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

13 years agoMFC r212067, r214623
mm [Thu, 3 Mar 2011 21:56:08 +0000 (21:56 +0000)]
MFC r212067, r214623

MFC r212067 (pjd):
Eliminate confusing while () loop. In the first version of the code it was
there to avoid gotos, but in the current version it serves no purpose.

MFC r214623 (pjd):
Fix ztest when it is executed by just 'ztest' and not by full path
'/usr/bin/ztest'.

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

13 years agoMFC 218968:
jhb [Thu, 3 Mar 2011 20:13:44 +0000 (20:13 +0000)]
MFC 218968:
Properly handle BARs bigger than 4G.  The '1' was treated as an int
causing the size calculation to be truncated to the size of an int
(32-bits on all current architectures).

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

13 years agoMFC 218777:
jhb [Thu, 3 Mar 2011 19:57:38 +0000 (19:57 +0000)]
MFC 218777:
Save a copy of errno before invoking syslog() if accept() or select() fail.
syslog() can trash the errno value causing nfsd to exit for non-fatal
errors like ECONNABORTED from accept().

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

13 years agoMFC 218707: Properly check for errors from waitpid().
jhb [Thu, 3 Mar 2011 19:55:15 +0000 (19:55 +0000)]
MFC 218707: Properly check for errors from waitpid().

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

13 years agoMFC 216487,217754,218524:
jhb [Thu, 3 Mar 2011 18:52:11 +0000 (18:52 +0000)]
MFC 216487,217754,218524:
- Pass JFLAG as JFLAG from tinderbox to universe.
- For `make tinderbox` there is no need to print the extra commands.
- Add a new UNIVERSE_TARGET variable for 'make universe'.  If it is set,
  then that target is invoked for each architecture rather than the
  default action of building world and kernels for each architecture.
- Add a 'make toolchains' wrapper which uses UNIVERSE_TARGET to build
  toolchains for all architectures.
- Document JFLAG, MAKE_JUST_KERNELS, and MAKE_JUST_WORLDS variables for
  'make universe'.

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

13 years agoMFC 217733: Properly document what the top-level `make tinderbox` does.
jhb [Thu, 3 Mar 2011 18:49:46 +0000 (18:49 +0000)]
MFC 217733: Properly document what the top-level `make tinderbox` does.

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

13 years agoMFC 200597,200599:
jhb [Thu, 3 Mar 2011 18:16:35 +0000 (18:16 +0000)]
MFC 200597,200599:
Docmuent NO_KERNEL{CLEAN,CONFIG,DEPEND,OBJ} as necessary.  Update
documentation on KERNFAST meaning.

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

13 years agoMFC r216489:
jh [Thu, 3 Mar 2011 17:12:24 +0000 (17:12 +0000)]
MFC r216489:

If dlclose() is called recursively from a _fini() function, the inner
dlclose() call may unload the object of the outer call prematurely
because objects are unreferenced before _fini() calls.

Fix this by unreferencing objects after calling objlist_call_fini() in
dlclose(). Therefore objlist_call_fini() now calls the fini function if
the reference count of an object is 1. In addition we must restart the
list_fini traversal after every _fini() call because another dlclose()
call might have modified the reference counts.

Add an XXX comment to objlist_call_fini() about possible race with
dlopen().

PR: 133246, 149464

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

13 years agoMFC 218290: Correct include path.
jhb [Thu, 3 Mar 2011 17:10:48 +0000 (17:10 +0000)]
MFC 218290: Correct include path.

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

13 years agoMFC 200761,218272:
jhb [Thu, 3 Mar 2011 17:04:57 +0000 (17:04 +0000)]
MFC 200761,218272:
Always assert that the turnstile chain lock is held in turnstile_wait()
and remove a duplicate hash lookup.

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

13 years agoMFC 218270:
jhb [Thu, 3 Mar 2011 16:58:58 +0000 (16:58 +0000)]
MFC 218270:
Use M_WAITOK rather than M_NOWAIT when creating taskqueues via the
TASKQUEUE_DEFINE macros.  All the places that use these macros to create
taskqueues assume that the operation succeeds.

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

13 years agoMerge r211786 from head to stable/8:
rwatson [Thu, 3 Mar 2011 16:57:59 +0000 (16:57 +0000)]
Merge r211786 from head to stable/8:

  Port dtruss to FreeBSD.

  Sponsored by: The FreeBSD Foundation

Reported by: Nikolay Denev <ndenev at gmail.com>
Original commit by: rpaulo

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

13 years agoMFC 216074[1], 219086:
gjb [Thu, 3 Mar 2011 14:31:40 +0000 (14:31 +0000)]
MFC 216074[1], 219086:

Fix device name in usb_quirk(4).

PR: 155074
Obtained from: ru [1]

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

13 years agoMFC: revision 218843
nyan [Thu, 3 Mar 2011 11:52:07 +0000 (11:52 +0000)]
MFC: revision 218843

  To avoid excessive code duplication create wrapper for fill regs
  from stack frame.

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

13 years agoDelete wrong mergepoints.
mm [Thu, 3 Mar 2011 09:49:03 +0000 (09:49 +0000)]
Delete wrong mergepoints.

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

13 years agoMFC r219001:
mm [Thu, 3 Mar 2011 09:44:30 +0000 (09:44 +0000)]
MFC r219001:
Update xz to release 5.0.1

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

13 years agoUnbreak the build. pksignal added by r209592.
dchagin [Thu, 3 Mar 2011 05:56:29 +0000 (05:56 +0000)]
Unbreak the build. pksignal added by r209592.

Pointyhat to: dchagin

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

13 years agoMFC: r218685, r218687
jkim [Thu, 3 Mar 2011 00:43:35 +0000 (00:43 +0000)]
MFC: r218685, r218687

Copy just enough data for the resource type.

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

13 years agoMFC: r217515, r217519, r217539
jkim [Thu, 3 Mar 2011 00:24:55 +0000 (00:24 +0000)]
MFC: r217515, r217519, r217539

Add reader/writer lock around mem_range_attr_get() and mem_range_attr_set().
Compile sys/dev/mem/memutil.c for all supported platforms and remove now
unnecessary dev_mem_md_init().  Consistently define mem_range_softc from
mem.c for all platforms.  Add missing #include guards for machine/memdev.h
and sys/memrange.h.  Clean up some nearby style(9) nits.

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

13 years agoDirect commit: fix cryptodev module build when COMPAT_FREEBSD32 option
dchagin [Wed, 2 Mar 2011 22:44:04 +0000 (22:44 +0000)]
Direct commit: fix cryptodev module build when COMPAT_FREEBSD32 option
is enabled. To avoid header pollution put trapframe declaration here.

Noticed by: kib
Pointyhat to: me

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

13 years agoMFC 217239:
jhb [Wed, 2 Mar 2011 21:50:59 +0000 (21:50 +0000)]
MFC 217239:
Add a nested include of <sys/linker_set.h> to make the sysctl(9) manpage
accurate.  <sys/linker_set.h> is one of the very few headers similar to
<sys/queue.h> for which nested includes is allowed.

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

13 years agoMFC r218879:
dchagin [Wed, 2 Mar 2011 20:08:52 +0000 (20:08 +0000)]
MFC r218879:
Do not clobber %rdx.
Before calling vfork() syscall the linux user-space stores the current PID
in the %rdx and restore it when the parent process leaves the kernel.

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

13 years agoMFC r218744:
dchagin [Wed, 2 Mar 2011 20:04:54 +0000 (20:04 +0000)]
MFC r218744:
To avoid excessive code duplication create wrapper for fill regs
from stack frame. Change the trap() code to use newly created function
instead of explicit regs assignment.

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

13 years agoMFC r218720:
dchagin [Wed, 2 Mar 2011 20:02:52 +0000 (20:02 +0000)]
MFC r218720:
For realtime signals fill the sigval value.

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

13 years agoMFC r218719 (by hand, depends on r209592):
dchagin [Wed, 2 Mar 2011 20:01:24 +0000 (20:01 +0000)]
MFC r218719 (by hand, depends on r209592):
Make a linux_rt_sigtimedwait() system call is actually working.

1) Translate the native signal number in the appropriate Linux signal.
2) Remove bogus code, which can lead to a panic as it calls
   kern_sigtimedwait with the same ksiginfo.
3) Return the corresponding signal number.

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

13 years agoMFC r218718:
dchagin [Wed, 2 Mar 2011 19:49:37 +0000 (19:49 +0000)]
MFC r218718:
Style(9) fix. Wrap long lines in linux_rt_sigtimedwait().

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

13 years agoMFC r218717:
dchagin [Wed, 2 Mar 2011 19:48:19 +0000 (19:48 +0000)]
MFC r218717:
Put the macro declaration in the relevant include file for future use.

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

13 years agoMFC r218686:
dchagin [Wed, 2 Mar 2011 19:46:45 +0000 (19:46 +0000)]
MFC r218686:
Style(9) fix. Do not initialize variables in the declarations.

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

13 years agoMFC r218658, r218668:
dchagin [Wed, 2 Mar 2011 19:45:50 +0000 (19:45 +0000)]
MFC r218658, r218668:
Sort include files in the alphabetical order.

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

13 years agoMFC r218654, r218655:
dchagin [Wed, 2 Mar 2011 19:43:31 +0000 (19:43 +0000)]
MFC r218654, r218655:
Stop printing the LOR, as this is expected behavior.
Remove comment about 'ftlk' LOR.

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

13 years agoMFC r218621:
dchagin [Wed, 2 Mar 2011 19:41:09 +0000 (19:41 +0000)]
MFC r218621:
Rename used_requeue and use it as bitwise field to store more flags.
Reimplement used_requeue logic with LINUX_XDEPR_REQUEUEOP flag.

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

13 years agoMFC r218618:
dchagin [Wed, 2 Mar 2011 19:39:42 +0000 (19:39 +0000)]
MFC r218618:
Slightly rewrite linux_fork:

1) Remove bogus error checking.
2) A new process exit from kernel through fork_trampoline(),
   so remove bogus check.

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

13 years agoMFC r218617:
dchagin [Wed, 2 Mar 2011 19:38:13 +0000 (19:38 +0000)]
MFC r218617:
Remove bogus include <machine/frame.h>

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

13 years agoMFC r218616:
dchagin [Wed, 2 Mar 2011 19:36:06 +0000 (19:36 +0000)]
MFC r218616:
Move linux_clone(), linux_fork(), linux_vfork() to a MI path.

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

13 years agoMFC r218613:
dchagin [Wed, 2 Mar 2011 19:33:46 +0000 (19:33 +0000)]
MFC r218613:
In preparation for moving linux_clone() to a MI path
introduce linux_set_upcall_kse() which is used for MD works.

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

13 years agoMFC r218612:
dchagin [Wed, 2 Mar 2011 19:31:53 +0000 (19:31 +0000)]
MFC r218612:
In preparation for moving linux_clone () to a MI path
move the TLS code in a separate function.

Use function parameter instead of direct using register.

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

13 years agoMFC 217858: Remove dead code.
jhb [Wed, 2 Mar 2011 19:29:24 +0000 (19:29 +0000)]
MFC 217858: Remove dead code.

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

13 years agoMFC 217805:
jhb [Wed, 2 Mar 2011 19:27:01 +0000 (19:27 +0000)]
MFC 217805:
Fix a LOR by dropping the global ifnet locks while allocating a new ifnet
table in if_grow().  The order of the SYSINIT's for ifnet state were swapped
so that the various locks were initialized before being used.

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

13 years agoMFC: r216634, r216673
jkim [Wed, 2 Mar 2011 19:09:49 +0000 (19:09 +0000)]
MFC: r216634, r216673

Improve PCB flags handling and make it more robust.  Add two new functions
for manipulating pcb_flags.  These inline functions are very similar to
atomic_set_int(9) and atomic_clear_int(9) but without unnecessary LOCK
prefix for SMP.  Add comments about the rationale.  Use these functions
wherever possible.  Although there are some places where it is not strictly
necessary (e.g., a PCB is copied to create a new PCB), it is done across
the board for sake of consistency.  Turn pcb_full_iret into a PCB flag as
it is safe now.  Move rarely used fields before pcb_flags and reduce size
of pcb_flags to four bytes.  Fix some style(9) nits in pcb.h while I am in
the neighborhood.

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

13 years agoFix kernel build with MFC of r215706:
netchild [Wed, 2 Mar 2011 13:06:47 +0000 (13:06 +0000)]
Fix kernel build with MFC of r215706:
  Fix linux kernel module breakage introduced in r215675, by including
  <sys/sysent.h>.

Pointyhat to: netchild
Noticed by: kib

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

13 years agoMFC r215664:
netchild [Wed, 2 Mar 2011 09:53:13 +0000 (09:53 +0000)]
MFC r215664:
  By using the 32-bit Linux version of Sun's Java Development Kit 1.6
  on FreeBSD (amd64), invocations of "javac" (or "java") eventually
  end with the output of "Killed" and exit code 137.

  This is caused by:
  1. After calling exec() in multithreaded linux program threads are not
     destroyed and continue running. They get killed after program being
     executed finishes.

  2. linux_exit_group doesn't return correct exit code when called not
     from group leader. Which happens regularly using sun jvm.

  The submitters fix this in a similar way to how NetBSD handles this.

  I took the PRs away from dchagin, who seems to be out of touch of
  this since a while (no response from him).

  The patches committed here are from [2], with some little modifications
  from me to the style.

  PR:                141439 [1], 144194 [2]
  Submitted by:        Stefan Schmidt <stefan.schmidt@stadtbuch.de>, gk
  Reviewed by:        rdivacky (in april 2010)

MFC r215675:
  Do not take the process lock. The assignment to u_short inside the
  properly aligned structure is atomic on all supported architectures, and
  the thread that should see side-effect of assignment is the same thread
  that does assignment.

  Use a more appropriate conditional to detect the linux ABI.

  Suggested by:        kib

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

13 years agoRegen for r219171.
dchagin [Wed, 2 Mar 2011 06:24:46 +0000 (06:24 +0000)]
Regen for r219171.

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