]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoAdd support for identifying a journaled root filesystem.
brian [Thu, 16 Sep 2010 08:16:53 +0000 (08:16 +0000)]
Add support for identifying a journaled root filesystem.
Fix support for identifying the given /dev/vinum/root example.

MFC after: 3 weeks

13 years agoImplement proc/$$/environment.
des [Thu, 16 Sep 2010 07:56:34 +0000 (07:56 +0000)]
Implement proc/$$/environment.

Submitted by: Fernando ApesteguĂ­a <fernando.apesteguia@gmail.com>
MFC after: 3 weeks

13 years agoSplit the SLB mirror cache into two kinds of object, one for kernel maps
nwhitehorn [Thu, 16 Sep 2010 03:46:17 +0000 (03:46 +0000)]
Split the SLB mirror cache into two kinds of object, one for kernel maps
which are similar to the previous ones, and one for user maps, which
are arrays of pointers into the SLB tree. This changes makes user SLB
updates atomic, closing a window for memory corruption. While here,
rearrange the allocation functions to make context switches faster.

13 years agoFew whitespace cleanups and comments tunings.
mav [Thu, 16 Sep 2010 02:59:25 +0000 (02:59 +0000)]
Few whitespace cleanups and comments tunings.

Submitted by: arundel

13 years agoReplace the SLB backing store splay tree used on 64-bit PowerPC AIM
nwhitehorn [Thu, 16 Sep 2010 00:22:25 +0000 (00:22 +0000)]
Replace the SLB backing store splay tree used on 64-bit PowerPC AIM
hardware with a lockless sparse tree design. This marginally improves
the performance of PMAP and allows copyin()/copyout() to run without
acquiring locks when used on wired mappings.

Submitted by: mdf

13 years agoRemove old debug code.
tuexen [Wed, 15 Sep 2010 23:56:25 +0000 (23:56 +0000)]
Remove old debug code.

MFC after: 2 weeks.

13 years agoRemove unused variable/assignment.
tuexen [Wed, 15 Sep 2010 23:40:36 +0000 (23:40 +0000)]
Remove unused variable/assignment.

MFC after: 3 weeks.

13 years agoDelay the assignment of a path for DATA chunk until they hit
tuexen [Wed, 15 Sep 2010 23:10:45 +0000 (23:10 +0000)]
Delay the assignment of a path for DATA chunk until they hit
the sent_queue. Honor a given path when the SCTP_ADDR_OVER
flag is set.

MFC after: 2 weeks.

13 years agoUse TAILQ_EMPTY() for testing if a tail queue is empty.
tuexen [Wed, 15 Sep 2010 21:53:10 +0000 (21:53 +0000)]
Use TAILQ_EMPTY() for testing if a tail queue is empty.
Set whoFrom to NULL after freeing whoFrom.

13 years agoFix t3_gate_rx_traffic and t3_open_rx_traffic. Parts of them always operated
np [Wed, 15 Sep 2010 21:50:37 +0000 (21:50 +0000)]
Fix t3_gate_rx_traffic and t3_open_rx_traffic. Parts of them always operated
on XGMAC0 instead of the specified XGMAC.

MFC after: 3 days

13 years agoAdd a VIS-based block copy function for SPARC64 V and later, which
marius [Wed, 15 Sep 2010 21:44:31 +0000 (21:44 +0000)]
Add a VIS-based block copy function for SPARC64 V and later, which
additionally takes advantage of the prefetch cache of these CPUs.
Unlike the uncommitted US-III version, which provide no measurable
speedup or even resulted in a slight slowdown on certain CPUs models
compared to using the US-I version with these, the SPARC64 version
actually results in a slight improvement.

13 years agoGPART_PARAM_INDEX is now G_TYPE_NUMBER.
pjd [Wed, 15 Sep 2010 21:37:26 +0000 (21:37 +0000)]
GPART_PARAM_INDEX is now G_TYPE_NUMBER.

13 years agoRemove unused variable/assignment.
tuexen [Wed, 15 Sep 2010 21:19:54 +0000 (21:19 +0000)]
Remove unused variable/assignment.

MFC after: 2 weeks.

13 years agoChange message when setting or unsetting attribute less confusing.
pjd [Wed, 15 Sep 2010 21:15:00 +0000 (21:15 +0000)]
Change message when setting or unsetting attribute less confusing.
Before:

ada0 has <attrib> set

After:

<attrib> set on ada0

MFC after: 2 weeks

13 years agoAdd macros for alternate entry points.
marius [Wed, 15 Sep 2010 21:11:29 +0000 (21:11 +0000)]
Add macros for alternate entry points.

