Skip to contentSkip to conversation

RDMA/hns: Fix wrong field of SRQ number the device supports

PATCH Applied Weihang Li 2 participants 2 messages Nov 26, 2020

Subsystems (2)
lore
Share & tools
lore

Weihang Li

author
#0 lore raw

PATCH 1/1 RDMA/hns: Fix wrong field of SRQ number the device supports

From: Wenpeng Liang <[email protected]>

The SRQ capacity is got from the firmware, whose field should be ended at bit 19.

Fixes ba6bb7e97421 ("RDMA/hns: Add interfaces to get pf capabilities from firmware")
---
 drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/hns/hns_roce_hw_v2.h +1 -1
index 1409d05..3b4d79e 100644
@@ -1717,7 +1717,7 @@ struct hns_roce_query_pf_caps_d {
 	__le32 rsv_uars_rsv_qps;
 };
 #define V2_QUERY_PF_CAPS_D_NUM_SRQS_S 0
-#define V2_QUERY_PF_CAPS_D_NUM_SRQS_M GENMASK(20, 0)
+#define V2_QUERY_PF_CAPS_D_NUM_SRQS_M GENMASK(19, 0)
 
 #define V2_QUERY_PF_CAPS_D_RQWQE_HOP_NUM_S 20
 #define V2_QUERY_PF_CAPS_D_RQWQE_HOP_NUM_M GENMASK(21, 20)
Signature · 1 line
2.8.1
maintainer Applied
#1 lore raw
Quoted 11 lines · Weihang Li

From: Wenpeng Liang <[email protected]>

The SRQ capacity is got from the firmware, whose field should be ended at bit 19.

Fixes ba6bb7e97421 ("RDMA/hns: Add interfaces to get pf capabilities from firmware")
---
 drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to for-rc, thanks

Jason