]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
12 years agomdoc: remove superfluous paragraph macro.
joel [Thu, 17 May 2012 11:29:22 +0000 (11:29 +0000)]
mdoc: remove superfluous paragraph macro.

12 years agoAllow to specify strftime(3) format for process start end exit times.
kib [Thu, 17 May 2012 11:10:13 +0000 (11:10 +0000)]
Allow to specify strftime(3) format for process start end exit times.

Submitted by: Andrey Zonov <andrey zonov org>
MFC after: 1 week

12 years agoFix typo.
kib [Thu, 17 May 2012 10:19:49 +0000 (10:19 +0000)]
Fix typo.

MFC after: 3 days

12 years agoImport work done under project/nand (@235533) into head.
gber [Thu, 17 May 2012 10:11:18 +0000 (10:11 +0000)]
Import work done under project/nand (@235533) into head.

The NAND Flash environment consists of several distinct components:
  - NAND framework (drivers harness for NAND controllers and NAND chips)
  - NAND simulator (NANDsim)
  - NAND file system (NAND FS)
  - Companion tools and utilities
  - Documentation (manual pages)

This work is still experimental. Please use with caution.

Obtained from: Semihalf
Supported by:  FreeBSD Foundation, Juniper Networks

12 years agoMerge tcpdump 4.2.1.
delphij [Thu, 17 May 2012 05:11:57 +0000 (05:11 +0000)]
Merge tcpdump 4.2.1.

MFC after: 2 weeks

12 years agoAccess the device tree blob via copyin/copyout.
kientzle [Thu, 17 May 2012 04:04:48 +0000 (04:04 +0000)]
Access the device tree blob via copyin/copyout.

The code previously assumed that copyin/copyout did no
address translation and that the device tree blob could
be manipulated in-place (with only a few adjustments for
the ELF loader offset).  This isn't possible on all platforms,
so the revised code uses copyout() to copy the device tree
blob into a heap-allocated buffer and then updates the
device tree with copyout().  This isn't ideal, since it
bloats the loader memory usage, but seems the only feasible
approach (short of rewriting all of the fdt manipulation
routines).

12 years agoAdd support for -z option for reading operations. It allows to not request
mav [Wed, 16 May 2012 20:30:20 +0000 (20:30 +0000)]
Add support for -z option for reading operations. It allows to not request
current values from device, but only receive changes.

12 years agoHID Report ID is unsigned value, so clear the rest of bits from possible
mav [Wed, 16 May 2012 17:51:56 +0000 (17:51 +0000)]
HID Report ID is unsigned value, so clear the rest of bits from possible
sign expansion.

12 years agoFix a couple of issues that appear to be inherited from the old
pfg [Wed, 16 May 2012 15:53:38 +0000 (15:53 +0000)]
Fix a couple of issues that appear to be inherited from the old
8.x code:
- If the lock cannot be acquired immediately unlocks 'bar' vnode
and then locks both vnodes in order.
- wrong vnode type panics from cache_enter_time after calls by
ext2_lookup.

The fix merges the fixes from ufs/ufs_lookup.c.

Submitted by: Mateusz Guzik
Approved by: jhb@ (mentor)
Reviewed by: kib@
MFC after: 1 week

12 years agoSkip directory entries with zero inode number during traversal.
gleb [Wed, 16 May 2012 10:44:09 +0000 (10:44 +0000)]
Skip directory entries with zero inode number during traversal.

Entries with zero inode number are considered placeholders by libc and
UFS.  Fix remaining uses of VOP_READDIR in kernel: vop_stdvptocnp,
unionfs.

Sponsored by: Google Summer of Code 2011

12 years agoBy request, add back support from 7.0 and newer, since the changes for
imp [Wed, 16 May 2012 04:21:21 +0000 (04:21 +0000)]
By request, add back support from 7.0 and newer, since the changes for
that are so minimal.

12 years agoReword hostapd.conf(5) sentence.
gjb [Wed, 16 May 2012 01:59:09 +0000 (01:59 +0000)]
Reword hostapd.conf(5) sentence.

