]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoMigrate CLRDMASK to be a per-node flag, rather than a per-TID flag.
adrian [Mon, 21 Jan 2013 04:06:04 +0000 (04:06 +0000)]
Migrate CLRDMASK to be a per-node flag, rather than a per-TID flag.

This is easily possible now that the TX is protected by a single
lock, rather than a per-TXQ (and thus per-TID) lock.

Only set CLRDMASK if none of the destinations are filtered.
This likely will need some tuning when it comes time to do UASPD/PS-POLL
TX, however at that point it should be manually set anyway.

Tested:

* AR9280, STA mode

TODO:

* More thorough testing in AP mode
* test other chipsets, just to be safe/sure.

11 years agoRemove some debugging code that snuck in.
nwhitehorn [Mon, 21 Jan 2013 02:47:14 +0000 (02:47 +0000)]
Remove some debugging code that snuck in.

11 years agoMore automated install support: if a script exists at /etc/installerconfig,
nwhitehorn [Mon, 21 Jan 2013 01:55:54 +0000 (01:55 +0000)]
More automated install support: if a script exists at /etc/installerconfig,
point the installer there and then reboot without asking questions. This
design subject to future change.

11 years agoAdd command-line support to kgdb to allow the baudrate to be set.
adrian [Mon, 21 Jan 2013 01:46:36 +0000 (01:46 +0000)]
Add command-line support to kgdb to allow the baudrate to be set.

This allows a remote session to be specified with '-r' as well as a
non-default baudrate setting using '-b'.

TODO: add to the kgdb manpage.

MFC after: 2 weeks

11 years agoPostpone vmm module initialization until after SMP is initialized - particularly
neel [Mon, 21 Jan 2013 01:33:10 +0000 (01:33 +0000)]
Postpone vmm module initialization until after SMP is initialized - particularly
that 'smp_started != 0'.

This is required because the VT-x initialization calls smp_rendezvous()
to set the CR4_VMXE bit on all the cpus.

With this change we can preload vmm.ko from the loader.

Reported by: alfred@, sbruno@
Obtained from: NetApp

11 years agoUse correct size for AM335x CPSW memory window.
kientzle [Mon, 21 Jan 2013 01:02:49 +0000 (01:02 +0000)]
Use correct size for AM335x CPSW memory window.

11 years agoAdd a scripting frontend. Documentation and release(7) support coming later.
nwhitehorn [Mon, 21 Jan 2013 01:01:32 +0000 (01:01 +0000)]
Add a scripting frontend. Documentation and release(7) support coming later.

Scripts take the form:

------------------------------------
PARTITIONS=ada0
DISTRIBUTIONS="kernel.txz base.txz ports.txz"

#!/bin/sh
echo "sshd_enable=YES" >> /etc/rc.conf
pkg add puppet
echo "System setup complete"
------------------------------------

The second part of the script (beginning with #!) is run in the newly
installed system after the installation onto ada0 (with default partitioning,
see scriptedpart for more complicated scenarios) is complete.

11 years agoIf no partition configuration is specified in {}, use the automatic setup
nwhitehorn [Sun, 20 Jan 2013 23:04:21 +0000 (23:04 +0000)]
If no partition configuration is specified in {}, use the automatic setup
the interactive installer uses.

Example: bsdinstall scriptedpart ada0
Result: Use entire disk for a FreeBSD system with default partition layout

11 years agoAdd a simple scripted partitioner. Documentation and more scripting support
nwhitehorn [Sun, 20 Jan 2013 22:25:58 +0000 (22:25 +0000)]
Add a simple scripted partitioner. Documentation and more scripting support
will come soon. This lets the install process have a line like:

bsdinstall scriptedpart 'ada0 GPT {1.5G freebsd-ufs /, 10G freebsd-swap,
    auto freebsd-ufs /usr}'

to set up a system with a 1.5GB /, some swap space, and a /usr using the
rest of ada0.

MFC after: 1 month

11 years agoChange the $ENV example to use .shrc instead of .shinit. This is consistent
joel [Sun, 20 Jan 2013 22:25:25 +0000 (22:25 +0000)]
Change the $ENV example to use .shrc instead of .shinit. This is consistent
with what we use in /usr/share/skel/dot.profile.

Discussed with: jilles

