]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoSync FreeBSD's bmake branch with Juniper's internal bmake branch.
marcel [Wed, 22 Aug 2012 19:25:57 +0000 (19:25 +0000)]
Sync FreeBSD's bmake branch with Juniper's internal bmake branch.

Requested by: Simon Gerraty <sjg@juniper.net>

11 years agoAdd proper mid-level Makefile.
obrien [Fri, 6 Jul 2012 17:07:50 +0000 (17:07 +0000)]
Add proper mid-level Makefile.

Submitted by: Simon Gerraty <sjg@juniper.net>

11 years agoI accidently svn added these in the wrong place.
obrien [Fri, 6 Jul 2012 16:54:25 +0000 (16:54 +0000)]
I accidently svn added these in the wrong place.

11 years agoMerge in the Bmake 20120705 release.
obrien [Fri, 6 Jul 2012 00:09:29 +0000 (00:09 +0000)]
Merge in the Bmake 20120705 release.

11 years agoMFC: r238143: move "funny targets" from pre-build "make check" to the
obrien [Thu, 5 Jul 2012 18:57:39 +0000 (18:57 +0000)]
MFC: r238143: move "funny targets" from pre-build "make check" to the
      regular regression tests.

11 years agoRemove the "funny targets" make check. We no longer need embedded :: targets
obrien [Thu, 5 Jul 2012 18:23:36 +0000 (18:23 +0000)]
Remove the "funny targets" make check.  We no longer need embedded :: targets
to build FreeBSD (they are used in Perl man pages).  We never needed embedded
"!" in targets that I can find.

We got this from OpenBSD and I cannot find any other make that supports
such things -- contrary to their commit message claim: "This behaviour
is also consistent with other versions of make.".

11 years agoNow that our assembler supports the xsave family of instructions, use them
jhb [Thu, 5 Jul 2012 18:19:35 +0000 (18:19 +0000)]
Now that our assembler supports the xsave family of instructions, use them
natively rather than hand-assembled versions.  For xgetbv/xsetbv, add a
wrapper API to deal with xcr* registers: rxcr() and load_xcr().

Reviewed by: kib
MFC after: 1 month

11 years agoDocument the behavior (from 4.4-lite) that tokens returned by telldir() are
brooks [Thu, 5 Jul 2012 17:02:20 +0000 (17:02 +0000)]
Document the behavior (from 4.4-lite) that tokens returned by telldir() are
single use.

Sponsored by: DARPA, AFRL
MFC after: 3 days

11 years agoFix LINT.
marcel [Thu, 5 Jul 2012 15:23:45 +0000 (15:23 +0000)]
Fix LINT.

Obtained from: Juniper Networks, Inc.

11 years agoCalculate the new PTE value in pmap_enter() before acquiring any locks.
alc [Thu, 5 Jul 2012 07:20:16 +0000 (07:20 +0000)]
Calculate the new PTE value in pmap_enter() before acquiring any locks.

Move an assertion to the beginning of pmap_enter().

11 years agoRestore r211786 by rpaulo:
emaste [Thu, 5 Jul 2012 00:52:23 +0000 (00:52 +0000)]
Restore r211786 by rpaulo:

  Port dtruss to FreeBSD.

  Sponsored by:   The FreeBSD Foundation

It appears the change was reverted by r235380.

11 years agoCorrect an error in r237513. The call to reserve_pv_entries() must come
alc [Thu, 5 Jul 2012 00:08:47 +0000 (00:08 +0000)]
Correct an error in r237513.  The call to reserve_pv_entries() must come
before pmap_demote_pde() updates the PDE.  Otherwise, pmap_pv_demote_pde()
can crash.

Crash reported by: kib
Patch tested by: kib

11 years agoAdd support for the 'xsave', 'xrstor', 'xsaveopt', 'xgetbv', and 'xsetbv'
jhb [Wed, 4 Jul 2012 22:12:10 +0000 (22:12 +0000)]
Add support for the 'xsave', 'xrstor', 'xsaveopt', 'xgetbv', and 'xsetbv'
instructions.  I reimplemented this from scratch based on the Intel
manuals and the existing support for handling the fxsave and fxrstor
instructions.  This will let us use these instructions natively with GCC
rather than hardcoding the opcodes in hex.

Reviewed by: kib
MFC after: 1 month

11 years agoUse consistent method to determine IPV4_OUTPUT/IPV6_OUTPUT.
tuexen [Wed, 4 Jul 2012 20:59:30 +0000 (20:59 +0000)]
Use consistent method to determine IPV4_OUTPUT/IPV6_OUTPUT.