Suggested by: hrs
MFC after: 3 days
X-MFC-With: r235337 (a bit delayed...)

12 years agoMigrate ath_debug and sc_debug from an int to a uint64_t / QUAD;
adrian [Tue, 15 May 2012 23:39:37 +0000 (23:39 +0000)]
Migrate ath_debug and sc_debug from an int to a uint64_t / QUAD;
add some more BAR debugging logic.

* Change the definition of ath_debug and ath_softc.sc_debug  from
  int to uint64_t;
* Change the relevant sysctls;
* Add a new BAR TX debugging field;
* Use this in if_ath_tx.

This has been tested by using the sysctl program, which happily allows
for fields > 32 bits to be configured.

12 years agosh: Remove an unused header.
jilles [Tue, 15 May 2012 22:50:47 +0000 (22:50 +0000)]
sh: Remove an unused header.

The read builtin no longer does things with termios.

12 years agoSwitch sparc64 to using libcompiler_rt; since r230021 we have a workaround
marius [Tue, 15 May 2012 22:47:34 +0000 (22:47 +0000)]
Switch sparc64 to using libcompiler_rt; since r230021 we have a workaround
in place allowing it to be used there and since r235388 (see also r235486)
we also have usable div/mod optimizations like libgcc has.

12 years agoForced commit to denote that the claim in r235388, that libcompiler_rt when
marius [Tue, 15 May 2012 22:44:55 +0000 (22:44 +0000)]
Forced commit to denote that the claim in r235388, that libcompiler_rt when
used as a replacement for libgcc on sparc64 would cause a 60% decrease in
performance is wrong. Actually, the performance loss is only marginal and
the huge difference seen was caused by a pilot error comparing libgcc builds
using MALLOC_PRODUCTION with libcompiler_rt builds that did not.

12 years agoRework sample code which sets SSH_AUTH_SOCK to the user's ssh-agent
eadler [Tue, 15 May 2012 20:15:17 +0000 (20:15 +0000)]
Rework sample code which sets SSH_AUTH_SOCK to the user's ssh-agent
socket path if running

PR: 167932
Submitted by: madpilot (pr)
Submitted by: wblock (final patch)
Reviewed by: If someone else reviewed your modification.
Approved by: cperciva (implicit)
MFC after: 3 days

12 years agozpool_find_import_impl: another /dev/dsk -> /dev fix
avg [Tue, 15 May 2012 17:11:00 +0000 (17:11 +0000)]
zpool_find_import_impl: another /dev/dsk -> /dev fix

This seems to fix zdb -e behavior.

PR: bin/155104
Submitted by: swell.k@gmail.com
MFC after: 2 weeks

12 years agozpool_do_import: use /dev instead of /dev/dsk as a default
avg [Tue, 15 May 2012 17:07:29 +0000 (17:07 +0000)]
zpool_do_import: use /dev instead of /dev/dsk as a default

This affects behavior of zpool import without -d option.

Reported by: Bruce Cran <bruce@cran.org.uk>
Submitted by: Fabian Keil <freebsd-listen@fabiankeil.de>
MFC after: 2 weeks

12 years agoSwitch to a standard 2 clause BSD license (from bsd-style-copyright).
bz [Tue, 15 May 2012 13:23:44 +0000 (13:23 +0000)]
Switch to a standard 2 clause BSD license (from bsd-style-copyright).

Approved by: Myricom Inc. (gallatin)
Approved by: Intel Corporation (jfv)

12 years agoFix typo in function name SDT_PROBE4 and unbreak 4BSD UP.
pluknet [Tue, 15 May 2012 10:58:17 +0000 (10:58 +0000)]
Fix typo in function name SDT_PROBE4 and unbreak 4BSD UP.

12 years agoDo not call bremfree for managed buffers.
gber [Tue, 15 May 2012 09:55:15 +0000 (09:55 +0000)]
Do not call bremfree for managed buffers.

Calling bremfree for these buffers results in panic:
"bremfree: buffer %p not on a queue."

Approved by: kib

12 years agoHandle non-xretry errors the same as xretry errors for now.
adrian [Tue, 15 May 2012 04:55:15 +0000 (04:55 +0000)]
Handle non-xretry errors the same as xretry errors for now.

