t5fw_cfg.txt revision 290633
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 = 200		# the timeout value in units of us
17
18	sge_timer_value = 1, 5, 10, 50, 100, 200	# usecs
19
20	# enable TP_OUT_CONFIG.IPIDSPLITMODE
21	reg[0x7d04] = 0x00010000/0x00010000
22
23	# TP_SHIFT_CNT
24	reg[0x7dc0] = 0x62f8849
25
26	# TP_GLOBAL_CONFIG
27	reg[0x7d08] = 0x00000800/0x00000800 # set IssFromCplEnable
28
29	# TP_PARA_REG0
30	reg[0x7d60] = 0x06000000/0x07000000 # set InitCWND to 6
31
32	filterMode = fragmentation, mpshittype, protocol, vlan, port, fcoe
33	filterMask = protocol, fcoe
34
35	# TP rx and tx channels (0 = auto).
36	tp_nrxch = 0
37	tp_ntxch = 0
38
39	# TP rx and tx payload memory (% of the total EDRAM + DDR3).
40	tp_pmrx = 38, 512
41	tp_pmtx = 60, 512
42	tp_pmrx_pagesize = 64K
43	tp_pmtx_pagesize = 64K
44
45	# cluster, lan, or wan.
46	tp_tcptuning = lan
47
48	# TP OFLD MTUs
49	tp_mtus = 88, 256, 512, 576, 808, 1024, 1280, 1488, 1500, 2002, 2048, 4096, 4352, 8192, 9000, 9600
50
51	# MC configuration
52	mc_mode_brc[0] = 1		# mc0 - 1: enable BRC, 0: enable RBC
53	mc_mode_brc[1] = 1		# mc1 - 1: enable BRC, 0: enable RBC
54
55# PFs 0-3.  These get 8 MSI/8 MSI-X vectors each.  VFs are supported by
56# these 4 PFs only.  Not used here at all.
57[function "0"]
58	nvf = 16
59	nvi = 1
60	rssnvi = 0
61[function "0/*"]
62	nvi = 1
63	rssnvi = 0
64
65[function "1"]
66	nvf = 16
67	nvi = 1
68	rssnvi = 0
69[function "1/*"]
70	nvi = 1
71	rssnvi = 0
72
73[function "2"]
74	nvf = 16
75	nvi = 1
76	rssnvi = 0
77[function "2/*"]
78	nvi = 1
79	rssnvi = 0
80
81[function "3"]
82	nvf = 16
83	nvi = 1
84	rssnvi = 0
85[function "3/*"]
86	nvi = 1
87	rssnvi = 0
88
89# PF4 is the resource-rich PF that the bus/nexus driver attaches to.
90# It gets 32 MSI/128 MSI-X vectors.
91[function "4"]
92	wx_caps = all
93	r_caps = all
94	nvi = 32
95	rssnvi = 8
96	niqflint = 512
97	nethctrl = 1024
98	neq = 2048
99	nexactf = 328
100	cmask = all
101	pmask = all
102
103	# driver will mask off features it won't use
104	protocol = ofld
105
106	tp_l2t = 4096
107	tp_ddp = 2
108
109	# TCAM has 8K cells; each region must start at a multiple of 128 cell.
110	# Each entry in these categories takes 4 cells each.  nhash will use the
111	# TCAM iff there is room left (that is, the rest don't add up to 2048).
112	nroute = 32
113	nclip = 32
114	nfilter = 1008
115	nserver = 512
116	nhash = 16384
117
118# PF5 is the SCSI Controller PF. It gets 32 MSI/40 MSI-X vectors.
119# Not used right now.
120[function "5"]
121	nvi = 1
122	rssnvi = 0
123
124# PF6 is the FCoE Controller PF. It gets 32 MSI/40 MSI-X vectors.
125# Not used right now.
126[function "6"]
127	nvi = 1
128	rssnvi = 0
129
130# The following function, 1023, is not an actual PCIE function but is used to
131# configure and reserve firmware internal resources that come from the global
132# resource pool.
133[function "1023"]
134	wx_caps = all
135	r_caps = all
136	nvi = 4
137	rssnvi = 0
138	cmask = all
139	pmask = all
140	nexactf = 8
141	nfilter = 16
142
143# MPS has 192K buffer space for ingress packets from the wire as well as
144# loopback path of the L2 switch.
145[port "0"]
146	dcb = none
147	bg_mem = 25
148	lpbk_mem = 25
149	hwm = 30
150	lwm = 15
151	dwm = 30
152
153[port "1"]
154	dcb = none
155	bg_mem = 25
156	lpbk_mem = 25
157	hwm = 30
158	lwm = 15
159	dwm = 30
160
161[port "2"]
162	dcb = none
163	bg_mem = 25
164	lpbk_mem = 25
165	hwm = 30
166	lwm = 15
167	dwm = 30
168
169[port "3"]
170	dcb = none
171	bg_mem = 25
172	lpbk_mem = 25
173	hwm = 30
174	lwm = 15
175	dwm = 30
176
177[fini]
178	version = 0x1
179	checksum = 0x6b54f66d
180#
181# $FreeBSD: head/sys/dev/cxgbe/firmware/t5fw_cfg.txt 290633 2015-11-10 02:29:19Z np $
182#
183