freebsd-dev/sys/pci
Kenneth D. Merry 98cb733c67 At long last, commit the zero copy sockets code.
MAKEDEV:	Add MAKEDEV glue for the ti(4) device nodes.

ti.4:		Update the ti(4) man page to include information on the
		TI_JUMBO_HDRSPLIT and TI_PRIVATE_JUMBOS kernel options,
		and also include information about the new character
		device interface and the associated ioctls.

man9/Makefile:	Add jumbo.9 and zero_copy.9 man pages and associated
		links.

jumbo.9:	New man page describing the jumbo buffer allocator
		interface and operation.

zero_copy.9:	New man page describing the general characteristics of
		the zero copy send and receive code, and what an
		application author should do to take advantage of the
		zero copy functionality.

NOTES:		Add entries for ZERO_COPY_SOCKETS, TI_PRIVATE_JUMBOS,
		TI_JUMBO_HDRSPLIT, MSIZE, and MCLSHIFT.

conf/files:	Add uipc_jumbo.c and uipc_cow.c.

conf/options:	Add the 5 options mentioned above.

kern_subr.c:	Receive side zero copy implementation.  This takes
		"disposable" pages attached to an mbuf, gives them to
		a user process, and then recycles the user's page.
		This is only active when ZERO_COPY_SOCKETS is turned on
		and the kern.ipc.zero_copy.receive sysctl variable is
		set to 1.

uipc_cow.c:	Send side zero copy functions.  Takes a page written
		by the user and maps it copy on write and assigns it
		kernel virtual address space.  Removes copy on write
		mapping once the buffer has been freed by the network
		stack.

uipc_jumbo.c:	Jumbo disposable page allocator code.  This allocates
		(optionally) disposable pages for network drivers that
		want to give the user the option of doing zero copy
		receive.

uipc_socket.c:	Add kern.ipc.zero_copy.{send,receive} sysctls that are
		enabled if ZERO_COPY_SOCKETS is turned on.

		Add zero copy send support to sosend() -- pages get
		mapped into the kernel instead of getting copied if
		they meet size and alignment restrictions.

uipc_syscalls.c:Un-staticize some of the sf* functions so that they
		can be used elsewhere.  (uipc_cow.c)

if_media.c:	In the SIOCGIFMEDIA ioctl in ifmedia_ioctl(), avoid
		calling malloc() with M_WAITOK.  Return an error if
		the M_NOWAIT malloc fails.

		The ti(4) driver and the wi(4) driver, at least, call
		this with a mutex held.  This causes witness warnings
		for 'ifconfig -a' with a wi(4) or ti(4) board in the
		system.  (I've only verified for ti(4)).

ip_output.c:	Fragment large datagrams so that each segment contains
		a multiple of PAGE_SIZE amount of data plus headers.
		This allows the receiver to potentially do page
		flipping on receives.

if_ti.c:	Add zero copy receive support to the ti(4) driver.  If
		TI_PRIVATE_JUMBOS is not defined, it now uses the
		jumbo(9) buffer allocator for jumbo receive buffers.

		Add a new character device interface for the ti(4)
		driver for the new debugging interface.  This allows
		(a patched version of) gdb to talk to the Tigon board
		and debug the firmware.  There are also a few additional
		debugging ioctls available through this interface.

		Add header splitting support to the ti(4) driver.

		Tweak some of the default interrupt coalescing
		parameters to more useful defaults.

		Add hooks for supporting transmit flow control, but
		leave it turned off with a comment describing why it
		is turned off.

if_tireg.h:	Change the firmware rev to 12.4.11, since we're really
		at 12.4.11 plus fixes from 12.4.13.

		Add defines needed for debugging.

		Remove the ti_stats structure, it is now defined in
		sys/tiio.h.

ti_fw.h:	12.4.11 firmware.

ti_fw2.h:	12.4.11 firmware, plus selected fixes from 12.4.13,
		and my header splitting patches.  Revision 12.4.13
		doesn't handle 10/100 negotiation properly.  (This
		firmware is the same as what was in the tree previously,
		with the addition of header splitting support.)

sys/jumbo.h:	Jumbo buffer allocator interface.

sys/mbuf.h:	Add a new external mbuf type, EXT_DISPOSABLE, to
		indicate that the payload buffer can be thrown away /
		flipped to a userland process.

socketvar.h:	Add prototype for socow_setup.

tiio.h:		ioctl interface to the character portion of the ti(4)
		driver, plus associated structure/type definitions.

uio.h:		Change prototype for uiomoveco() so that we'll know
		whether the source page is disposable.

ufs_readwrite.c:Update for new prototype of uiomoveco().

vm_fault.c:	In vm_fault(), check to see whether we need to do a page
		based copy on write fault.

vm_object.c:	Add a new function, vm_object_allocate_wait().  This
		does the same thing that vm_object allocate does, except
		that it gives the caller the opportunity to specify whether
		it should wait on the uma_zalloc() of the object structre.

		This allows vm objects to be allocated while holding a
		mutex.  (Without generating WITNESS warnings.)

		vm_object_allocate() is implemented as a call to
		vm_object_allocate_wait() with the malloc flag set to
		M_WAITOK.

vm_object.h:	Add prototype for vm_object_allocate_wait().

vm_page.c:	Add page-based copy on write setup, clear and fault
		routines.