Although I _should_ handle the other errors in various ways (specifically
errors like FILT), treating them as having transmitted successfully
is completely wrong.  Here, they'd be counted as successful and the BAW
would be advanced.. but the RX side wouldn't have received them.

The specific errors I've been seeing here are HAL_TXERR_FILT.

This patch does fix the issue - I've tested it using -i 0.001 pings
(enough to start aggregation) and now the behaviour is correct:

* The RX side never sees a "moved window" error, and
* The TX side sends BARs as needed, with the RX side correctly handling
  them.

PR: kern/167902

12 years agoImplement the DTrace sched provider. This implementation aims to be
rstone [Tue, 15 May 2012 01:30:25 +0000 (01:30 +0000)]
Implement the DTrace sched provider.  This implementation aims to be
compatible with the sched provider implemented by Solaris and its open-
source derivatives.  Full documentation of the sched provider can be found
on Oracle's DTrace wiki pages.

Note that for compatibility with scripts originally written for Solaris,
serveral probes are defined that will never fire.  These probes are defined
to fire when Solaris-specific features perform certain actions.  As these
features are not present in FreeBSD, the probes can never fire.

Also, I have added a two probes that are not defined in Solaris, lend-pri
and load-change.  These probes have been added to make it possible to
collect schedgraph data with DTrace.

Finally, a few probes are defined in Solaris to take a cpuinfo_t *
argument.  As it was not immediately clear to me how to translate that to
FreeBSD, currently those probes are passed NULL in place of a cpuinfo_t *.

Sponsored by: Sandvine Incorporated
MFC after: 2 weeks

12 years agoMove sh to the correct path for FreeBSD.
gnn [Mon, 14 May 2012 22:02:01 +0000 (22:02 +0000)]
Move sh to the correct path for FreeBSD.

12 years agoMove sh to the correct location for FreeBS (/bin/sh)
gnn [Mon, 14 May 2012 22:00:24 +0000 (22:00 +0000)]
Move sh to the correct location for FreeBS (/bin/sh)

12 years agoFix execsnoop by changing exece and exec to be FreeBSD's execve.
gnn [Mon, 14 May 2012 21:59:47 +0000 (21:59 +0000)]
Fix execsnoop by changing exece and exec to be FreeBSD's execve.

Reference sh in the correct location (/bin/sh)

12 years agoFix opensnoop for FreeBSD by removing probes with 64 at the end as
gnn [Mon, 14 May 2012 21:58:22 +0000 (21:58 +0000)]
Fix opensnoop for FreeBSD by removing probes with 64 at the end as
these are unnecessary.

Reference sh in the correct location (/bin/sh)

12 years agoStyle fixes.
jpaetzel [Mon, 14 May 2012 18:06:51 +0000 (18:06 +0000)]
Style fixes.

Submitted by: kmoore
Obtained from: PC-BSD
MFC after: 3 days
Sponsored by: iXsystems

12 years agoSet the MBR partition to active when doing a full disk MBR.
jpaetzel [Mon, 14 May 2012 18:03:59 +0000 (18:03 +0000)]
Set the MBR partition to active when doing a full disk MBR.

Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems
MFC after: 3 days

12 years agoMove reset of USB mouse parameters from the USB mouse attach to
hselasky [Mon, 14 May 2012 17:00:32 +0000 (17:00 +0000)]
Move reset of USB mouse parameters from the USB mouse attach to
the USB mouse device open. Protect against multi character
device open. Some other nits.

MFC after: 1 week

12 years agomdoc: Avoid playing tricks with Ns: If Nm is present in the SYNOPSIS section,
joel [Mon, 14 May 2012 16:25:17 +0000 (16:25 +0000)]
mdoc: Avoid playing tricks with Ns: If Nm is present in the SYNOPSIS section,
it will be output on its own line. Ns cancels this effect however. This change
is also consistent with the rest of our manual pages.

12 years agoFix an mdoc(7) formatting nit.
gjb [Mon, 14 May 2012 14:33:08 +0000 (14:33 +0000)]
Fix an mdoc(7) formatting nit.

