xref: /freebsd/sys/dev/cxgbe/firmware/t4fw_cfg.txt (revision a98ff317388a00b992f1bf8404dee596f9383f5e)
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 = 336		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	sge_timer_value = 1, 5, 10, 50, 100, 200	# usecs
16
17	# TP_SHIFT_CNT
18	reg[0x7dc0] = 0x62f8849
19
20	filterMode = fragmentation, mpshittype, protocol, vlan, port, fcoe
21
22	# TP rx and tx channels (0 = auto).
23	tp_nrxch = 0
24	tp_ntxch = 0
25
26	# TP rx and tx payload memory (% of the total EDRAM + DDR3).
27	tp_pmrx = 38
28	tp_pmtx = 60
29	tp_pmrx_pagesize = 64K
30	tp_pmtx_pagesize = 64K
31
32# PFs 0-3.  These get 8 MSI/8 MSI-X vectors each.  VFs are supported by
33# these 4 PFs only.  Not used here at all.
34[function "0"]
35	nvf = 16
36	nvi = 1
37[function "0/*"]
38	nvi = 1
39
40[function "1"]
41	nvf = 16
42	nvi = 1
43[function "1/*"]
44	nvi = 1
45
46[function "2"]
47	nvf = 16
48	nvi = 1
49[function "2/*"]
50	nvi = 1
51
52[function "3"]
53	nvf = 16
54	nvi = 1
55[function "3/*"]
56	nvi = 1
57
58# PF4 is the resource-rich PF that the bus/nexus driver attaches to.
59# It gets 32 MSI/128 MSI-X vectors.
60[function "4"]
61	wx_caps = all
62	r_caps = all
63	nvi = 32
64	niqflint = 256
65	nethctrl = 128
66	neq = 256
67	nexactf = 328
68	cmask = all
69	pmask = all
70
71	# driver will mask off features it won't use
72	protocol = ofld
73
74	tp_l2t = 4096
75	tp_ddp = 2
76
77	# TCAM has 8K cells; each region must start at a multiple of 128 cell.
78	# Each entry in these categories takes 4 cells each.  nhash will use the
79	# TCAM iff there is room left (that is, the rest don't add up to 2048).
80	nroute = 32
81	nclip = 32
82	nfilter = 1456
83	nserver = 512
84	nhash = 16384
85
86# PF5 is the SCSI Controller PF. It gets 32 MSI/40 MSI-X vectors.
87# Not used right now.
88[function "5"]
89	nvi = 1
90
91# PF6 is the FCoE Controller PF. It gets 32 MSI/40 MSI-X vectors.
92# Not used right now.
93[function "6"]
94	nvi = 1
95
96# The following function, 1023, is not an actual PCIE function but is used to
97# configure and reserve firmware internal resources that come from the global
98# resource pool.
99[function "1023"]
100	wx_caps = all
101	r_caps = all
102	nvi = 4
103	cmask = all
104	pmask = all
105	nexactf = 8
106	nfilter = 16
107
108# MPS has 192K buffer space for ingress packets from the wire as well as
109# loopback path of the L2 switch.
110[port "0"]
111	dcb = none
112	bg_mem = 25
113	lpbk_mem = 25
114	hwm = 30
115	lwm = 15
116	dwm = 30
117
118[port "1"]
119	dcb = none
120	bg_mem = 25
121	lpbk_mem = 25
122	hwm = 30
123	lwm = 15
124	dwm = 30
125
126[port "2"]
127	dcb = none
128	bg_mem = 25
129	lpbk_mem = 25
130	hwm = 30
131	lwm = 15
132	dwm = 30
133
134[port "3"]
135	dcb = none
136	bg_mem = 25
137	lpbk_mem = 25
138	hwm = 30
139	lwm = 15
140	dwm = 30
141
142[fini]
143	version = 0x1
144	checksum = 0x6cc2514b
145#
146# $FreeBSD$
147#
148