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