svn commit: r355886 - head/sys/dev/cxgbe
Navdeep Parhar
np at FreeBSD.org
Wed Dec 18 19:10:30 UTC 2019
Author: np
Date: Wed Dec 18 19:10:30 2019
New Revision: 355886
URL: https://svnweb.freebsd.org/changeset/base/355886
Log:
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.
MFC after: 1 month
Sponsored by: Chelsio Communications
Modified:
head/sys/dev/cxgbe/t4_main.c
Modified: head/sys/dev/cxgbe/t4_main.c
==============================================================================
--- head/sys/dev/cxgbe/t4_main.c Wed Dec 18 18:44:16 2019 (r355885)
+++ head/sys/dev/cxgbe/t4_main.c Wed Dec 18 19:10:30 2019 (r355886)
@@ -4379,6 +4379,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-head
mailing list