12 years ago- Eliminate initializations if global variables. Compilers are not
gabor [Mon, 14 May 2012 10:06:49 +0000 (10:06 +0000)]
- Eliminate initializations if global variables.  Compilers are not
  required to optimize these so it may result in larger binary size.

Pointed out by: kib

12 years ago- Update catalogs
gabor [Mon, 14 May 2012 09:55:23 +0000 (09:55 +0000)]
- Update catalogs

12 years ago- Fix build with clang
gabor [Mon, 14 May 2012 09:53:54 +0000 (09:53 +0000)]
- Fix build with clang

12 years agoAdd 3 missing files that was generated but not included with the initial
delphij [Mon, 14 May 2012 09:32:10 +0000 (09:32 +0000)]
Add 3 missing files that was generated but not included with the initial
commit.

Reported by: buganini via IRC
MFC after: 2 weeks

12 years agoVendor import of tcpdump 4.2.1.
delphij [Mon, 14 May 2012 08:01:48 +0000 (08:01 +0000)]
Vendor import of tcpdump 4.2.1.

12 years agoMerge from vendor branch: update libpcap to 1.2.1.
delphij [Mon, 14 May 2012 05:12:56 +0000 (05:12 +0000)]
Merge from vendor branch: update libpcap to 1.2.1.

MFC after: 2 weeks

12 years agoSync DLTs with the latest pcap version.
delphij [Mon, 14 May 2012 05:10:41 +0000 (05:10 +0000)]
Sync DLTs with the latest pcap version.

MFC after: 2 weeks

12 years agoAdd missing period at the end of the error message
eadler [Sun, 13 May 2012 23:27:06 +0000 (23:27 +0000)]
Add missing period at the end of the error message

Submitted by: pjd
Approved by: cperciva (implicit)
MFC after: 3 days
X-MFC-With: r235201

12 years agoSupport SCTP_REMOTE_ERROR notification.
tuexen [Sun, 13 May 2012 22:27:54 +0000 (22:27 +0000)]
Support SCTP_REMOTE_ERROR notification.

MFC after: 3 days

12 years agoProvide in the SCTP_SEND_FAILED and SCTP_SEND_FAILED_EVENT notifications
tuexen [Sun, 13 May 2012 19:32:49 +0000 (19:32 +0000)]
Provide in the SCTP_SEND_FAILED and SCTP_SEND_FAILED_EVENT notifications
the correct ssf_error or ssfe_error as required by RFC 6458.

MFC after: 3 days

12 years agoMissed to commit this in r235414.
tuexen [Sun, 13 May 2012 19:25:21 +0000 (19:25 +0000)]
Missed to commit this in r235414.

MFC after: 3 days

12 years agoProvide the error code in SCTP_PEER_ADDR_CHANGE notifications as
tuexen [Sun, 13 May 2012 17:36:04 +0000 (17:36 +0000)]
Provide the error code in SCTP_PEER_ADDR_CHANGE notifications as
specified in RFC 6458.

MFC after: 3 days

12 years agoRemove unused constants.
tuexen [Sun, 13 May 2012 17:17:13 +0000 (17:17 +0000)]
Remove unused constants.

MFC after: 3 days

12 years agoUse ECONNABORTED in cases where the ABORT was sent to the peer.
tuexen [Sun, 13 May 2012 16:56:16 +0000 (16:56 +0000)]
Use ECONNABORTED in cases where the ABORT was sent to the peer.

MFC after: 3 days

12 years agoEnsure the user can read COMM_LOST notifications on 1-to-1 style sockets.
tuexen [Sun, 13 May 2012 16:07:53 +0000 (16:07 +0000)]
Ensure the user can read COMM_LOST notifications on 1-to-1 style sockets.

MFC after: 3 days

12 years agomdoc: avoid unterminated quoted strings.
joel [Sun, 13 May 2012 14:28:00 +0000 (14:28 +0000)]
mdoc: avoid unterminated quoted strings.

12 years agoMinor mdoc nits.
joel [Sun, 13 May 2012 14:16:04 +0000 (14:16 +0000)]
Minor mdoc nits.