11 years agosh: Move some stackmarks to fix high memory usage in some loops.
jilles [Sun, 20 Jan 2013 21:28:05 +0000 (21:28 +0000)]
sh: Move some stackmarks to fix high memory usage in some loops.

If a loop contained certain commands (such as redirected compound commands),
the temporary memory for the redirection was not freed between iterations of
the loop but only after the loop.

Put a stackmark in evaltree(), freeing memory whenever a node has been
evaluated. Some other stackmarks are then redundant; remove them.

Example:
  while :; do { :; } </dev/null; done

11 years agozfs/sparc64 boot: fix booting after r242230
avg [Sun, 20 Jan 2013 19:55:49 +0000 (19:55 +0000)]
zfs/sparc64 boot: fix booting after r242230

arch_zfs_probe method is supposed to only probe for ZFS vdevs, but it can
not expect that ZFS data is in a ready state yet.
So, move some code from sparc64_zfs_probe to main to meet the constraints.

Reported by: Chris Ross <cross+freebsd@distal.com>
Tested by: Chris Ross <cross+freebsd@distal.com>
MFC after: 4 days

11 years ago- Force inetd to have listen queue size to be set to the value of
zont [Sun, 20 Jan 2013 19:44:33 +0000 (19:44 +0000)]
- Force inetd to have listen queue size to be set to the value of
  kern.ipc.somaxconn instead of hardcoded value 64.

Submitted by: Andrey Ignatov <rdna@rdna.ru>
MFC after: 2 weeks

11 years agoBackward compatibility fix: treat cmds loaded as a script as nonInteractive
dteske [Sun, 20 Jan 2013 17:48:56 +0000 (17:48 +0000)]
Backward compatibility fix: treat cmds loaded as a script as nonInteractive

11 years agosh: Remove mkinit's initialization routine.
jilles [Sun, 20 Jan 2013 12:44:50 +0000 (12:44 +0000)]
sh: Remove mkinit's initialization routine.

Instead, call the only init function left directly from main().

11 years ago- Avoid unnecessary strdup()
gabor [Sun, 20 Jan 2013 11:58:49 +0000 (11:58 +0000)]
- Avoid unnecessary strdup()

Submitted by: ache
MFC after: 5 days

11 years agoFix minor nit in usage output.
joel [Sun, 20 Jan 2013 08:18:56 +0000 (08:18 +0000)]
Fix minor nit in usage output.

Reviewed by: neel

11 years agoLink the bhyve(4) man page to the build so the man page is actually installed.
neel [Sun, 20 Jan 2013 04:04:37 +0000 (04:04 +0000)]
Link the bhyve(4) man page to the build so the man page is actually installed.

Pointed out by: wxs@

11 years agoMake "Finish" the default choice in the partition editor. This lets you
nwhitehorn [Sun, 20 Jan 2013 03:55:08 +0000 (03:55 +0000)]
Make "Finish" the default choice in the partition editor. This lets you
successfully complete an installation with all defaults by pressing
Enter repeatedly until your machine reboots.

MFC after: 3 weeks

11 years agoUse <vmname> in a consistent manner in usage messages output by 'bhyve',
neel [Sun, 20 Jan 2013 03:47:13 +0000 (03:47 +0000)]
Use <vmname> in a consistent manner in usage messages output by 'bhyve',
'bhyveload' and 'bhyvectl'.

Pointed out by: joel@

11 years agoAdd svn properties to the recently merged bhyve source files.
neel [Sun, 20 Jan 2013 03:42:49 +0000 (03:42 +0000)]
Add svn properties to the recently merged bhyve source files.

The pre-commit hook will not allow any commits without the svn:keywords
property in head.

11 years agoLink against compiler-rt to pull in the required __aeabi_* functions
andrew [Sat, 19 Jan 2013 22:12:57 +0000 (22:12 +0000)]
Link against compiler-rt to pull in the required __aeabi_* functions

11 years agosh: Replace an mkinit use with an initialization.
jilles [Sat, 19 Jan 2013 22:12:08 +0000 (22:12 +0000)]
sh: Replace an mkinit use with an initialization.

11 years agoWhen DDB is enabled and we are building for the ARM EABI include the unwind
andrew [Sat, 19 Jan 2013 22:08:16 +0000 (22:08 +0000)]
When DDB is enabled and we are building for the ARM EABI include the unwind
tables in the kernel.