13 years agoRemove assignment without effect.
tuexen [Wed, 15 Sep 2010 21:08:57 +0000 (21:08 +0000)]
Remove assignment without effect.

MFC after: 2 weeks.

13 years agoMake the message that informs about bootcode being written to disk less
pjd [Wed, 15 Sep 2010 20:59:13 +0000 (20:59 +0000)]
Make the message that informs about bootcode being written to disk less
confusing.

Note there is still no information about 'partcode' being written to disk
(gpart bootcode -p <partcode> <disk>).

Maybe in the future all the messages printed by gpart(8) on success could be
hidden under -v?

PR: bin/150239
Reported by: Roddi <roddi@me.com>
Submitted by: arundel
MFC after: 2 weeks

13 years ago* Use !TAILQ_EMPTY() for checking if a tail queue is not empty.
tuexen [Wed, 15 Sep 2010 20:53:20 +0000 (20:53 +0000)]
* Use !TAILQ_EMPTY() for checking if a tail queue is not empty.
* Remove assignment without any effect.

MFC after: 2 weeks.

13 years agoRemove unused variables.
tuexen [Wed, 15 Sep 2010 20:41:20 +0000 (20:41 +0000)]
Remove unused variables.

MFC after: 2 weeks.

13 years agoFix kernel panic when moving a file to .zfs/shares
mm [Wed, 15 Sep 2010 19:55:26 +0000 (19:55 +0000)]
Fix kernel panic when moving a file to .zfs/shares
Fix possible loss of correct error return code in ZFS mount

OpenSolaris revisions and Bug IDs:

11824:53128e5db7cf
6863610 ZFS mount can lose correct error return

12079:13822b941977
6939941 problem with moving files in zfs (142901-12)

Approved by: delphij (mentor)
Obtained from: OpenSolaris (Bug ID 68636106939941)
MFC after: 3 days

13 years agoAdd note abotu bwn and newer chipsets
imp [Wed, 15 Sep 2010 19:40:42 +0000 (19:40 +0000)]
Add note abotu bwn and newer chipsets

13 years agoDon't suggest using bwn for the bcm4306 cards in the list. The
imp [Wed, 15 Sep 2010 19:40:08 +0000 (19:40 +0000)]
Don't suggest using bwn for the bcm4306 cards in the list.  The
bcm4306 cards are ambiguous.  BCM4306 rev 2 requires bwi.  BCM4306 rev
3 will work with either.  Since we can't easily determine which is
which, just remove them.

13 years agoIncrease register access delay to deal with the high-latency I2C
andreast [Wed, 15 Sep 2010 19:08:41 +0000 (19:08 +0000)]
Increase register access delay to deal with the high-latency I2C
chipset found in some models of Powermac G5.

Approved by: nwhitehorn (mentor)

13 years agoSync with other platforms:
marius [Wed, 15 Sep 2010 17:11:15 +0000 (17:11 +0000)]
Sync with other platforms:
- make dflt_lock() always panic,
- add kludge to use contigmalloc() when the alignment is larger than the size
  and print a diagnostic when we didn't satisfy the alignment.