MFC after: 3 days

11 years agoUse CSUM_SCTP_IPV6 for IPv6.
tuexen [Wed, 4 Jul 2012 20:29:16 +0000 (20:29 +0000)]
Use CSUM_SCTP_IPV6 for IPv6.

MFC after: 3 days

11 years agoMake use of GEOM Gate direct reads feature. This allows HAST to serve
pjd [Wed, 4 Jul 2012 20:20:48 +0000 (20:20 +0000)]
Make use of GEOM Gate direct reads feature. This allows HAST to serve
reads with native speed of the underlying provider.
There are three situations when direct reads are not used:
1. Data is being synchronized and synchronization source is the secondary
   node, which means secondary node has more recent data and we should read
   from it.
2. Local read failed and we have to try to read from the secondary node.
3. Local component is unavailable and all I/O requests are served from the
   secondary node.

Sponsored by: Panzura, http://www.panzura.com
MFC after: 1 month

11 years agoExtend GEOM Gate class to handle read I/O requests directly within the kernel.
pjd [Wed, 4 Jul 2012 20:16:28 +0000 (20:16 +0000)]
Extend GEOM Gate class to handle read I/O requests directly within the kernel.
This will allow HAST to read directly from the local component without
even communicating userland daemon.

Sponsored by: Panzura, http://www.panzura.com
MFC after: 1 month

11 years agoPrefer sysctl to open/read/close for obtaining random data.
pjd [Wed, 4 Jul 2012 19:51:25 +0000 (19:51 +0000)]
Prefer sysctl to open/read/close for obtaining random data.
This method is more sandbox-friendly and also should be faster as only
one syscall is needed instead of three.
In case of an error fall back to the old method.

Reviewed by: simon, gleb
MFC after: 2 weeks

11 years agoImprove description of various key used by GELI.
pjd [Wed, 4 Jul 2012 17:59:26 +0000 (17:59 +0000)]
Improve description of various key used by GELI.

PR: docs/169089
Submitted by: John W. O'Brien <john@saltant.com>
MFC after: 3 days

11 years agoUse correct part of the Master-Key for generating encryption keys.
pjd [Wed, 4 Jul 2012 17:54:17 +0000 (17:54 +0000)]
Use correct part of the Master-Key for generating encryption keys.
Before this change the IV-Key was used to generate encryption keys,
which was incorrect, but safe - for the XTS mode this key was unused
anyway and for CBC mode it was used differently to generate IV
vectors, so there is no risk that IV vector collides with encryption
key somehow.

Bump version number and keep compatibility for older versions.

MFC after: 2 weeks

11 years agoCorrect comment.
pjd [Wed, 4 Jul 2012 17:44:39 +0000 (17:44 +0000)]
Correct comment.

MFC after: 3 days

11 years agoCorrect a comment and correct style of a flag check.
pjd [Wed, 4 Jul 2012 17:43:25 +0000 (17:43 +0000)]
Correct a comment and correct style of a flag check.

MFC after: 3 days

11 years agovdev_io_done stage is not used for ioctls.
pjd [Wed, 4 Jul 2012 17:39:29 +0000 (17:39 +0000)]
vdev_io_done stage is not used for ioctls.

MFC after: 1 week

11 years agoFix an obvious typo.
pjd [Wed, 4 Jul 2012 17:36:26 +0000 (17:36 +0000)]
Fix an obvious typo.

MFC after: 3 days

11 years agoThe register_printf_render_std() function expects regular string.
pjd [Wed, 4 Jul 2012 17:35:07 +0000 (17:35 +0000)]
The register_printf_render_std() function expects regular string.
Change argument type from 'const unsigned char *' to 'const char *'.

MFC after: 2 weeks

11 years agoRecognize 'none' or '0' as no flags.
pjd [Wed, 4 Jul 2012 17:31:53 +0000 (17:31 +0000)]
Recognize 'none' or '0' as no flags.

11 years agoDecode the 'xsave', 'xrstor', 'xsaveopt', 'xgetbv', 'xsetbv', and
jhb [Wed, 4 Jul 2012 16:47:39 +0000 (16:47 +0000)]
Decode the 'xsave', 'xrstor', 'xsaveopt', 'xgetbv', 'xsetbv', and
'rdtscp' instructions.

MFC after: 1 month

11 years ago- Change --nthreads parameter to --parallel for GNU compatibility
gabor [Wed, 4 Jul 2012 16:25:11 +0000 (16:25 +0000)]
- Change --nthreads parameter to --parallel for GNU compatibility
- Change default sort method to mergesort, which has a better worst case
  performance than qsort