vm_page.h:	Add page based COW function prototypes and variable in
		the vm_page structure.

Many thanks to Drew Gallatin, who wrote the zero copy send and receive
code, and to all the other folks who have tested and reviewed this code
over the years.
2002-06-26 03:37:47 +00:00
..
agp_ali.c Make these compile again by adding proc.h include for GIANT_REQUIRED 2001-07-05 21:28:47 +00:00
agp_amd.c Fix some nits in AMD AGP driver. Remove excess malloc and move a bzero 2002-04-15 18:57:26 +00:00
agp_i810.c Make these compile again by adding proc.h include for GIANT_REQUIRED 2001-07-05 21:28:47 +00:00
agp_if.m
agp_intel.c Correctly identify the Intel 82830 AGP bridge. 2002-02-05 23:13:25 +00:00
agp_sis.c Make these compile again by adding proc.h include for GIANT_REQUIRED 2001-07-05 21:28:47 +00:00
agp_via.c Recognise VIA Apollo KT133A bridge. 2001-08-30 14:17:48 +00:00
agp.c Allow retrieval of the virtual address of the AGP aperture 2001-12-19 08:54:29 +00:00
agppriv.h
agpreg.h This patch will fix the lockups associated with AMD 751,761,762 based AGP 2001-12-07 05:41:26 +00:00
agpvar.h Allow retrieval of the virtual address of the AGP aperture 2001-12-19 08:54:29 +00:00
alpm.c Major rework of the iicbus/smbus framework: 2002-03-23 15:49:15 +00:00
amd.c Move unused functions into #if 0 ... #endif. 2001-05-06 08:07:10 +00:00
amd.h
amdpm.c smbus_alloc_bus is not part of the smbus interface anymore 2002-03-23 18:27:16 +00:00
cy_pci.c Remove __P. 2002-03-20 02:08:01 +00:00
dc21040reg.h Fix typo in the BSD copyright: s/withough/without/ 2002-06-02 20:05:59 +00:00
if_dc.c Add suspend/resume code mostly merged from fxp/rl driver. 2002-05-06 10:55:42 +00:00
if_dcreg.h Add suspend/resume code mostly merged from fxp/rl driver. 2002-05-06 10:55:42 +00:00
if_de.c Fix typo in the BSD copyright: s/withough/without/ 2002-06-02 20:05:59 +00:00
if_devar.h Fix typo in the BSD copyright: s/withough/without/ 2002-06-02 20:05:59 +00:00
if_en_pci.c Remove __P. 2002-03-20 02:08:01 +00:00
if_mn.c Fix warnings: 2001-06-15 07:39:12 +00:00
if_pcn.c Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
if_pcnreg.h
if_rl.c Add support for the D-Link DFE-690TXD Cardbus card which has a RealTek 8139 2002-05-06 13:43:00 +00:00
if_rlreg.h Add support for the D-Link DFE-690TXD Cardbus card which has a RealTek 8139 2002-05-06 13:43:00 +00:00
if_sf.c Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
if_sfreg.h Still more changes to try to prevent TX lockups. Will wait for one more 2001-08-16 00:32:20 +00:00
if_sis.c Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
if_sisreg.h Use ETHER_CRC_LEN instead of SIS_CRC_SIZE 2002-02-07 08:04:24 +00:00
if_sk.c Follow NetBSD and s/IFM_1000_TX/IFM_1000_T/ 2002-04-28 20:34:20 +00:00
if_skreg.h
if_ste.c Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
if_stereg.h Fix a bug in the ste_setmulti() routine. The NIC has 4 16-bit multicast 2001-08-23 18:22:55 +00:00
if_ti.c At long last, commit the zero copy sockets code. 2002-06-26 03:37:47 +00:00
if_tireg.h At long last, commit the zero copy sockets code. 2002-06-26 03:37:47 +00:00
if_tl.c Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
if_tlreg.h
if_vr.c Enhance the use of the watchdog timer in this driver so that it will 2002-05-15 17:05:28 +00:00
if_vrreg.h Close PR 22208: bring chip out of suspend mode, because Windows might 2001-05-14 19:13:02 +00:00
if_wb.c Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
if_wbreg.h
if_xl.c Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
if_xlreg.h Fix a problem where stats overflow interrupts would cause 2001-12-17 22:24:19 +00:00
intpm.c Major rework of the iicbus/smbus framework: 2002-03-23 15:49:15 +00:00
intpmreg.h
locate.pl
meteor_reg.h
meteor.c Remove __P. 2002-03-20 02:08:01 +00:00
ncr.c s/adress/address/ 2001-07-23 12:05:27 +00:00
ncrreg.h
ohci_pci.c KNF style the code, ready for an MFC. 2002-02-17 11:58:58 +00:00
simos.c Remove __P. 2002-03-20 02:08:01 +00:00
simos.h
ti_fw2.h At long last, commit the zero copy sockets code. 2002-06-26 03:37:47 +00:00
ti_fw.h At long last, commit the zero copy sockets code. 2002-06-26 03:37:47 +00:00
uhci_pci.c Fix a formatting error. 2002-02-17 12:41:50 +00:00
viapm.c Major rework of the iicbus/smbus framework: 2002-03-23 15:49:15 +00:00
xmaciireg.h
xrpu.c Redo the pps bit to avoid digging into the private bits of the timecounter. 2002-04-26 21:22:02 +00:00