11 years agoUse correct GPIO interrupt lines.
kientzle [Sat, 19 Jan 2013 17:22:12 +0000 (17:22 +0000)]
Use correct GPIO interrupt lines.

11 years agoClarify the error messages for unrecognized pins and muxtypes.
kientzle [Sat, 19 Jan 2013 17:12:23 +0000 (17:12 +0000)]
Clarify the error messages for unrecognized pins and muxtypes.

11 years agoRemove EOL whitespace.
joel [Sat, 19 Jan 2013 07:07:05 +0000 (07:07 +0000)]
Remove EOL whitespace.

11 years agoMinor mdoc fixes.
joel [Sat, 19 Jan 2013 07:04:30 +0000 (07:04 +0000)]
Minor mdoc fixes.

11 years agoAdd the required __aeabi_* functions to libc.
andrew [Sat, 19 Jan 2013 05:33:55 +0000 (05:33 +0000)]
Add the required __aeabi_* functions to libc.

The floating point functions are here rather than compiler-rt because the
libc softfloat code allows us to set the rounding mode.

11 years agoWhen building for ARM EABI link against libgcc for the __aeabi_* functions.
andrew [Sat, 19 Jan 2013 04:34:33 +0000 (04:34 +0000)]
When building for ARM EABI link against libgcc for the __aeabi_* functions.

11 years agoMerge projects/bhyve to head.
neel [Sat, 19 Jan 2013 04:18:52 +0000 (04:18 +0000)]
Merge projects/bhyve to head.

'bhyve' was developed by grehan@ and myself at NetApp (thanks!).

Special thanks to Peter Snyder, Joe Caradonna and Michael Dexter for their
support and encouragement.

Obtained from: NetApp

11 years agoUse the compiler-rt version __{u,}divsi3 and __{u,}modsi3 on ARM EABI
andrew [Sat, 19 Jan 2013 04:11:45 +0000 (04:11 +0000)]
Use the compiler-rt version __{u,}divsi3 and __{u,}modsi3 on ARM EABI

11 years agoUpdate the syscall calling convention for ARM EABI. We store the syscall
andrew [Sat, 19 Jan 2013 04:03:18 +0000 (04:03 +0000)]
Update the syscall calling convention for ARM EABI. We store the syscall
in r7 and use ip to store the old version of r7 as it is not guaranteed to
be kept when calling a subroutine. The kernel will preserve the register
across system calls.

11 years agoThere should have been a tab after SRCS+=
andrew [Sat, 19 Jan 2013 03:47:18 +0000 (03:47 +0000)]
There should have been a tab after SRCS+=

11 years agonewfs_msdos: cosmetical cleanups
pfg [Sat, 19 Jan 2013 03:34:02 +0000 (03:34 +0000)]
newfs_msdos: cosmetical cleanups

- Simplify diagnostic messages.
- Adopt lowercase first letters to make the messages
  more canonical.

PR: bin/175404
Submitted by: Christoph Mallon
Reviewed by: bde
MFC after: 3 days

11 years agoDo not pretend to have autosense data when no such data is available.
kan [Sat, 19 Jan 2013 03:19:39 +0000 (03:19 +0000)]
Do not pretend to have autosense data when no such data is available.

Make umass return an error code if SCSI sense retrieval request
has failed. Make sure scsi_error_action honors SF_NO_RETRY and
SF_NO_RECOVERY in all cases, even if it cannot parse sense bytes.

Reviewed by: hselasky (umass), scottl (cam)

11 years agoFor ARM EABI we only need a subset of the quad functions, the rest are
andrew [Sat, 19 Jan 2013 02:33:57 +0000 (02:33 +0000)]
For ARM EABI we only need a subset of the quad functions, the rest are
provided by libgcc.

11 years agoAdd the __aeabi_*divmod functions to the compiler-rt build
andrew [Sat, 19 Jan 2013 02:28:44 +0000 (02:28 +0000)]
Add the __aeabi_*divmod functions to the compiler-rt build

11 years agoDon't use the pcs attribute on compilers that don't support it. We can
andrew [Sat, 19 Jan 2013 02:24:14 +0000 (02:24 +0000)]
Don't use the pcs attribute on compilers that don't support it. We can
revert this when we stop supporting old versions of gcc.