13 years agoMFp4 (//depot/projects/mps/...)
ken [Wed, 15 Sep 2010 16:05:51 +0000 (16:05 +0000)]
MFp4 (//depot/projects/mps/...)

Fix a typo.

Submitted by: pluknet at gmail dot com

13 years agoMove the pfrom initialization from before the setjmp to after the
imp [Wed, 15 Sep 2010 15:38:47 +0000 (15:38 +0000)]
Move the pfrom initialization from before the setjmp to after the
setjmp to avoid warnings on the powerpc build...

13 years ago- Update the comment in swi_vm() regarding busdma bounce buffers; it's
marius [Wed, 15 Sep 2010 15:18:41 +0000 (15:18 +0000)]
- Update the comment in swi_vm() regarding busdma bounce buffers; it's
  unlikely that support for these ever will be implemented on sparc64 as
  the IOMMUs are able to translate to up to the maximum physical address
  supported by the respective machine, bypassing the IOMMU is affected
  by hardware errata and being able to support DMA engines which cannot
  do at least 32-bit DMA does not justify the costs.
- The page zeroing in uma_small_alloc() may use the VIS-based block zero
  function so take advantage of it.

13 years agoFix bogus busying mechanism from cdevsw callbacks:
attilio [Wed, 15 Sep 2010 14:24:21 +0000 (14:24 +0000)]
Fix bogus busying mechanism from cdevsw callbacks:
- D_TRACKCLOSE may be used there as d_close() are expected to match up
  d_open() calls
- Replace the hand-crafted counter and flag with the
  device_busy()/device_unbusy() proper usage.

Sponsored by: Sandvine Incorporated
Reported by: Mark Johnston <mjohnston at sandvine dot com>
Tested by: Mark Johnston
Reviewed by: emaste

MFC after: 10 days

13 years agoRemove empty devfs directories automatically.
jh [Wed, 15 Sep 2010 14:23:55 +0000 (14:23 +0000)]
Remove empty devfs directories automatically.

devfs_delete() now recursively removes empty parent directories unless
the DEVFS_DEL_NORECURSE flag is specified. devfs_delete() can't be
called anymore with a parent directory vnode lock held because the
possible parent directory deletion needs to lock the vnode. Thus we
unlock the parent directory vnode in devfs_remove() before calling
devfs_delete().

Call devfs_populate_vp() from devfs_symlink() and devfs_vptocnp() as now
directories can get removed.

Add a check for DE_DOOMED flag to devfs_populate_vp() because
devfs_delete() drops dm_lock before the VI_DOOMED vnode flag gets set.
This ensures that devfs_populate_vp() returns an error for directories
which are in progress of deletion.

Reviewed by: kib
Discussed on: freebsd-current (mostly silence)

13 years agozfs vn_has_cached_data: take into account v_object->cache != NULL
avg [Wed, 15 Sep 2010 11:05:41 +0000 (11:05 +0000)]
zfs vn_has_cached_data: take into account v_object->cache != NULL

This mirrors code in tmpfs.
This changge shouldn't affect much read path, it may cause unnecessary
vm_page_lookup calls in the case where v_object has no active or inactive
pages but has some cache pages.  I believe this situation to be non-essential.

In write path this change should allow us to properly detect the above
case and free a cache page when we write to a range that corresponds to it.
If this situation is undetected then we could have a discrepancy between
data in page cache and in ARC or on disk.

This change allows us to re-enable vn_has_cached_data() check in zfs_write.

NOTE: strictly speaking resident_page_count and cache fields of v_object
should be exmined under VM_OBJECT_LOCK, but for this particular usage
we may get away with it.

Discussed with: alc, kib
Approved by: pjd
Tested with: tools/regression/fsx
MFC after: 3 weeks

13 years agozfs mappedread, update_pages: use int for offset and length within a page
avg [Wed, 15 Sep 2010 10:48:16 +0000 (10:48 +0000)]
zfs mappedread, update_pages: use int for offset and length within a page

uint64_t, int64_t were redundant there

Approved by: pjd
Tested by: tools/regression/fsx
MFC after: 2 weeks

13 years agozfs mappedread: use uiomove_fromphys where possible
avg [Wed, 15 Sep 2010 10:44:20 +0000 (10:44 +0000)]
zfs mappedread: use uiomove_fromphys where possible

Reviewed by: alc
Approved by: pjd
Tested by: tools/regression/fsx
MFC after: 2 weeks

13 years agoChange the default MSS for IPv4 and IPv6 TCP connections from an
andre [Wed, 15 Sep 2010 10:39:30 +0000 (10:39 +0000)]
Change the default MSS for IPv4 and IPv6 TCP connections from an
artificial power-of-2 rounded number to their real values specified
in RFC879 and RFC2460.

From the history and existing comments it appears that the rounded
numbers were intended to be advantageous for the kernel and mbuf
system.  However this hasn't been the case at for at least a long
time.  The mbuf clusters used in tcp_output() have enough space
to hold the larger real value for the default MSS for both IPv4 and
IPv6.  Note that the default MSS is only used when path MTU discovery
is disabled.

Update and expand related comments.

Reviewed by: lsteward (including some word-smithing)
MFC after: 2 weeks

13 years agozfs: catch up with vm_page_sleep_if_busy changes
avg [Wed, 15 Sep 2010 10:39:21 +0000 (10:39 +0000)]
zfs: catch up with vm_page_sleep_if_busy changes

Reviewed by: alc
Approved by: pjd
Tested by: tools/regression/fsx
MFC after: 2 weeks

13 years agoRemove an explicit assignment of the CFLAGS variable intended for
rpaulo [Wed, 15 Sep 2010 10:32:32 +0000 (10:32 +0000)]
Remove an explicit assignment of the CFLAGS variable intended for
debugging purposes only.

13 years agotmpfs, zfs + sendfile: mark page bits as valid after populating it with data
avg [Wed, 15 Sep 2010 10:31:27 +0000 (10:31 +0000)]
tmpfs, zfs + sendfile: mark page bits as valid after populating it with data

Otherwise, adding insult to injury, in addition to double-caching of data
we would always copy the data into a vnode's vm object page from backend.
This is specific to sendfile case only (VOP_READ with UIO_NOCOPY).

PR: kern/141305
Reported by: Wiktor Niesiobedzki <bsd@vink.pl>
Reviewed by: alc
Tested by: tools/regression/sockets/sendfile
MFC after: 2 weeks

13 years agoAdd a man page for plockstat.
rpaulo [Wed, 15 Sep 2010 10:18:18 +0000 (10:18 +0000)]
Add a man page for plockstat.

Sponsored by: The FreeBSD Foundation

13 years agoUPDATING entry for r212647
avg [Wed, 15 Sep 2010 10:04:41 +0000 (10:04 +0000)]
UPDATING entry for r212647

13 years agosys/pcpu.h: remove a workaround for a fixed ld bug
avg [Wed, 15 Sep 2010 10:02:46 +0000 (10:02 +0000)]
sys/pcpu.h: remove a workaround for a fixed ld bug

The workaround was incorrectly documented as having something to do with
set_pcpu section's progbits, but in fact it was for incorrect placement
of __start_set_pcpu because of the bug in ld.
The bug was fixed in r210245, see commit message for details.

A side-effect of the workaround was that a zero-size set_pcpu section was
produced for modules, source code of which included pcpu.h but didn't
actually define any dynamic per-cpu variables.
This commit should remove the side-effect.

The same workaround is present sys/net/vnet.h, has an analogous side-effect
and can be removed as well.

An UPDATING entry that warns about a need for recent ld is following.

MFC after: 1 month

13 years agoChange licenses of my manual pages to the recommended 2-clause form.
mav [Wed, 15 Sep 2010 07:10:39 +0000 (07:10 +0000)]
Change licenses of my manual pages to the recommended 2-clause form.

Suggested by: joel

13 years agoAdd eventtimers(7) man page, briefly describing event timers subsystem
mav [Wed, 15 Sep 2010 07:04:14 +0000 (07:04 +0000)]
Add eventtimers(7) man page, briefly describing event timers subsystem
functionality and configuration options.

13 years agoAdd 64-bit SWARM board kernel configs.
neel [Wed, 15 Sep 2010 05:32:10 +0000 (05:32 +0000)]
Add 64-bit SWARM board kernel configs.

13 years agoFactor out the common parts of the swarm board in SWARM_COMMON and start
neel [Wed, 15 Sep 2010 05:29:13 +0000 (05:29 +0000)]
Factor out the common parts of the swarm board in SWARM_COMMON and start
including that in SWARM and SWARM_SMP kernel configs.

13 years agoMake the meaning of the 'mask' argument to 'set_intr_mask(mask)' consistent
neel [Wed, 15 Sep 2010 05:10:50 +0000 (05:10 +0000)]
Make the meaning of the 'mask' argument to 'set_intr_mask(mask)' consistent
with the meaning of IM bits in the status register.

Reviewed by: jmallett, jchandra

13 years agoAdd hpet(4) man page.
mav [Wed, 15 Sep 2010 04:51:07 +0000 (04:51 +0000)]
Add hpet(4) man page.

13 years agoadd code to support stack unwinding when thread exits. note that only
davidxu [Wed, 15 Sep 2010 02:56:32 +0000 (02:56 +0000)]
add code to support stack unwinding when thread exits. note that only
defer-mode cancellation works, asynchrnous mode does not work because
it lacks of libuwind's support. stack unwinding is not enabled unless
LIBTHR_UNWIND_STACK is defined in Makefile.

13 years agoMove back IN_GCLIST flag into field tlflags, since thread list and gc list
davidxu [Wed, 15 Sep 2010 01:21:30 +0000 (01:21 +0000)]
Move back IN_GCLIST flag into field tlflags, since thread list and gc list
still share same lock.

13 years agoAdd some enums and constants from Adaptec's latest driver
emaste [Wed, 15 Sep 2010 01:19:11 +0000 (01:19 +0000)]
Add some enums and constants from Adaptec's latest driver
(build 17911).

13 years agoIntroduce inheritance into the PowerPC MMU kobj interface.
grehan [Wed, 15 Sep 2010 00:17:52 +0000 (00:17 +0000)]
Introduce inheritance into the PowerPC MMU kobj interface.

include/mmuvar.h - Change the MMU_DEF macro to also create the class
definition as well as define the DATA_SET. Add a macro, MMU_DEF_INHERIT,
which has an extra parameter specifying the MMU class to inherit methods
from. Update the comments at the start of the header file to describe the
new macros.

booke/pmap.c
aim/mmu_oea.c
aim/mmu_oea64.c - Collapse mmu_def_t declaration into updated MMU_DEF macro

The MMU_DEF_INHERIT macro will be used in the PS3 MMU implementation to
allow it to inherit the stock powerpc64 MMU methods.

Reviewed by: nwhitehorn

13 years agoFixes spellings and uses the better sentence. While I'm here bumps
weongyo [Tue, 14 Sep 2010 23:27:06 +0000 (23:27 +0000)]
Fixes spellings and uses the better sentence.  While I'm here bumps
date.

Pointed by: imp, Ruslan Mahmatkhanov <cvs-src at yandex dot ru>

13 years agoMFp4 (//depot/projects/mps/...)
ken [Tue, 14 Sep 2010 21:40:29 +0000 (21:40 +0000)]
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

13 years agoForce commit to note, than the previous change was...
pjd [Tue, 14 Sep 2010 20:55:25 +0000 (20:55 +0000)]
Force commit to note, than the previous change was...

Submitted by: ae

13 years agoRemove dead code.
pjd [Tue, 14 Sep 2010 20:54:22 +0000 (20:54 +0000)]
Remove dead code.

13 years agoUse saner nsegments and maxsegsz parameters when creating certain DMA tags;
marius [Tue, 14 Sep 2010 20:41:06 +0000 (20:41 +0000)]
Use saner nsegments and maxsegsz parameters when creating certain DMA tags;
tags for 1-byte allocations cannot possibly be split across 2 segments and
maxsegsz must not exceed maxsize.

13 years agoRemove a KASSERT which will also trigger for perfectly valid combinations
marius [Tue, 14 Sep 2010 20:31:09 +0000 (20:31 +0000)]
Remove a KASSERT which will also trigger for perfectly valid combinations
of small maxsize and "large" (including BUS_SPACE_UNRESTRICTED) nsegments
parameters. Generally using a presz of 0 (which indeed might indicate the
use of bogus parameters for DMA tag creation) is not fatal, it just means
that no additional DVMA space will be preallocated.

13 years agoRemove redundant raising of the PIL to PIL_TICK as the respective locore
marius [Tue, 14 Sep 2010 19:35:43 +0000 (19:35 +0000)]
Remove redundant raising of the PIL to PIL_TICK as the respective locore
code already did that.

13 years agoRename the field to not confuse readers. The bytes are actually used.
kib [Tue, 14 Sep 2010 18:58:51 +0000 (18:58 +0000)]
Rename the field to not confuse readers. The bytes are actually used.

Discussed with: rmacklem
MFC after: 1 week

13 years agoUpdate comments in soft updates code to more fully describe
mckusick [Tue, 14 Sep 2010 18:04:05 +0000 (18:04 +0000)]
Update comments in soft updates code to more fully describe
the addition of journalling. Only functional change is to
tighten a KASSERT.

Reviewed by: jeff Roberson

13 years agoMFp4: (//depot/projects/mps/...)
ken [Tue, 14 Sep 2010 17:22:06 +0000 (17:22 +0000)]
MFp4: (//depot/projects/mps/...)

Report data overruns properly.

Submitted by: scottl

13 years agoRemove now unused G_TYPE_ASCNUM.
pjd [Tue, 14 Sep 2010 16:22:22 +0000 (16:22 +0000)]
Remove now unused G_TYPE_ASCNUM.

13 years ago- Change all places where G_TYPE_ASCNUM is used to G_TYPE_NUMBER.
pjd [Tue, 14 Sep 2010 16:21:13 +0000 (16:21 +0000)]
- Change all places where G_TYPE_ASCNUM is used to G_TYPE_NUMBER.
  It turns out the new type wasn't really needed.
- Reorganize code a little bit.

13 years agoUpdate two last places where "arg0" should be used instead of "geom".
pjd [Tue, 14 Sep 2010 16:19:09 +0000 (16:19 +0000)]
Update two last places where "arg0" should be used instead of "geom".

13 years agoRemove duplicated VFS_HOLD due to a mismerge.
mm [Tue, 14 Sep 2010 12:12:18 +0000 (12:12 +0000)]
Remove duplicated VFS_HOLD due to a mismerge.

PR: kern/150544
Approved by: delphij (mentor)
MFC after: 1 day

13 years agoSynchronize newfs(8) manual with code.
gjb [Tue, 14 Sep 2010 12:12:07 +0000 (12:12 +0000)]
Synchronize newfs(8) manual with code.

PR: 61716
Submitted by: Radim Kolar <hsn at netmag cz>
Patch by: arundel
Approved by: keramida (mentor)
MFC after: 1 week

13 years agoSimplify the code a bit.
pjd [Tue, 14 Sep 2010 11:42:07 +0000 (11:42 +0000)]
Simplify the code a bit.

13 years agoAll gpart(8) subcommands apart from the 'bootcode' subcommand handle
pjd [Tue, 14 Sep 2010 11:36:26 +0000 (11:36 +0000)]
All gpart(8) subcommands apart from the 'bootcode' subcommand handle
given geom/provider names with and without /dev/ prefix. Teach the
'bootcode' subcommand to handle /dev/<foo> names as well.

13 years agoRemove dot which shouldn't be here, as err(3) will attach error message
pjd [Tue, 14 Sep 2010 11:19:21 +0000 (11:19 +0000)]
Remove dot which shouldn't be here, as err(3) will attach error message
at the end of the string.

13 years agoIntroduce special G_VAL_OPTIONAL define, which when given in value field
pjd [Tue, 14 Sep 2010 11:13:46 +0000 (11:13 +0000)]
Introduce special G_VAL_OPTIONAL define, which when given in value field
tells geom(8) to ignore it when it is not given and don't try to obtain
default value.

13 years agoAdd missing vop_vector zfsctl_ops_shares
mm [Tue, 14 Sep 2010 10:27:32 +0000 (10:27 +0000)]
Add missing vop_vector zfsctl_ops_shares
Add missing locks around VOP_READDIR and VOP_GETATTR with z_shares_dir

PR: kern/150544
Approved by: delphij (mentor)
Obtained from: perforce (pjd)
MFC after: 1 day

13 years agoFix panic on NULL dereference possible after r212541.
mav [Tue, 14 Sep 2010 10:26:49 +0000 (10:26 +0000)]
Fix panic on NULL dereference possible after r212541.

13 years agoMake kern_tc.c provide minimum frequency of tc_ticktock() calls, required
mav [Tue, 14 Sep 2010 08:48:06 +0000 (08:48 +0000)]
Make kern_tc.c provide minimum frequency of tc_ticktock() calls, required
to handle current timecounter wraps. Make kern_clocksource.c to honor that
requirement, scheduling sleeps on first CPU for no more then specified
period. Allow other CPUs to sleep up to 1/4 second (for any case).

13 years agoReplace spin lock with the set of atomics. It is impractical for one
mav [Tue, 14 Sep 2010 04:57:30 +0000 (04:57 +0000)]
Replace spin lock with the set of atomics. It is impractical for one
tc_ticktock() call to wait for another's completion -- just skip it.

13 years agoAdd some foot shooting protection by checking singlemul value correctness.
mav [Tue, 14 Sep 2010 04:48:04 +0000 (04:48 +0000)]
Add some foot shooting protection by checking singlemul value correctness.
Rephrase sysctls descriptions.

Suggested by: edmaste

13 years agoResurrect PSIM support by moving the cacheline size-detection warning
grehan [Tue, 14 Sep 2010 03:18:11 +0000 (03:18 +0000)]
Resurrect PSIM support by moving the cacheline size-detection warning
printf outside of the MMU-disabled region. A call into OpenFirmware
with the MMU off resulted in an internal PSIM assert.

13 years agoAvoid repeatedly spamming the console while a timed out command is waiting
emaste [Tue, 14 Sep 2010 01:51:04 +0000 (01:51 +0000)]
Avoid repeatedly spamming the console while a timed out command is waiting
to complete.  Instead, print one message after the timeout period expires,
and one more when (if) the command eventually completes.

MFC after: 1 month

13 years agoPort r212559 to mips.
neel [Tue, 14 Sep 2010 01:48:01 +0000 (01:48 +0000)]
Port r212559 to mips.

Do not explicitly enable interrupts in smp_init_secondary() because it
renders any spinlock protected code after that point to run with
interrupts enabled. This is because the processor is executing in the
context of idlethread whose 'md_spinlock_count' is already set to 1.

Instead just let sched_throw() re-enable interrupts when it releases
the spinlock.

The original powerpc commit log for r212559 is available here:
http://svn.freebsd.org/viewvc/base?view=revision&revision=212559

13 years agoRemove libf2c. It hasn't been used for more than 11 years, since revision
emaste [Tue, 14 Sep 2010 01:40:59 +0000 (01:40 +0000)]
Remove libf2c.  It hasn't been used for more than 11 years, since revision
1.90 (CVS; SVN r45770) of lib/Makefile.

13 years agoRemove extra ;
emaste [Tue, 14 Sep 2010 01:33:21 +0000 (01:33 +0000)]
Remove extra ;

13 years agoEnforce that pmap_mapdev() always returns uncacheable mappings.
neel [Tue, 14 Sep 2010 01:27:53 +0000 (01:27 +0000)]
Enforce that pmap_mapdev() always returns uncacheable mappings.

Reviewed by: imp, jchandra, jmallett

13 years agoFix a missing set of parantheses that could cause recent versions of libthr
nwhitehorn [Mon, 13 Sep 2010 22:50:05 +0000 (22:50 +0000)]
Fix a missing set of parantheses that could cause recent versions of libthr
to crash deferencing a NULL pointer to the user context on powerpc64
systems with COMPAT_FREEBSD32 defined.

13 years agoFix segment:offset calculation of interrupt vector for relocated video BIOS
jkim [Mon, 13 Sep 2010 19:58:46 +0000 (19:58 +0000)]
Fix segment:offset calculation of interrupt vector for relocated video BIOS
when the original offset is bigger than size of one page.  X86BIOS macros
cannot be used here because it is assumed address is only linear in a page.

Tested by: netchild

13 years agoSplit $ipv6_prefer into $ip6addrctl_policy and $ipv6_activate_all_interfaces.
hrs [Mon, 13 Sep 2010 19:55:40 +0000 (19:55 +0000)]
Split $ipv6_prefer into $ip6addrctl_policy and $ipv6_activate_all_interfaces.

The $ip6addrctl_policy is a variable to choose a pre-defined address
selection policy set by ip6addrctl(8).
The keyword "ipv4_prefer" sets IPv4-preferred one described in Section 10.3,
the keyword "ipv6_prefer" sets IPv6-preferred one in Section 2.1 in RFC 3484,
respectively.  When "AUTO" is specified, it attempts to read
/etc/ip6addrctl.conf first.  If it is found, it reads and installs it as
a policy table.  If not, either of the two pre-defined policy tables is
chosen automatically according to $ipv6_activate_all_interfaces.

When $ipv6_activate_all_interfaces=NO, interfaces which have no corresponding
$ifconfig_IF_ipv6 is marked as IFDISABLED for security reason.

The default values are ip6addrctl_policy=AUTO and
ipv6_activate_all_interfaces=NO.

Discussed with: ume and bz

13 years agoLocalize $_punct_c in get_if_var() and whitespace clean-ups.
hrs [Mon, 13 Sep 2010 19:53:54 +0000 (19:53 +0000)]
Localize $_punct_c in get_if_var() and whitespace clean-ups.

Based on: changes in r206408 by dougb

13 years ago- Check some specific IFs first in ipv6_autoconfif().
hrs [Mon, 13 Sep 2010 19:53:22 +0000 (19:53 +0000)]
- Check some specific IFs first in ipv6_autoconfif().
- $ipv6_enable supports YES|TRUE|ON|1 as in checkyesno().

Based on: changes in r206408 by dougb

13 years agoAdd $ipv6_privacy to support net.inet6.ip6.use_tempaddr. Note that this
hrs [Mon, 13 Sep 2010 19:52:46 +0000 (19:52 +0000)]
Add $ipv6_privacy to support net.inet6.ip6.use_tempaddr.  Note that this
will be replaced with a per-IF version later.

Based on: changes in r206408 by dougb

13 years agoFix $ipv6_network_interfaces and set it as AUTO by default.
hrs [Mon, 13 Sep 2010 19:52:04 +0000 (19:52 +0000)]
Fix $ipv6_network_interfaces and set it as AUTO by default.

Based on: changes in r206408 by dougb

13 years agoRevert changes in r206408.
hrs [Mon, 13 Sep 2010 19:51:15 +0000 (19:51 +0000)]
Revert changes in r206408.

Discussed with: dougb, core.5, and core.6

13 years agoRemove the page queues lock around vm_page_undirty() - it is no longer needed.
pjd [Mon, 13 Sep 2010 19:47:09 +0000 (19:47 +0000)]
Remove the page queues lock around vm_page_undirty() - it is no longer needed.

Reviewed by: alc

13 years agoRevert r212370, as it causes a LOR on powerpc. powerpc does a few
mdf [Mon, 13 Sep 2010 18:48:23 +0000 (18:48 +0000)]
Revert r212370, as it causes a LOR on powerpc.  powerpc does a few
unexpected things in copyout(9) and so wiring the user buffer is not
sufficient to perform a copyout(9) while holding a random mutex.

Requested by: nwhitehorn

13 years agoAllow a kernel config to specify a set but empty value via
emaste [Mon, 13 Sep 2010 18:26:34 +0000 (18:26 +0000)]
Allow a kernel config to specify a set but empty value via
'makeoptions OPTION=' for consistency with the make commandline.

Previously 'makeoptions WERROR=' would result in a syntax error; now
it produces the same effect as 'makeoptions WERROR'.  Both forms now
result in 'WERROR=' in the generated Makefile.

13 years agoBump __FreeBSD_version to reflect the userland DTrace changes.
rpaulo [Mon, 13 Sep 2010 17:53:43 +0000 (17:53 +0000)]
Bump __FreeBSD_version to reflect the userland DTrace changes.

Sponsored by: The FreeBSD Foundation
> Description of fields to fill in above:                     76 columns --|
> PR:            If a GNATS PR is affected by the change.
> Submitted by:  If someone else sent in the change.
> Reviewed by:   If someone else reviewed your modification.
> Approved by:   If you needed approval for this commit.
> Obtained from: If the change is from a third party.
> MFC after:     N [day[s]|week[s]|month[s]].  Request a reminder email.
> Security:      Vulnerability reference (one per line) or description.
> Empty fields above will be automatically removed.

M    param.h

13 years agoAdd a note about userland DTracing.
rpaulo [Mon, 13 Sep 2010 17:49:39 +0000 (17:49 +0000)]
Add a note about userland DTracing.

Sponsored by: The FreeBSD Foundation
> Description of fields to fill in above:                     76 columns --|
> PR:            If a GNATS PR is affected by the change.
> Submitted by:  If someone else sent in the change.
> Reviewed by:   If someone else reviewed your modification.
> Approved by:   If you needed approval for this commit.
> Obtained from: If the change is from a third party.
> MFC after:     N [day[s]|week[s]|month[s]].  Request a reminder email.
> Security:      Vulnerability reference (one per line) or description.
> Empty fields above will be automatically removed.

M    UPDATING

13 years agoTARGET_64BIT isn't needed anymore, GC it (partial merge from tbemd).
imp [Mon, 13 Sep 2010 16:39:33 +0000 (16:39 +0000)]
TARGET_64BIT isn't needed anymore, GC it (partial merge from tbemd).

13 years agoFix a subtle bug uncovered by the recent one-shot timer import in which
nwhitehorn [Mon, 13 Sep 2010 15:36:42 +0000 (15:36 +0000)]
Fix a subtle bug uncovered by the recent one-shot timer import in which
any spin locks acquired between the enabling of interrupts in
machdep_ap_bootstrap() and the invocation of the scheduler would fail to
have interrupts disabled due to the fake spinlock already held by the
idle thread. sched_throw(NULL) will enable interrupts by itself when
exiting this spinlock, so just let it do that and don't enable interrupts
here.

13 years agoMove to using Makefile.arch to include the proper target-specific programs.
imp [Mon, 13 Sep 2010 15:30:09 +0000 (15:30 +0000)]
Move to using Makefile.arch to include the proper target-specific programs.

13 years agoChange call order to enable interrupts only after timer being programmed.
mav [Mon, 13 Sep 2010 14:25:07 +0000 (14:25 +0000)]
Change call order to enable interrupts only after timer being programmed.

Submitted by: nwhitehorn

13 years agoAdd G_TYPE_MULTI flag, which when set for the given option, will
pjd [Mon, 13 Sep 2010 13:59:28 +0000 (13:59 +0000)]
Add G_TYPE_MULTI flag, which when set for the given option, will
allow the option to be specified multiple times. This will help to
implement things like passing multiple keyfiles to geli(8) instead of
cat(1)ing them all into stdin and reading from there using one '-k -'
option.

13 years ago- Remove gc_argname field. It was introduced for gpart(8), but if I
pjd [Mon, 13 Sep 2010 13:48:18 +0000 (13:48 +0000)]
- Remove gc_argname field. It was introduced for gpart(8), but if I
  understand everything correctly, we don't really need it.
- Provide default numeric value as strings. This allows to simplify
  a lot of code.
- Bump version number.

13 years agosys/mips/rmi/msgring.h - fixes and clean up.
jchandra [Mon, 13 Sep 2010 13:11:50 +0000 (13:11 +0000)]
sys/mips/rmi/msgring.h - fixes and clean up.

- Remove sync from msgrng_send, sync needs to be called just once before
  sending.
- Fix retry logic - don't reload registers when retrying in message_send,
  also fix check for send pending fail.
- remove unused message_send_block_fast()
- merge message_receive_fast() to message_receive
- style(9) fixes, and comments
- rge and nlge updated for the sys/mips/rmi/msgring.h changes

13 years agoDon't compare thread pointers again.
davidxu [Mon, 13 Sep 2010 11:58:42 +0000 (11:58 +0000)]
Don't compare thread pointers again.