Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Sep 2020 22:14:11 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r365861 - in head/sys: conf dev/cxgbe/firmware modules/cxgbe/t4_firmware modules/cxgbe/t5_firmware modules/cxgbe/t6_firmware
Message-ID:  <202009172214.08HMEBJI046308@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Thu Sep 17 22:14:11 2020
New Revision: 365861
URL: https://svnweb.freebsd.org/changeset/base/365861

Log:
  cxgbe(4): Update T4/5/6 firmwares to 1.25.0.0.
  
  Obtained from:	Chelsio Communications
  MFC after:	3 days
  Sponsored by:	Chelsio Communications

Added:
  head/sys/dev/cxgbe/firmware/t4fw-1.25.0.0.bin   (contents, props changed)
  head/sys/dev/cxgbe/firmware/t5fw-1.25.0.0.bin   (contents, props changed)
  head/sys/dev/cxgbe/firmware/t6fw-1.25.0.0.bin   (contents, props changed)
Deleted:
  head/sys/dev/cxgbe/firmware/t4fw-1.24.12.0.bin
  head/sys/dev/cxgbe/firmware/t5fw-1.24.12.0.bin
  head/sys/dev/cxgbe/firmware/t6fw-1.24.12.0.bin
Modified:
  head/sys/conf/files
  head/sys/dev/cxgbe/firmware/t4fw_interface.h
  head/sys/dev/cxgbe/firmware/t6fw_cfg.txt
  head/sys/dev/cxgbe/firmware/t6fw_cfg_uwire.txt
  head/sys/modules/cxgbe/t4_firmware/Makefile
  head/sys/modules/cxgbe/t5_firmware/Makefile
  head/sys/modules/cxgbe/t6_firmware/Makefile

Modified: head/sys/conf/files
==============================================================================
--- head/sys/conf/files	Thu Sep 17 21:51:05 2020	(r365860)
+++ head/sys/conf/files	Thu Sep 17 22:14:11 2020	(r365861)
@@ -1514,7 +1514,7 @@ t4fw.fwo		optional cxgbe					\
 	no-implicit-rule						\
 	clean		"t4fw.fwo"
 t4fw.fw			optional cxgbe					\
-	dependency	"$S/dev/cxgbe/firmware/t4fw-1.24.12.0.bin"	\
+	dependency	"$S/dev/cxgbe/firmware/t4fw-1.25.0.0.bin"	\
 	compile-with	"${CP} ${.ALLSRC} ${.TARGET}"			\
 	no-obj no-implicit-rule						\
 	clean		"t4fw.fw"
@@ -1548,7 +1548,7 @@ t5fw.fwo		optional cxgbe					\
 	no-implicit-rule						\
 	clean		"t5fw.fwo"
 t5fw.fw			optional cxgbe					\
-	dependency	"$S/dev/cxgbe/firmware/t5fw-1.24.12.0.bin"	\
+	dependency	"$S/dev/cxgbe/firmware/t5fw-1.25.0.0.bin"	\
 	compile-with	"${CP} ${.ALLSRC} ${.TARGET}"			\
 	no-obj no-implicit-rule						\
 	clean		"t5fw.fw"
@@ -1582,7 +1582,7 @@ t6fw.fwo		optional cxgbe					\
 	no-implicit-rule						\
 	clean		"t6fw.fwo"
 t6fw.fw			optional cxgbe					\
-	dependency	"$S/dev/cxgbe/firmware/t6fw-1.24.12.0.bin"	\
+	dependency	"$S/dev/cxgbe/firmware/t6fw-1.25.0.0.bin"	\
 	compile-with	"${CP} ${.ALLSRC} ${.TARGET}"			\
 	no-obj no-implicit-rule						\
 	clean		"t6fw.fw"

Added: head/sys/dev/cxgbe/firmware/t4fw-1.25.0.0.bin
==============================================================================