11 years agoAdd a newline at the end of the file to stop gcc from complaining
andrew [Sat, 19 Jan 2013 02:22:01 +0000 (02:22 +0000)]
Add a newline at the end of the file to stop gcc from complaining

11 years agoFix build with SMP disabled.`
jhb [Sat, 19 Jan 2013 01:18:22 +0000 (01:18 +0000)]
Fix build with SMP disabled.`

Reported by: bf

11 years agoEliminate the need for an intermediate array of indices into the arrays of
ian [Sat, 19 Jan 2013 00:50:12 +0000 (00:50 +0000)]
Eliminate the need for an intermediate array of indices into the arrays of
interrupt counts and names, by making the names into an array of fixed-length
strings that can be directly indexed.  This eliminates extra memory accesses
on every interrupt to increment the counts.

As a side effect, it also fixes a bug that would corrupt the names data
if a name was longer than MAXCOMLEN, which led to incorrect vmstat -i output.

Approved by: cognet (mentor)

11 years agoWork around build breakage with GCC 4.2.
jkim [Sat, 19 Jan 2013 00:37:17 +0000 (00:37 +0000)]
Work around build breakage with GCC 4.2.

11 years ago- Move 'showthreads' check out of fmt.c.
jhb [Sat, 19 Jan 2013 00:21:55 +0000 (00:21 +0000)]
- Move 'showthreads' check out of fmt.c.
- Update shadow copy of fmt_argv() prototype in w.c and fix calls for
  additional parameter.

11 years agoSet showthread = 0 for w(1).
delphij [Fri, 18 Jan 2013 23:54:27 +0000 (23:54 +0000)]
Set showthread = 0 for w(1).

X-MFC: together with r245610

11 years agolibthr: Always use the threaded rtld lock implementation.
jilles [Fri, 18 Jan 2013 23:08:40 +0000 (23:08 +0000)]
libthr: Always use the threaded rtld lock implementation.

The threaded rtld lock implementation is faster even in the single-threaded
case because it postpones signal handlers via THR_CRITICAL_ENTER and
THR_CRITICAL_LEAVE instead of calling sigprocmask(2).

As a result, exception handling becomes faster in single-threaded
applications linked with libthr.

Reviewed by: kib

11 years agoImport compiler-rt r172839.
andrew [Fri, 18 Jan 2013 22:52:59 +0000 (22:52 +0000)]
Import compiler-rt r172839.

This brings in __aeabi_lcmp and __aeabi_ulcmp. It also fixes the spelling
of __aeabi_f2lz. Both changes originated on the arm_eabi project branch.

11 years agoRemove a harmless (somewhat to my surprise) bogon that crept into r245440.
brooks [Fri, 18 Jan 2013 22:17:21 +0000 (22:17 +0000)]
Remove a harmless (somewhat to my surprise) bogon that crept into r245440.

