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
This commit is contained in:
parent
6e7ecc9a89
commit
93065a5afd
@ -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) |
|
||||
|
Loading…
x
Reference in New Issue
Block a user