Submitted by: Oleg Moskalenko <oleg.moskalenko@citrix.com>

11 years agoName jails automatically.
des [Wed, 4 Jul 2012 13:37:44 +0000 (13:37 +0000)]
Name jails automatically.

MFC after: 1 week

11 years agoRemove end of line whitespace.
joel [Wed, 4 Jul 2012 10:17:02 +0000 (10:17 +0000)]
Remove end of line whitespace.

12 years agoAdd the possibility to specify a threshold for the number of negative cache
se [Wed, 4 Jul 2012 09:02:12 +0000 (09:02 +0000)]
Add the possibility to specify a threshold for the number of negative cache
results required to have the cache return lookup failure.

A new configuration parameter is introduced, which must be set to a value
greater than 1 to activate this feature. The default behavior is unchanged.

The purpose of this change is to allow probes for the existence of an entry
(which are expected to fail), before that entry is added to one of the
queried databases, without the cache returning the stale information from
the probe query until that cache entry expires. If, for example, a new user
account is created after checking that the new account name is available,
the negative cache entry would prevent immediate access to the account.

For that example, the new configuration option

negative-confidence-threshold passwd 2

will require a second negative query result to consider the negative cache
entry for a passwd entry valid, but if the user account has been created
between the queries, then the positive query result from the second query
will be cached and returned.

12 years agoDocument RO_RTFREE() macro.
glebius [Wed, 4 Jul 2012 07:42:12 +0000 (07:42 +0000)]
Document RO_RTFREE() macro.

12 years agoWhen ip_output()/ip6_output() is supplied a struct route *ro argument,
glebius [Wed, 4 Jul 2012 07:37:53 +0000 (07:37 +0000)]
When ip_output()/ip6_output() is supplied a struct route *ro argument,
it skips FLOWTABLE lookup. However, the non-NULL ro has dual meaning
here: it may be supplied to provide route, and it may be supplied to
store and return to caller the route that ip_output()/ip6_output()
finds. In the latter case skipping FLOWTABLE lookup is pessimisation.

The difference between struct route filled by FLOWTABLE and filled
by rtalloc() family is that the former doesn't hold a reference on
its rtentry. Reference is hold by flow entry, and it is about to
be released in future. Thus, route filled by FLOWTABLE shouldn't
be passed to RTFREE() macro.

- Introduce new flag for struct route/route_in6, that marks route
  not holding a reference on rtentry.
- Introduce new macro RO_RTFREE() that cleans up a struct route
  depending on its kind.
- All callers to ip_output()/ip6_output() that do supply non-NULL
  but empty route should use RO_RTFREE() to free results of
  lookup.
- ip_output()/ip6_output() now do FLOWTABLE lookup always when
  ro->ro_rt == NULL.

Tested by: tuexen (SCTP part)

12 years agoIniitialize a variable.
tuexen [Tue, 3 Jul 2012 21:41:19 +0000 (21:41 +0000)]
Iniitialize a variable.

MFC after: 3 days

12 years agoFix style.
trociny [Tue, 3 Jul 2012 19:11:38 +0000 (19:11 +0000)]
Fix style.

MFC after: 3 days

12 years agoFix KASSERT message.
trociny [Tue, 3 Jul 2012 19:08:02 +0000 (19:08 +0000)]
Fix KASSERT message.

MFC after: 3 days

12 years agoDon't check for ifp != NULL before KASSERT, as ifp may not be NULL here
trociny [Tue, 3 Jul 2012 19:04:18 +0000 (19:04 +0000)]
Don't check for ifp != NULL before KASSERT, as ifp may not be NULL here
(it is dereferenced below).

Discussed with: jhb
MFC after: 1 week

12 years agoFix RTTVAR scale in net.inet.tcp.hostcache.list sysctl.
trociny [Tue, 3 Jul 2012 18:59:13 +0000 (18:59 +0000)]
Fix RTTVAR scale in net.inet.tcp.hostcache.list sysctl.

Reviewed by: andre
MFC after: 3 days

12 years agoUpdate comment to reflect function's actual operation
emaste [Tue, 3 Jul 2012 17:50:44 +0000 (17:50 +0000)]
Update comment to reflect function's actual operation

12 years agoAdd new USB device ID.
hselasky [Tue, 3 Jul 2012 16:32:47 +0000 (16:32 +0000)]
Add new USB device ID.

Submitted by: Erich Dollansky
MFC after: 1 week

