t5fw_cfg.txt revision 296951
1252661Snp# Firmware configuration file.
2252661Snp#
3252661Snp# Global limits (some are hardware limits, others are due to the firmware).
4252661Snp# nvi = 128		virtual interfaces
5252661Snp# niqflint = 1023	ingress queues with freelists and/or interrupts
6252661Snp# nethctrl = 64K	Ethernet or ctrl egress queues
7252661Snp# neq = 64K		egress queues of all kinds, including freelists
8273615Snp# nexactf = 512		MPS TCAM entries, can oversubscribe.
9252661Snp#
10252661Snp
11252661Snp[global]
12252661Snp	rss_glb_config_mode = basicvirtual
13296950Snp	rss_glb_config_options = tnlmapen,hashtoeplitz,tnlalllkp
14252661Snp
15253407Snp	# PL_TIMEOUT register
16296950Snp	pl_timeout_value = 10000	# the timeout value in units of us
17253407Snp
18296950Snp	# SGE_THROTTLE_CONTROL
19296950Snp	bar2throttlecount = 500		# bar2throttlecount in us
20252661Snp
21296950Snp	sge_timer_value = 1, 5, 10, 50, 100, 200	# SGE_TIMER_VALUE* in usecs
22296950Snp
23296950Snp	reg[0x1124] = 0x00000400/0x00000400 # SGE_CONTROL2, enable VFIFO; if
24296950Snp					# SGE_VFIFO_SIZE is not set, then
25296950Snp					# firmware will set it up in function
26296950Snp					# of number of egress queues used
27296950Snp
28296950Snp	reg[0x1130] = 0x00d5ffeb	# SGE_DBP_FETCH_THRESHOLD, fetch
29296950Snp					# threshold set to queue depth
30296950Snp					# minus 128-entries for FL and HP
31296950Snp					# queues, and 0xfff for LP which
32296950Snp					# prompts the firmware to set it up
33296950Snp					# in function of egress queues
34296950Snp					# used
35296950Snp
36296950Snp	reg[0x113c] = 0x0002ffc0	# SGE_VFIFO_SIZE, set to 0x2ffc0 which
37296950Snp					# prompts the firmware to set it up in
38296950Snp					# function of number of egress queues
39296950Snp					# used 
40296950Snp
41256459Snp	# enable TP_OUT_CONFIG.IPIDSPLITMODE
42256459Snp	reg[0x7d04] = 0x00010000/0x00010000
43256459Snp
44296249Snp	# disable TP_PARA_REG3.RxFragEn
45296249Snp	reg[0x7d6c] = 0x00000000/0x00007000
46296249Snp
47296249Snp	# enable TP_PARA_REG6.EnableCSnd
48296249Snp	reg[0x7d78] = 0x00000400/0x00000000
49296249Snp
50296950Snp	reg[0x7dc0] = 0x0e2f8849	# TP_SHIFT_CNT
51252661Snp
52252661Snp	filterMode = fragmentation, mpshittype, protocol, vlan, port, fcoe
53252661Snp	filterMask = protocol, fcoe
54252661Snp
55296951Snp	tp_pmrx = 36, 512
56296950Snp	tp_pmrx_pagesize = 64K
57296950Snp
58296950Snp	# TP number of RX channels (0 = auto)
59252661Snp	tp_nrxch = 0
60252661Snp
61296951Snp	tp_pmtx = 46, 512
62252661Snp	tp_pmtx_pagesize = 64K
63252661Snp
64296950Snp	# TP number of TX channels (0 = auto)
65296950Snp	tp_ntxch = 0
66290633Snp
67256459Snp	# TP OFLD MTUs
68256459Snp	tp_mtus = 88, 256, 512, 576, 808, 1024, 1280, 1488, 1500, 2002, 2048, 4096, 4352, 8192, 9000, 9600
69256459Snp
70296950Snp	# TP_GLOBAL_CONFIG
71296950Snp	reg[0x7d08] = 0x00000800/0x00000800 # set IssFromCplEnable
72296950Snp
73296950Snp	# TP_PC_CONFIG
74296950Snp	reg[0x7d48] = 0x00000000/0x00000400 # clear EnableFLMError
75296950Snp
76296950Snp	# TP_PARA_REG0
77296950Snp	reg[0x7d60] = 0x06000000/0x07000000 # set InitCWND to 6
78296950Snp
79296950Snp	# cluster, lan, or wan.
80296950Snp	tp_tcptuning = lan
81296950Snp
82256459Snp	# MC configuration
83256459Snp	mc_mode_brc[0] = 1		# mc0 - 1: enable BRC, 0: enable RBC
84256459Snp	mc_mode_brc[1] = 1		# mc1 - 1: enable BRC, 0: enable RBC
85256459Snp
86296249Snp	# ULP_TX_CONFIG
87296249Snp	reg[0x8dc0] = 0x00000004/0x00000004 # Enable more error msg for ...
88296249Snp					    # TPT error.
89296249Snp
90252661Snp# PFs 0-3.  These get 8 MSI/8 MSI-X vectors each.  VFs are supported by
91252661Snp# these 4 PFs only.  Not used here at all.
92252661Snp[function "0"]
93252661Snp	nvf = 16
94252661Snp	nvi = 1
95273615Snp	rssnvi = 0
96252661Snp[function "0/*"]
97252661Snp	nvi = 1
98273615Snp	rssnvi = 0
99252661Snp
100252661Snp[function "1"]
101252661Snp	nvf = 16
102252661Snp	nvi = 1
103273615Snp	rssnvi = 0
104252661Snp[function "1/*"]
105252661Snp	nvi = 1
106273615Snp	rssnvi = 0
107252661Snp
108252661Snp[function "2"]
109252661Snp	nvf = 16
110252661Snp	nvi = 1
111273615Snp	rssnvi = 0
112252661Snp[function "2/*"]
113252661Snp	nvi = 1
114273615Snp	rssnvi = 0
115252661Snp
116252661Snp[function "3"]
117252661Snp	nvf = 16
118252661Snp	nvi = 1
119273615Snp	rssnvi = 0
120252661Snp[function "3/*"]
121252661Snp	nvi = 1
122273615Snp	rssnvi = 0
123252661Snp
124252661Snp# PF4 is the resource-rich PF that the bus/nexus driver attaches to.
125252661Snp# It gets 32 MSI/128 MSI-X vectors.
126252661Snp[function "4"]
127252661Snp	wx_caps = all
128252661Snp	r_caps = all
129252661Snp	nvi = 32
130273615Snp	rssnvi = 8
131273615Snp	niqflint = 512
132273615Snp	nethctrl = 1024
133273615Snp	neq = 2048
134252661Snp	nexactf = 328
135252661Snp	cmask = all
136252661Snp	pmask = all
137252661Snp
138252661Snp	# driver will mask off features it won't use
139296951Snp	protocol = ofld, rddp, rdmac, iscsi_initiator_pdu, iscsi_target_pdu, iscsi_t10dif
140252661Snp
141252661Snp	tp_l2t = 4096
142252661Snp	tp_ddp = 2
143296951Snp	tp_ddp_iscsi = 2
144296951Snp	tp_stag = 2
145296951Snp	tp_pbl = 5
146296951Snp	tp_rq = 7
147252661Snp
148252661Snp	# TCAM has 8K cells; each region must start at a multiple of 128 cell.
149252661Snp	# Each entry in these categories takes 4 cells each.  nhash will use the
150252661Snp	# TCAM iff there is room left (that is, the rest don't add up to 2048).
151252661Snp	nroute = 32
152252661Snp	nclip = 32
153252661Snp	nfilter = 1008
154252661Snp	nserver = 512
155252661Snp	nhash = 16384
156252661Snp
157252661Snp# PF5 is the SCSI Controller PF. It gets 32 MSI/40 MSI-X vectors.
158252661Snp# Not used right now.
159252661Snp[function "5"]
160252661Snp	nvi = 1
161273615Snp	rssnvi = 0
162252661Snp
163252661Snp# PF6 is the FCoE Controller PF. It gets 32 MSI/40 MSI-X vectors.
164252661Snp# Not used right now.
165252661Snp[function "6"]
166252661Snp	nvi = 1
167273615Snp	rssnvi = 0
168252661Snp
169252661Snp# The following function, 1023, is not an actual PCIE function but is used to
170252661Snp# configure and reserve firmware internal resources that come from the global
171252661Snp# resource pool.
172252661Snp[function "1023"]
173252661Snp	wx_caps = all
174252661Snp	r_caps = all
175252661Snp	nvi = 4
176273615Snp	rssnvi = 0
177252661Snp	cmask = all
178252661Snp	pmask = all
179252661Snp	nexactf = 8
180252661Snp	nfilter = 16
181252661Snp
182252661Snp# MPS has 192K buffer space for ingress packets from the wire as well as
183252661Snp# loopback path of the L2 switch.
184252661Snp[port "0"]
185252661Snp	dcb = none
186252661Snp	bg_mem = 25
187252661Snp	lpbk_mem = 25
188252661Snp	hwm = 30
189252661Snp	lwm = 15
190252661Snp	dwm = 30
191252661Snp
192252661Snp[port "1"]
193252661Snp	dcb = none
194252661Snp	bg_mem = 25
195252661Snp	lpbk_mem = 25
196252661Snp	hwm = 30
197252661Snp	lwm = 15
198252661Snp	dwm = 30
199252661Snp
200252661Snp[port "2"]
201252661Snp	dcb = none
202252661Snp	bg_mem = 25
203252661Snp	lpbk_mem = 25
204252661Snp	hwm = 30
205252661Snp	lwm = 15
206252661Snp	dwm = 30
207252661Snp
208252661Snp[port "3"]
209252661Snp	dcb = none
210252661Snp	bg_mem = 25
211252661Snp	lpbk_mem = 25
212252661Snp	hwm = 30
213252661Snp	lwm = 15
214252661Snp	dwm = 30
215252661Snp
216252661Snp[fini]
217252661Snp	version = 0x1
218296951Snp	checksum = 0xebb87494
219252661Snp#
220252661Snp# $FreeBSD: head/sys/dev/cxgbe/firmware/t5fw_cfg.txt 296951 2016-03-16 19:43:44Z np $
221252661Snp#
222