11 years agoIntroduce six new options from NetBSD:
brooks [Fri, 18 Jan 2013 20:57:50 +0000 (20:57 +0000)]
Introduce six new options from NetBSD:
 * -M <metalog>   Log metadata in mtree format.
 * -D <destdir>   Log paths relative to <destdir>.
 * -h <hash>      Log digest of type <hash>.
 * -T <tags>      Specify which mtree tags to log.
 * -l <linkflag>  Create hard or symbolic links (allows logging).
 * -U             Install without root privileges (owner, group, mode,
                  and flags can be logged via -M

NOTE: In the interest of compatibility with NetBSD and because it is the
obvious letter, the nearly useless -M option (disable mmap) has been
repurposed.

Sponsored by: DARPA, AFRL
Obtained from: NetBSD
Reviewed by: bz

11 years agoMake it possible to force async at server side on new NFS server, similar
delphij [Fri, 18 Jan 2013 19:42:08 +0000 (19:42 +0000)]
Make it possible to force async at server side on new NFS server, similar
to the old one's nfs.nfsrv.async.

Please note that by enabling this option (default is disabled), the system
could potentionally have silent data corruption if the server crashes
before write is committed to non-volatile storage, as the client side have
no way to tell if the data is already written.

Submitted by: rmacklem
MFC after: 2 weeks

11 years agoext2fs: Add some DOINGASYNC check to match ffs.
pfg [Fri, 18 Jan 2013 19:11:17 +0000 (19:11 +0000)]
ext2fs: Add some DOINGASYNC check to match ffs.

This is mostly cosmetical.

Reviewed by: bde
MFC after: 3 days

11 years agoUse vfs_timestamp() to set file timestamps rather than invoking
jhb [Fri, 18 Jan 2013 18:43:38 +0000 (18:43 +0000)]
Use vfs_timestamp() to set file timestamps rather than invoking
getmicrotime() or getnanotime() directly in NFS.

Reviewed by: rmacklem, bde
MFC after: 1 week

11 years agoInclude the thread name along with the command name when displaying the
jhb [Fri, 18 Jan 2013 18:24:40 +0000 (18:24 +0000)]
Include the thread name along with the command name when displaying the
command name of a thread from a multi-threaded process that doesn't have
an available argument list (such as kernel processes) and threads display
is enabled via -H.

Reviewed by: alfred, delphij, eric@vangyzen.net
MFC after: 1 week

11 years agoAdd option to make pc-sysinstall optional
eadler [Fri, 18 Jan 2013 15:57:09 +0000 (15:57 +0000)]
Add option to make pc-sysinstall optional

Approved by: cperciva

11 years agoSpelling: exitting -> exiting
alfred [Fri, 18 Jan 2013 02:36:06 +0000 (02:36 +0000)]
Spelling: exitting -> exiting

MFC after: 2 weeks

11 years agoMerge ACPICA 20130117.
jkim [Thu, 17 Jan 2013 23:56:43 +0000 (23:56 +0000)]
Merge ACPICA 20130117.

11 years agoremove the old memory allocator, not useful anymore
luigi [Thu, 17 Jan 2013 23:14:17 +0000 (23:14 +0000)]
remove the old memory allocator, not useful anymore

11 years agoIn r245571, "rm -rf <foo>; ln -s <bar> <foo>" needed to be replaced with
brooks [Thu, 17 Jan 2013 23:05:03 +0000 (23:05 +0000)]
In r245571, "rm -rf <foo>; ln -s <bar> <foo>" needed to be replaced with
"ln -sfh <bar> <foo>" or the links would fail when a valid link to a
directly was in place at <foo>.

Reported by: peter
Tested by: peter
Pointy hat to: brooks

11 years agoadd some definition and driver changes in preparation for
luigi [Thu, 17 Jan 2013 22:14:58 +0000 (22:14 +0000)]
add some definition and driver changes in preparation for
two upcoming features:

semi-transparent mode:
    when a device is opened in this mode, the
    user program will be able to mark slots that must be forwarded
    to the "other" side (i.e. from NIC to host stack, or viceversa),
    and the forwarding will occur automatically at the next netmap syscall.
    This saves the need to open another file descriptor and do
    the forwarding manually.

direct-forwarding mode:
    when operating with a VALE port, the user can specify in the slot
    the actual destination port, overriding the forwarding decision
    made by a lookup of the destination MAC. This can be useful to
    implement packet dispatchers.

No API changes will be introduced.
No new functionality in this patch yet.

11 years agoDon't attempt to use clflush on the local APIC register window. Various
jhb [Thu, 17 Jan 2013 21:32:25 +0000 (21:32 +0000)]
Don't attempt to use clflush on the local APIC register window.  Various
CPUs exhibit bad behavior if this is done (Intel Errata AAJ3, hangs on
Pentium-M, and trashing of the local APIC registers on a VIA C7).  The
local APIC is implicitly mapped UC already via MTRRs, so the clflush isn't
necessary anyway.

MFC after: 2 weeks

11 years agoMove the mbuf memory limit calculations from init_param2() to
andre [Thu, 17 Jan 2013 21:28:31 +0000 (21:28 +0000)]
Move the mbuf memory limit calculations from init_param2() to
tunable_mbinit() where it is next to where it is used later.

Change the sysinit level of tunable_mbinit() from SI_SUB_TUNABLES
to SI_SUB_KMEM after the VM is running.  This allows to use better
methods to determine the effectively available physical and virtual
memory available to the kernel.

Update comments.

In a second step it can be merged into mbuf_init().

11 years agoImplement the zonename token for jailed processes. If
csjp [Thu, 17 Jan 2013 21:02:53 +0000 (21:02 +0000)]
Implement the zonename token for jailed processes.  If
a process has an auditid/preselection masks specified, and
is jailed, include the zonename (jailname) token as a
part of the audit record.

Reviewed by: pjd
MFC after: 2 weeks

11 years agoIn preparation for logging metadata about each filesystem object
brooks [Thu, 17 Jan 2013 20:21:30 +0000 (20:21 +0000)]
In preparation for logging metadata about each filesystem object
refactor the link section of distrib-dirs to alwasy install to a full
path (the link contents remain relative as they should).

Eliminate the use of the "rm -r[f] <foo>; ln -s <bar> <foo>" pattern in
favor of "ln -sf <bar> <foo>".  None of these links could be directories
on a system installed in the last decade.

Sponsored by: DARPA, AFRL
Reviewed by: mtree

11 years agoremove an incorrect comment and debugging code
luigi [Thu, 17 Jan 2013 19:27:12 +0000 (19:27 +0000)]
remove an incorrect comment and debugging code

11 years agoIFC @ r245542
neel [Thu, 17 Jan 2013 19:08:20 +0000 (19:08 +0000)]
IFC @ r245542

11 years agoRemove the unused nfs_curusec().
jhb [Thu, 17 Jan 2013 19:03:24 +0000 (19:03 +0000)]
Remove the unused nfs_curusec().

11 years agocxgbe: Make the for_each macros safer to use by turning them
np [Thu, 17 Jan 2013 18:52:49 +0000 (18:52 +0000)]
cxgbe: Make the for_each macros safer to use by turning them
into a single statement each.

Submitted by: Christoph Mallon <christoph dot mallon at gmx dot de>
MFC after: 1 week

11 years agoRemove a no-longer-used variable after the previous change to use
jhb [Thu, 17 Jan 2013 18:45:20 +0000 (18:45 +0000)]
Remove a no-longer-used variable after the previous change to use
VA_UTIMES_NULL.

Submitted by: bde, rmacklem
MFC after: 1 week

11 years agoRework the mtree portion of etc/Makefile's distrib-dirs target to run
brooks [Thu, 17 Jan 2013 18:32:30 +0000 (18:32 +0000)]
Rework the mtree portion of etc/Makefile's distrib-dirs target to run
mtree in a shell loop so there is only one mtree commandline.  Move the
implementation of LOCAL_MTREE into etc/Makefile.

Sponsored by: DARPA, AFRL
Reviewed by: mtree :)

