FreeBSD src
Go to file
sos 2d40235b40 Fix the DMA problem that most severely hit on the DS3112a SATA chip
in connection with Marvell based SATA->PATA dongles.

The problem was caused by a combination of things working
together to make it hard to spot...

The ATA driver has always started the ATA command, then build
the SG list for DMA and then finally started the DMA engine.
While this is according to specs, it poses a potential
problem as some controllers apparently do not allow for unlimitted
time between starting the ATA command and starting the DMA engine.

At about the same time as ATAng was committed there were lots
of other changes applied, some of which was locking in parts
that causes the busdma load functions to take significantly
longer to load the SG list.

This pushed the time spent between starting the ATA command and
starting the DMA engine over the hill for some controllers
(especially the Silicon Image DS3112a) and caused what looked
like lost interrupts.

The solution is to get all the SG list work or rather all
busdma related stuff done before we even try to start anything.

This has the nice side effect of seperating busdma out the
way it should be, so the working of the ATA machinery is not
cluttered up with busdma droppings, making the code easier
to read and understand.
2003-10-21 19:20:37 +00:00
bin Handle realloc() failure correctly. 2003-10-16 07:07:20 +00:00
contrib Adding WorkAroundBrokenAAAA seems a necessity even in the submit.mc given 2003-10-19 00:03:13 +00:00
crypto This commit was generated by cvs2svn to compensate for changes in r120952, 2003-10-09 19:52:14 +00:00
etc Modernize examples/usage. Kill 1200/300 baud modem entries and 2003-10-21 19:15:29 +00:00
games Addition. 2003-10-20 21:22:41 +00:00
gnu Detect errors during 'cat' page creation better. This fixes bin/5591. 2003-10-15 00:36:44 +00:00
include Add code to support pthread spin lock. 2003-09-09 06:57:51 +00:00
kerberos5 The header files hdb_asn1.h, hdb_err.h, and kadm5_err.h are generated, 2003-10-10 13:12:35 +00:00
lib Bring the description of st_[cma]time modification conditions a bit 2003-10-20 13:52:22 +00:00
libexec Make the warning message stand out more. 2003-10-11 07:37:55 +00:00
release Fix typo: s/dev_db/dev_mkdb/ 2003-10-20 15:17:44 +00:00
rescue No need to check for the directory, fols are assumed to have all the 2003-09-27 17:27:02 +00:00
sbin Wrap a long line in the previous commit 2003-10-21 18:48:49 +00:00
secure Explicitly add libz and libcrypto to LDADD for any ssh utilities missing 2003-08-19 07:45:03 +00:00
share baud rate and bit rate were horribly confused in this document. Baud 2003-10-21 03:22:49 +00:00
sys Fix the DMA problem that most severely hit on the DS3112a SATA chip 2003-10-21 19:20:37 +00:00
tools Add the "TB ---" prefix to error and warning messages so that early 2003-10-14 20:01:58 +00:00
usr.bin When a numeric field overflows its width, try formatting the number in 2003-10-20 20:13:50 +00:00
usr.sbin Remove clause 3 in the copyrights (according to permission in src/COPYRIGHT) 2003-10-21 08:27:05 +00:00
COPYRIGHT Update to add the July 22, 1999 addendum. 1999-09-05 21:33:47 +00:00
MAINTAINERS I'll maintain dhclient from now on. 2003-08-01 17:54:11 +00:00
Makefile Retired the "most" and "installmost" targets -- they just 2003-10-04 18:53:38 +00:00
Makefile.inc1 Retired the "most" and "installmost" targets -- they just 2003-10-04 18:53:38 +00:00
README KerberosIV de-orbit burn continues. Disconnect from "make world". 2003-03-08 10:01:26 +00:00
UPDATING s/5.0-CURRENT/FreeBSD 5.x/ 2003-10-19 10:24:59 +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
``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.

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.

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