RDMA/cxgb4: limit MAXBURST EQ context field to 256B.
Subsystems (2)
PATCH 1/2 RDMA/cxgb4: limit MAXBURST EQ context field to 256B.
MAXBURST cannot exceed 256B for on-chip queues. With a 512B MAXBURST, we can lock up the chip.
---
drivers/infiniband/hw/cxgb4/qp.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/infiniband/hw/cxgb4/qp.c +2 -2
@@ -220,7 +220,7 @@ static int create_qp(struct c4iw_rdev *rdev, struct t4_wq *wq,V_FW_RI_RES_WR_DCAEN (0 ) |V_FW_RI_RES_WR_DCACPU (0 ) |V_FW_RI_RES_WR_FBMIN (2 ) | -V_FW_RI_RES_WR_FBMAX (3 ) | +V_FW_RI_RES_WR_FBMAX (2 ) |V_FW_RI_RES_WR_CIDXFTHRESHO (0 ) |V_FW_RI_RES_WR_CIDXFTHRESH (0 ) | V_FW_RI_RES_WR_EQSIZE(eqsize));
@@ -243,7 +243,7 @@ static int create_qp(struct c4iw_rdev *rdev, struct t4_wq *wq,V_FW_RI_RES_WR_DCAEN (0 ) |V_FW_RI_RES_WR_DCACPU (0 ) |V_FW_RI_RES_WR_FBMIN (2 ) | -V_FW_RI_RES_WR_FBMAX (3 ) | +V_FW_RI_RES_WR_FBMAX (2 ) |V_FW_RI_RES_WR_CIDXFTHRESHO (0 ) |V_FW_RI_RES_WR_CIDXFTHRESH (0 ) | V_FW_RI_RES_WR_EQSIZE(eqsize));
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 2/2 RDMA/cxgb4: Set the correct device physical function for iwarp connections.
In reply to a message not in the archiveThe PF passed to FW was 0 causing PCI failures in an SR-IOV environment.
---
drivers/infiniband/hw/cxgb4/cm.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/infiniband/hw/cxgb4/cm.c +2 -1
@@ -380,7 +380,8 @@ static void send_flowc(struct c4iw_ep *ep, struct sk_buff *skb) 16)) | FW_WR_FLOWID(ep->hwtid)); flowc->mnemval[0 ].mnemonic =FW_FLOWC_MNEM_PFNVFN ; - flowc->mnemval[0 ].val =cpu_to_be32 (0 ); + flowc->mnemval[0 ].val =cpu_to_be32 ( +PCI_FUNC (ep->com.dev->rdev.lldi.pdev->devfn) <<8 ); flowc->mnemval[1 ].mnemonic =FW_FLOWC_MNEM_CH ; flowc->mnemval[1 ].val =cpu_to_be32 (ep->tx_chan); flowc->mnemval[2 ].mnemonic =FW_FLOWC_MNEM_PORT ;
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 2/2] RDMA/cxgb4: Set the correct device physical function for iwarp connections.
In reply to a message not in the archiveQuoted 1 line · Steve Wise
The PF passed to FW was 0 causing PCI failures in an SR-IOV environment.
Thanks, applied 1 & 2
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html