11 years agoCorrect the distrib-dirs target in the -DDB_FROM_SRC case.
brooks [Thu, 17 Jan 2013 18:26:56 +0000 (18:26 +0000)]
Correct the distrib-dirs target in the -DDB_FROM_SRC case.

11 years agoAdd myself as a committer, and my mentor relationship.
ian [Thu, 17 Jan 2013 18:00:19 +0000 (18:00 +0000)]
Add myself as a committer, and my mentor relationship.

Approved by: cognet (mentor)

11 years agoAdd a new LIBRARIES_ONLY make variable to disable the build and install
brooks [Thu, 17 Jan 2013 17:27:10 +0000 (17:27 +0000)]
Add a new LIBRARIES_ONLY make variable to disable the build and install
of files other than the actual libraries.

Use LIBRARIES_ONLY to supress the inclusion of files in the lib32
distribution that are duplicates of files in base.

Sponsored by: DARPA, AFRL
Reviewed by: emaste

11 years agoAdd extra debugging fields.
adrian [Thu, 17 Jan 2013 17:12:44 +0000 (17:12 +0000)]
Add extra debugging fields.

11 years agoFix hangs (exposed by spectral scan activity) in STA mode when the
adrian [Thu, 17 Jan 2013 16:43:59 +0000 (16:43 +0000)]
Fix hangs (exposed by spectral scan activity) in STA mode when the
chip hangs.

* Always do a reset in ath_bmiss_proc(), regardless of whether the
  hardware is "hung" or not.  Specifically, for spectral scan, there's
  likely a whole bunch of potential hangs that we don't (yet) recognise
  in the HAL.  So to avoid staying RX deaf persisting until the station
  disassociates, just do a no-loss reset.

* Set sc_beacons=1 in STA mode.  During a reset, the beacon programming
  isn't done.  (It's likely I need to set sc_syncbeacons during a hang
  reset, but I digress.)  Thus after a reset, there's no beacon timer
  programming to send a BMISS interrupt if beacons aren't heard ..
  thus if the AP disappears, you won't get notified and you'll have to
  reset your interface.