12 years agoAdd more quirks for USB mass storage adapters.
hselasky [Tue, 3 Jul 2012 16:29:41 +0000 (16:29 +0000)]
Add more quirks for USB mass storage adapters.

Submitted by: Erich Dollansky
MFC after: 1 week

12 years agoFix panics triggered by older mfiutil binaries run on the new mfi(4) driver.
jhb [Tue, 3 Jul 2012 16:12:57 +0000 (16:12 +0000)]
Fix panics triggered by older mfiutil binaries run on the new mfi(4) driver.
The new driver changed the size of the mfi_dcmd_frame structure in such a
way that a MFI_IOC_PASSTHRU ioctl from an old amd64 binary is treated as an
MFI_IOC_PASSTHRU32 ioctl in the new driver.  As a result, the user pointer
is treated as the buffer length.  mfi_user_command() doesn't have a bounds
check on the buffer length, so it passes a really big value to malloc()
which panics when it tries to exhaust the kmem_map.  Fix this two ways:
- Only honor MFI_IOC_PASSTHRU32 if the binary has the SV_ILP32 flag set,
  otherwise treat it as an unknown ioctl.
- Add a bounds check on the buffer length passed by the user.  For now
  it fails any user attempts to use a buffer larger than 1MB.

While here, fix a few other nits:
- Remove an unnecessary check for a NULL return from malloc(M_WAITOK).
- Use the ENOTTY errno for invalid ioctl commands instead of ENOENT.

MFC after: 3 days

12 years agoDo not include <sys/types.h> in the local headers. The .c files including
obrien [Tue, 3 Jul 2012 15:15:41 +0000 (15:15 +0000)]
Do not include <sys/types.h> in the local headers.  The .c files including
them have already included <sys/param.h> before these headers are included.

12 years agoFix clang warning, introduced in the recent dtrace import.
dim [Tue, 3 Jul 2012 12:08:55 +0000 (12:08 +0000)]
Fix clang warning, introduced in the recent dtrace import.

MFC after:    3 days

12 years ago- Make ipfw's sched rules case insensitive, for user-friendliness.
issyl0 [Tue, 3 Jul 2012 08:42:48 +0000 (08:42 +0000)]
- Make ipfw's sched rules case insensitive, for user-friendliness.
- Add a note to the ipfw(8) man page about the rules no longer being
case sensitive.
- Fix some typos in the man page.

PR: docs/164772
Reviewed by: bz
Approved by: gabor (doc mentor, src committer)
MFC after: 2 weeks

12 years agoFix a typo
kevlo [Tue, 3 Jul 2012 08:03:07 +0000 (08:03 +0000)]
Fix a typo

12 years agoAdd myself to commiters-[doc,ports].dot and calendar.freebsd
zeising [Tue, 3 Jul 2012 07:28:57 +0000 (07:28 +0000)]
Add myself to commiters-[doc,ports].dot and calendar.freebsd

Approved by: joel (doc/www mentor) kwm (ports mentor)

12 years agoLink in the new RX EDMA routines.
adrian [Tue, 3 Jul 2012 07:01:12 +0000 (07:01 +0000)]
Link in the new RX EDMA routines.

12 years agoBegin abstracting out the RX path in preparation for RX EDMA support.
adrian [Tue, 3 Jul 2012 06:59:12 +0000 (06:59 +0000)]
Begin abstracting out the RX path in preparation for RX EDMA support.

The RX EDMA support requires a modified approach to the RX descriptor
handling.

Specifically:

* There's now two RX queues - high and low priority;
* The RX queues are implemented as FIFOs; they're now an array of pointers
  to buffers;
* .. and the RX buffer and descriptor are in the same "buffer", rather than
  being separate.

So to that end, this commit abstracts out most of the RX related functions
from the bulk of the driver.  Notably, the RX DMA/buffer allocation isn't
updated, primarily because I haven't yet fleshed out what it should look
like.

Whilst I'm here, create a set of matching but mostly unimplemented EDMA
stubs.

Tested:

  * AR9280, station mode

TODO:

  * Thorough AP and other mode testing for non-EDMA chips;
  * Figure out how to allocate RX buffers suitable for RX EDMA, including
    correctly setting the mbuf length to compensate for the RX descriptor
    and completion status area.

12 years agoFix inverted test that resulted in incorrect multicast hw programming.
np [Tue, 3 Jul 2012 06:56:11 +0000 (06:56 +0000)]
Fix inverted test that resulted in incorrect multicast hw programming.

12 years agoAdd "hier" as an alternate spelling of "hierarchy" to match hier(9).
obrien [Tue, 3 Jul 2012 06:41:00 +0000 (06:41 +0000)]
Add "hier" as an alternate spelling of "hierarchy" to match hier(9).