12 years agolibpc98: unbreak after zfs-related changes in libi386 code
avg [Sun, 13 May 2012 11:34:05 +0000 (11:34 +0000)]
libpc98: unbreak after zfs-related changes in libi386 code

Pointyhat to: avg
MFC after: 1 month

12 years agozfs boot: cleanup remnants of temporary compat code
avg [Sun, 13 May 2012 10:54:43 +0000 (10:54 +0000)]
zfs boot: cleanup remnants of temporary compat code

MFC after: 1 month

12 years agozfsboottest: update for the recent zfs boot code changes
avg [Sun, 13 May 2012 09:27:08 +0000 (09:27 +0000)]
zfsboottest: update for the recent zfs boot code changes

MFC after: 1 month

12 years agoi386 bootinfo: re-arrange EFI fields for natural alignment and packing
avg [Sun, 13 May 2012 09:25:39 +0000 (09:25 +0000)]
i386 bootinfo: re-arrange EFI fields for natural alignment and packing

Suggested by: bde
MFC after: 2 weeks

12 years agozfs boot code: mark spa_t arguments as const where they are used as such
avg [Sun, 13 May 2012 09:22:18 +0000 (09:22 +0000)]
zfs boot code: mark spa_t arguments as const where they are used as such

MFC after: 1 month

12 years agoRegenerate after r235388.
marius [Sun, 13 May 2012 05:09:36 +0000 (05:09 +0000)]
Regenerate after r235388.

12 years ago- Get rid of debugging support in order to get rid of the V8-specific C
marius [Sun, 13 May 2012 05:08:13 +0000 (05:08 +0000)]
- Get rid of debugging support in order to get rid of the V8-specific C
  compiler frame size used there so this whole thing is V8/V9-agnostic.
- Use 32-bit function alignment as GCC does when using UltraSPARC I or
  higher optimizations.
- Don't waste delay slots when possible.

