Skip to contentSkip to conversation

RDMA/hns: Bugfix for memory window mtpt configuration

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: Bugfix for memory window mtpt configuration

From: Yixian Liu <[email protected]>

When a memory window is bound to a memory region, the local write access should be set for its mtpt table.

Fixes c7c28191408b ("RDMA/hns: Add MW support for hip08")
---
 drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 1 +
 1 file changed, 1 insertion(+)
drivers/infiniband/hw/hns/hns_roce_hw_v2.c +1 -0
index 6d30850..3cc0375 100644
@@ -2936,6 +2936,7 @@ static int hns_roce_v2_mw_write_mtpt(void *mb_buf, struct hns_roce_mw *mw)
 
 	roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_R_INV_EN_S, 1);
 	roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_L_INV_EN_S, 1);
+	roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_LW_EN_S, 1);
 
 	roce_set_bit(mpt_entry->byte_12_mw_pa, V2_MPT_BYTE_12_PA_S, 0);
 	roce_set_bit(mpt_entry->byte_12_mw_pa, V2_MPT_BYTE_12_MR_MW_S, 1);
Signature · 1 line
2.8.1
maintainer Applied
#1 lore raw
Quoted 11 lines · Weihang Li

From: Yixian Liu <[email protected]>

When a memory window is bound to a memory region, the local write access should be set for its mtpt table.

Fixes c7c28191408b ("RDMA/hns: Add MW support for hip08")
---
 drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 1 +
 1 file changed, 1 insertion(+)

Applied to for-rc, thanks

Jason