12 years agoRevert r222186 per instructions for FreeBSD 10.
obrien [Tue, 3 Jul 2012 05:01:00 +0000 (05:01 +0000)]
Revert r222186 per instructions for FreeBSD 10.
(a 10-CURRENT share/mk is already required to build a 10-CURRENT kernel
 on 9-STABLE)

12 years agoAdd a driver for the Freescale FCM module in the localbus controller.
marcel [Tue, 3 Jul 2012 01:00:29 +0000 (01:00 +0000)]
Add a driver for the Freescale FCM module in the localbus controller.
This driver does not yet handle multiple chip selects properly.

Note that the NAND infrastructure does not perform full page
reads or writes, which means that this driver cannot make use
of the hardware ECC that is otherwise present.

12 years agoSupport lbc interrupts:
marcel [Tue, 3 Jul 2012 00:06:14 +0000 (00:06 +0000)]
Support lbc interrupts:
o   Save and clear the LTESR register in the interrupt handler.
o   In lbc_read_reg(), return the saved LTESR register value if applicable
    (i.e. when the saved value is not invalid (read: ~0U)).
o   In lbc_write_reg(), clear the bits in the saved register when when it's
    written to and when the asved value is not invalid.
o   Also in lbc_write_reg(), the LTESR register is unlocked (in H/W) when
    bit 1 of LTEATR is cleared. We use this to invalidate our saved LTESR
    register value. Subsequent reads and write go to H/W directly.

While here:
o   In lbc_read_reg() & lbc_write_reg(), add some belts and suspenders to
    catch when register offsets are out of range.
o   In lbc_attach(), initialize completely and don't leave something left
    for lbc_banks_enable().

12 years agoSimplify simplebus_setup_intr and don't call MD code directly. We can
marcel [Mon, 2 Jul 2012 23:53:08 +0000 (23:53 +0000)]
Simplify simplebus_setup_intr and don't call MD code directly. We can
(and have to) trust our parent to handle interrupt configuration.

12 years agoProperly implement bus_setup_intr so that it handles the configuration
marcel [Mon, 2 Jul 2012 23:49:29 +0000 (23:49 +0000)]
Properly implement bus_setup_intr so that it handles the configuration
of interrupts of direct children. Have the bus_config_intr and
bus_teardown_intr methods implemented by bus_generic_config_intr and
bus_generic_teardown_intr (resp) as we don't need to do anything
special outselves.

This removes all the ``#ifdef $arch'' code that was there because powerpc
didn't have a proper nexus and people tend to copy and paste stuff.

12 years agoProperly implement the bus_config_intr, bus_setup_intr and bus_teardown_intr
marcel [Mon, 2 Jul 2012 23:41:56 +0000 (23:41 +0000)]
Properly implement the bus_config_intr, bus_setup_intr and bus_teardown_intr
methods so that MI drvers can depend on us doing the right thing instead
of having to go around us and call MD code directly. See the FDT code for
example (not for long though).

12 years agoUnfortunately the change in r237958 resulted in s/install/instclean/ due to
dougb [Mon, 2 Jul 2012 22:14:58 +0000 (22:14 +0000)]
Unfortunately the change in r237958 resulted in s/install/instclean/ due to
the aggressive pattern matching of the :C modifier. I tested build and
install in 2 phases, however with different solutions, resulting in the
breakage. Mea culpa.

The solution is to break out the all: target. This causes a few lines of
code duplication, but now the all: target works as it should, and the
other targets continue to work as they did before.

While I'm here, add a ===> header line to the start of each port build
to make it easier to find/more clear in the logs.

12 years agoRemove device uart_z8530 and options GEOM_PART_APM from DEFAULTS and instead
marcel [Mon, 2 Jul 2012 21:25:24 +0000 (21:25 +0000)]
Remove device uart_z8530 and options GEOM_PART_APM from DEFAULTS and instead
add them to GENERIC and GENERIC64. They are applicable to Apple H/W and not
at all for Book-E platforms.

12 years agoFix a typo that resulted in or-ing PTE_UW twice whrn PTE_SW was needed.
marcel [Mon, 2 Jul 2012 21:21:12 +0000 (21:21 +0000)]
Fix a typo that resulted in or-ing PTE_UW twice whrn PTE_SW was needed.
Note that setting the PTE_MODIFIED bit based on whether write is possible
is incorrect. We should set PTE_MODIFIED based on whether the access
is a write operation.