This hasn't yet fixed all of the hangs that I've seen when debugging
spectral scan, but it's certainly reduced the hang frequency and it
should improve general STA stability in very noisy environments.

Tested:

* AR9280, STA mode, spectral scan off/on

PR: kern/175227

11 years agoAdd a quick work-around if ath_beacon_config() to not die if it's called
adrian [Thu, 17 Jan 2013 16:26:40 +0000 (16:26 +0000)]
Add a quick work-around if ath_beacon_config() to not die if it's called
when an interface is going down.

Right now it's quite possible (but very unlikely!) that ath_reset()
or similar is called, leading to a beacon config call, in parallel with
the last VAP being destroyed.

This likely should be fixed by making sure the bmiss/bstuck/watchdog
taskqueues are canceled whenever the last VAP is destroyed.

11 years ago* Correct KINFO_PROC_SIZE for ARM EABI.
andrew [Thu, 17 Jan 2013 09:52:35 +0000 (09:52 +0000)]
* Correct KINFO_PROC_SIZE for ARM EABI.
* Update the syscall interface to pass in the syscall value in register r7.

11 years agoImplement stack unwinding based on section 9 of the "Exception handling ABI
andrew [Thu, 17 Jan 2013 09:47:56 +0000 (09:47 +0000)]
Implement stack unwinding based on section 9 of the "Exception handling ABI
for the ARM architecture" documentation. The unwind tables are currently
not stored in the kernel but will be added later.

11 years agoAdd the required __aeabi_* functions the kernel uses when built for ARM EABI
andrew [Thu, 17 Jan 2013 09:37:42 +0000 (09:37 +0000)]
Add the required __aeabi_* functions the kernel uses when built for ARM EABI

11 years agoRegen after adding WITH_OPENSSH_NONE_CIPHER in r245527.
bz [Thu, 17 Jan 2013 09:34:00 +0000 (09:34 +0000)]
Regen after adding WITH_OPENSSH_NONE_CIPHER in r245527.

PR: bin/163095
MFC after: 10 days

11 years agoIFC @ r245509
neel [Thu, 17 Jan 2013 07:04:37 +0000 (07:04 +0000)]
IFC @ r245509

11 years agoAdd compiler support for the ARM EABI.
andrew [Thu, 17 Jan 2013 05:56:28 +0000 (05:56 +0000)]
Add compiler support for the ARM EABI.

ARM EABI support is disabled by default and can be enabled by setting
WITH_ARM_EABI when building, however only the kernel-toolchain target will
work with this flag until the rest of the support is added.

11 years agoConvert to Python 3
eadler [Thu, 17 Jan 2013 04:20:53 +0000 (04:20 +0000)]
Convert to Python 3

Approved by: cperciva

11 years agoRemove useless variable 'Pflag':
eadler [Thu, 17 Jan 2013 04:20:31 +0000 (04:20 +0000)]
Remove useless variable 'Pflag':
-P is an alternative to -H and -L, and it is implemented using the Hflag and Lflag variables.

Approved by: cperciva
MFC after: 3 days

11 years ago - Fix rebuild position broken at r245522.
mav [Thu, 17 Jan 2013 03:27:08 +0000 (03:27 +0000)]
 - Fix rebuild position broken at r245522.
 - Identify one more metadata field.

11 years agoAdd a src.conf(5) option to allow users to compile in the "NONE cipher",
bz [Thu, 17 Jan 2013 01:51:04 +0000 (01:51 +0000)]
Add a src.conf(5) option to allow users to compile in the "NONE cipher",
which, only after authentication, disables crypto, and only for sessions
without a terminal.

Submitted by: Jeremy Chadwick (freebsd jdc.parodius.com)
PR: bin/163095
MFC after: 10 days

11 years agoAdd a conditional sleep 1 in case we add any IPv6 addresses to interfaces.
bz [Thu, 17 Jan 2013 01:27:39 +0000 (01:27 +0000)]
Add a conditional sleep 1 in case we add any IPv6 addresses to interfaces.
Do this per jail started, not per address.  This will allow DAD to complete
and services to properly start.   Before we have seen problems with services
trying to start before the IPv6 address was available to use and thus
erroring and failing to start.

MFC after: 3 days

