FreeBSD src
Go to file
Pyun YongHyeon 5b610048ec Split common parent DMA tag into ring DMA tag and TX/RX mbuf DMA
tag. All controllers that are not BCM5755 or higher have 4GB
boundary DMA bug. Previously bge(4) used 32bit DMA address to
workaround the bug(r199670). However this caused the use of bounce
buffers such that it resulted in poor performance for systems which
have more than 4GB memory. Because bus_dma(9) honors boundary
restriction requirement of DMA tag for dynamic buffers, having a
separate TX/RX mbuf DMA tag will greatly reduce the possibility of
using bounce buffers. For DMA buffers allocated with
bus_dmamem_alloc(9), now bge(4) explicitly checks whether the
requested memory region crossed the boundary or not.
With this change, only the DMA buffer that crossed the boundary
will use 32bit DMA address. Other DMA buffers are not affected as
separate DMA tag is created for each DMA buffer.
Even if 32bit DMA address space is used for a buffer, the chance to
use bounce buffer is still very low as the size of buffer is small.
This change should eliminate most usage of bounce buffers on
systems that have more than 4GB memory.

More correct fix would be teaching bus_dma(9) to honor boundary
restriction for buffers created with bus_dmamem_alloc(9) but it
seems that is not easy.

While I'm here cleanup bge_dma_map_addr() and remove unnecessary
member variables in bge_dmamap_arg structure.

Tested by:	marcel
2010-08-31 17:33:48 +00:00
bin Touch the man page date after updating the ustar limitations. 2010-08-29 12:17:16 +00:00
cddl When upgrading a pool which contain root file system, give user a hint that 2010-08-31 10:41:53 +00:00
contrib Mark __DTOR_LIST__, __EH_FRAME_BEGIN__ and __CTOR_END__ as used to avoid 2010-08-26 13:04:16 +00:00
crypto More commas 2010-06-01 22:46:57 +00:00
etc o Correct typo. 2010-08-25 08:37:18 +00:00
games "whereis netscape" gives empty output for quite a long time already. 2010-08-09 09:26:17 +00:00
gnu Use a more robust way to substitute gcc for clang, when compiling 2010-08-31 17:33:29 +00:00
include Correct value for _POSIX_AIO_LISTIO_MAX in <limits.h>. 2010-08-29 22:22:15 +00:00
kerberos5 Fix a typo. 2010-01-09 18:53:03 +00:00
lib Use NULL instead of 0 for pointer in example. 2010-08-29 16:38:08 +00:00
libexec Fix incorrect usage of 'assure' and 'insure'. 2010-08-28 16:32:01 +00:00
release Merge r114010 of head/usr.bin/login/login.c into PicoBSD's login.c: 2010-08-08 16:55:27 +00:00
rescue MFtbemd: 2010-08-23 22:24:11 +00:00
sbin Include process PID in log messages. 2010-08-31 12:05:13 +00:00
secure Fix incorrect usage of 'assure' and 'insure'. 2010-08-28 16:32:01 +00:00
share Add myself to committers-src.dot. 2010-08-30 21:18:59 +00:00
sys Split common parent DMA tag into ring DMA tag and TX/RX mbuf DMA 2010-08-31 17:33:48 +00:00
tools sh: Weaken builtins/command4 test to only require a nonzero exit status. 2010-08-29 20:53:24 +00:00
usr.bin For consistency, cast result of getpid() to long 2010-08-31 07:19:10 +00:00
usr.sbin For consistency, cast result of getpid() to long 2010-08-31 07:19:10 +00:00
COPYRIGHT Happy New Year 2010! :-) 2009-12-31 10:00:37 +00:00
LOCKS Update LOCKS syntax. 2008-06-05 19:47:58 +00:00
MAINTAINERS Add a comment to MAINTAINERS indicating that sbin/routed is in fact 2010-04-10 12:29:09 +00:00
Makefile Connect FDT infrastructure to the build system. 2010-06-13 13:02:43 +00:00
Makefile.inc1 Repair some build breakage introduced in r211725 and garbage collect some 2010-08-28 15:03:11 +00:00
Makefile.mips Guard against TARGET_ABI being undefined (TARGET_ABI will go away soon) 2010-08-26 14:54:12 +00:00
ObsoleteFiles.inc Tie up some loose ends r88509 left behind: 2010-08-15 21:25:52 +00:00
README Vendor import of OpenSSH 5.5p1 2010-04-28 08:37:00 +00:00
UPDATING Mention the removal of acpi_aiboost. 2010-07-25 18:32: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 ``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.

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