t4fw_cfg_uwire.txt revision 237436
1169691Skan# Chelsio T4 Factory Default configuration file.
2169691Skan#
3169691Skan# Copyright (C) 2010-2012 Chelsio Communications.  All rights reserved.
4169691Skan#
5169691Skan#   DO NOT MODIFY THIS FILE UNDER ANY CIRCUMSTANCES.  MODIFICATION OF
6169691Skan#   THIS FILE WILL RESULT IN A NON-FUNCTIONAL T4 ADAPTER AND MAY RESULT
7169691Skan#   IN PHYSICAL DAMAGE TO T4 ADAPTERS.
8169691Skan
9169691Skan# This file provides the default, power-on configuration for 4-port T4-based
10169691Skan# adapters shipped from the factory.  These defaults are designed to address
11169691Skan# the needs of the vast majority of T4 customers.  The basic idea is to have
12169691Skan# a default configuration which allows a customer to plug a T4 adapter in and
13169691Skan# have it work regardless of OS, driver or application except in the most
14169691Skan# unusual and/or demanding customer applications.
15169691Skan#
16169691Skan# Many of the T4 resources which are described by this configuration are
17169691Skan# finite.  This requires balancing the configuration/operation needs of
18169691Skan# device drivers across OSes and a large number of customer application.
19169691Skan#
20169691Skan# Some of the more important resources to allocate and their constaints are:
21169691Skan#  1. Virtual Interfaces: 128.
22169691Skan#  2. Ingress Queues with Free Lists: 1024.  PCI-E SR-IOV Virtual Functions
23169691Skan#     must use a power of 2 Ingress Queues.
24169691Skan#  3. Egress Queues: 128K.  PCI-E SR-IOV Virtual Functions must use a
25169691Skan#     power of 2 Egress Queues.
26169691Skan#  4. MSI-X Vectors: 1088.  A complication here is that the PCI-E SR-IOV
27169691Skan#     Virtual Functions based off of a Physical Function all get the
28169691Skan#     same umber of MSI-X Vectors as the base Physical Function.
29169691Skan#     Additionally, regardless of whether Virtual Functions are enabled or
30169691Skan#     not, their MSI-X "needs" are counted by the PCI-E implementation.
31169691Skan#     And finally, all Physical Funcations capable of supporting Virtual
32169691Skan#     Functions (PF0-3) must have the same number of configured TotalVFs in
33169691Skan#     their SR-IOV Capabilities.
34169691Skan#  5. Multi-Port Support (MPS) TCAM: 336 entries to support MAC destination
35169691Skan#     address matching on Ingress Packets.
36169691Skan#
37169691Skan# Some of the important OS/Driver resource needs are:
38169691Skan#  6. Some OS Drivers will manage all resources through a single Physical
39169691Skan#     Function (currently PF0 but it could be any Physical Function).  Thus,
40169691Skan#     this "Unified PF"  will need to have enough resources allocated to it
41169691Skan#     to allow for this.  And because of the MSI-X resource allocation
42169691Skan#     constraints mentioned above, this probably means we'll either have to
43169691Skan#     severely limit the TotalVFs if we continue to use PF0 as the Unified PF
44169691Skan#     or we'll need to move the Unified PF into the PF4-7 range since those
45169691Skan#     Physical Functions don't have any Virtual Functions associated with
46169691Skan#     them.
47169691Skan#  7. Some OS Drivers will manage different ports and functions (NIC,
48169691Skan#     storage, etc.) on different Physical Functions.  For example, NIC
49169691Skan#     functions for ports 0-3 on PF0-3, FCoE on PF4, iSCSI on PF5, etc.
50169691Skan#
51169691Skan# Some of the customer application needs which need to be accommodated:
52169691Skan#  8. Some customers will want to support large CPU count systems with
53169691Skan#     good scaling.  Thus, we'll need to accommodate a number of
54169691Skan#     Ingress Queues and MSI-X Vectors to allow up to some number of CPUs
55169691Skan#     to be involved per port and per application function.  For example,
56169691Skan#     in the case where all ports and application functions will be
57169691Skan#     managed via a single Unified PF and we want to accommodate scaling up
58169691Skan#     to 8 CPUs, we would want:
59169691Skan#
60169691Skan#         4 ports *
61169691Skan#         3 application functions (NIC, FCoE, iSCSI) per port *
62169691Skan#         8 Ingress Queue/MSI-X Vectors per application function
63169691Skan#
64169691Skan#     for a total of 96 Ingress Queues and MSI-X Vectors on the Unified PF.
65169691Skan#     (Plus a few for Firmware Event Queues, etc.)
66169691Skan#
67169691Skan#  9. Some customers will want to use T4's PCI-E SR-IOV Capability to allow
68169691Skan#     Virtual Machines to directly access T4 functionality via SR-IOV
69169691Skan#     Virtual Functions and "PCI Device Passthrough" -- this is especially
70169691Skan#     true for the NIC application functionality.  (Note that there is
71169691Skan#     currently no ability to use the TOE, FCoE, iSCSI, etc. via Virtual
72169691Skan#     Functions so this is in fact solely limited to NIC.)
73169691Skan#
74169691Skan
75169691Skan
76169691Skan# Global configuration settings.
77169691Skan#
78169691Skan[global]
79169691Skan	rss_glb_config_mode = basicvirtual
80169691Skan	rss_glb_config_options = tnlmapen,hashtoeplitz,tnlalllkp
81169691Skan
82169691Skan	# The following Scatter Gather Engine (SGE) settings assume a 4KB Host
83169691Skan	# Page Size and a 64B L1 Cache Line Size. It programs the
84169691Skan	# EgrStatusPageSize and IngPadBoundary to 64B and the PktShift to 2.
85169691Skan	# If a Master PF Driver finds itself on a machine with different
86169691Skan	# parameters, then the Master PF Driver is responsible for initializing
87169691Skan	# these parameters to appropriate values.
88169691Skan	#
89169691Skan	# Notes:
90169691Skan	#  1. The Free List Buffer Sizes below are raw and the firmware will
91169691Skan	#     round them up to the Ingress Padding Boundary.
92169691Skan	#  2. The SGE Timer Values below are expressed below in microseconds.
93169691Skan	#     The firmware will convert these values to Core Clock Ticks when
94169691Skan	#     it processes the configuration parameters.
95169691Skan	#
96169691Skan	reg[0x1008] = 0x40810/0x21c70	# SGE_CONTROL
97169691Skan	reg[0x100c] = 0x22222222	# SGE_HOST_PAGE_SIZE
98169691Skan	reg[0x10a0] = 0x01040810	# SGE_INGRESS_RX_THRESHOLD
99169691Skan	reg[0x1044] = 4096		# SGE_FL_BUFFER_SIZE0
100169691Skan	reg[0x1048] = 65536		# SGE_FL_BUFFER_SIZE1
101169691Skan	reg[0x104c] = 1536		# SGE_FL_BUFFER_SIZE2
102169691Skan	reg[0x1050] = 9024		# SGE_FL_BUFFER_SIZE3
103169691Skan	reg[0x1054] = 9216		# SGE_FL_BUFFER_SIZE4
104169691Skan	reg[0x1058] = 2048		# SGE_FL_BUFFER_SIZE5
105169691Skan	reg[0x105c] = 128		# SGE_FL_BUFFER_SIZE6
106169691Skan	reg[0x1060] = 8192		# SGE_FL_BUFFER_SIZE7
107169691Skan	reg[0x1064] = 16384		# SGE_FL_BUFFER_SIZE8
108169691Skan	reg[0x10a4] = 0xa000a000/0xf000f000 # SGE_DBFIFO_STATUS
109169691Skan	reg[0x10a8] = 0x2000/0x2000	# SGE_DOORBELL_CONTROL
110169691Skan	sge_timer_value = 5, 10, 20, 50, 100, 200 # SGE_TIMER_VALUE* in usecs
111169691Skan
112169691Skan	reg[0x7dc0] = 0x64f8849		# TP_SHIFT_CNT
113169691Skan
114169691Skan	# Selection of tuples for LE filter lookup, fields (and widths which
115169691Skan	# must sum to <= 36): { IP Fragment (1), MPS Match Type (3),
116169691Skan	# IP Protocol (8), [Inner] VLAN (17), Port (3), FCoE (1) }
117169691Skan	#
118169691Skan	filterMode = fragmentation, mpshittype, protocol, vlan, port, fcoe
119169691Skan
120169691Skan	# Percentage of dynamic memory (in either the EDRAM or external MEM)
121169691Skan	# to use for TP RX payload
122169691Skan	tp_pmrx = 30
123169691Skan
124169691Skan	# TP RX payload page size
125169691Skan	tp_pmrx_pagesize = 64K
126169691Skan
127169691Skan	# Percentage of dynamic memory (in either the EDRAM or external MEM)
128169691Skan	# to use for TP TX payload
129169691Skan	tp_pmtx = 50
130169691Skan
131169691Skan	# TP TX payload page size
132169691Skan	tp_pmtx_pagesize = 64K
133169691Skan
134169691Skan# Some "definitions" to make the rest of this a bit more readable.  We support
135169691Skan# 4 ports, 3 functions (NIC, FCoE and iSCSI), scaling up to 8 "CPU Queue Sets"
136169691Skan# per function per port ...
137169691Skan#
138169691Skan# NMSIX = 1088			# available MSI-X Vectors
139169691Skan# NVI = 128			# available Virtual Interfaces
140169691Skan# NMPSTCAM = 336		# MPS TCAM entries
141169691Skan#
142169691Skan# NPORTS = 4			# ports
143169691Skan# NCPUS = 8			# CPUs we want to support scalably
144169691Skan# NFUNCS = 3			# functions per port (NIC, FCoE, iSCSI)
145169691Skan
146169691Skan# Breakdown of Virtual Interface/Queue/Interrupt resources for the "Unified
147169691Skan# PF" which many OS Drivers will use to manage most or all functions.
148169691Skan#
149169691Skan# Each Ingress Queue can use one MSI-X interrupt but some Ingress Queues can
150169691Skan# use Forwarded Interrupt Ingress Queues.  For these latter, an Ingress Queue
151169691Skan# would be created and the Queue ID of a Forwarded Interrupt Ingress Queue
152169691Skan# will be specified as the "Ingress Queue Asynchronous Destination Index."
153169691Skan# Thus, the number of MSI-X Vectors assigned to the Unified PF will be less
154169691Skan# than or equal to the number of Ingress Queues ...
155169691Skan#
156169691Skan# NVI_NIC = 4			# NIC access to NPORTS
157169691Skan# NFLIQ_NIC = 32		# NIC Ingress Queues with Free Lists
158169691Skan# NETHCTRL_NIC = 32		# NIC Ethernet Control/TX Queues
159169691Skan# NEQ_NIC = 64			# NIC Egress Queues (FL, ETHCTRL/TX)
160169691Skan# NMPSTCAM_NIC = 16		# NIC MPS TCAM Entries (NPORTS*4)
161169691Skan# NMSIX_NIC = 32		# NIC MSI-X Interrupt Vectors (FLIQ)
162169691Skan# 
163169691Skan# NVI_OFLD = 0			# Offload uses NIC function to access ports
164169691Skan# NFLIQ_OFLD = 16		# Offload Ingress Queues with Free Lists
165169691Skan# NETHCTRL_OFLD = 0		# Offload Ethernet Control/TX Queues
166169691Skan# NEQ_OFLD = 16			# Offload Egress Queues (FL)
167169691Skan# NMPSTCAM_OFLD = 0		# Offload MPS TCAM Entries (uses NIC's)
168169691Skan# NMSIX_OFLD = 16		# Offload MSI-X Interrupt Vectors (FLIQ)
169169691Skan#
170169691Skan# NVI_RDMA = 0			# RDMA uses NIC function to access ports
171169691Skan# NFLIQ_RDMA = 4		# RDMA Ingress Queues with Free Lists
172169691Skan# NETHCTRL_RDMA = 0		# RDMA Ethernet Control/TX Queues
173169691Skan# NEQ_RDMA = 4			# RDMA Egress Queues (FL)
174169691Skan# NMPSTCAM_RDMA = 0		# RDMA MPS TCAM Entries (uses NIC's)
175169691Skan# NMSIX_RDMA = 4		# RDMA MSI-X Interrupt Vectors (FLIQ)
176169691Skan#
177169691Skan# NEQ_WD = 128			# Wire Direct TX Queues and FLs
178169691Skan# NETHCTRL_WD = 64		# Wire Direct TX Queues
179169691Skan# NFLIQ_WD = 64	`		# Wire Direct Ingress Queues with Free Lists
180169691Skan#
181169691Skan# NVI_ISCSI = 4			# ISCSI access to NPORTS
182169691Skan# NFLIQ_ISCSI = 4		# ISCSI Ingress Queues with Free Lists
183169691Skan# NETHCTRL_ISCSI = 0		# ISCSI Ethernet Control/TX Queues
184169691Skan# NEQ_ISCSI = 4			# ISCSI Egress Queues (FL)
185169691Skan# NMPSTCAM_ISCSI = 4		# ISCSI MPS TCAM Entries (NPORTS)
186169691Skan# NMSIX_ISCSI = 4		# ISCSI MSI-X Interrupt Vectors (FLIQ)
187169691Skan#
188169691Skan# NVI_FCOE = 4			# FCOE access to NPORTS
189169691Skan# NFLIQ_FCOE = 34		# FCOE Ingress Queues with Free Lists
190169691Skan# NETHCTRL_FCOE = 32		# FCOE Ethernet Control/TX Queues
191169691Skan# NEQ_FCOE = 66			# FCOE Egress Queues (FL)
192169691Skan# NMPSTCAM_FCOE = 32 		# FCOE MPS TCAM Entries (NPORTS)
193169691Skan# NMSIX_FCOE = 34		# FCOE MSI-X Interrupt Vectors (FLIQ)
194169691Skan
195169691Skan# Two extra Ingress Queues per function for Firmware Events and Forwarded
196169691Skan# Interrupts, and two extra interrupts per function for Firmware Events (or a
197169691Skan# Forwarded Interrupt Queue) and General Interrupts per function.
198169691Skan#
199169691Skan# NFLIQ_EXTRA = 6		# "extra" Ingress Queues 2*NFUNCS (Firmware and
200169691Skan# 				#   Forwarded Interrupts
201169691Skan# NMSIX_EXTRA = 6		# extra interrupts 2*NFUNCS (Firmware and
202169691Skan# 				#   General Interrupts
203169691Skan
204169691Skan# Microsoft HyperV resources.  The HyperV Virtual Ingress Queues will have
205169691Skan# their interrupts forwarded to another set of Forwarded Interrupt Queues.
206169691Skan#
207169691Skan# NVI_HYPERV = 16		# VMs we want to support
208169691Skan# NVIIQ_HYPERV = 2		# Virtual Ingress Queues with Free Lists per VM
209169691Skan# NFLIQ_HYPERV = 40		# VIQs + NCPUS Forwarded Interrupt Queues
210169691Skan# NEQ_HYPERV = 32		# VIQs Free Lists
211169691Skan# NMPSTCAM_HYPERV = 16		# MPS TCAM Entries (NVI_HYPERV)
212169691Skan# NMSIX_HYPERV = 8		# NCPUS Forwarded Interrupt Queues
213169691Skan
214169691Skan# Adding all of the above Unified PF resource needs together: (NIC + OFLD +
215169691Skan# RDMA + ISCSI + FCOE + EXTRA + HYPERV)
216169691Skan#
217169691Skan# NVI_UNIFIED = 28
218169691Skan# NFLIQ_UNIFIED = 106
219169691Skan# NETHCTRL_UNIFIED = 32
220169691Skan# NEQ_UNIFIED = 124
221169691Skan# NMPSTCAM_UNIFIED = 40
222169691Skan#
223169691Skan# The sum of all the MSI-X resources above is 74 MSI-X Vectors but we'll round
224169691Skan# that up to 128 to make sure the Unified PF doesn't run out of resources.
225169691Skan#
226169691Skan# NMSIX_UNIFIED = 128
227169691Skan#
228169691Skan# The Storage PFs could need up to NPORTS*NCPUS + NMSIX_EXTRA MSI-X Vectors
229169691Skan# which is 34 but they're probably safe with 32.
230169691Skan#
231169691Skan# NMSIX_STORAGE = 32
232169691Skan
233169691Skan# Note: The UnifiedPF is PF4 which doesn't have any Virtual Functions
234169691Skan# associated with it.  Thus, the MSI-X Vector allocations we give to the
235169691Skan# UnifiedPF aren't inherited by any Virtual Functions.  As a result we can
236169691Skan# provision many more Virtual Functions than we can if the UnifiedPF were
237169691Skan# one of PF0-3.
238169691Skan#
239169691Skan
240169691Skan# All of the below PCI-E parameters are actually stored in various *_init.txt
241169691Skan# files.  We include them below essentially as comments.
242169691Skan#
243169691Skan# For PF0-3 we assign 8 vectors each for NIC Ingress Queues of the associated
244169691Skan# ports 0-3.
245169691Skan#
246169691Skan# For PF4, the Unified PF, we give it an MSI-X Table Size as outlined above.
247169691Skan#
248169691Skan# For PF5-6 we assign enough MSI-X Vectors to support FCoE and iSCSI
249169691Skan# storage applications across all four possible ports.
250169691Skan#
251169691Skan# Additionally, since the UnifiedPF isn't one of the per-port Physical
252169691Skan# Functions, we give the UnifiedPF and the PF0-3 Physical Functions
253169691Skan# different PCI Device IDs which will allow Unified and Per-Port Drivers
254169691Skan# to directly select the type of Physical Function to which they wish to be
255169691Skan# attached.
256169691Skan#
257169691Skan# Note that the actual values used for the PCI-E Intelectual Property will be
258169691Skan# 1 less than those below since that's the way it "counts" things.  For
259169691Skan# readability, we use the number we actually mean ...
260169691Skan#
261169691Skan# PF0_INT = 8			# NCPUS
262169691Skan# PF1_INT = 8			# NCPUS
263169691Skan# PF2_INT = 8			# NCPUS
264169691Skan# PF3_INT = 8			# NCPUS
265169691Skan# PF0_3_INT = 32		# PF0_INT + PF1_INT + PF2_INT + PF3_INT
266169691Skan# 
267169691Skan# PF4_INT = 128			# NMSIX_UNIFIED
268169691Skan# PF5_INT = 32			# NMSIX_STORAGE
269169691Skan# PF6_INT = 32			# NMSIX_STORAGE
270169691Skan# PF7_INT = 0			# Nothing Assigned
271169691Skan# PF4_7_INT = 192		# PF4_INT + PF5_INT + PF6_INT + PF7_INT
272169691Skan# 
273169691Skan# PF0_7_INT = 224		# PF0_3_INT + PF4_7_INT
274169691Skan# 
275169691Skan# With the above we can get 17 VFs/PF0-3 (limited by 336 MPS TCAM entries)
276169691Skan# but we'll lower that to 16 to make our total 64 and a nice power of 2 ...
277169691Skan#
278169691Skan# NVF = 16
279169691Skan
280169691Skan# For those OSes which manage different ports on different PFs, we need
281169691Skan# only enough resources to support a single port's NIC application functions
282169691Skan# on PF0-3.  The below assumes that we're only doing NIC with NCPUS "Queue
283169691Skan# Sets" for ports 0-3.  The FCoE and iSCSI functions for such OSes will be
284169691Skan# managed on the "storage PFs" (see below).
285169691Skan#
286169691Skan[function "0"]
287169691Skan	nvf = 16		# NVF on this function
288169691Skan	wx_caps = all		# write/execute permissions for all commands
289169691Skan	r_caps = all		# read permissions for all commands
290169691Skan	nvi = 1			# 1 port
291169691Skan	niqflint = 8		# NCPUS "Queue Sets"
292169691Skan	nethctrl = 8		# NCPUS "Queue Sets"
293169691Skan	neq = 16		# niqflint + nethctrl Egress Queues
294	nexactf = 8		# number of exact MPSTCAM MAC filters
295	cmask = all		# access to all channels
296	pmask = 0x1		# access to only one port
297
298[function "1"]
299	nvf = 16		# NVF on this function
300	wx_caps = all		# write/execute permissions for all commands
301	r_caps = all		# read permissions for all commands
302	nvi = 1			# 1 port
303	niqflint = 8		# NCPUS "Queue Sets"
304	nethctrl = 8		# NCPUS "Queue Sets"
305	neq = 16		# niqflint + nethctrl Egress Queues
306	nexactf = 8		# number of exact MPSTCAM MAC filters
307	cmask = all		# access to all channels
308	pmask = 0x2		# access to only one port
309
310[function "2"]
311	nvf = 16		# NVF on this function
312	wx_caps = all		# write/execute permissions for all commands
313	r_caps = all		# read permissions for all commands
314	nvi = 1			# 1 port
315	niqflint = 8		# NCPUS "Queue Sets"
316	nethctrl = 8		# NCPUS "Queue Sets"
317	neq = 16		# niqflint + nethctrl Egress Queues
318	nexactf = 8		# number of exact MPSTCAM MAC filters
319	cmask = all		# access to all channels
320	pmask = 0x4		# access to only one port
321
322[function "3"]
323	nvf = 16		# NVF on this function
324	wx_caps = all		# write/execute permissions for all commands
325	r_caps = all		# read permissions for all commands
326	nvi = 1			# 1 port
327	niqflint = 8		# NCPUS "Queue Sets"
328	nethctrl = 8		# NCPUS "Queue Sets"
329	neq = 16		# niqflint + nethctrl Egress Queues
330	nexactf = 8		# number of exact MPSTCAM MAC filters
331	cmask = all		# access to all channels
332	pmask = 0x8		# access to only one port
333
334# Some OS Drivers manage all application functions for all ports via PF4.
335# Thus we need to provide a large number of resources here.  For Egress
336# Queues we need to account for both TX Queues as well as Free List Queues
337# (because the host is responsible for producing Free List Buffers for the
338# hardware to consume).
339#
340[function "4"]
341	wx_caps = all		# write/execute permissions for all commands
342	r_caps = all		# read permissions for all commands
343	nvi = 28		# NVI_UNIFIED
344	niqflint = 170		# NFLIQ_UNIFIED + NLFIQ_WD
345	nethctrl = 100		# NETHCTRL_UNIFIED + NETHCTRL_WD
346	neq = 256		# NEQ_UNIFIED + NEQ_WD
347	nexactf = 40		# NMPSTCAM_UNIFIED
348	cmask = all		# access to all channels
349	pmask = all		# access to all four ports ...
350	nethofld = 1024		# number of user mode ethernet flow contexts
351	nroute = 32		# number of routing region entries
352	nclip = 32		# number of clip region entries
353	nfilter = 496		# number of filter region entries
354	nserver = 496		# number of server region entries
355	nhash = 12288		# number of hash region entries
356	protocol = nic_vm, ofld, rddp, rdmac, iscsi_initiator_pdu, iscsi_target_pdu
357	tp_l2t = 3072
358	tp_ddp = 2
359	tp_ddp_iscsi = 2
360	tp_stag = 2
361	tp_pbl = 5
362	tp_rq = 7
363
364# We have FCoE and iSCSI storage functions on PF5 and PF6 each of which may
365# need to have Virtual Interfaces on each of the four ports with up to NCPUS
366# "Queue Sets" each.
367#
368[function "5"]
369	wx_caps = all		# write/execute permissions for all commands
370	r_caps = all		# read permissions for all commands
371	nvi = 4			# NPORTS
372	niqflint = 34		# NPORTS*NCPUS + NMSIX_EXTRA
373	nethctrl = 32		# NPORTS*NCPUS
374	neq = 64		# NPORTS*NCPUS * 2 (FL, ETHCTRL/TX)
375	nexactf = 4		# NPORTS
376	cmask = all		# access to all channels
377	pmask = all		# access to all four ports ...
378	nserver = 16
379	nhash = 2048
380	tp_l2t = 1024
381	protocol = iscsi_initiator_fofld
382	tp_ddp_iscsi = 2
383	iscsi_ntask = 2048
384	iscsi_nsess = 2048
385	iscsi_nconn_per_session = 1
386	iscsi_ninitiator_instance = 64
387
388[function "6"]
389	wx_caps = all		# write/execute permissions for all commands
390	r_caps = all		# read permissions for all commands
391	nvi = 4			# NPORTS
392	niqflint = 34		# NPORTS*NCPUS + NMSIX_EXTRA
393	nethctrl = 32		# NPORTS*NCPUS
394	neq = 66		# NPORTS*NCPUS * 2 (FL, ETHCTRL/TX) + 2 (EXTRA)
395	nexactf = 32		# NPORTS + adding 28 exact entries for FCoE
396				# which is OK since < MIN(SUM PF0..3, PF4)
397				# and we never load PF0..3 and PF4 concurrently
398	cmask = all		# access to all channels
399	pmask = all		# access to all four ports ...
400	nhash = 2048
401	protocol = fcoe_initiator
402	tp_ddp = 2
403	fcoe_nfcf = 16
404	fcoe_nvnp = 32
405	fcoe_nssn = 1024
406
407# The following function, 1023, is not an actual PCIE function but is used to
408# configure and reserve firmware internal resources that come from the global
409# resource pool.
410#
411[function "1023"]
412	wx_caps = all		# write/execute permissions for all commands
413	r_caps = all		# read permissions for all commands
414	nvi = 4			# NVI_UNIFIED
415	cmask = all		# access to all channels
416	pmask = all		# access to all four ports ...
417	nexactf = 8		# NPORTS + DCBX +
418	nfilter = 16		# number of filter region entries
419
420# For Virtual functions, we only allow NIC functionality and we only allow
421# access to one port (1 << PF).  Note that because of limitations in the
422# Scatter Gather Engine (SGE) hardware which checks writes to VF KDOORBELL
423# and GTS registers, the number of Ingress and Egress Queues must be a power
424# of 2.
425#
426[function "0/*"]		# NVF
427	wx_caps = 0x82		# DMAQ | VF
428	r_caps = 0x86		# DMAQ | VF | PORT
429	nvi = 1			# 1 port
430	niqflint = 4		# 2 "Queue Sets" + NXIQ
431	nethctrl = 2		# 2 "Queue Sets"
432	neq = 4			# 2 "Queue Sets" * 2
433	nexactf = 4
434	cmask = all		# access to all channels
435	pmask = 0x1		# access to only one port ...
436
437[function "1/*"]		# NVF
438	wx_caps = 0x82		# DMAQ | VF
439	r_caps = 0x86		# DMAQ | VF | PORT
440	nvi = 1			# 1 port
441	niqflint = 4		# 2 "Queue Sets" + NXIQ
442	nethctrl = 2		# 2 "Queue Sets"
443	neq = 4			# 2 "Queue Sets" * 2
444	nexactf = 4
445	cmask = all		# access to all channels
446	pmask = 0x2		# access to only one port ...
447
448[function "2/*"]		# NVF
449	wx_caps = 0x82		# DMAQ | VF
450	r_caps = 0x86		# DMAQ | VF | PORT
451	nvi = 1			# 1 port
452	niqflint = 4		# 2 "Queue Sets" + NXIQ
453	nethctrl = 2		# 2 "Queue Sets"
454	neq = 4			# 2 "Queue Sets" * 2
455	nexactf = 4
456	cmask = all		# access to all channels
457	pmask = 0x4		# access to only one port ...
458
459[function "3/*"]		# NVF
460	wx_caps = 0x82		# DMAQ | VF
461	r_caps = 0x86		# DMAQ | VF | PORT
462	nvi = 1			# 1 port
463	niqflint = 4		# 2 "Queue Sets" + NXIQ
464	nethctrl = 2		# 2 "Queue Sets"
465	neq = 4			# 2 "Queue Sets" * 2
466	nexactf = 4
467	cmask = all		# access to all channels
468	pmask = 0x8		# access to only one port ...
469
470# MPS features a 196608 bytes ingress buffer that is used for ingress buffering
471# for packets from the wire as well as the loopback path of the L2 switch. The
472# folling params control how the buffer memory is distributed and the L2 flow
473# control settings:
474#
475# bg_mem:	%-age of mem to use for port/buffer group
476# lpbk_mem:	%-age of port/bg mem to use for loopback
477# hwm:		high watermark; bytes available when starting to send pause
478#		frames (in units of 0.1 MTU)
479# lwm:		low watermark; bytes remaining when sending 'unpause' frame
480#		(in inuits of 0.1 MTU)
481# dwm:		minimum delta between high and low watermark (in units of 100
482#		Bytes)
483#
484[port "0"]
485	dcb = ppp, dcbx		# configure for DCB PPP and enable DCBX offload
486	bg_mem = 25
487	lpbk_mem = 25
488	hwm = 30
489	lwm = 15
490	dwm = 30
491
492[port "1"]
493	dcb = ppp, dcbx
494	bg_mem = 25
495	lpbk_mem = 25
496	hwm = 30
497	lwm = 15
498	dwm = 30
499
500[port "2"]
501	dcb = ppp, dcbx
502	bg_mem = 25
503	lpbk_mem = 25
504	hwm = 30
505	lwm = 15
506	dwm = 30
507
508[port "3"]
509	dcb = ppp, dcbx
510	bg_mem = 25
511	lpbk_mem = 25
512	hwm = 30
513	lwm = 15
514	dwm = 30
515
516[fini]
517	version = 0x1425000b
518	checksum = 0x7690f7a5
519
520# Total resources used by above allocations:
521#   Virtual Interfaces: 104
522#   Ingress Queues/w Free Lists and Interrupts: 526
523#   Egress Queues: 702
524#   MPS TCAM Entries: 336
525#   MSI-X Vectors: 736
526#   Virtual Functions: 64
527#
528# $FreeBSD: head/sys/dev/cxgbe/firmware/t4fw_cfg_uwire.txt 237436 2012-06-22 07:51:15Z np $
529#
530