From d815d74843b3d29a89300f7620b3fbf056d49235 Mon Sep 17 00:00:00 2001 From: Selvin Xavier Date: Mon, 23 Oct 2017 03:15:14 -0700 Subject: [PATCH] bnxt_re: bz 2646 - 0012-bnxt_re-Make-room-for-mapping-beyond-32-entries.patch Fixing the size of the HW command Signed-off-by: Selvin Xavier --- ...e-room-for-mapping-beyond-32-entries.patch | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 linux-next-pending/0012-bnxt_re-Make-room-for-mapping-beyond-32-entries.patch diff --git a/linux-next-pending/0012-bnxt_re-Make-room-for-mapping-beyond-32-entries.patch b/linux-next-pending/0012-bnxt_re-Make-room-for-mapping-beyond-32-entries.patch new file mode 100644 index 0000000..1af67e2 --- /dev/null +++ b/linux-next-pending/0012-bnxt_re-Make-room-for-mapping-beyond-32-entries.patch @@ -0,0 +1,41 @@ +From e575a9bba0c0b820dc9f7c094340813db7f5c80f Mon Sep 17 00:00:00 2001 +From: Somnath Kotur +Date: Tue, 17 Oct 2017 14:01:35 +0530 +Subject: [PATCH 2/3] bnxt_re: Make room for mapping beyond 32 entries + +Latest chip requires indexes 32 to 47 be used for the internal HW block +that manages queue mapping. + +Signed-off-by: Devesh Sharma +Signed-off-by: Somnath Kotur +Signed-off-by: Doug Ledford + +diff --git a/drivers/infiniband/hw/bnxt_re/qplib_res.h b/drivers/infiniband/hw/bnxt_re/qplib_res.h +index e872075..2e5c052 100644 +--- a/drivers/infiniband/hw/bnxt_re/qplib_res.h ++++ b/drivers/infiniband/hw/bnxt_re/qplib_res.h +@@ -169,7 +169,7 @@ struct bnxt_qplib_ctx { + u32 cq_count; + struct bnxt_qplib_hwq cq_tbl; + struct bnxt_qplib_hwq tim_tbl; +-#define MAX_TQM_ALLOC_REQ 32 ++#define MAX_TQM_ALLOC_REQ 48 + #define MAX_TQM_ALLOC_BLK_SIZE 8 + u8 tqm_count[MAX_TQM_ALLOC_REQ]; + struct bnxt_qplib_hwq tqm_pde; +diff --git a/drivers/infiniband/hw/bnxt_re/roce_hsi.h b/drivers/infiniband/hw/bnxt_re/roce_hsi.h +index eeb55b2..c3cba606 100644 +--- a/drivers/infiniband/hw/bnxt_re/roce_hsi.h ++++ b/drivers/infiniband/hw/bnxt_re/roce_hsi.h +@@ -2644,7 +2644,7 @@ struct creq_query_func_resp_sb { + u8 l2_db_space_size; + __le16 max_srq; + __le32 max_gid; +- __le32 tqm_alloc_reqs[8]; ++ __le32 tqm_alloc_reqs[12]; + }; + + /* Set resources command response (16 bytes) */ +-- +2.5.5 + -- 2.41.0