1# Firmware configuration file.
2#
3# Global limits (some are hardware limits, others are due to the firmware).
4# nvi = 128		virtual interfaces
5# niqflint = 1023	ingress queues with freelists and/or interrupts
6# nethctrl = 64K	Ethernet or ctrl egress queues
7# neq = 64K		egress queues of all kinds, including freelists
8# nexactf = 512		MPS TCAM entries, can oversubscribe.
9#
10
11[global]
12	rss_glb_config_mode = basicvirtual
13	rss_glb_config_options = tnlmapen,hashtoeplitz,tnlalllkp
14
15	# PL_TIMEOUT register
16	pl_timeout_value = 10000	# the timeout value in units of us
17
18	# SGE_THROTTLE_CONTROL
19	bar2throttlecount = 500		# bar2throttlecount in us
20
21	sge_timer_value = 1, 5, 10, 50, 100, 200	# SGE_TIMER_VALUE* in usecs
22
23	reg[0x1124] = 0x00000400/0x00000400 # SGE_CONTROL2, enable VFIFO; if
24					# SGE_VFIFO_SIZE is not set, then
25					# firmware will set it up in function
26					# of number of egress queues used
27
28	reg[0x1130] = 0x00d5ffeb	# SGE_DBP_FETCH_THRESHOLD, fetch
29					# threshold set to queue depth
30					# minus 128-entries for FL and HP
31					# queues, and 0xfff for LP which
32					# prompts the firmware to set it up
33					# in function of egress queues
34					# used
35
36	reg[0x113c] = 0x0002ffc0	# SGE_VFIFO_SIZE, set to 0x2ffc0 which
37					# prompts the firmware to set it up in
38					# function of number of egress queues
39					# used 
40
41	# enable TP_OUT_CONFIG.IPIDSPLITMODE
42	reg[0x7d04] = 0x00010000/0x00010000
43
44	# disable TP_PARA_REG3.RxFragEn
45	reg[0x7d6c] = 0x00000000/0x00007000
46
47	# enable TP_PARA_REG6.EnableCSnd
48	reg[0x7d78] = 0x00000400/0x00000000
49
50	reg[0x7dc0] = 0x0e2f8849	# TP_SHIFT_CNT
51
52	filterMode = fragmentation, mpshittype, protocol, vlan, port, fcoe
53	filterMask = protocol, fcoe
54
55	tp_pmrx = 36, 512
56	tp_pmrx_pagesize = 64K
57
58	# TP number of RX channels (0 = auto)
59	tp_nrxch = 0
60
61	tp_pmtx = 46, 512
62	tp_pmtx_pagesize = 64K
63
64	# TP number of TX channels (0 = auto)
65	tp_ntxch = 0
66
67	# TP OFLD MTUs
68	tp_mtus = 88, 256, 512, 576, 808, 1024, 1280, 1488, 1500, 2002, 2048, 4096, 4352, 8192, 9000, 9600
69
70	# TP_GLOBAL_CONFIG
71	reg[0x7d08] = 0x00000800/0x00000800 # set IssFromCplEnable
72
73	# TP_PC_CONFIG
74	reg[0x7d48] = 0x00000000/0x00000400 # clear EnableFLMError
75
76	# TP_PARA_REG0
77	reg[0x7d60] = 0x06000000/0x07000000 # set InitCWND to 6
78
79	# cluster, lan, or wan.
80	tp_tcptuning = lan
81
82	# MC configuration
83	mc_mode_brc[0] = 1		# mc0 - 1: enable BRC, 0: enable RBC
84	mc_mode_brc[1] = 1		# mc1 - 1: enable BRC, 0: enable RBC
85
86	# ULP_TX_CONFIG
87	reg[0x8dc0] = 0x00000004/0x00000004 # Enable more error msg for ...
88					    # TPT error.
89
90# PFs 0-3.  These get 8 MSI/8 MSI-X vectors each.  VFs are supported by
91# these 4 PFs only.  Not used here at all.
92[function "0"]
93	nvf = 16
94	nvi = 1
95	rssnvi = 0
96[function "0/*"]
97	nvi = 1
98	rssnvi = 0
99
100[function "1"]
101	nvf = 16
102	nvi = 1
103	rssnvi = 0
104[function "1/*"]
105	nvi = 1
106	rssnvi = 0
107
108[function "2"]
109	nvf = 16
110	nvi = 1
111	rssnvi = 0
112[function "2/*"]
113	nvi = 1
114	rssnvi = 0
115
116[function "3"]
117	nvf = 16
118	nvi = 1
119	rssnvi = 0
120[function "3/*"]
121	nvi = 1
122	rssnvi = 0
123
124# PF4 is the resource-rich PF that the bus/nexus driver attaches to.
125# It gets 32 MSI/128 MSI-X vectors.
126[function "4"]
127	wx_caps = all
128	r_caps = all
129	nvi = 32
130	rssnvi = 8
131	niqflint = 512
132	nethctrl = 1024
133	neq = 2048
134	nqpcq = 8192
135	nexactf = 328
136	cmask = all
137	pmask = all
138
139	# driver will mask off features it won't use
140	protocol = ofld, rddp, rdmac, iscsi_initiator_pdu, iscsi_target_pdu, iscsi_t10dif
141
142	tp_l2t = 4096
143	tp_ddp = 2
144	tp_ddp_iscsi = 2
145	tp_stag = 2
146	tp_pbl = 5
147	tp_rq = 7
148
149	# TCAM has 8K cells; each region must start at a multiple of 128 cell.
150	# Each entry in these categories takes 4 cells each.  nhash will use the
151	# TCAM iff there is room left (that is, the rest don't add up to 2048).
152	nroute = 32
153	nclip = 32
154	nfilter = 1008
155	nserver = 512
156	nhash = 16384
157
158# PF5 is the SCSI Controller PF. It gets 32 MSI/40 MSI-X vectors.
159# Not used right now.
160[function "5"]
161	nvi = 1
162	rssnvi = 0
163
164# PF6 is the FCoE Controller PF. It gets 32 MSI/40 MSI-X vectors.
165# Not used right now.
166[function "6"]
167	nvi = 1
168	rssnvi = 0
169
170# The following function, 1023, is not an actual PCIE function but is used to
171# configure and reserve firmware internal resources that come from the global
172# resource pool.
173[function "1023"]
174	wx_caps = all
175	r_caps = all
176	nvi = 4
177	rssnvi = 0
178	cmask = all
179	pmask = all
180	nexactf = 8
181	nfilter = 16
182
183# MPS has 192K buffer space for ingress packets from the wire as well as
184# loopback path of the L2 switch.
185[port "0"]
186	dcb = none
187	bg_mem = 25
188	lpbk_mem = 25
189	hwm = 30
190	lwm = 15
191	dwm = 30
192
193[port "1"]
194	dcb = none
195	bg_mem = 25
196	lpbk_mem = 25
197	hwm = 30
198	lwm = 15
199	dwm = 30
200
201[port "2"]
202	dcb = none
203	bg_mem = 25
204	lpbk_mem = 25
205	hwm = 30
206	lwm = 15
207	dwm = 30
208
209[port "3"]
210	dcb = none
211	bg_mem = 25
212	lpbk_mem = 25
213	hwm = 30
214	lwm = 15
215	dwm = 30
216
217[fini]
218	version = 0x1
219	checksum = 0x168d5243
220#
221# $FreeBSD: stable/10/sys/dev/cxgbe/firmware/t5fw_cfg.txt 309379 2016-12-02 00:23:10Z jhb $
222#
223