11 years agoFor Promise/AMD metadata add support for disks with capacity above 2TiB
mav [Thu, 17 Jan 2013 00:50:25 +0000 (00:50 +0000)]
For Promise/AMD metadata add support for disks with capacity above 2TiB
and for volumes with sector size above 512 bytes.

11 years agoAllow "ivlan" (inner VLAN) to be used as an alias for "vlan" when
np [Thu, 17 Jan 2013 00:21:45 +0000 (00:21 +0000)]
Allow "ivlan" (inner VLAN) to be used as an alias for "vlan" when
specifying match criteria.  "vlan" continues to be valid here, and it
continues to be valid when deleting, rewriting, inserting, or stacking
an 802.1q tag to a matching packet.

MFC after: 3 days

11 years agoRecalculate volume size only for real CONCATs. For SINGLE trust volume
mav [Thu, 17 Jan 2013 00:09:50 +0000 (00:09 +0000)]
Recalculate volume size only for real CONCATs.  For SINGLE trust volume
size given by metadata, as it should be correct and in some cases can be
smaller then subdisk size.

11 years agocxgbe: Do a more thorough job in the CLEAR_STATS ioctl.
np [Wed, 16 Jan 2013 23:49:55 +0000 (23:49 +0000)]
cxgbe:  Do a more thorough job in the CLEAR_STATS ioctl.

MFC after: 3 days

11 years agocxgbe: Fix the for_each_foo macros -- the last argument should not share
np [Wed, 16 Jan 2013 23:48:55 +0000 (23:48 +0000)]
cxgbe: Fix the for_each_foo macros -- the last argument should not share
its name with any member of struct sge.

MFC after: 3 days

11 years agoRemove support for installing 1aout section manpages.
brooks [Wed, 16 Jan 2013 23:21:04 +0000 (23:21 +0000)]
Remove support for installing 1aout section manpages.

11 years agoRemove default support for 1aout section manpages. There haven't been
brooks [Wed, 16 Jan 2013 23:20:24 +0000 (23:20 +0000)]
Remove default support for 1aout section manpages.  There haven't been
any since at least July 2002.

11 years agoAccording to the notes in ObsoleteFiles.inc we last installed section
brooks [Wed, 16 Jan 2013 23:16:41 +0000 (23:16 +0000)]
According to the notes in ObsoleteFiles.inc we last installed section
1aout manpages in 2002.  Stop making the directories and links to them.

11 years agoMFV r245510:
delphij [Wed, 16 Jan 2013 22:59:50 +0000 (22:59 +0000)]
MFV r245510:

improve the comment in txg.c

Obtained from: Illumos (13910:f3454e0a097c)
MFC after: 2 weeks

11 years agoUse the VA_UTIMES_NULL flag to detect when NULL was passed to utimes()
jhb [Wed, 16 Jan 2013 21:52:31 +0000 (21:52 +0000)]
Use the VA_UTIMES_NULL flag to detect when NULL was passed to utimes()
instead of comparing the desired time against the current time as a
heuristic.

Reviewed by: rmacklem
MFC after: 1 week

11 years agoAdd myself and my mentor relationship.
carl [Wed, 16 Jan 2013 19:05:49 +0000 (19:05 +0000)]
Add myself and my mentor relationship.

Approved by: jimharris (mentor)

11 years agoUse a different way to silence clang analyzer as done in r245494 by
delphij [Wed, 16 Jan 2013 18:15:25 +0000 (18:15 +0000)]
Use a different way to silence clang analyzer as done in r245494 by
explicitly telling the compiler that we are on the exit route.

X-MFC: together with r245494

11 years agoFix style bugs
ganbold [Wed, 16 Jan 2013 08:04:55 +0000 (08:04 +0000)]
Fix style bugs
Use defined constant instead of variable for reg_shift
Change u_int32_t to uint32_t

Approved by: gonzo
Suggested by: bde, wkoszek

11 years agoRemove the filtering of the acceptable mount options for nullfs, added
kib [Wed, 16 Jan 2013 05:32:49 +0000 (05:32 +0000)]
Remove the filtering of the acceptable mount options for nullfs, added
in r245004.  Although the report was for noatime option which is
non-functional for the nullfs, other standard options like nosuid or
noexec are useful with it.

Reported by: Dewayne Geraghty <dewayne.geraghty@heuristicsystems.com.au>
MFC after: 3 days