svn commit: r358976 - stable/12/sys/dev/cxgbe
Navdeep Parhar
np at FreeBSD.org
Sat Mar 14 01:33:12 UTC 2020
Author: np
Date: Sat Mar 14 01:33:11 2020
New Revision: 358976
URL: https://svnweb.freebsd.org/changeset/base/358976
Log:
MFC r355886:
cxgbe(4): check if the firmware supports FW_RI_FR_NSMR_TPTE_WR work
request.
This is used by iw_cxgbe to figure out how best to register memory.
Sponsored by: Chelsio Communications
Modified:
stable/12/sys/dev/cxgbe/t4_main.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/dev/cxgbe/t4_main.c
==============================================================================
--- stable/12/sys/dev/cxgbe/t4_main.c Sat Mar 14 01:28:53 2020 (r358975)
+++ stable/12/sys/dev/cxgbe/t4_main.c Sat Mar 14 01:33:11 2020 (r358976)
@@ -4226,6 +4226,14 @@ get_params__post_init(struct adapter *sc)
else
sc->params.ulptx_memwrite_dsgl = false;
+ /* FW_RI_FR_NSMR_TPTE_WR support */
+ param[0] = FW_PARAM_DEV(RI_FR_NSMR_TPTE_WR);
+ rc = -t4_query_params(sc, sc->mbox, sc->pf, 0, 1, param, val);
+ if (rc == 0)
+ sc->params.fr_nsmr_tpte_wr_support = val[0] != 0;
+ else
+ sc->params.fr_nsmr_tpte_wr_support = false;
+
/* get capabilites */
bzero(&caps, sizeof(caps));
caps.op_to_write = htobe32(V_FW_CMD_OP(FW_CAPS_CONFIG_CMD) |
More information about the svn-src-all
mailing list