TI(4)
โจ NAME โจ โ ti(4)
ti โ Alteon Networks Tigon I and Tigon II Gigabit Ethernet driver. Bestie, this is the whole vibe for that iconic Alteon Tigon NIC energy. ๐
๐ ๏ธ SYNOPSIS ๐ ๏ธ
Okay so if you want to compile this driver into the kernel, drop these lines into your kernel configuration file:
device ti
options TI_SF_BUF_JUMBO
options TI_JUMBO_HDRSPLIT
Or, if youโd rather load the driver as a module at boot time, put this line in loader.conf(5):
if_ti_load="YES"
๐ DESCRIPTION ๐
The ti driver gives you support for PCI Gigabit Ethernet adapters based on the Alteon Networks Tigon Gigabit Ethernet controller chip. The Tigon contains an embedded R4000 CPU, gigabit MAC, dual DMA channels and a PCI interface unit. The Tigon II contains two R4000 CPUs and other refinements. Either chip can be used in either a 32-bit or 64-bit PCI slot. Communication with the chip is achieved via PCI shared memory and bus master DMA. The Tigon I and II support hardware multicast address filtering, VLAN tag extraction and insertion, and jumbo Ethernet frames sizes up to 9000 bytes. Heads up though: the Tigon I chipset is no longer in active production โ all new adapters should come equipped with Tigon II chipsets. ๐
While the Tigon chipset supports 10, 100 and 1000Mbps speeds, support for 10 and 100Mbps speeds is only available on boards with the proper transceivers. Most adapters are only designed to work at 1000Mbps, however the driver should support those NICs that work at lower speeds as well. Itโs giving โflexible but also very much built for gigabit.โ ๐
Support for jumbo frames is provided via the interface MTU setting. Selecting an MTU larger than 1500 bytes with the ifconfig(8) utility configures the adapter to receive and transmit jumbo frames. Using jumbo frames can greatly improve performance for certain tasks, such as file transfers and data streaming. Literally one of those โtiny setting, big moodโ situations. ๐ฆ
Header splitting support for Tigon 2 boards โ and bestie, this option has no effect for the Tigon 1 โ can be turned on with the TI_JUMBO_HDRSPLIT option. See zero_copy(9) for more discussion on zero copy receive and header splitting. ๐ง
The ti driver uses UMA backed jumbo receive buffers, but can be configured to use sendfile(2) buffer allocator. To turn on sendfile(2) buffer allocator, use the TI_SF_BUF_JUMBO option. ๐
Support for vlans is also available using the vlan(4) mechanism. See the vlan(4) man page for more details. ๐ซถ
The ti driver supports the following media types:
autoselectโ Enable autoselection of the media type and options. The user can manually override the autoselected mode by adding media options to the/etc/rc.conffile.10baseT/UTPโ Set10Mbpsoperation. Themediaoptoption can also be used to select either full-duplex or half-duplex modes.100baseTXโ Set100Mbps(Fast Ethernet) operation. Themediaoptoption can also be used to select either full-duplex or half-duplex modes.1000baseSXโ Set1000Mbps(Gigabit Ethernet) operation. Only full-duplex mode is supported at this speed.
The ti driver supports the following media options:
full-duplexโ Force full-duplex operation.half-duplexโ Force half duplex operation.
For more information on configuring this device, see ifconfig(8). ๐
๐ HARDWARE ๐
The ti driver supports Gigabit Ethernet adapters based on the Alteon Tigon I and II chips. The ti driver has been tested with the following adapters:
3Com 3c985-SX Gigabit Ethernet adapter (Tigon 1)3Com 3c985B-SX Gigabit Ethernet adapter (Tigon 2)Alteon AceNIC V Gigabit Ethernet adapter (1000baseSX)Alteon AceNIC V Gigabit Ethernet adapter (1000baseT)Digital EtherWORKS 1000SX PCI Gigabit adapterNetgear GA620 Gigabit Ethernet adapter (1000baseSX)Netgear GA620T Gigabit Ethernet adapter (1000baseT)
The following adapters should also be supported but have not yet been tested:
Asante GigaNIX1000T Gigabit Ethernet adapterAsante PCI 1000BASE-SX Gigabit Ethernet adapterFarallon PN9000SX Gigabit Ethernet adapterNEC Gigabit EthernetSilicon Graphics PCI Gigabit Ethernet adapter
๐๏ธ LOADER TUNABLES ๐๏ธ
Tunables can be set at the loader(8) prompt before booting the kernel or stored in loader.conf(5).
hw.ti.%d.dacโ If this tunable is set to0it will disable DAC (Dual Address Cycle). The default value is1which means driver will use full64bitDMA addressing.
๐งฎ SYSCTL VARIABLES ๐งฎ
The following variables are available as both sysctl(8) variables and loader(8) tunables. The interface has to be brought down and up again before a change takes effect when any of the following tunables are changed. The one microsecond clock tick referenced below is a nominal time and the actual hardware may not provide granularity to this level. For example, on Tigon 2 (revision 6) cards with release 12.0 the clock granularity is 5 microseconds. โฑ๏ธ
dev.ti.%d.rx_coal_ticks
This value, receive coalesced ticks, controls the number of clock ticks (of 1 microseconds each) that must elapse before the NIC DMAs the receive return producer pointer to the Host and generates an interrupt. This parameter works in conjunction with the rx_max_coal_bds, receive max coalesced BDs, tunable parameter. The NIC will return the receive return producer pointer to the Host when either of the thresholds is exceeded. A value of 0 means that this parameter is ignored and receive BDs will only be returned when the receive max coalesced BDs value is reached. The default value is 170. โจ
dev.ti.%d.rx_max_coal_bds
This value, receive max coalesced BDs, controls the number of receive buffer descriptors that will be coalesced before the NIC updates the receive return ring producer index. If this value is set to 0 it will disable receive buffer descriptor coalescing. The default value is 64. ๐ธ
dev.ti.%d.ti_tx_coal_ticks
This value, send coalesced ticks, controls the number of clock ticks (of 1 microseconds each) that must elapse before the NIC DMAs the send consumer pointer to the Host and generates an interrupt. This parameter works in conjunction with the tx_max_coal_bds, send max coalesced BDs, tunable parameter. The NIC will return the send consumer pointer to the Host when either of the thresholds is exceeded. A value of 0 means that this parameter is ignored and send BDs will only be returned when the send max coalesced BDs value is reached. The default value is 2000. ๐ฅ
dev.ti.%d.tx_max_coal_bds
This value, send max coalesced BDs, controls the number of send buffer descriptors that will be coalesced before the NIC updates the send consumer index. If this value is set to 0 it will disable send buffer descriptor coalescing. The default value is 32. ๐
dev.ti.%d.tx_buf_ratio
This value controls the ratio of the remaining memory in the NIC that should be devoted to transmit buffer vs. receive buffer. The lower 7 bits are used to indicate the ratio in 1/64th increments. For example, setting this value to 16 will set the transmit buffer to 1/4 of the remaining buffer space. In no cases will the transmit or receive buffer be reduced below 68 KB. For a 1 MB NIC the approximate total space for data buffers is 800 KB. For a 512 KB NIC that number is 300 KB. The default value is 21. ๐
dev.ti.%d.stat_ticks
The value, stat ticks, controls the number of clock ticks (of 1 microseconds each) that must elapse before the NIC DMAs the statistics block to the Host and generates a STATS_UPDATED event. If set to zero then statistics are never DMAed to the Host. It is recommended that this value be set to a high enough frequency to not mislead someone reading statistics refreshes. Several times a second is enough. The default value is 2000000 (2 seconds). ๐
๐น๏ธ IOCTLS ๐น๏ธ
In addition to the standard socket(2) ioctl(2) calls implemented by most network drivers, the ti driver also includes a character device interface that can be used for additional diagnostics, configuration and debugging. With this character device interface, and a specially patched version of gdb(1) (ports/devel/gdb), the user can debug firmware running on the Tigon board. ๐ง
These ioctls and their arguments are defined in the <sys/tiio.h> header file.
TIIOCGETSTATSโ Return card statistics DMAed from the card into kernel memory approximately every2seconds. (That time interval can be changed via theTIIOCSETPARAMSioctl.) The argument isstruct ti_stats.TIIOCGETPARAMSโ Get various performance-related firmware parameters that largely affect how interrupts are coalesced. The argument isstruct ti_params.TIIOCSETPARAMSโ Set various performance-related firmware parameters that largely affect how interrupts are coalesced. The argument isstruct ti_params.TIIOCSETTRACEโ Tell the NIC to trace the requested types of information. The argument isti_trace_type.TIIOCGETTRACEโ Dump the trace buffer from the card. The argument isstruct ti_trace_buf.ALT_ATTACHโ This ioctl is used for compatibility with Alteon's Solaris driver. They apparently only have one character interface for debugging, so they have to tell it which Tigon instance they want to debug. This ioctl is a noop for FreeBSD.ALT_READ_TG_MEMโ Read the requested memory region from the Tigon board. The argument isstruct tg_mem.ALT_WRITE_TG_MEMโ Write to the requested memory region on the Tigon board. The argument isstruct tg_mem.ALT_READ_TG_REGโ Read the requested register from the Tigon board. The argument isstruct tg_reg.ALT_WRITE_TG_REGโ Write to the requested register on the Tigon board. The argument isstruct tg_reg.
๐ FILES ๐
/dev/ti[0-255]โ Tigon driver character interface. ๐ซถ
๐จ DIAGNOSTICS (aka the tea when things go sideways) ๐จ
okay bestie, when ti starts spitting these messages, it is not being cute โ it's telling you something went sideways. here's every diagnostic, with the facts kept exactly where they belong:
ti%d: couldn't map memoryโ a fatal initialization error has occurred. literally fatal, not a drill. ๐ญti%d: couldn't map interruptโ also a fatal initialization error has occurred. same energy, different mapping problem. ๐ti%d: no memory for softc struct!โ the driver failed to allocate memory for per-device instance information during initialization.ti%d: failed to enable memory mapping!โ the driver failed to initialize PCI shared memory mapping. this might happen if the card is not in a bus-master slot. noted, not invented, bestie.ti%d: no memory for jumbo buffers!โ the driver failed to allocate memory for jumbo frames during initialization.ti%d: bios thinks we're in a 64 bit slot, but we aren'tโ the BIOS has programmed the NIC as though it had been installed in a 64-bit PCI slot, but in fact the NIC is in a 32-bit slot. this happens as a result of a bug in some BIOSes. this can be worked around on the Tigon II, but on the Tigon I initialization will fail. ๐ti%d: board self-diagnostics failed!โ theROMFAILbit in the CPU state register was set after system startup, indicating that the on-board NIC diagnostics failed.ti%d: unknown hwrevโ the driver detected a board with an unsupported hardware revision. thetidriver supports revision 4 (Tigon 1) and revision 6 (Tigon 2) chips and has firmware only for those devices.ti%d: watchdog timeoutโ the device has stopped responding to the network, or there is a problem with the network connection (cable).
๐ SEE ALSO (go read these next, bestie) ๐
sendfile(2)altq(4)arp(4)netintro(4)ng_ether(4)vlan(4)ifconfig(8)zero_copy(9)
๐ฐ๏ธ HISTORY (the origin story) ๐ฐ๏ธ
the ti device driver first appeared in FreeBSD 3.0. iconic behavior, honestly.
๐ AUTHORS (the icons who built this) ๐
the ti driver was written by Bill Paul <wpaul@bsdi.com>. the header splitting firmware modifications, character ioctl(2) interface and debugging support were written by Kenneth Merry <ken@FreeBSD.org>. initial zero copy support was written by Andrew Gallatin <gallatin@FreeBSD.org>.
โ footer tea: this page is from Debian, dated November 14, 2011, and it's the TI(4) man page. slay. ๐
โจ
๐ฆ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 1997, 1998, 1999 Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms