Date: Wed, 18 Dec 2019 19:10:30 +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: r355886 - head/sys/dev/cxgbe Message-ID: <201912181910.xBIJAUGt010134@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912181910.xBIJAUGt010134>