Modified: head/sys/dev/cxgbe/firmware/t4fw_interface.h
==============================================================================
--- head/sys/dev/cxgbe/firmware/t4fw_interface.h	Thu Sep 17 21:51:05 2020	(r365860)
+++ head/sys/dev/cxgbe/firmware/t4fw_interface.h	Thu Sep 17 22:14:11 2020	(r365861)
@@ -4690,6 +4690,7 @@ enum fw_caps_config_crypto {
 	FW_CAPS_CONFIG_CRYPTO_LOOKASIDE = 0x00000001,
 	FW_CAPS_CONFIG_TLSKEYS = 0x00000002,
 	FW_CAPS_CONFIG_IPSEC_INLINE = 0x00000004,
+	FW_CAPS_CONFIG_TLS_HW = 0x00000008,
 };
 
 enum fw_caps_config_fcoe {
@@ -4838,6 +4839,7 @@ enum fw_params_param_dev {
 	FW_PARAMS_PARAM_DEV_TCB_CACHE_FLUSH = 0x2D,
 	FW_PARAMS_PARAM_DEV_FILTER = 0x2E,
 	FW_PARAMS_PARAM_DEV_CLIP2_CMD = 0x2F,
+	FW_PARAMS_PARAM_DEV_KTLS_HW = 0x31,
 };
 
 /*
@@ -4874,6 +4876,13 @@ enum fw_params_param_dev_filter{
 	FW_PARAM_DEV_FILTER_MODE_MASK	= 0x01,
 };
 
+enum fw_params_param_dev_ktls_hw {
+	FW_PARAMS_PARAM_DEV_KTLS_HW_DISABLE = 0x00,
+	FW_PARAMS_PARAM_DEV_KTLS_HW_ENABLE  = 0x01,
+	FW_PARAMS_PARAM_DEV_KTLS_HW_USER_DISABLE = 0x00,
+	FW_PARAMS_PARAM_DEV_KTLS_HW_USER_ENABLE  = 0x01,
+};
+
 enum fw_params_param_dev_fwcache {
 	FW_PARAM_DEV_FWCACHE_FLUSH	= 0x00,
 	FW_PARAM_DEV_FWCACHE_FLUSHINV	= 0x01,
@@ -9638,6 +9647,7 @@ struct fw_debug_cmd {
 
 enum fw_diag_cmd_type {
 	FW_DIAG_CMD_TYPE_OFLDIAG = 0,
+	FW_DIAG_CMD_TYPE_MEM_TEST_DIAG,
 };
 
 enum fw_diag_cmd_ofldiag_op {
@@ -9654,6 +9664,22 @@ enum fw_diag_cmd_ofldiag_status {
 	FW_DIAG_CMD_OFLDIAG_STATUS_PASSED,
 };
 
+enum fw_diag_cmd_memdiag_op {
+	FW_DIAG_CMD_MEMDIAG_TEST_START=1,
+	FW_DIAG_CMD_MEMDIAG_TEST_STOP,
+	FW_DIAG_CMD_MEMDIAG_TEST_STATUS,
+	FW_DIAG_CMD_MEMDIAG_TEST_INIT,
+};
+
+
+enum fw_diag_cmd_memdiag_status {
+	FW_DIAG_CMD_MEMDIAG_STATUS_NONE,
+	FW_DIAG_CMD_MEMDIAG_STATUS_RUNNING,
+	FW_DIAG_CMD_MEMDIAG_STATUS_FAILED,
+	FW_DIAG_CMD_MEMDIAG_STATUS_PASSED
+};
+
+
 struct fw_diag_cmd {
 	__be32 op_type;
 	__be32 len16_pkd;
@@ -9664,15 +9690,33 @@ struct fw_diag_cmd {
 			__be16 test_status;
 			__be32 duration;
 		} ofldiag;
+		struct fw_diag_test_memtest_diag {
+			__u8   test_op;
+			__u8   test_status;
+			__be16 size;  /* in KB */
+			__be32 duration; /* in seconds */
+		} memdiag;
 	} u;
 };
 
-#define S_FW_DIAG_CMD_TYPE		0
-#define M_FW_DIAG_CMD_TYPE		0xff
-#define V_FW_DIAG_CMD_TYPE(x)		((x) << S_FW_DIAG_CMD_TYPE)
-#define G_FW_DIAG_CMD_TYPE(x)		\
-    (((x) >> S_FW_DIAG_CMD_TYPE) & M_FW_DIAG_CMD_TYPE)
+#define S_FW_DIAG_CMD_OPCODE        24
+#define M_FW_DIAG_CMD_OPCODE        0xff
+#define V_FW_DIAG_CMD_OPCODE(x)     ((x) << S_FW_DIAG_CMD_OPCODE)
+#define G_FW_DIAG_CMD_OPCODE(x)     \
+	    (((x) >> S_FW_DIAG_CMD_OPCODE) & M_FW_DIAG_CMD_OPCODE)
 