12 years agoHandle traps from the debugger. We need to catch them and re-enter
marcel [Mon, 2 Jul 2012 21:18:09 +0000 (21:18 +0000)]
Handle traps from the debugger. We need to catch them and re-enter
the debugger where they're being taken care of.

12 years agoInvalidate any TLB1 entries we don't need. The firmware (e.g. U-Boot)
marcel [Mon, 2 Jul 2012 21:15:56 +0000 (21:15 +0000)]
Invalidate any TLB1 entries we don't need. The firmware (e.g. U-Boot)
may have added entries that conflict with TLB0 entries.

12 years agoImplement cpu_flush_dcache(). This allows us to optimize __syncicache()
marcel [Mon, 2 Jul 2012 21:11:01 +0000 (21:11 +0000)]
Implement cpu_flush_dcache(). This allows us to optimize __syncicache()
for the common case in chich D-caches are coherent by virtue of busdma.

12 years agoExtend the KPI to lock and unlock f_offset member of struct file. It
kib [Mon, 2 Jul 2012 21:01:03 +0000 (21:01 +0000)]
Extend the KPI to lock and unlock f_offset member of struct file.  It
now fully encapsulates all accesses to f_offset, and extends f_offset
locking to other consumers that need it, in particular, to lseek() and
variants of getdirentries().

Ensure that on 32bit architectures f_offset, which is 64bit quantity,
always read and written under the mtxpool protection. This fixes
apparently easy to trigger race when parallel lseek()s or lseek() and
read/write could destroy file offset.

The already broken ABI emulations, including iBCS and SysV, are not
converted (yet).

Tested by: pho
No objections from: jhb
MFC after:    3 weeks

12 years agoInstruct the firmware not to provision resources for TCP offload if the
np [Mon, 2 Jul 2012 20:42:43 +0000 (20:42 +0000)]
Instruct the firmware not to provision resources for TCP offload if the
kernel is being built without TCP_OFFLOAD.  But never override
toecaps_allowed if it has been set manually.

12 years agoThere's no need to make filemon specific to i386 and amd64. All
marcel [Mon, 2 Jul 2012 20:36:26 +0000 (20:36 +0000)]
There's no need to make filemon specific to i386 and amd64. All
LP64 architectures define elf64_freebsd_sysvec and all ILP32
architectures define elf32_freebsd_sysvec.

12 years agoAdded options:
marcel [Mon, 2 Jul 2012 20:28:12 +0000 (20:28 +0000)]
Added options:
WITH_INSTALL_AS_USER
WITHOUT_PKGBOOTSTRAP

12 years agoAdd a one second sleep before touching the spool directory. If the touch
jhb [Mon, 2 Jul 2012 20:27:37 +0000 (20:27 +0000)]
Add a one second sleep before touching the spool directory.  If the touch
occurs in the same second as the earlier operations to create the temporary
file and the cron(8) daemon is rescans the spool directory during that
second, then the daemon may miss a cron edit and not properly update its
internal database.

MFC after: 1 month

12 years agoA cross-reference takes a man page section as well. Assume pkg(1),
marcel [Mon, 2 Jul 2012 20:26:11 +0000 (20:26 +0000)]
A cross-reference takes a man page section as well. Assume pkg(1),
based on pkg_add(1).

12 years agoRemove 14 not very useful characters " HDA CODEC PCM" from HDA pcm device
mav [Mon, 2 Jul 2012 20:25:50 +0000 (20:25 +0000)]
Remove 14 not very useful characters " HDA CODEC PCM" from HDA pcm device
names to shorten them. PulseAudio reported to have problems with names
longer then 63 chars and at least in XMMS long names are inconvinient.

Reported by: hselasky
MFC after: 3 days

12 years agoAdd description for INSTALL_AS_USER
marcel [Mon, 2 Jul 2012 20:24:01 +0000 (20:24 +0000)]
Add description for INSTALL_AS_USER

12 years agoFix two layout bugs in the previous change:
jhb [Mon, 2 Jul 2012 20:08:11 +0000 (20:08 +0000)]
Fix two layout bugs in the previous change:
- Properly increase y_mem when per-CPU stats are enabled.
- Update y_arc for per-CPU stats being enabled/disabled.

MFC after: 3 days

12 years agoFix typo in option description file (using svn move).
marcel [Mon, 2 Jul 2012 20:01:48 +0000 (20:01 +0000)]
Fix typo in option description file (using svn move).

12 years agoRemove route caching from IP multicast routing code. There is no
glebius [Mon, 2 Jul 2012 19:44:18 +0000 (19:44 +0000)]
Remove route caching from IP multicast routing code. There is no
reason to do that, and also, cached route never got unreferenced,
which meant a reference leak.