Unfortunately, this still doesn't make libcompiler_rt a viable replacement
for libgcc on sparc64 though as once installed instead, buildworld times
increase by nearly 60% (which isn't related to these assembler functions).

12 years agoFix config_lazy_lock so that thread caching isn't used for
jasone [Sun, 13 May 2012 01:33:28 +0000 (01:33 +0000)]
Fix config_lazy_lock so that thread caching isn't used for
single-threaded applications.

12 years agoFix two cases in the new NFS server where a tsleep() is
rmacklem [Sat, 12 May 2012 22:20:55 +0000 (22:20 +0000)]
Fix two cases in the new NFS server where a tsleep() is
used, when the code should actually protect the tested
variable with a mutex. Since the tsleep()s had a 10sec
timeout, the race would have only delayed the allocation
of a new clientid for a client. The sleeps will also
rarely occur, since having a callback in progress when
a client acquires a new clientid, is unlikely.
in practice, since having a callback in progress when
a fresh clientid is being acquired by a client is unlikely.

MFC after: 1 month

12 years agoImport dtracetoolkit into cddl/contrib
gnn [Sat, 12 May 2012 21:25:48 +0000 (21:25 +0000)]
Import dtracetoolkit into cddl/contrib

12 years agoRevert previous failed cp.
gnn [Sat, 12 May 2012 21:23:31 +0000 (21:23 +0000)]
Revert previous failed cp.

12 years agoImport dtracetoolkit into cddl/contrib
gnn [Sat, 12 May 2012 21:15:21 +0000 (21:15 +0000)]
Import dtracetoolkit into cddl/contrib

12 years agoSetup the CPU port and broadcast map on the AR7240, rather than
adrian [Sat, 12 May 2012 21:08:07 +0000 (21:08 +0000)]
Setup the CPU port and broadcast map on the AR7240, rather than
depending upon the bootloader initialising it.

The aim is to eventually support a full switch set and reinitialisation
rather than relying on a consistent bootloader setup.

Remove the port flood config from arswitch.c, it's not yet used and
it's totally incorrect.

Whilst I'm here, also add in a comment describing why the full switch
reset is disabled.

Obtained from: Linux (OpenWRT) - Values

12 years agoRemove leading .Ns macro to silence mdoc(7) warning.
gjb [Sat, 12 May 2012 20:53:00 +0000 (20:53 +0000)]
Remove leading .Ns macro to silence mdoc(7) warning.

12 years agoAdd new pager type, OBJT_MGTDEVICE. It provides the device pager
kib [Sat, 12 May 2012 20:49:58 +0000 (20:49 +0000)]
Add new pager type, OBJT_MGTDEVICE. It provides the device pager
which carries fictitous managed pages. In particular, the consumers of
the new object type can remove all mappings of the device page with
pmap_remove_all().

The range of physical addresses used for fake page allocation shall be
registered with vm_phys_fictitious_reg_range() interface to allow the
PHYS_TO_VM_PAGE() to work in pmap.

Most likely, only i386 and amd64 pmaps can handle fictitious managed
pages right now.

Sponsored by: The FreeBSD Foundation
Reviewed by: alc
MFC after: 1 month

12 years agomdoc(7) markup cleanup.
gjb [Sat, 12 May 2012 20:46:19 +0000 (20:46 +0000)]
mdoc(7) markup cleanup.

12 years agoAdd a facility to register a range of physical addresses to be used
kib [Sat, 12 May 2012 20:42:56 +0000 (20:42 +0000)]
Add a facility to register a range of physical addresses to be used
for allocation of fictitious pages, for which PHYS_TO_VM_PAGE()
returns proper fictitious vm_page_t. The range should be de-registered
after consumer stopped using it.

De-inline the PHYS_TO_VM_PAGE() since it now carries code to iterate
over registered ranges.

A hash container might be developed instead of range registration
interface, and fake pages could be put automatically into the hash,
were PHYS_TO_VM_PAGE() could look them up later. This should be
considered before the MFC of the commit is done.

Sponsored by: The FreeBSD Foundation
Reviewed by: alc
MFC after: 1 month

12 years agoFix mdoc(7) markup.
gjb [Sat, 12 May 2012 20:41:40 +0000 (20:41 +0000)]
Fix mdoc(7) markup.

12 years ago.. oops, include setting the MTU.
adrian [Sat, 12 May 2012 20:40:13 +0000 (20:40 +0000)]
.. oops, include setting the MTU.

12 years agoDocument what the flood register setting does.
adrian [Sat, 12 May 2012 20:39:41 +0000 (20:39 +0000)]
Document what the flood register setting does.

12 years agoAdd the remaining scripts from the DTraceToolkit, version 0.99, to the
gnn [Sat, 12 May 2012 20:38:18 +0000 (20:38 +0000)]
Add the remaining scripts from the DTraceToolkit, version 0.99, to the
vendor tree.

http://www.brendangregg.com/dtrace.html#DTraceToolkit

12 years ago* Add in the AR7240 global control field for setting the maximum frame
adrian [Sat, 12 May 2012 20:36:12 +0000 (20:36 +0000)]
* Add in the AR7240 global control field for setting the maximum frame
  size for the AR7240.

* Include SM/MS macros, thanks to ath_hal(4).

* This field is for normal packets, VLAN and other headers are added to
  this by the switch device.

* Set the MTU to 1536, to match what is done in Linux.  Use the SM
  macro to write this field.

Obtained from: Atheros (AR7240 datasheet), Linux OpenWRT (MTU default)

12 years agoSplit the code from vm_page_getfake() to initialize the fake page struct
kib [Sat, 12 May 2012 20:34:22 +0000 (20:34 +0000)]
Split the code from vm_page_getfake() to initialize the fake page struct
vm_page into new interface vm_page_initfake(). Handle the case of fake
page re-initialization with changed memattr.

Sponsored by: The FreeBSD Foundation
Reviewed by: alc
MFC after: 1 month

12 years agoAssert that the page passed to vm_page_putfake() is unmanaged.
kib [Sat, 12 May 2012 20:27:51 +0000 (20:27 +0000)]
Assert that the page passed to vm_page_putfake() is unmanaged.

Sponsored by: The FreeBSD Foundation
Reviewed by: alc
MFC after: 1 month

12 years agosparc64/zfs boot: take advantage of new libzfsboot capabilities
avg [Sat, 12 May 2012 20:27:33 +0000 (20:27 +0000)]
sparc64/zfs boot: take advantage of new libzfsboot capabilities

Also drop the now unneeded compatibility shims.

Tested by: marius
MFC after: 1 month

12 years agoMinor mdoc nits.
joel [Sat, 12 May 2012 20:27:13 +0000 (20:27 +0000)]
Minor mdoc nits.

12 years agoAssert that fictitious or unmanaged pages do not appear on
kib [Sat, 12 May 2012 20:24:46 +0000 (20:24 +0000)]
Assert that fictitious or unmanaged pages do not appear on
active/inactive lists.

Sponsored by: The FreeBSD Foundation
Reviewed by: alc
MFC after: 1 month

12 years agozfs boot code: use %j and uintmax_t instead %ll and uint64_t in printfs
avg [Sat, 12 May 2012 20:23:30 +0000 (20:23 +0000)]
zfs boot code: use %j and uintmax_t instead %ll and uint64_t in printfs

This is to silence warnings that result from different definitions of
uint64_t on different architectures, specifically i386 and sparc64.

MFC after: 1 month

12 years agoProvide in the association change notification the received ABORT chunk
tuexen [Sat, 12 May 2012 20:11:35 +0000 (20:11 +0000)]
Provide in the association change notification the received ABORT chunk
if case of SCTP_COMM_LOST or SCTP_CANT_STR_ASSOC as required by RFC 6458.

MFC after: 3 days

12 years agoCommit the change forgotten in r235356.
kib [Sat, 12 May 2012 20:10:18 +0000 (20:10 +0000)]
Commit the change forgotten in r235356.

Sponsored by: The FreeBSD Foundation
Reviewed by: alc
MFC after: 1 month

12 years agoSet formatting width and offset in DB_COMMAND(9).
gjb [Sat, 12 May 2012 20:08:16 +0000 (20:08 +0000)]
Set formatting width and offset in DB_COMMAND(9).

12 years agoFix an mdoc(7) nit.
gjb [Sat, 12 May 2012 20:06:17 +0000 (20:06 +0000)]
Fix an mdoc(7) nit.

12 years agoMake the vm_page_array_size long. Remove redundand zero initialization
kib [Sat, 12 May 2012 20:03:06 +0000 (20:03 +0000)]
Make the vm_page_array_size long. Remove redundand zero initialization
for vm_page_array_size and nearby variablees.

Sponsored by: The FreeBSD Foundation
Reviewed by: alc
MFC after: 1 month

12 years agoRemove end of line whitespace.
joel [Sat, 12 May 2012 19:59:37 +0000 (19:59 +0000)]
Remove end of line whitespace.

12 years agoMinor mdoc nit.
joel [Sat, 12 May 2012 19:53:44 +0000 (19:53 +0000)]
Minor mdoc nit.

12 years agoRemove duplicate config bits.
adrian [Sat, 12 May 2012 19:43:22 +0000 (19:43 +0000)]
Remove duplicate config bits.

Submitted by: juli

12 years agoAdd glue/support for the SAM9XE512-based Ethernut 5 boards. Currently,
marius [Sat, 12 May 2012 18:11:26 +0000 (18:11 +0000)]
Add glue/support for the SAM9XE512-based Ethernut 5 boards. Currently,
all integrated and on-board peripherals except the DataFlash (at91_spi(4)
and at45d(4) still need to be unb0rken) and NAND Flash (missing NAND
framework) are working.
AFAICT, this makes FreeBSD the first operating system besides Nut/OS
supporting Ethernut 5 out of tree.

12 years agoDocuement requirement to alter some sysctls when using igb(4) with
gjb [Sat, 12 May 2012 18:10:27 +0000 (18:10 +0000)]
Docuement requirement to alter some sysctls when using igb(4) with
jumbo frames.

PR: 153738
Submitted by: Tom Judge (tom!tomjudge.com)
Discussed with: jfv (in part, a long time ago...)
MFC after: 1 week

12 years agoRevert this - I disabled it whilst hwpmc is/was broken.
adrian [Sat, 12 May 2012 17:42:22 +0000 (17:42 +0000)]
Revert this - I disabled it whilst hwpmc is/was broken.

12 years agoFlip on WN1043ND switch PHY support.
adrian [Sat, 12 May 2012 17:41:42 +0000 (17:41 +0000)]
Flip on WN1043ND switch PHY support.

* Add the i2c bitbang bus;
* Add the etherswitch/rtl8366rb drivers;
* "fix" the USB GPIO configuration so USB actually works.

Submitted by: Stefan Bethke <stb@lassitu.de>

12 years agomdoc: use Po and Pc macros instead of parens. Also avoid starting a line
joel [Sat, 12 May 2012 17:14:55 +0000 (17:14 +0000)]
mdoc: use Po and Pc macros instead of parens. Also avoid starting a line
with Ns.

12 years agoadd a zfs spa_t change missed in r235329
avg [Sat, 12 May 2012 16:36:54 +0000 (16:36 +0000)]
add a zfs spa_t change missed in r235329

sys/cddl/boot is obviously not under sys/boot...

Pointed out by: Jan Beich <jbeich@tormail.org>
Pointyhat to: avg
MFC after: 1 month

12 years agoRegenerate src.conf(5) for mdoc(7) and typo corrections.
gjb [Sat, 12 May 2012 16:12:36 +0000 (16:12 +0000)]
Regenerate src.conf(5) for mdoc(7) and typo corrections.

PR: 167804
Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org)
MFC after: 3 days

