xref: /freebsd/sys/dev/cxgbe/firmware/t5fw_cfg.txt (revision 39ee7a7a6bdd1557b1c3532abf60d139798ac88b)
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	# TP OFLD MTUs
46	tp_mtus = 88, 256, 512, 576, 808, 1024, 1280, 1488, 1500, 2002, 2048, 4096, 4352, 8192, 9000, 9600
47
48	# MC configuration
49	mc_mode_brc[0] = 1		# mc0 - 1: enable BRC, 0: enable RBC
50	mc_mode_brc[1] = 1		# mc1 - 1: enable BRC, 0: enable RBC
51
52# PFs 0-3.  These get 8 MSI/8 MSI-X vectors each.  VFs are supported by
53# these 4 PFs only.  Not used here at all.
54[function "0"]
55	nvf = 16
56	nvi = 1
57	rssnvi = 0
58[function "0/*"]
59	nvi = 1
60	rssnvi = 0
61
62[function "1"]
63	nvf = 16
64	nvi = 1
65	rssnvi = 0
66[function "1/*"]
67	nvi = 1
68	rssnvi = 0
69
70[function "2"]
71	nvf = 16
72	nvi = 1
73	rssnvi = 0
74[function "2/*"]
75	nvi = 1
76	rssnvi = 0
77
78[function "3"]
79	nvf = 16
80	nvi = 1
81	rssnvi = 0
82[function "3/*"]
83	nvi = 1
84	rssnvi = 0
85
86# PF4 is the resource-rich PF that the bus/nexus driver attaches to.
87# It gets 32 MSI/128 MSI-X vectors.
88[function "4"]
89	wx_caps = all
90	r_caps = all
91	nvi = 32
92	rssnvi = 8
93	niqflint = 512
94	nethctrl = 1024
95	neq = 2048
96	nexactf = 328
97	cmask = all
98	pmask = all
99
100	# driver will mask off features it won't use
101	protocol = ofld
102
103	tp_l2t = 4096
104	tp_ddp = 2
105
106	# TCAM has 8K cells; each region must start at a multiple of 128 cell.
107	# Each entry in these categories takes 4 cells each.  nhash will use the
108	# TCAM iff there is room left (that is, the rest don't add up to 2048).
109	nroute = 32
110	nclip = 32
111	nfilter = 1008
112	nserver = 512
113	nhash = 16384
114
115# PF5 is the SCSI Controller PF. It gets 32 MSI/40 MSI-X vectors.
116# Not used right now.
117[function "5"]
118	nvi = 1
119	rssnvi = 0
120
121# PF6 is the FCoE Controller PF. It gets 32 MSI/40 MSI-X vectors.
122# Not used right now.
123[function "6"]
124	nvi = 1
125	rssnvi = 0
126
127# The following function, 1023, is not an actual PCIE function but is used to
128# configure and reserve firmware internal resources that come from the global
129# resource pool.
130[function "1023"]
131	wx_caps = all
132	r_caps = all
133	nvi = 4
134	rssnvi = 0
135	cmask = all
136	pmask = all
137	nexactf = 8
138	nfilter = 16
139
140# MPS has 192K buffer space for ingress packets from the wire as well as
141# loopback path of the L2 switch.
142[port "0"]
143	dcb = none
144	bg_mem = 25
145	lpbk_mem = 25
146	hwm = 30
147	lwm = 15
148	dwm = 30
149
150[port "1"]
151	dcb = none
152	bg_mem = 25
153	lpbk_mem = 25
154	hwm = 30
155	lwm = 15
156	dwm = 30
157
158[port "2"]
159	dcb = none
160	bg_mem = 25
161	lpbk_mem = 25
162	hwm = 30
163	lwm = 15
164	dwm = 30
165
166[port "3"]
167	dcb = none
168	bg_mem = 25
169	lpbk_mem = 25
170	hwm = 30
171	lwm = 15
172	dwm = 30
173
174[fini]
175	version = 0x1
176	checksum = 0x4f45e608
177#
178# $FreeBSD$
179#
180