+#define S_FW_DIAG_CMD_TYPE      0
+#define M_FW_DIAG_CMD_TYPE      0xff
+#define V_FW_DIAG_CMD_TYPE(x)       ((x) << S_FW_DIAG_CMD_TYPE)
+#define G_FW_DIAG_CMD_TYPE(x)       \
+	    (((x) >> S_FW_DIAG_CMD_TYPE) & M_FW_DIAG_CMD_TYPE)
+
+#define S_FW_DIAG_CMD_LEN16     0
+#define M_FW_DIAG_CMD_LEN16     0xff
+#define V_FW_DIAG_CMD_LEN16(x)      ((x) << S_FW_DIAG_CMD_LEN16)
+#define G_FW_DIAG_CMD_LEN16(x)      \
+	    (((x) >> S_FW_DIAG_CMD_LEN16) & M_FW_DIAG_CMD_LEN16)
+
 struct fw_hma_cmd {
 	__be32 op_pkd;
 	__be32 retval_len16;
@@ -9939,18 +9983,18 @@ enum fw_hdr_chip {
 
 enum {
 	T4FW_VERSION_MAJOR	= 1,
-	T4FW_VERSION_MINOR	= 24,
-	T4FW_VERSION_MICRO	= 12,
+	T4FW_VERSION_MINOR	= 25,
+	T4FW_VERSION_MICRO	= 0,
 	T4FW_VERSION_BUILD	= 0,
 
 	T5FW_VERSION_MAJOR	= 1,
-	T5FW_VERSION_MINOR	= 24,
-	T5FW_VERSION_MICRO	= 12,
+	T5FW_VERSION_MINOR	= 25,
+	T5FW_VERSION_MICRO	= 0,
 	T5FW_VERSION_BUILD	= 0,
 
 	T6FW_VERSION_MAJOR	= 1,
-	T6FW_VERSION_MINOR	= 24,
-	T6FW_VERSION_MICRO	= 12,
+	T6FW_VERSION_MINOR	= 25,
+	T6FW_VERSION_MICRO	= 0,
 	T6FW_VERSION_BUILD	= 0,
 };
 

Added: head/sys/dev/cxgbe/firmware/t5fw-1.25.0.0.bin
==============================================================================

Added: head/sys/dev/cxgbe/firmware/t6fw-1.25.0.0.bin
==============================================================================

Modified: head/sys/dev/cxgbe/firmware/t6fw_cfg.txt
==============================================================================
--- head/sys/dev/cxgbe/firmware/t6fw_cfg.txt	Thu Sep 17 21:51:05 2020	(r365860)
+++ head/sys/dev/cxgbe/firmware/t6fw_cfg.txt	Thu Sep 17 22:14:11 2020	(r365861)
@@ -41,8 +41,8 @@
 	# TP OFLD MTUs
 	tp_mtus = 88, 256, 512, 576, 808, 1024, 1280, 1488, 1500, 2002, 2048, 4096, 4352, 8192, 9000, 9600
 
-	# enable TP_OUT_CONFIG.IPIDSPLITMODE and CRXPKTENC
-	reg[0x7d04] = 0x00010008/0x00010008
+	# enable TP_OUT_CONFIG.IPIDSplitMode, CRxPktEnc, and CCplAckMode.
+	reg[0x7d04] = 0x00012008/0x00012008
 
 	# TP_GLOBAL_CONFIG
 	reg[0x7d08] = 0x00000800/0x00000800 # set IssFromCplEnable
@@ -272,7 +272,7 @@
 
 [fini]
 	version = 0x1
-	checksum = 0x4528a6ac
+	checksum = 0x13640470
 #
 # $FreeBSD$
 #

Modified: head/sys/dev/cxgbe/firmware/t6fw_cfg_uwire.txt
==============================================================================
--- head/sys/dev/cxgbe/firmware/t6fw_cfg_uwire.txt	Thu Sep 17 21:51:05 2020	(r365860)
+++ head/sys/dev/cxgbe/firmware/t6fw_cfg_uwire.txt	Thu Sep 17 22:14:11 2020	(r365861)
@@ -110,7 +110,8 @@
 	sge_dbq_timer = 3, 2, 1, 5, 7, 9, 12, 16
 
 	# enable TP_OUT_CONFIG.IPIDSPLITMODE
-	reg[0x7d04] = 0x00010000/0x00010000
+	# Set TP_OUT_CONFIG.CCplAckMode to get srtt/rttvar
+	reg[0x7d04] = 0x00012000/0x00012000
 
 	reg[0x7dc0] = 0x0e2f8849	# TP_SHIFT_CNT
 
@@ -200,6 +201,9 @@
 	hma_size = 92 			# Size (in MBs) of host memory expected
 	hma_regions = stag,pbl,rq	# What all regions to place in host memory
 
+	#enable bottleneck-bw congestion control mode
+	#ofld_flags = 4
+
 # Some "definitions" to make the rest of this a bit more readable.  We support
 # 4 ports, 3 functions (NIC, FCoE and iSCSI), scaling up to 8 "CPU Queue Sets"
 # per function per port ...
@@ -426,7 +430,7 @@
 	nserver = 496		# number of server region entries
 	nhash = 12288		# number of hash region entries
 	nhpfilter = 64		# number of high priority filter region entries
-	protocol = nic_vm, ofld, rddp, rdmac, iscsi_initiator_pdu, iscsi_target_pdu, iscsi_t10dif, tlskeys, crypto_lookaside, ipsec_inline, nic_hashfilter
+	protocol = nic_vm, ofld, rddp, rdmac, iscsi_initiator_pdu, iscsi_target_pdu, iscsi_t10dif, tlskeys, crypto_lookaside, ipsec_inline, nic_hashfilter, nic_ktls_ofld
 	tp_l2t = 3072
 	tp_ddp = 2
 	tp_ddp_iscsi = 2
@@ -588,7 +592,7 @@
 
 [fini]
 	version = 0x1425001d
-	checksum = 0x14a022cd
+	checksum = 0xa1403d73
 
 # Total resources used by above allocations:
 #   Virtual Interfaces: 104
@@ -599,4 +603,4 @@
 #   Virtual Functions: 64
 #
 # $FreeBSD$
-#
\ No newline at end of file
+#

Modified: head/sys/modules/cxgbe/t4_firmware/Makefile
==============================================================================
--- head/sys/modules/cxgbe/t4_firmware/Makefile	Thu Sep 17 21:51:05 2020	(r365860)
+++ head/sys/modules/cxgbe/t4_firmware/Makefile	Thu Sep 17 22:14:11 2020	(r365861)
@@ -17,7 +17,7 @@ FIRMWS+=	${F}:${F:C/.txt//}:1.0.0.0
 .endif
 .endfor
 
-T4FW_VER=	1.24.12.0
+T4FW_VER=	1.25.0.0
 FIRMWS+=	t4fw-${T4FW_VER}.bin:t4fw:${T4FW_VER}
 
 .include <bsd.kmod.mk>

Modified: head/sys/modules/cxgbe/t5_firmware/Makefile
==============================================================================
--- head/sys/modules/cxgbe/t5_firmware/Makefile	Thu Sep 17 21:51:05 2020	(r365860)
+++ head/sys/modules/cxgbe/t5_firmware/Makefile	Thu Sep 17 22:14:11 2020	(r365861)
@@ -17,7 +17,7 @@ FIRMWS+=	${F}:${F:C/.txt//}:1.0.0.0
 .endif
 .endfor
 
-T5FW_VER=	1.24.12.0
+T5FW_VER=	1.25.0.0
 FIRMWS+=	t5fw-${T5FW_VER}.bin:t5fw:${T5FW_VER}
 
 .include <bsd.kmod.mk>

Modified: head/sys/modules/cxgbe/t6_firmware/Makefile
==============================================================================
--- head/sys/modules/cxgbe/t6_firmware/Makefile	Thu Sep 17 21:51:05 2020	(r365860)
+++ head/sys/modules/cxgbe/t6_firmware/Makefile	Thu Sep 17 22:14:11 2020	(r365861)
@@ -17,7 +17,7 @@ FIRMWS+=	${F}:${F:C/.txt//}:1.0.0.0
 .endif
 .endfor
 
-T6FW_VER=	1.24.12.0
+T6FW_VER=	1.25.0.0
 FIRMWS+=	t6fw-${T6FW_VER}.bin:t6fw:${T6FW_VER}
 
 .include <bsd.kmod.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009172214.08HMEBJI046308>