Reviewed by: bms

12 years agoAdd IDs for some USB controllers I have around. Just a cosmetics.
mav [Mon, 2 Jul 2012 19:35:56 +0000 (19:35 +0000)]
Add IDs for some USB controllers I have around. Just a cosmetics.

MFC after: 3 days

12 years agoRestore GPIO config quirks handling, lost during last big refactoring.
mav [Mon, 2 Jul 2012 18:35:08 +0000 (18:35 +0000)]
Restore GPIO config quirks handling, lost during last big refactoring.

Tested by: hselasky
MFC after: 3 days

12 years agoFix build after r237997.
glebius [Mon, 2 Jul 2012 18:04:31 +0000 (18:04 +0000)]
Fix build after r237997.

12 years agoRevert r238004 as more review has come in and there is now a discussion
sbruno [Mon, 2 Jul 2012 17:55:29 +0000 (17:55 +0000)]
Revert r238004 as more review has come in and there is now a discussion
on how to best proceed.

12 years agoAdd reference to portsnap(8).
wblock [Mon, 2 Jul 2012 17:52:43 +0000 (17:52 +0000)]
Add reference to portsnap(8).

Submitted by: Tim Kientzle
MFC after: 1 day

12 years agoCosmetic display change of Cx states via cx_supported sysctl entries.
sbruno [Mon, 2 Jul 2012 16:57:13 +0000 (16:57 +0000)]
Cosmetic display change of Cx states via cx_supported sysctl entries.

Adjust power_profile script to handle the new world order as well.

Some vendors are opting out of a C2 state and only defining C1 & C3.  This
leads the acpi_cpu display to indicate that the machine supports C1 & C2
which is caused by the (mis)use of the index of the cx_state array as the
ACPI_STATE_CX value.

e.g. the code was pretending that cx_state[i] would
always convert to i by subtracting 1.

cx_state[2] == ACPI_STATE_C3
cx_state[1] == ACPI_STATE_C2
cx_state[0] == ACPI_STATE_C1

however, on certain machines this would lead to
cx_state[1] == ACPI_STATE_C3
cx_state[0] == ACPI_STATE_C1

This didn't break anything but led to a display of:
 * dev.cpu.0.cx_supported: C1/1 C2/96

Instead of
 * dev.cpu.0.cx_supported: C1/1 C3/96

MFC after: 2 weeks

12 years agoMove common code parts to sctp_common_input_processing().
tuexen [Mon, 2 Jul 2012 16:44:09 +0000 (16:44 +0000)]
Move common code parts to sctp_common_input_processing().

MFC after: 3 days

12 years agoRemove dead code (on FreeBSD) as suggested by glebius@.
tuexen [Mon, 2 Jul 2012 16:40:11 +0000 (16:40 +0000)]
Remove dead code (on FreeBSD) as suggested by glebius@.

MFC after: 3 days

12 years agoHonor db_pager_quit in 'show uma' and 'show malloc'.
jhb [Mon, 2 Jul 2012 16:14:52 +0000 (16:14 +0000)]
Honor db_pager_quit in 'show uma' and 'show malloc'.

MFC after: 1 month

12 years agoNew build KNOB: WITHOUT_PKGBOOTSTRAP to condition building of usr.sbin/pkg
bapt [Mon, 2 Jul 2012 15:28:50 +0000 (15:28 +0000)]
New build KNOB: WITHOUT_PKGBOOTSTRAP to condition building of usr.sbin/pkg
Do not condition usr.sbin/pkg building on WITHOUT_PKGTOOLS anymore, so that users can
remove the old pkg_* tools without removing the pkgng boostrap

Approved by: des (mentor)
MFC after: 1 month

12 years agoFix XEN build, broken in r237924.
brueffer [Mon, 2 Jul 2012 14:03:19 +0000 (14:03 +0000)]
Fix XEN build, broken in r237924.

Reported by: gcooper
Pointy hat: brueffer

12 years agoIssue proper diagnostic on the short writes, also consider the
kib [Mon, 2 Jul 2012 09:53:57 +0000 (09:53 +0000)]
Issue proper diagnostic on the short writes, also consider the
case of write reporting 0 bytes as short write.

Reported and tested by: adreast
MFC after:   1 week

12 years agoDo not override an error from uiomove() with (non-)error result from
kib [Mon, 2 Jul 2012 09:53:08 +0000 (09:53 +0000)]
Do not override an error from uiomove() with (non-)error result from
bwrite().  VFS needs to know about EFAULT from uiomove() and does not
care much that partially filled block writeback after EFAULT was
successfull.  Early return without error causes short write to be
reported to usermode.

