freebsd with flexible iflib nic queues
Go to file
Adrian Chadd c37904e8ba Reshuffle all of the DDR flush operations into a single switch/mux,
and start teaching subsystems about it.

The Atheros MIPS platforms don't guarantee any kind of FIFO consistency
with interrupts in hardware.  So software needs to do a flush when it
receives an interrupt and before it calls the interrupt handler.

There are new ones for the QCA934x and QCA955x, so do a few things:

* Get rid of the individual ones (for ethernet and IP2);
* Create a mux and enum listing all the variations on DDR flushes;
* replace the uses of IP2 with the relevant one (which will typically
  be "PCI" here);
* call the USB DDR flush before calling the real USB interrupt handlers;
* call the ethernet one upon receiving an interrupt that's for us,
  rather than never calling it during operation.

Tested:

* QCA9558 (TP-Link archer c7 v2)
* AR9331 (Carambola 2)

TODO:

* PCI, USB, ethernet, etc need to do a double-check to see if the
  interrupt was truely for them before doing the DDR.  For now I
  prefer "correct" over "fast".
2015-07-04 03:05:57 +00:00
bin mv: Improve message when moving two or more files to non-directory. 2015-06-28 21:36:00 +00:00
cddl First cut of DTrace for AArch64. 2015-07-01 15:51:11 +00:00
contrib Let the nv.h and dnv.h includes be only in sys directory. 2015-07-02 21:58:10 +00:00
crypto Merge OpenSSL 1.0.1o. 2015-06-12 16:48:26 +00:00
etc Updated random(4) boot/shutdown scripting. 2015-06-30 17:09:41 +00:00
games Fix a typo. 2015-07-02 11:46:35 +00:00
gnu Use single instance of the identical INKERNEL() and PMC_IN_KERNEL() 2015-07-02 14:37:21 +00:00
include new depends 2015-06-16 23:37:19 +00:00
kerberos5 Fix a typo introduced in r262209. 2015-06-18 21:18:43 +00:00
lib New AES modes for IPSec, user space components. 2015-07-03 20:09:14 +00:00
libexec Let the nv.h and dnv.h includes be only in sys directory. 2015-07-02 21:58:10 +00:00
release Revert r285018, r285019, r285076, r285078, r285082. 2015-07-04 00:01:41 +00:00
rescue Add META_MODE support. 2015-06-13 19:20:56 +00:00
sbin Update the date on the manual page. 2015-07-03 20:42:31 +00:00
secure Add compatibility with $2y$ bcrypt hashes 2015-06-16 23:57:29 +00:00
share Add support for TEST_METADATA 2015-07-04 02:37:36 +00:00
sys Reshuffle all of the DDR flush operations into a single switch/mux, 2015-07-04 03:05:57 +00:00
targets Updated depends 2015-07-03 06:11:54 +00:00
tests Make cleanup routines idempotent 2015-07-04 02:22:26 +00:00
tools Implement busdma_md_unload() and busdma_sync(). 2015-07-03 05:47:56 +00:00
usr.bin New AES modes for IPSec, user space components. 2015-07-03 20:09:14 +00:00
usr.sbin Remove OpenSSL dependency from iscsid(8) and ctld(8). 2015-07-03 10:08:10 +00:00
.arcconfig Add repository.callsign, to help arcanist figure out what repo it's 2015-07-02 22:23:52 +00:00
.arclint phabricator related changes: 2015-04-20 20:33:22 +00:00
COPYRIGHT Bump copyright year. 2014-12-31 10:00:43 +00:00
LOCKS
MAINTAINERS Remove cokane@ from MAINTAINERS for 3dfx(4)/tdfx(4) because their email 2014-11-25 05:25:12 +00:00
Makefile Fix generation of src.conf.5 2015-07-03 06:10:09 +00:00
Makefile.inc1 First cut of DTrace for AArch64. 2015-07-01 15:51:11 +00:00
ObsoleteFiles.inc Let the nv.h and dnv.h includes be only in sys directory. 2015-07-02 21:58:10 +00:00
README Import OpenSSL 1.0.1o. 2015-06-12 16:33:55 +00:00
UPDATING Huge cleanup of random(4) code. 2015-06-30 17:00:45 +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.  See build(7)
and 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.  See build(7), config(8),
and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
for more information.

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 kernel configuration files reside in the sys/<arch>/conf
sub-directory.  GENERIC is the default configuration used in release builds.
NOTES contains entries and documentation for all possible
devices, not just those commonly used.


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.

tests		Regression tests which can be run by Kyua.  See tests/README
		for additional information.

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