12 years agoRemove tab from kernel configuration option. This is consistent with the rest
joel [Sat, 12 May 2012 16:08:05 +0000 (16:08 +0000)]
Remove tab from kernel configuration option. This is consistent with the rest
of our manual pages.

12 years agoAdd opt_wlan.h includes, so IEEE80211_* configuration changes are
adrian [Sat, 12 May 2012 15:11:53 +0000 (15:11 +0000)]
Add opt_wlan.h includes, so IEEE80211_* configuration changes are
correctly picked up.

Noticed by: Justin Hibbits, whilst debugging @ BSDCan

12 years agoGeneral mdoc(7) and typo fixes.
gjb [Sat, 12 May 2012 15:08:22 +0000 (15:08 +0000)]
General mdoc(7) and typo fixes.

PR: 167804
Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org)
MFC after: 3 days

12 years agomdoc: remove redundant paragraph macro.
joel [Sat, 12 May 2012 14:46:49 +0000 (14:46 +0000)]
mdoc: remove redundant paragraph macro.

12 years agomdoc: remove redundant Pp and end a display block with Ed.
joel [Sat, 12 May 2012 14:43:52 +0000 (14:43 +0000)]
mdoc: remove redundant Pp and end a display block with Ed.

12 years agoConvert the if_vr(4) driver model to the interrupt filter model and use
rpaulo [Sat, 12 May 2012 14:37:25 +0000 (14:37 +0000)]
Convert the if_vr(4) driver model to the interrupt filter model and use
a taskqueue.

This gives a 16% performance improvement under high load on slow systems,
especially when vr shares an interrupt with another device, which is
common with the Alix x86 boards.
Contrary to the other devices, I left the interrupt processing for loop
in because there was no significant difference in performance and this
should avoid enqueuing more taskqueues unnecessarily.
We also decided to move the vr_start_locked() call inside the for loop
because we found out that it helps performance since TCP ACKs now have a
chance to go out quicker.

Reviewed by: yongari (older version, same idea)
Discussed with: yongari, jhb

12 years agoAdd two functions xpt_batch_start() and xpt_batch_done() to the CAM SIM KPI
mav [Sat, 12 May 2012 13:55:36 +0000 (13:55 +0000)]
Add two functions xpt_batch_start() and xpt_batch_done() to the CAM SIM KPI
to allow drivers to handle request completion directly without passing
them to the CAM SWI thread removing extra context switch.
Modify all ATA/SATA drivers to use them.

Reviewed by: gibbs, ken
MFC after: 2 weeks