Reported and tested by: andreast
MFC after: 3 weeks

12 years agoFix typo in r237981.
mav [Mon, 2 Jul 2012 08:41:22 +0000 (08:41 +0000)]
Fix typo in r237981.

12 years agoAdd acpi_asus_wmi(4) -- driver for random extras found on WMI-compatible
mav [Mon, 2 Jul 2012 08:31:29 +0000 (08:31 +0000)]
Add acpi_asus_wmi(4) -- driver for random extras found on WMI-compatible
Asus laptops. It is alike to acpi_asus(4), but uses WMI interface instead
of separate ACPI device.

On Asus EeePC T101MT netbook it allows to handle hotkeys and on/off WLAN,
Bluetooth, LCD backlight, camera, cardreader and touchpad.

On Asus UX31A ultrabook it allows to handle hotkeys, on/off WLAN, Bluetooth,
Wireless LED, control keyboard backlight brightness, monitor temperature
and fan speed. LCD brightness control doesn't work now for unknown reason,
possibly requiring some video card initialization.

Sponsored by: iXsystems, Inc.

12 years ago- Call bus_generic_attach() at end of hdspe_attach().
glebius [Mon, 2 Jul 2012 07:39:55 +0000 (07:39 +0000)]
- Call bus_generic_attach() at end of hdspe_attach().
- Use own devclass_t in DRIVER_MODULE().

This fixes operation of hdspe(4) when built as loadable module.

Submitted by: Ruslan Bukin <br bsdpad.com>

12 years agoExpose scrub and resilver tunables.
mm [Mon, 2 Jul 2012 07:27:14 +0000 (07:27 +0000)]
Expose scrub and resilver tunables.
This allows the user to tune the priority trade-off between scrub/resilver
and other ZFS I/O.

MFC after: 2 weeks
Discussed with: pjd

12 years agoFor the ports modules building code, clean WRKDIR before building. This is
dougb [Mon, 2 Jul 2012 06:22:20 +0000 (06:22 +0000)]
For the ports modules building code, clean WRKDIR before building. This is
important for those that use -DNO_CLEAN routinely, since it will prevent
installing stale stuff, and even more important when the port is upgraded
to a newer version. When the user doesn't use -DNO_CLEAN, this will create
an infinitesimal amount of extra work, but won't hurt anything.

This is necessary because the ports tree has flags that prevent the ususal
'update the build if newer source files exist' logic from doing what it
would do in the base.

12 years ago.. And fix another typo. Grr.
adrian [Mon, 2 Jul 2012 06:07:46 +0000 (06:07 +0000)]
.. And fix another typo. Grr.

12 years agoFix another typo.
adrian [Mon, 2 Jul 2012 06:06:27 +0000 (06:06 +0000)]
Fix another typo.

12 years agoFix typo.
adrian [Mon, 2 Jul 2012 06:05:25 +0000 (06:05 +0000)]
Fix typo.

12 years agoBring over some further HAL capabilities from the Atheros HAL, as well
adrian [Mon, 2 Jul 2012 06:02:12 +0000 (06:02 +0000)]
Bring over some further HAL capabilities from the Atheros HAL, as well
as an EDMA check function.

For the AR9003 and later NICs, different TX/RX DMA and descriptor handling
code will be conditional on the EDMA check.

Obtained from: Qualcomm Atheros

12 years agoUse timeclear() instead of home grown version.
delphij [Mon, 2 Jul 2012 02:38:27 +0000 (02:38 +0000)]
Use timeclear() instead of home grown version.

MFC after: 2 weeks

12 years agoctype_l(3): Note that not all these functions are specified by POSIX.1-2008.
jilles [Sun, 1 Jul 2012 22:18:20 +0000 (22:18 +0000)]
ctype_l(3): Note that not all these functions are specified by POSIX.1-2008.

The function isascii_l() is not in POSIX even though isascii() is,
probably because isascii() is marked as obsolete.  The other functions,
like digittoint_l() and ishexnumber_l(), are FreeBSD-specific just like
their non-_l versions.

12 years agoCorrect a grammo.
schweikh [Sun, 1 Jul 2012 19:40:51 +0000 (19:40 +0000)]
Correct a grammo.

12 years agoRemove bogus __unused attribute from hrowpic_eoi().
rpaulo [Sun, 1 Jul 2012 19:07:45 +0000 (19:07 +0000)]
Remove bogus __unused attribute from hrowpic_eoi().