freebsd kernel with SKQ
Go to file
Adrian Chadd 2dc7b713de Work around some rather annoying chip hangs in the AR9331 chip.
If powersave is enabled and there are any transitions to network
or full sleep - even if they're pretty damned brief - eventually
something messes up somewhere and the bus glue between the AR9331
SoC and the AR9331 wifi stops working.  It shows up as stuck DMA
and LOCAL_TIMEOUT interrupts.

Both ath9k and the reference driver does a full chip reset if things
get stuck.

So:

* teach the AR9330 HAL about the force_full_reset option I added a
  couple of years ago;
* if the chip is currently in full-sleep, do a full-reset;
* if TX DMA and/or RX DMA are still enabled (eg, they did get
  stuck during reset) then do a full-reset.

Tested:

* AR9331 SoC, STA mode
2014-08-09 09:12:25 +00:00
bin Correct the problems with the ptrace(2) making the debuggee an orphan. 2014-08-07 05:47:53 +00:00
cddl Quiesce a printf warning from clang, %ul -> %lu 2014-08-08 18:00:23 +00:00
contrib Pull in r214736 from upstream libc++ trunk (by Marshall Clow): 2014-08-08 21:27:33 +00:00
crypto Merge OpenSSL 1.0.1i. 2014-08-07 18:56:10 +00:00
etc Integrate lib/libnv into the build/kyua 2014-08-05 18:41:27 +00:00
games Update the freebsd-tips example to use drill instead of dig since bind is no longer in base 2014-07-25 14:47:44 +00:00
gnu Rework privatelib/internallib 2014-08-06 22:17:26 +00:00
include Add re-entrant versions of the hash functions based on the GNU api. 2014-07-21 15:22:48 +00:00
kerberos5 Rework privatelib/internallib 2014-08-06 22:17:26 +00:00
lib Const-ify character string 2014-08-07 22:14:37 +00:00
libexec Rework privatelib/internallib 2014-08-06 22:17:26 +00:00
release Comment load_chroot_env() and load_target_env() in 2014-08-06 19:06:38 +00:00
rescue In r232153, libarchive 3.0.3 was imported, replacing the archive_hash.h 2014-07-26 15:33:20 +00:00
sbin Mention tmpfs(5) 2014-08-06 14:38:09 +00:00
secure Merge OpenSSL 1.0.1i. 2014-08-07 18:56:10 +00:00
share Make libohash a proper internallib instead of hidding it in m4 2014-08-06 22:46:15 +00:00
sys Work around some rather annoying chip hangs in the AR9331 chip. 2014-08-09 09:12:25 +00:00
tests Fix unintended KBI change from r264905. Add _fib versions of 2014-05-29 21:03:49 +00:00
tools Fix athdecode to actually work. 2014-08-06 18:59:39 +00:00
usr.bin Create a redundant grain directory and table. Previously we were 2014-08-09 04:47:12 +00:00
usr.sbin Support PCI extended config space in bhyve. 2014-08-08 03:49:01 +00:00
.arcconfig Prevent arc commands from overwriting history 2014-06-06 08:05:34 +00:00
.arclint arc: add linting for python files 2014-06-02 00:21:42 +00:00
COPYRIGHT Bump copyright year. 2013-12-31 12:18:10 +00:00
LOCKS Explicitly require Security Officer's approval for kernel PRNG bits. 2013-09-17 14:19:05 +00:00
MAINTAINERS Remove send-pr, the supported interface to submit bugs is now via 2014-06-14 20:36:32 +00:00
Makefile Import OpenSSL 1.0.1i. 2014-08-07 16:49:55 +00:00
Makefile.inc1 Run dtrace in 32-bit mode when compiling 32-bit libraries. 2014-08-08 23:55:22 +00:00
ObsoleteFiles.inc Add more private obsolete files 2014-08-06 23:06:09 +00:00
README Import OpenSSL 1.0.1i. 2014-08-07 16:49:55 +00:00
UPDATING Make mmap() of the console device when using ofwfb work like other supported 2014-07-29 23:11:05 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel, the kernel-modules and the contents of /etc.  The ``world''
target should only be used in cases where the source tree has not
changed from the currently running version.  See:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

The ``buildkernel'' and ``installkernel'' targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process, documentation
for which can be found at:
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
And in the config(8) man page.
Note: If you want to build and install the kernel with the
``buildkernel'' and ``installkernel'' targets, you might need to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/<arch>/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


Source Roadmap:
---------------
bin		System/user commands.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

rescue		Build system for statically linked /rescue utilities.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html